{"version":3,"sources":["models/Generic/responseModel.js","utils/API.js","utils/APICalls.js","react-auth0-spa.js","services/Common/FileServiceClient.js","polyfill.js","components/FileViewerPage.js","App.js","serviceWorker.js","utils/history.js","assets/icons/index.js","assets/icons/sygnet.js","assets/icons/logo.js","assets/icons/logo-negative.js","store.js","index.js"],"names":["ResponseModel","succeded","element","errorMessage","additionalMessage","warnings","this","succeeded","object","message","axios","create","baseURL","process","responseType","headers","APICall","post","url","model","auth0Client","a","getTokenSilently","audience","scope","accessToken","API","defaults","common","catch","includes","response","result","data","responseModel","Errors","length","Description","get","undefined","errors","put","delete","DEFAULT_REDIRECT_CALLBACK","window","history","replaceState","document","title","location","pathname","Auth0Context","React","createContext","useAuth0","useContext","Auth0Provider","children","onRedirectCallback","initOptions","useState","isAuthenticated","setIsAuthenticated","user","setUser","setAuth0","loading","setLoading","popupOpen","setPopupOpen","useEffect","createAuth0Client","auth0FromHook","search","handleRedirectCallback","appState","getUser","roles","initAuth0","loginWithPopup","params","console","error","Provider","value","getIdTokenClaims","loginWithRedirect","getTokenWithPopup","logout","FileServiceClient","type","fileName","upload","fileContent","openFile","pdfString","openInSameWindow","container","fileExtension","toLowerCase","split","pop","applicationType","blob","b64toBlob","file","Blob","fileURL","URL","createObjectURL","log","HTMLElement","firstChild","removeChild","embed","createElement","src","style","width","height","border","appendChild","href","download","click","getReport","reportViewName","getReportViews","CustomEvent","event","bubbles","cancelable","detail","evt","createEvent","initCustomEvent","prototype","Event","Element","matches","msMatchesSelector","webkitMatchesSelector","closest","s","el","call","parentElement","parentNode","nodeType","FileViewerPage","useParams","containerRef","useRef","hasFetched","current","targetUrl","fileService","toast","fetchFile","ref","display","justifyContent","alignItems","color","className","showLoading","TheLayout","lazy","App","useHistory","hash","JSON","parse","localStorage","getItem","push","removeItem","handleAuthentication","Suspense","fallback","path","component","name","render","props","Boolean","hostname","match","createBrowserHistory","icons","Object","assign","sygnet","logo","logoNegative","cilAlignCenter","cilAlignLeft","cilAlignRight","cilApplicationsSettings","cilArrowBottom","cilArrowRight","cilArrowTop","cilAsterisk","cilBan","cilBasket","cilBell","cilBold","cilBookmark","cilCalculator","cilCalendar","cilCloudDownload","cilChartPie","cilCheck","cilChevronBottom","cilChevronLeft","cilChevronRight","cilChevronTop","cilCircle","cilCheckCircle","cilCode","cilCommentSquare","cilCreditCard","cilCursor","cilCursorMove","cilDrop","cilDollar","cilEnvelopeClosed","cilEnvelopeLetter","cilEnvelopeOpen","cilEuro","cilEyedropper","cilFile","cilFullscreen","cilFullscreenExit","cilGlobeAlt","cilGraph","cilGrid","cilHome","cilInbox","cilIndentDecrease","cilIndentIncrease","cilInputPower","cilItalic","cilJustifyCenter","cilJustifyLeft","cilLaptop","cilLayers","cilLightbulb","cilList","cilListNumbered","cilListRich","cilLocationPin","cilLockLocked","cilMagnifyingGlass","cilMap","cilMoon","cilNotes","cilOptions","cilPaperclip","cilPaperPlane","cilPencil","cilPeople","cilPhone","cilPrint","cilPuzzle","cilSave","cilScrubber","cilSettings","cilShare","cilShareAll","cilShareBoxed","cilShieldAlt","cilSpeech","cilSpeedometer","cilSpreadsheet","cilStar","cilSun","cilTags","cilTask","cilTrash","cilUnderline","cilUser","cilUserFemale","cilUserFollow","cilUserUnfollow","cilX","cilXCircle","cilWarning","cilBarChart","cilChartLine","cilListFilter","cilAlarm","cilReportSlash","cilBellExclamation","cilInfo","cifUs","cifBr","cifIn","cifFr","cifEs","cifPl","cibSkype","cibFacebook","cibTwitter","cibLinkedin","cibFlickr","cibTumblr","cibXing","cibGithub","cibStackoverflow","cibYoutube","cibDribbble","cibInstagram","cibPinterest","cibVk","cibYahoo","cibAddthis","cibBehance","cibReddit","cibVimeo","cibCcMastercard","cibCcVisa","cibStripe","cibPaypal","cibGooglePay","cibCcAmex","initialState","sidebarShow","asideShow","darkMode","store","createStore","state","rest","PivotGrid","defaultOptions","options","headerFilter","hideSelectAllOnSearch","PivotGridFieldChooser","ReactDOM","domain","client_id","redirect_uri","getElementById","navigator","serviceWorker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iRFiJlBC,aGjJ0B,CAAC,UAAD,+nRHkJzB,CACDC,oBACAC,kBACAC,mBACAC,6BACAC,oBACAC,mBACAC,iBACAC,iBACAC,YACAC,eACAC,aACAC,aACAC,iBACAC,mBACAC,iBACAC,sBACAC,iBACAC,cACAC,sBACAC,oBACAC,qBACAC,mBACAC,eACAC,oBACAC,aACAC,sBACAC,mBACAC,eACAC,mBACAC,aACAC,eACAC,uBACAC,uBACAC,qBACAC,aACAC,mBACAC,aACAC,mBACAC,uBACAC,iBACAC,cACAC,aACAC,aACAC,cACAC,uBACAC,uBACAC,mBACAC,eACAC,sBACAC,oBACAC,eACAC,eACAC,kBACAC,aACAC,qBACAC,iBACAC,oBACAC,mBACAC,wBACAC,YACAC,aACAC,cACAC,gBACAC,kBACAC,mBACAC,eACAC,eACAC,cACAC,cACAC,eACAC,aACAC,iBACAC,iBACAC,cACAC,iBACAC,mBACAC,kBACAC,eACAC,oBACAC,oBACAC,aACAC,YACAC,aACAC,aACAC,cACAC,kBACAC,aACAC,mBACAC,mBACAC,qBACAC,UACAC,gBACAC,gBACAC,iBACAC,kBACAC,mBACAC,cACAC,oBACAC,wBACAC,cACC,CACDC,UACAC,UACAC,UACAC,UACAC,UACAC,YACC,CACDC,aACAC,gBACAC,eACAC,gBACAC,cACAC,cACAC,YACAC,cACAC,qBACAC,eACAC,gBACAC,iBACAC,iBACAC,UACAC,aACAC,eACAC,eACAC,cACAC,aACAC,oBACAC,cACAC,cACAC,cACAC,iBACAC,gB,0CIrRIC,GAAe,CACnBC,aAAa,EACbC,WAAW,EACXC,UAAU,GAaGC,GADDC,cATM,WAA8C,IAA7CC,EAA4C,uDAApCN,GAAoC,yCAApB5O,EAAoB,EAApBA,KAASmP,EAAW,mBAC/D,OAAQnP,GACN,IAAK,MACH,OAAO,2BAAIkP,GAAUC,GACvB,QACE,OAAOD,M,oBCIbxR,IAAMyI,MAAQA,GAadiJ,WAAUC,eAAe,CACvBC,QAAS,CACLC,aAAc,CACVC,uBAAuB,MAIjCC,KAAsBJ,eAAe,CACnCC,QAAS,CACLC,aAAc,CACVC,uBAAuB,MAKjCE,IAAS7J,OAEL,cAAC,KAAD,CAAUmJ,MAAOA,GAAjB,SACE,cAAC,IAAD,CACEW,OAAQxU,mBACRyU,UAAWzU,mCAEX0U,aAAc3S,OAAOK,SAASyE,KAC9BhE,mBAhCmB,SAAAiB,GACzB9B,EAAQkI,KACNpG,GAAYA,EAASgF,UACjBhF,EAASgF,UACT/G,OAAOK,SAASC,WAuBlB,SAOE,cAAC,EAAD,QAINH,SAASyS,eAAe,SP8DpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GACjCA,EAAaC,kB","file":"static/js/main.89c3529a.chunk.js","sourcesContent":["export default class ResponseModel {\r\n\r\n succeeded;\r\n object;\r\n errorMessage;\r\n\r\n constructor(succeded, element, errorMessage, additionalMessage,warnings) \r\n {\r\n this.succeeded = succeded;\r\n this.object = element;\r\n this.errorMessage = errorMessage;\r\n this.additionalMessage = additionalMessage;\r\n this.warnings = warnings;\r\n }\r\n\r\n static responseModelOk(element, additionalMessage,warnings){\r\n return new ResponseModel(true, element, null, additionalMessage,warnings);\r\n }\r\n\r\n static responseModelKo(message){\r\n return new ResponseModel(false, null, message, null);\r\n }\r\n}","import axios from \"axios\";\r\n\r\nexport default axios.create({\r\n baseURL: process.env.REACT_APP_API_URL,\r\n responseType: \"json\",\r\n headers: {'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept', 'Content-Type': 'application/json'}\r\n});","import API from \"./API.js\";\r\nimport responseModel from \"../models/Generic/responseModel\";\r\n//import config from \"../auth_config.json\";\r\n\r\nconst APICall = {\r\n post: async function(url, model, auth0Client) {\r\n // Get token\r\n const accessToken = await auth0Client.getTokenSilently({\r\n audience: process.env.REACT_APP_AUTH_AUDIENCE,\r\n scope: process.env.REACT_APP_AUTH_SCOPE,\r\n });\r\n\r\n API.defaults.headers.common = {'Authorization': `Bearer ${accessToken}`};\r\n let response = await API.post(url, model).catch(function (errorMessage) {\r\n let message = `${errorMessage }`;\r\n if (message !== null && message.includes(\"status code 403\")) {\r\n message = \"Your user doesn't have permissions to execute this action.\";\r\n }\r\n return { \r\n \"data\": {\r\n \"object\": null, \r\n \"Errors\": [ { \"Description\" : `${errorMessage }` }],\r\n \"succeeded\": false\r\n }\r\n };\r\n });\r\n if (response !== null) {\r\n let result = response.data;\r\n if (result.succeeded === true) {\r\n return new responseModel(true, result.object, null, result.additionalMessage,result.warnings);\r\n } else {\r\n return new responseModel(false, null, result.Errors.length > 0 ? result.Errors[0].Description.includes(\"status code 403\") ? \"Your user doesn't have permissions to execute this action.\" : result.Errors[0].Description : \"There is a problem with the API service.\");\r\n } \r\n } else {\r\n return new responseModel(false, null, \"There is a problem with the API service.\", null);\r\n } \r\n },\r\n\r\n get: async function(url, auth0Client) {\r\n // Get token\r\n const accessToken = await auth0Client.getTokenSilently({\r\n audience: process.env.REACT_APP_AUTH_AUDIENCE,\r\n scope: 'openid',\r\n });\r\n\r\n API.defaults.headers.common = {'Authorization': `Bearer ${accessToken}`};\r\n let response = await API.get(url).catch(function (errorMessage) {\r\n let message = `${errorMessage }`;\r\n if (message !== null && message.includes(\"status code 403\")) {\r\n message = \"Your user doesn't have permissions to execute this action.\";\r\n }\r\n return { \r\n \"data\": {\r\n \"object\": null, \r\n \"Errors\": [ { \"Description\" : `${errorMessage }` }],\r\n \"succeeded\": false\r\n }\r\n };\r\n });\r\n if (response !== null) {\r\n let result = response.data;\r\n if (result.succeeded === true) {\r\n return new responseModel(true, result.object, null, result.additionalMessage,result.warnings);\r\n } else {\r\n if (result.Errors !== undefined) {\r\n return new responseModel(false, null, result.Errors.length > 0 ? result.Errors[0].Description : \"There is a problem with the API service.\");\r\n } else if (result.errors !== undefined) {\r\n return new responseModel(false, null, result.errors.length > 0 ? result.errors[0].Description : \"There is a problem with the API service.\");\r\n } \r\n } \r\n } else {\r\n return new responseModel(false, null, \"There is a problem with the API service.\", null);\r\n } \r\n }, \r\n\r\n put: async function(url, model, auth0Client) {\r\n // Get token\r\n const accessToken = await auth0Client.getTokenSilently({\r\n audience: process.env.REACT_APP_AUTH_AUDIENCE,\r\n scope: 'openid',\r\n });\r\n\r\n API.defaults.headers.common = {'Authorization': `Bearer ${accessToken}`};\r\n let response = await API.put(url, model).catch(function (errorMessage) {\r\n let message = `${errorMessage }`;\r\n if (message !== null && message.includes(\"status code 403\")) {\r\n message = \"Your user doesn't have permissions to execute this action.\";\r\n }\r\n return { \r\n \"data\": {\r\n \"object\": null, \r\n \"Errors\": [ { \"Description\" : `${errorMessage }` }],\r\n \"succeeded\": false\r\n }\r\n };\r\n });\r\n if (response !== null) {\r\n let result = response.data;\r\n if (result.succeeded === true) {\r\n return new responseModel(true, result.object, null, result.additionalMessage,result.warnings);\r\n } else {\r\n let errorMessage = result.Errors.length > 0 ? result.Errors[0].Description : \"There is a problem with the API service.\";\r\n if (errorMessage !== null && errorMessage.includes(\"status code 403\")) {\r\n errorMessage = \"Your user doesn't have permissions to execute this action.\";\r\n }\r\n return new responseModel(false, null, errorMessage);\r\n } \r\n } else {\r\n return new responseModel(false, null, \"There is a problem with the API service.\", null);\r\n } \r\n },\r\n\r\n delete: async function(url, auth0Client) {\r\n // Get token\r\n const accessToken = await auth0Client.getTokenSilently({\r\n audience: process.env.REACT_APP_AUTH_AUDIENCE,\r\n scope: 'openid',\r\n });\r\n\r\n API.defaults.headers.common = {'Authorization': `Bearer ${accessToken}`};\r\n let response = await API.delete(url).catch(function (errorMessage) {\r\n let message = `${errorMessage }`;\r\n if (message !== null && message.includes(\"status code 403\")) {\r\n message = \"Your user doesn't have permissions to execute this action.\";\r\n }\r\n return { \r\n \"data\": {\r\n \"object\": null, \r\n \"Errors\": [ { \"Description\" : `${message }` }],\r\n \"succeeded\": false\r\n }\r\n };\r\n });\r\n if (response !== null) {\r\n let result = response.data;\r\n if (result.succeeded === true) {\r\n return new responseModel(true, result.object, null, result.additionalMessage,result.warnings);\r\n } else {\r\n return new responseModel(false, null, result.Errors.length > 0 ? result.Errors[0].Description : \"There is a problem with the API service.\");\r\n } \r\n } else {\r\n return new responseModel(false, null, \"There is a problem with the API service.\", null);\r\n } \r\n }\r\n};\r\n\r\nexport default APICall;","import React, { useState, useEffect, useContext } from \"react\";\r\nimport createAuth0Client from \"@auth0/auth0-spa-js\";\r\n\r\nconst DEFAULT_REDIRECT_CALLBACK = () =>\r\n window.history.replaceState({}, document.title, window.location.pathname);\r\n\r\nexport const Auth0Context = React.createContext();\r\nexport const useAuth0 = () => useContext(Auth0Context);\r\nexport const Auth0Provider = ({\r\n children,\r\n onRedirectCallback = DEFAULT_REDIRECT_CALLBACK,\r\n ...initOptions\r\n}) => {\r\n const [isAuthenticated, setIsAuthenticated] = useState();\r\n const [user, setUser] = useState();\r\n const [auth0Client, setAuth0] = useState();\r\n const [loading, setLoading] = useState(true);\r\n const [popupOpen, setPopupOpen] = useState(false);\r\n\r\n useEffect(() => {\r\n const initAuth0 = async () => {\r\n const auth0FromHook = await createAuth0Client(initOptions);\r\n setAuth0(auth0FromHook);\r\n\r\n if (window.location.search.includes(\"code=\") &&\r\n window.location.search.includes(\"state=\")) {\r\n const { appState } = await auth0FromHook.handleRedirectCallback();\r\n onRedirectCallback(appState);\r\n }\r\n\r\n const isAuthenticated = await auth0FromHook.isAuthenticated();\r\n\r\n setIsAuthenticated(isAuthenticated);\r\n\r\n if (isAuthenticated) {\r\n const user = await auth0FromHook.getUser();\r\n // Adding roles to the user object\r\n const roles = user[`${process.env.REACT_APP_NAMESPACE}roles`];\r\n setUser({ ...user, roles });\r\n }\r\n\r\n setLoading(false);\r\n };\r\n initAuth0();\r\n // eslint-disable-next-line\r\n }, []);\r\n\r\n const loginWithPopup = async (params = {}) => {\r\n setPopupOpen(true);\r\n try {\r\n await auth0Client.loginWithPopup(params);\r\n } catch (error) {\r\n console.error(error);\r\n } finally {\r\n setPopupOpen(false);\r\n }\r\n const user = await auth0Client.getUser();\r\n const roles = user[`${process.env.REACT_APP_NAMESPACE}roles`];\r\n setUser({ ...user, roles });\r\n setIsAuthenticated(true);\r\n };\r\n\r\n const handleRedirectCallback = async () => {\r\n setLoading(true);\r\n await auth0Client.handleRedirectCallback();\r\n const user = await auth0Client.getUser();\r\n const roles = user[`${process.env.REACT_APP_NAMESPACE}roles`];\r\n setLoading(false);\r\n setIsAuthenticated(true);\r\n setUser({ ...user, roles });\r\n };\r\n \r\n\r\n return (\r\n auth0Client.getIdTokenClaims(...p),\r\n loginWithRedirect: (...p) => auth0Client.loginWithRedirect(...p),\r\n getTokenSilently: (...p) => auth0Client.getTokenSilently(...p),\r\n getTokenWithPopup: (...p) => auth0Client.getTokenWithPopup(...p),\r\n logout: (...p) => auth0Client.logout(...p)\r\n }}\r\n >\r\n {children}\r\n \r\n );\r\n};","import APICall from \"../../utils/APICalls.js\";\r\nimport b64toBlob from \"b64-to-blob\";\r\n\r\nconst FileServiceClient = {\r\n get: async function(type, fileName, auth0Client) {\r\n return await APICall.get(`File/${type}/${fileName}`, auth0Client);\r\n },\r\n\r\n upload: async function(fileContent, type, fileName, auth0Client) {\r\n return await APICall.post(`File/Download/${type}/${fileName}`, fileContent, auth0Client);\r\n },\r\n\r\n openFile: async function(pdfString, fileName, openInSameWindow, container = null) {\r\n var fileExtension = fileName.toLowerCase().split('.').pop();\r\n let applicationType = \"application/octet-stream\";\r\n switch (fileExtension) {\r\n case 'pdf':\r\n applicationType = \"application/pdf\";\r\n break;\r\n case 'xlsx':\r\n applicationType = \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\";\r\n break; \r\n default:\r\n }\r\n\r\n let blob = b64toBlob(pdfString, applicationType)\r\n const file = new Blob([blob], { type: applicationType });\r\n const fileURL = URL.createObjectURL(file);\r\n\r\n console.log(\"container: \", container);\r\n if (applicationType === \"application/pdf\" && container instanceof HTMLElement) {\r\n // Safely clear and append to the container\r\n while (container.firstChild) {\r\n container.removeChild(container.firstChild); // Remove existing child nodes\r\n }\r\n\r\n const embed = document.createElement('embed');\r\n embed.src = fileURL;\r\n embed.type = applicationType;\r\n embed.style.width = '100%';\r\n embed.style.height = '100vh';\r\n embed.style.border = 'none';\r\n container.appendChild(embed); // Append the embed element to the container\r\n } else if (applicationType !== \"application/pdf\") {\r\n // Trigger a download for unsupported file types\r\n const a = document.createElement(\"a\");\r\n a.href = fileURL;\r\n a.download = fileName;\r\n a.click();\r\n } else {\r\n // if (openInSameWindow)\r\n // window.location = fileURL;\r\n // else\r\n // window.open(fileURL);\r\n }\r\n },\r\n\r\n delete: async function(type, fileName, auth0Client) {\r\n return await APICall.delete(`File/${type}/${fileName}`, auth0Client);\r\n },\r\n\r\n getReport: async function(reportViewName, auth0Client) {\r\n return await APICall.get(`File/Report/${reportViewName}`, auth0Client);\r\n },\r\n\r\n getReportViews: async function(auth0Client) {\r\n return await APICall.get(`File/ReportViews`, auth0Client);\r\n },\r\n};\r\n\r\nexport default FileServiceClient;","/*\r\n* required polyfills\r\n*/\r\n\r\n/** IE9, IE10 and IE11 requires all of the following polyfills. **/\r\n// import \"core-js\";\r\n// import 'core-js/features/symbol'\r\n// import 'core-js/features/object'\r\n// import 'core-js/features/function'\r\n// import 'core-js/features/parse-int'\r\n// import 'core-js/features/parse-float'\r\n// import 'core-js/features/number'\r\n// import 'core-js/features/math'\r\n// import 'core-js/features/string'\r\n// import 'core-js/features/date'\r\n// import 'core-js/features/array'\r\n// import 'core-js/features/regexp'\r\n// import 'core-js/features/map'\r\n// import 'core-js/features/weak-map'\r\n// import 'core-js/features/set'\r\n// import 'core-js/features/set/map';\r\n\r\n/** IE10 and IE11 requires the following for the Reflect API. */\r\n// import 'core-js/features/reflect';\r\n\r\n/** Evergreen browsers require these. **/\r\n// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.\r\n// import 'core-js/features/reflect'\r\n\r\n// CustomEvent() constructor functionality in IE9, IE10, IE11\r\n(function () {\r\n\r\n if ( typeof window.CustomEvent === \"function\" ) return false\r\n\r\n function CustomEvent ( event, params ) {\r\n params = params || { bubbles: false, cancelable: false, detail: undefined }\r\n var evt = document.createEvent( 'CustomEvent' )\r\n evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail )\r\n return evt\r\n }\r\n\r\n CustomEvent.prototype = window.Event.prototype\r\n\r\n window.CustomEvent = CustomEvent\r\n})()\r\n\r\nif (!Element.prototype.matches) {\r\n Element.prototype.matches =\r\n Element.prototype.msMatchesSelector ||\r\n Element.prototype.webkitMatchesSelector;\r\n}\r\n\r\nif (!Element.prototype.closest) {\r\n Element.prototype.closest = function(s) {\r\n var el = this;\r\n\r\n do {\r\n if (Element.prototype.matches.call(el, s)) return el;\r\n el = el.parentElement || el.parentNode;\r\n } while (el !== null && el.nodeType === 1);\r\n return null;\r\n };\r\n}\r\n","import React, { useEffect, useRef } from 'react';\r\nimport { useAuth0 } from \"../react-auth0-spa\";\r\nimport { useParams } from 'react-router-dom';\r\nimport fileService from \"../services/Common/FileServiceClient\";\r\nimport { toast } from 'react-toastify';\r\nimport { CSpinner } from \"@coreui/react\";\r\n\r\nconst FileViewerPage = () => {\r\n const { isAuthenticated, loginWithRedirect, auth0Client } = useAuth0();\r\n const { type, fileName } = useParams();\r\n const containerRef = useRef(null);\r\n\r\n // Guard to ensure fetchFile runs only once\r\n const hasFetched = useRef(false);\r\n\r\n useEffect(() => {\r\n const fetchFile = async () => {\r\n if (hasFetched.current) return; // Prevent multiple executions\r\n hasFetched.current = true; // Mark as executed\r\n\r\n if (!isAuthenticated) {\r\n await loginWithRedirect({ appState: { targetUrl: window.location.pathname } });\r\n } else {\r\n const response = await fileService.get(type, fileName, auth0Client);\r\n if (response.succeeded) {\r\n fileService.openFile(response.object, fileName, true, containerRef.current);\r\n } else {\r\n toast.error('There was a problem downloading the file.');\r\n }\r\n }\r\n };\r\n\r\n fetchFile();\r\n }, [isAuthenticated, loginWithRedirect, auth0Client, type, fileName]);\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FileViewerPage;\r\n","import 'devextreme/dist/css/dx.common.css';\r\nimport 'devextreme/dist/css/dx.light.css';\r\nimport { ToastContainer } from 'react-toastify';\r\nimport React, { useEffect } from 'react';\r\nimport { useAuth0 } from \"./react-auth0-spa\";\r\nimport FileViewerPage from \"./components/FileViewerPage\";\r\nimport { HashRouter, Route, Switch, useHistory } from 'react-router-dom';\r\nimport './scss/style.scss';\r\n\r\nconst showLoading = () =>
;\r\n\r\n// Containers\r\nconst TheLayout = React.lazy(() => import('./containers/TheLayout'));\r\n\r\nconst App = () => {\r\n const { isAuthenticated, loginWithRedirect, user, loading } = useAuth0();\r\n const history = useHistory();\r\n\r\n useEffect(() => {\r\n const handleAuthentication = async () => {\r\n if (loading) return; // Wait until loading completes\r\n\r\n if (!isAuthenticated) {\r\n await loginWithRedirect({\r\n appState: { targetUrl: window.location.pathname + window.location.hash },\r\n });\r\n } else {\r\n const appState = JSON.parse(localStorage.getItem(\"auth0_appState\"));\r\n if (appState?.targetUrl) {\r\n history.push(appState.targetUrl);\r\n localStorage.removeItem(\"auth0_appState\");\r\n }\r\n }\r\n };\r\n\r\n handleAuthentication().catch((error) => {\r\n console.error(\"Error during authentication:\", error);\r\n });\r\n }, [isAuthenticated, loginWithRedirect, loading, history]);\r\n\r\n if (loading || !user) {\r\n return showLoading();\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n } />\r\n \r\n \r\n \r\n \r\n );\r\n}\r\nexport default App;\r\n","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://goo.gl/SC7cgQ'\r\n );\r\n });\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n\r\n // Execute callback\r\n if (config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import { createBrowserHistory } from \"history\";\r\nexport default createBrowserHistory();","import { sygnet } from './sygnet'\r\nimport { logo } from './logo'\r\nimport { logoNegative } from './logo-negative'\r\n\r\nimport {\r\n cibSkype,\r\n cibFacebook,\r\n cibTwitter,\r\n cibLinkedin,\r\n cibFlickr,\r\n cibTumblr,\r\n cibXing,\r\n cibGithub,\r\n cibStackoverflow,\r\n cibYoutube,\r\n cibDribbble,\r\n cibInstagram,\r\n cibPinterest,\r\n cibVk,\r\n cibYahoo,\r\n cibAddthis,\r\n cibBehance,\r\n cibReddit,\r\n cibVimeo,\r\n cibCcMastercard,\r\n cibCcVisa,\r\n cibStripe,\r\n cibPaypal,\r\n cibGooglePay,\r\n cibCcAmex\r\n} from '@coreui/icons'\r\nimport {\r\n cifUs,\r\n cifBr,\r\n cifIn,\r\n cifFr,\r\n cifEs,\r\n cifPl\r\n} from '@coreui/icons'\r\nimport {\r\n cilAlignCenter,\r\n cilAlignLeft,\r\n cilAlignRight,\r\n cilApplicationsSettings,\r\n cilArrowBottom,\r\n cilArrowRight,\r\n cilArrowTop,\r\n cilAsterisk,\r\n cilBan,\r\n cilBasket,\r\n cilBell,\r\n cilBold,\r\n cilBookmark,\r\n cilCalculator,\r\n cilCalendar,\r\n cilCloudDownload,\r\n cilChartPie,\r\n cilCheck,\r\n cilChevronBottom,\r\n cilChevronLeft,\r\n cilChevronRight,\r\n cilChevronTop,\r\n cilCircle,\r\n cilCheckCircle,\r\n cilCode,\r\n cilCommentSquare,\r\n cilCreditCard,\r\n cilCursor,\r\n cilCursorMove,\r\n cilDrop,\r\n cilDollar,\r\n cilEnvelopeClosed,\r\n cilEnvelopeLetter,\r\n cilEnvelopeOpen,\r\n cilEuro,\r\n cilEyedropper,\r\n cilFile,\r\n cilFullscreen,\r\n cilFullscreenExit,\r\n cilGlobeAlt,\r\n cilGrid,\r\n cilGraph,\r\n cilHome,\r\n cilInbox,\r\n cilIndentDecrease,\r\n cilIndentIncrease,\r\n cilInputPower,\r\n cilItalic,\r\n cilJustifyCenter,\r\n cilJustifyLeft,\r\n cilLaptop,\r\n cilLayers,\r\n cilLightbulb,\r\n cilList,\r\n cilListNumbered,\r\n cilListRich,\r\n cilLocationPin,\r\n cilLockLocked,\r\n cilMagnifyingGlass,\r\n cilMap,\r\n cilMoon,\r\n cilNotes,\r\n cilOptions,\r\n cilPaperclip,\r\n cilPaperPlane,\r\n cilPencil,\r\n cilPeople,\r\n cilPhone,\r\n cilPrint,\r\n cilPuzzle,\r\n cilSave,\r\n cilScrubber,\r\n cilSettings,\r\n cilShare,\r\n cilShareAll,\r\n cilShareBoxed,\r\n cilShieldAlt,\r\n cilSpeech,\r\n cilSpeedometer,\r\n cilSpreadsheet,\r\n cilStar,\r\n cilSun,\r\n cilTags,\r\n cilTask,\r\n cilTrash,\r\n cilUnderline,\r\n cilUser,\r\n cilUserFemale,\r\n cilUserFollow,\r\n cilUserUnfollow,\r\n cilX,\r\n cilXCircle,\r\n cilWarning,\r\n cilBarChart,\r\n cilChartLine,\r\n cilListFilter,\r\n cilAlarm,\r\n cilReportSlash,\r\n cilBellExclamation,\r\n cilInfo\r\n} from '@coreui/icons'\r\n\r\nexport const icons = Object.assign({}, {\r\n sygnet,\r\n logo,\r\n logoNegative\r\n}, {\r\n cilAlignCenter,\r\n cilAlignLeft,\r\n cilAlignRight,\r\n cilApplicationsSettings,\r\n cilArrowBottom,\r\n cilArrowRight,\r\n cilArrowTop,\r\n cilAsterisk,\r\n cilBan,\r\n cilBasket,\r\n cilBell,\r\n cilBold,\r\n cilBookmark,\r\n cilCalculator,\r\n cilCalendar,\r\n cilCloudDownload,\r\n cilChartPie,\r\n cilCheck,\r\n cilChevronBottom,\r\n cilChevronLeft,\r\n cilChevronRight,\r\n cilChevronTop,\r\n cilCircle,\r\n cilCheckCircle,\r\n cilCode,\r\n cilCommentSquare,\r\n cilCreditCard,\r\n cilCursor,\r\n cilCursorMove,\r\n cilDrop,\r\n cilDollar,\r\n cilEnvelopeClosed,\r\n cilEnvelopeLetter,\r\n cilEnvelopeOpen,\r\n cilEuro,\r\n cilEyedropper,\r\n cilFile,\r\n cilFullscreen,\r\n cilFullscreenExit,\r\n cilGlobeAlt,\r\n cilGraph,\r\n cilGrid,\r\n cilHome,\r\n cilInbox,\r\n cilIndentDecrease,\r\n cilIndentIncrease,\r\n cilInputPower,\r\n cilItalic,\r\n cilJustifyCenter,\r\n cilJustifyLeft,\r\n cilLaptop,\r\n cilLayers,\r\n cilLightbulb,\r\n cilList,\r\n cilListNumbered,\r\n cilListRich,\r\n cilLocationPin,\r\n cilLockLocked,\r\n cilMagnifyingGlass,\r\n cilMap,\r\n cilMoon,\r\n cilNotes,\r\n cilOptions,\r\n cilPaperclip,\r\n cilPaperPlane,\r\n cilPencil,\r\n cilPeople,\r\n cilPhone,\r\n cilPrint,\r\n cilPuzzle,\r\n cilSave,\r\n cilScrubber,\r\n cilSettings,\r\n cilShare,\r\n cilShareAll,\r\n cilShareBoxed,\r\n cilShieldAlt,\r\n cilSpeech,\r\n cilSpeedometer,\r\n cilSpreadsheet,\r\n cilStar,\r\n cilSun,\r\n cilTags,\r\n cilTask,\r\n cilTrash,\r\n cilUnderline,\r\n cilUser,\r\n cilUserFemale,\r\n cilUserFollow,\r\n cilUserUnfollow,\r\n cilX,\r\n cilXCircle,\r\n cilWarning,\r\n cilBarChart,\r\n cilChartLine,\r\n cilListFilter,\r\n cilAlarm,\r\n cilReportSlash,\r\n cilBellExclamation,\r\n cilInfo\r\n}, {\r\n cifUs,\r\n cifBr,\r\n cifIn,\r\n cifFr,\r\n cifEs,\r\n cifPl\r\n}, {\r\n cibSkype,\r\n cibFacebook,\r\n cibTwitter,\r\n cibLinkedin,\r\n cibFlickr,\r\n cibTumblr,\r\n cibXing,\r\n cibGithub,\r\n cibStackoverflow,\r\n cibYoutube,\r\n cibDribbble,\r\n cibInstagram,\r\n cibPinterest,\r\n cibVk,\r\n cibYahoo,\r\n cibAddthis,\r\n cibBehance,\r\n cibReddit,\r\n cibVimeo,\r\n cibCcMastercard,\r\n cibCcVisa,\r\n cibStripe,\r\n cibPaypal,\r\n cibGooglePay,\r\n cibCcAmex\r\n})\r\n","export const sygnet = ['160 160', `\r\n coreui logo\r\n \r\n \r\n \r\n \r\n \r\n \r\n`]\r\n","export const logo = ['690 134', `\r\n coreui react pro\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n`]\r\n","export const logoNegative = ['690 134', `\r\n coreui react pro logo\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n`]\r\n","import { createStore } from 'redux'\r\n\r\nconst initialState = {\r\n sidebarShow: false, // Options: 'responsive', true and false\r\n asideShow: false,\r\n darkMode: false\r\n}\r\n\r\nconst changeState = (state = initialState, { type, ...rest }) => {\r\n switch (type) {\r\n case 'set':\r\n return {...state, ...rest }\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nconst store = createStore(changeState)\r\nexport default store\r\n","import 'react-app-polyfill/ie11'; // For IE 11 support\r\nimport 'react-app-polyfill/stable';\r\nimport 'core-js';\r\nimport './polyfill'\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport * as serviceWorker from './serviceWorker';\r\nimport { Auth0Provider } from \"./react-auth0-spa\";\r\n//import config from \"./auth_config.json\";\r\nimport history from \"./utils/history\";\r\nimport { icons } from './assets/icons';\r\nimport { Provider } from 'react-redux';\r\nimport store from './store';\r\nimport PivotGrid from \"devextreme/ui/pivot_grid\";\r\nimport PivotGridFieldChooser from \"devextreme/ui/pivot_grid_field_chooser\";\r\n\r\nReact.icons = icons\r\n\r\n// A function that routes the user to the right place\r\n// after login\r\nconst onRedirectCallback = appState => {\r\n history.push(\r\n appState && appState.targetUrl\r\n ? appState.targetUrl\r\n : window.location.pathname\r\n );\r\n};\r\n\r\n// Set global default options to keep \"Select All\" visible in header filter search results\r\nPivotGrid.defaultOptions({\r\n options: { \r\n headerFilter: {\r\n hideSelectAllOnSearch: false\r\n }\r\n } \r\n});\r\nPivotGridFieldChooser.defaultOptions({\r\n options: { \r\n headerFilter: {\r\n hideSelectAllOnSearch: false\r\n }\r\n } \r\n});\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n document.getElementById('root')\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: http://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n"],"sourceRoot":""}