{"version":3,"sources":["globalContext.jsx","images/App_Activation_Logo.svg","config/prodConfig.js","config/localConfig.js","config/index.js","constants/routeUrls.js","pages/Header/_styles.module.scss","App.scss","serviceWorker.js","utils/authentication.js","pages/Header/index.jsx","components/ScrollToTopRoute/index.jsx","root-routes.jsx","App.js","index.js","utils/i18n.js","utils/build-auth-token.js","constants/apis.js"],"names":["GlobalContext","createContext","GlobalProvider","children","useState","savedState","localStorage","getItem","JSON","parse","globalActivationProxyPriv","setGlobalActivationProxyPriv","useEffect","setItem","stringify","Provider","value","cleanUpGlobalActivationProxyPriv","removeItem","module","exports","ENV_APP_NAME","API_TIME_OUT","HOST","BASE_APIM_URL","BASE_HCM_URL","BASE_SECURE_URL","BASE_DEVELOPER_PORTAL_URL","UI_URL_BASE","PUBLIC_API_URL_BASE","environment","APIM_SUBSCRIPTION_KEY","AUTHENTICATION_URL","SESSION_TIMEOUT_LOCAL_MODE","CODE_VERIFIER","securitySettings","client_id","redirect_uri","response_type","scope","authority","silent_redirect_uri","automaticSilentRenew","filterProtocolClaims","loadUserInfo","includeIdTokenInSilentRenew","extraQueryParams","process","prodConfig","RouteUrls","PAGE_NOT_FOUND","FORBIDDEN","HOME","HOME_APP","AUTHORIZE","ACTIVATE","ACTIVATE_CLIENT","ACTIVATE_CONFIRM","MARKETPLACE","CLIENTACTIVATION","CLIENTREDIRECT","ACTIVATE_USERS","Boolean","window","location","hostname","match","AUTHENTICATION","API_URL","onAuthFailed","e","console","error","_return","encodeURIComponent","href","redirectOnUnauthenticated","onAuthError","Header","t","useTranslation","id","to","className","src","logo","alt","title","getTranslatedText","ScrollToTopRoute","props","pathname","useLocation","AppComponent","component","rest","scrollTo","PageNotFound","lazy","Forbidden","Home","Activate","ActivateClient","ActivateConfirm","AuthorizePage","ClientActivation","ClientRedirect","ActivateUsers","fallback","loadingMessage","path","exact","App","InitializeReactI18n","config","ACCOUNTS","settings","onUnAuthorizedCallback","onAuthErrorCallback","consoleLogsEnabled","loaderComponent","applicationUrl","refreshUrl","APIm","ReactDOM","render","basename","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","message","InitializeI18n","languagePreferenceOptions","i18n","use","Backend","LanguageDetector","initReactI18next","init","debug","ns","detection","fallbackLng","backend","loadPath","interpolation","escapeValue","react","useSuspense","a","order","lookupCookie","once","i18nInit","translate","key","defaultText","UserManager","getAuthorizationHeader","API_ERROR_MESSAGE","STANDARD_HEADERS","Accept","pragma","FORM_DATA_HEADERS","FORM_URLENCODED_DATA_HEADERS","METHODS","GET","POST","PUT","DELETE","defaultHeadersForType","type","HTTP_HEADERS","_headers","Object","assign","authorization","buildAuthToken","method","mode","headers","credentials","API","STS","APP_ACTIVATION","APP_CREATOR","APIM_ROOT","api","APP_INFO","APP_TYPE_REPORTING","APP_TYPE_STANDARD"],"mappings":"8NAEaA,EAAgBC,wBAAc,MAE9BC,EAAiB,SAAC,GAAkB,IAAhBC,EAAe,EAAfA,SAAe,EACmBC,oBAAS,WAE1E,IAAMC,EAAaC,aAAaC,QAAQ,6BACxC,OAAsB,OAAfF,EAAsBG,KAAKC,MAAMJ,GAAc,QAJR,mBACxCK,EADwC,KACbC,EADa,KAO/CC,qBAAU,WAETN,aAAaO,QAAQ,4BAA6BL,KAAKM,UAAUJ,MAC/D,CAACA,IAMJ,OAAO,kBAACV,EAAce,SAAf,CAAwBC,MAAO,CAAEN,4BAA2BC,+BAA8BM,iCAJxD,WACxCX,aAAaY,WAAW,gCAG6Gf,K,oBCpBvIgB,EAAOC,QAAU,IAA0B,iD,sQCApC,IAAMC,EAAe,iBACfC,EAAe,IAEfC,EAAO,CACnBC,cAAe,iBACfC,aAAc,iBACdC,gBAAiB,oBACjBC,0BAA2B,8BAC3BC,YAAa,iBAAmBP,EAChCQ,oBAAqB,wBACrBC,YAAa,wCACbC,sBAAuB,sBACvBC,mBAAoB,iBACpBC,4BAA4B,EAC5BC,cAAe,oIAGHC,EAAmB,CAC/BC,UAAW,uBACXC,aAAa,GAAD,OAAKd,EAAKK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,c","file":"static/js/main.76d16a2a.chunk.js","sourcesContent":["import React, { createContext, useState, useEffect } from 'react';\r\n\r\nexport const GlobalContext = createContext(null);\r\n\r\nexport const GlobalProvider = ({ children }) => {\r\n\tconst [globalActivationProxyPriv, setGlobalActivationProxyPriv] = useState(() => {\r\n\t\t// Retrieve initial state from local storage if available\r\n\t\tconst savedState = localStorage.getItem('globalActivationProxyPriv');\r\n\t\treturn savedState !== null ? JSON.parse(savedState) : null;\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\t// Save state to local storage whenever it changes\r\n\t\tlocalStorage.setItem('globalActivationProxyPriv', JSON.stringify(globalActivationProxyPriv));\r\n\t}, [globalActivationProxyPriv]);\r\n\r\n\tconst cleanUpGlobalActivationProxyPriv = () => {\r\n\t\tlocalStorage.removeItem('globalActivationProxyPriv');\r\n\t};\r\n\r\n\treturn {children};\r\n};\r\n","module.exports = __webpack_public_path__ + \"static/media/App_Activation_Logo.5a537090.svg\";","export const ENV_APP_NAME = '/appactivation';\r\nexport const API_TIME_OUT = 100000; //use this later #{ServerCallTimeOut}\r\n\r\nexport const HOST = {\r\n\tBASE_APIM_URL: '#{BaseURL-API}',\r\n\tBASE_HCM_URL: '#{BaseURL-HCM}',\r\n\tBASE_SECURE_URL: '#{BaseURL-Secure}',\r\n\tBASE_DEVELOPER_PORTAL_URL: '#{BaseURL-DevelopersPortal}',\r\n\tUI_URL_BASE: '#{BaseURL-HCM}' + ENV_APP_NAME,\r\n\tPUBLIC_API_URL_BASE: '#{BaseURL-Public-API}',\r\n\tenvironment: '#{Octopus.Environment.Name | tolower}',\r\n\tAPIM_SUBSCRIPTION_KEY: '#{Project-APIm-Key}',\r\n\tAUTHENTICATION_URL: '#{BaseURL-HCM}',\r\n\tSESSION_TIMEOUT_LOCAL_MODE: false,\r\n\tCODE_VERIFIER: 'CA1d7NlwyPsKNbx~SCnBy-yqx98vJsh8AHA_NNsP.fHTJGlgtrKWVcvBGmVyaJ6HVhWOTQkTmX7v~RxHipdY.PdB3fntH3kfWFnESobpPsXQ23Z.6_.gl7IP_zVyIN-n'\r\n};\r\n\r\nexport const securitySettings = {\r\n\tclient_id: 'AppActivationUIAppId',\r\n\tredirect_uri: `${HOST.UI_URL_BASE}/oauth/silent_renew.html`,\r\n\tresponse_type: 'token',\r\n\tscope: 'appactivationUi',\r\n\tauthority: `${HOST.BASE_APIM_URL}/sts/v1/common`,\r\n\tsilent_redirect_uri: `${HOST.UI_URL_BASE}/oauth/silent_renew.html`,\r\n\tautomaticSilentRenew: true,\r\n\tfilterProtocolClaims: true,\r\n\tloadUserInfo: true,\r\n\tincludeIdTokenInSilentRenew: false,\r\n\textraQueryParams: { 'subscription-key': HOST.APIM_SUBSCRIPTION_KEY }\r\n};\r\n","export const ENV_APP_NAME = '/appactivation';\r\nexport const APIM_SUBSCRIPTION_KEY = 'f63ddcb20ce74a85ab907564edc8de40';\r\nexport const PORT = process.env.REACT_APP_DEV_PORT;\r\n\r\nexport const API_TIME_OUT = 35000;\r\n\r\nexport const HOST = {\r\n\tBASE_APIM_URL: 'https://api-quarterly.paycor.com',\r\n\tBASE_HCM_URL: 'https://HCM-quarterly.paycor.com',\r\n\tBASE_SECURE_URL: 'https://secure-quarterly.paycor.com',\r\n\tBASE_DEVELOPER_PORTAL_URL: 'https://developers-quarterly.paycor.com',\r\n\tPUBLIC_API_URL_BASE: 'https://apis-quarterly.paycor.com',\r\n\tUI_URL_BASE: `https://local.paycor.com:${PORT}${ENV_APP_NAME}`,\r\n\tenvironment: 'local',\r\n\tAPIM_SUBSCRIPTION_KEY: 'f63ddcb20ce74a85ab907564edc8de40',\r\n\tAUTHENTICATION_URL: 'https://hcm-quarterly.paycor.com/',\r\n\tSESSION_TIMEOUT_LOCAL_MODE: true,\r\n\tCODE_VERIFIER: 'CA1d7NlwyPsKNbx~SCnBy-yqx98vJsh8AHA_NNsP.fHTJGlgtrKWVcvBGmVyaJ6HVhWOTQkTmX7v~RxHipdY.PdB3fntH3kfWFnESobpPsXQ23Z.6_.gl7IP_zVyIN-n'\r\n};\r\n\r\nexport const securitySettings = {\r\n\tclient_id: 'AppActivationUIAppId',\r\n\tredirect_uri: `${HOST.UI_URL_BASE}/oauth/silent_renew.html`,\r\n\tresponse_type: 'token',\r\n\tscope: 'appactivationUi',\r\n\tauthority: '/sts/v1/common',\r\n\tsilent_redirect_uri: `${HOST.UI_URL_BASE}/oauth/silent_renew.html`,\r\n\tautomaticSilentRenew: true,\r\n\tfilterProtocolClaims: true,\r\n\tloadUserInfo: true,\r\n\tincludeIdTokenInSilentRenew: false,\r\n\textraQueryParams: { 'subscription-key': APIM_SUBSCRIPTION_KEY }\r\n};\r\n","import * as prodConfig from './prodConfig';\r\nimport * as localConfig from './localConfig';\r\n\r\nexport default process.env.NODE_ENV === 'production' ? prodConfig : localConfig;\r\n","export const RouteUrls = {\r\n\tPAGE_NOT_FOUND: '/PageNotFound',\r\n\tFORBIDDEN: '/Forbidden',\r\n\tHOME: '/',\r\n\tHOME_APP: '/application/:applicationId',\r\n\tAUTHORIZE: '/authorize',\r\n\tACTIVATE: '/activator/:applicationId',\r\n\tACTIVATE_CLIENT: '/activate/clients/:applicationId',\r\n\tACTIVATE_CONFIRM: '/activate/confirm/:applicationId',\r\n\tMARKETPLACE: 'https://marketplace.paycor.com',\r\n\tCLIENTACTIVATION: '/clientactivation',\r\n\tCLIENTREDIRECT: '/clientredirect',\r\n\tACTIVATE_USERS: '/activate/users/:applicationId'\r\n};\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menu\":\"_styles_menu__3JaLX\",\"nav-link\":\"_styles_nav-link__3XYR4\",\"nav-link-active\":\"_styles_nav-link-active__tNknn\",\"nav\":\"_styles_nav__1DC9J\",\"nav-item\":\"_styles_nav-item__23UJ3\",\"collapsible\":\"_styles_collapsible__1otSl\",\"expanded\":\"_styles_expanded__2O6O6\",\"dropdown\":\"_styles_dropdown__1tsKt\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"light-blue-t1\":\"#0ba0da\",\"light-blue-t2\":\"#0ba0da\",\"light-blue-t3\":\"#0ba0da\",\"light-blue-t4\":\"rgba(11,160,218,0.32)\",\"light-blue-50\":\"#e0f2fa\",\"light-blue-100\":\"#b8e3f4\",\"light-blue-200\":\"#88d0ec\",\"light-blue-300\":\"#53bbe4\",\"light-blue-400\":\"#30addf\",\"light-blue-500\":\"#0ba0da\",\"light-blue-600\":\"#0a83b2\",\"light-blue-700\":\"#05688f\",\"light-blue-800\":\"#034b68\",\"light-blue-900\":\"#012f41\",\"light-blue-a1\":\"#75d8ff\",\"light-blue-a2\":\"#38c7ff\",\"light-blue-a3\":\"#38c7ff\",\"light-blue-a4\":\"#008fd6\",\"blue-a4\":\"#003494\",\"blue-t1\":\"#0b5eda\",\"blue-t2\":\"#0b5eda\",\"blue-t3\":\"#0b5eda\",\"blue-t4\":\"#0b5eda\",\"blue-50\":\"#e0ebfa\",\"blue-100\":\"#b8d0f4\",\"blue-200\":\"#88b0ec\",\"blue-300\":\"#538de4\",\"blue-400\":\"#3076df\",\"blue-500\":\"#0b5eda\",\"blue-600\":\"#124aab\",\"blue-700\":\"#0d3887\",\"blue-800\":\"#032168\",\"blue-900\":\"#011141\",\"blue-a1\":\"#75acff\",\"blue-a2\":\"#3888ff\",\"blue-a3\":\"#005ce6\",\"navy-t1\":\"#193e6b\",\"navy-t2\":\"#193e6b\",\"navy-t3\":\"#193e6b\",\"navy-t4\":\"#193e6b\",\"navy-50\":\"#e3e8ed\",\"navy-100\":\"#bcc5d2\",\"navy-200\":\"#8f9cb3\",\"navy-300\":\"#627593\",\"navy-400\":\"#3c5a80\",\"navy-500\":\"#193e6b\",\"navy-600\":\"#1b4579\",\"navy-700\":\"#123968\",\"navy-800\":\"#0b2a51\",\"navy-900\":\"#061e3c\",\"navy-a1\":\"#558fec\",\"navy-a2\":\"#1864dc\",\"navy-a3\":\"#033c81\",\"navy-a4\":\"#02295a\",\"cyan-t1\":\"#0bc2da\",\"cyan-t2\":\"#0bc2da\",\"cyan-t3\":\"#0bc2da\",\"cyan-t4\":\"#0bc2da\",\"cyan-50\":\"#e0f8fa\",\"cyan-100\":\"#b8ecf4\",\"cyan-200\":\"#88e1ec\",\"cyan-300\":\"#53d3e4\",\"cyan-400\":\"#30cadf\",\"cyan-500\":\"#0bc2da\",\"cyan-600\":\"#0bacc1\",\"cyan-700\":\"#07707d\",\"cyan-800\":\"#054d57\",\"cyan-900\":\"#03333a\",\"cyan-a1\":\"#88e1ec\",\"cyan-a2\":\"#53d3e4\",\"cyan-a3\":\"#0bc2da\",\"cyan-a4\":\"#07707d\",\"teal-t1\":\"#45a592\",\"teal-t2\":\"#45a592\",\"teal-t3\":\"#45a592\",\"teal-t4\":\"#45a592\",\"teal-50\":\"#ebf5f3\",\"teal-100\":\"#c8e4df\",\"teal-200\":\"#a2d2c9\",\"teal-300\":\"#7cc0b2\",\"teal-400\":\"#61b3a2\",\"teal-500\":\"#45a592\",\"teal-600\":\"#3c907f\",\"teal-700\":\"#307366\",\"teal-800\":\"#24564c\",\"teal-900\":\"#114135\",\"teal-a1\":\"#8ee6d6\",\"teal-a2\":\"#60dcc3\",\"teal-a3\":\"#2ac0a2\",\"teal-a4\":\"#109379\",\"green-t1\":\"#58a545\",\"green-t2\":\"#58a545\",\"green-t3\":\"#58a545\",\"green-t4\":\"#58a545\",\"green-50\":\"#edf5eb\",\"green-100\":\"#cee4c8\",\"green-200\":\"#acd2a2\",\"green-300\":\"#8bc07c\",\"green-400\":\"#71b361\",\"green-500\":\"#58a545\",\"green-600\":\"#50903c\",\"green-700\":\"#3f7330\",\"green-800\":\"#2f5624\",\"green-900\":\"#203a18\",\"green-a1\":\"#a0e68e\",\"green-a2\":\"#7bdc60\",\"green-a3\":\"#48c02a\",\"green-a4\":\"#34b314\",\"lime-t1\":\"#a2b44b\",\"lime-t2\":\"#a2b44b\",\"lime-t3\":\"#a2b44b\",\"lime-t4\":\"#a2b44b\",\"lime-50\":\"#f4f6e9\",\"lime-100\":\"#e3e9c9\",\"lime-200\":\"#d1daa4\",\"lime-300\":\"#bdcb80\",\"lime-400\":\"#afbe64\",\"lime-500\":\"#a2b44b\",\"lime-600\":\"#82903c\",\"lime-700\":\"#687330\",\"lime-800\":\"#4e5624\",\"lime-900\":\"#333a18\",\"lime-a1\":\"#dae896\",\"lime-a2\":\"#cadf6d\",\"lime-a3\":\"#b6d12e\",\"lime-a4\":\"#7d9310\",\"yellow-t1\":\"#f9a824\",\"yellow-t2\":\"#f9a824\",\"yellow-t3\":\"#f9a824\",\"yellow-t4\":\"#f9a824\",\"yellow-50\":\"#fef5e6\",\"yellow-100\":\"#fde5bf\",\"yellow-200\":\"#fcd392\",\"yellow-300\":\"#fbc165\",\"yellow-400\":\"#fab647\",\"yellow-500\":\"#f9a824\",\"yellow-600\":\"#b3781a\",\"yellow-700\":\"#8f6014\",\"yellow-800\":\"#6b480f\",\"yellow-900\":\"#48300a\",\"yellow-a1\":\"#ffd48f\",\"yellow-a2\":\"#ffc261\",\"yellow-a3\":\"#ffa91f\",\"yellow-a4\":\"#ff9914\",\"bright-yellow-t1\":\"#fd0\",\"bright-yellow-t2\":\"#fd0\",\"bright-yellow-t3\":\"#fd0\",\"bright-yellow-t4\":\"#fd0\",\"bright-yellow-50\":\"#fffbe0\",\"bright-yellow-100\":\"#fff5b3\",\"bright-yellow-200\":\"#ffee80\",\"bright-yellow-300\":\"#ffe74d\",\"bright-yellow-400\":\"#ffe224\",\"bright-yellow-500\":\"#fd0\",\"bright-yellow-600\":\"#ccb100\",\"bright-yellow-700\":\"#a38d00\",\"bright-yellow-800\":\"#7a6a00\",\"bright-yellow-900\":\"#524700\",\"bright-yellow-a1\":\"#ffee80\",\"bright-yellow-a2\":\"#ffe74d\",\"bright-yellow-a3\":\"#fd0\",\"bright-yellow-a4\":\"#ffd500\",\"orange-t1\":\"#ef6f1f\",\"orange-t2\":\"#ef6f1f\",\"orange-t3\":\"#ef6f1f\",\"orange-t4\":\"#ef6f1f\",\"orange-50\":\"#fdede3\",\"orange-100\":\"#fbd4bc\",\"orange-200\":\"#f8b891\",\"orange-300\":\"#f59a61\",\"orange-400\":\"#f28440\",\"orange-500\":\"#ef6f1f\",\"orange-600\":\"#d55c1a\",\"orange-700\":\"#a84315\",\"orange-800\":\"#6e260c\",\"orange-900\":\"#4a1507\",\"orange-a1\":\"#ffb78a\",\"orange-a2\":\"#ff9757\",\"orange-a3\":\"#ff6b0f\",\"orange-a4\":\"#ff5405\",\"pink-t1\":\"#ef1faa\",\"pink-t2\":\"#ef1faa\",\"pink-t3\":\"#ef1faa\",\"pink-t4\":\"#ef1faa\",\"pink-50\":\"#fde3f5\",\"pink-100\":\"#fbbce6\",\"pink-200\":\"#f891d6\",\"pink-300\":\"#f561c4\",\"pink-400\":\"#f240b7\",\"pink-500\":\"#ef1faa\",\"pink-600\":\"#b41880\",\"pink-700\":\"#901367\",\"pink-800\":\"#6c0e4d\",\"pink-900\":\"#411031\",\"pink-a1\":\"#ff8ad8\",\"pink-a2\":\"#ff57c7\",\"pink-a3\":\"#ff0faf\",\"pink-a4\":\"#a3006d\",\"grape-t1\":\"#b41fef\",\"grape-t2\":\"#b41fef\",\"grape-t3\":\"#b41fef\",\"grape-t4\":\"#b41fef\",\"grape-50\":\"#f5e3fd\",\"grape-100\":\"#e9bcfb\",\"grape-200\":\"#db91f8\",\"grape-300\":\"#cb61f5\",\"grape-400\":\"#bf40f2\",\"grape-500\":\"#b41fef\",\"grape-600\":\"#830fbd\",\"grape-700\":\"#60079c\",\"grape-800\":\"#480576\",\"grape-900\":\"#30034f\",\"grape-a1\":\"#de8aff\",\"grape-a2\":\"#de8aff\",\"grape-a3\":\"#bb0fff\",\"grape-a4\":\"#6200a3\",\"red-t1\":\"#ed1d23\",\"red-t2\":\"#ed1d23\",\"red-t3\":\"#ed1d23\",\"red-t4\":\"#ed1d23\",\"red-50\":\"#fde3e3\",\"red-100\":\"#f9b9ba\",\"red-200\":\"#f68e91\",\"red-300\":\"#f25f64\",\"red-400\":\"#ef3e44\",\"red-500\":\"#ed1d23\",\"red-600\":\"#b8141a\",\"red-700\":\"#931015\",\"red-800\":\"#6e0c10\",\"red-900\":\"#49080a\",\"red-a1\":\"#ff8589\",\"red-a2\":\"#ff5257\",\"red-a3\":\"#ff0a12\",\"red-a4\":\"#a30005\",\"dark-orange-t1\":\"#f05b2d\",\"dark-orange-t2\":\"#f05b2d\",\"dark-orange-t3\":\"#f05b2d\",\"dark-orange-t4\":\"#f05b2d\",\"dark-orange-50\":\"#fdece7\",\"dark-orange-100\":\"#f4d1c3\",\"dark-orange-200\":\"#edb09c\",\"dark-orange-300\":\"#e79073\",\"dark-orange-400\":\"#e37c59\",\"dark-orange-500\":\"#f05b2d\",\"dark-orange-600\":\"#de613b\",\"dark-orange-700\":\"#db5533\",\"dark-orange-800\":\"#d94f30\",\"dark-orange-900\":\"#d64329\",\"dark-orange-a1\":\"#ffa78a\",\"dark-orange-a2\":\"#ff855c\",\"dark-orange-a3\":\"#ff531f\",\"dark-orange-a4\":\"#ff3f0f\",\"purple-t1\":\"#553582\",\"purple-t2\":\"#553582\",\"purple-t3\":\"#553582\",\"purple-t4\":\"#553582\",\"purple-50\":\"#eae6ef\",\"purple-100\":\"#ccc3da\",\"purple-200\":\"#aa9ac1\",\"purple-300\":\"#8871a8\",\"purple-400\":\"#705496\",\"purple-500\":\"#553582\",\"purple-600\":\"#5f3b91\",\"purple-700\":\"#4c3073\",\"purple-800\":\"#392456\",\"purple-900\":\"#26183a\",\"purple-a1\":\"#a05cff\",\"purple-a2\":\"#791aff\",\"purple-a3\":\"#4d00b8\",\"purple-a4\":\"#3b0099\",\"brown-t1\":\"#81544b\",\"brown-t2\":\"#81544b\",\"brown-t3\":\"#81544b\",\"brown-t4\":\"#81544b\",\"brown-50\":\"#eee9e8\",\"brown-100\":\"#d5cac8\",\"brown-200\":\"#baa5a1\",\"brown-300\":\"#9d817b\",\"brown-400\":\"#87655e\",\"brown-500\":\"#81544b\",\"brown-600\":\"#744c44\",\"brown-700\":\"#67433c\",\"brown-800\":\"#4d322d\",\"brown-900\":\"#34221e\",\"brown-a1\":\"#ca9a91\",\"brown-a2\":\"#b47364\",\"brown-a3\":\"#954737\",\"brown-a4\":\"#7f3324\",\"dark-gray-t1\":\"#525a66\",\"dark-gray-t2\":\"#525a66\",\"dark-gray-t3\":\"#525a66\",\"dark-gray-t4\":\"#525a66\",\"dark-gray-50\":\"#e9eaec\",\"dark-gray-100\":\"#ccced1\",\"dark-gray-200\":\"#a9acb2\",\"dark-gray-300\":\"#858b93\",\"dark-gray-400\":\"#6b717b\",\"dark-gray-500\":\"#5b6471\",\"dark-gray-600\":\"#525a66\",\"dark-gray-700\":\"#49505a\",\"dark-gray-800\":\"#363c44\",\"dark-gray-900\":\"#24282d\",\"black\":\"#000\",\"white\":\"#fff\",\"gray1\":\"#030405\",\"gray2\":\"#303640\",\"gray3\":\"#515965\",\"gray4\":\"#707785\",\"gray5\":\"#bec3cc\",\"gray6\":\"#e8eaed\",\"yellow1\":\"#fcaf17\",\"yellow2\":\"#fff3d9\",\"blue1\":\"#055d94\",\"blue2\":\"#0c7dbb\",\"blue3\":\"#0c9fdb\",\"blue4\":\"#92bedc\",\"blue5\":\"#d7edf6\",\"red1\":\"#b6010e\",\"red2\":\"#ec1218\",\"red3\":\"#f46861\",\"red4\":\"#ffdbdc\",\"orange1\":\"#f37322\",\"orange2\":\"#c75c02\",\"green1\":\"#1f6703\",\"green2\":\"#3c8711\",\"green3\":\"#58a738\",\"green4\":\"#dfeeda\",\"title-gray\":\"#030405\",\"background-gray\":\"#030405\",\"text-gray\":\"#303640\",\"icon-gray\":\"#515965\",\"-webkit-box-shadow\":\"#515965\",\"box-shadow\":\"#515965\",\"header-gray\":\"#707785\",\"selected-gray\":\"#bec3cc\",\"zebra-gray\":\"#e8eaed\",\"background-zebra-gray\":\"#e8eaed\",\"warning-yellow\":\"#f9a824\",\"btn-down-blue\":\"#055d94\",\"down-blue\":\"#055d94\",\"link-blue\":\"#0c7dbb\",\"link-hover-blue\":\"#0c9fdb\",\"btn-down-red\":\"#b6010e\",\"down-red\":\"#b6010e\",\"error-red\":\"#b8141a\",\"error-red-hover\":\"#f46861\",\"paycor-orange\":\"#ff5405\",\"paycor-alt-orange\":\"#c75c02\",\"success-down-green\":\"#1f6703\",\"confirm-down-green\":\"#1f6703\",\"success-green\":\"#58a545\",\"confirm-green\":\"#3c8711\",\"success-alt-green\":\"#58a738\",\"confirm-alt-green\":\"#58a738\"};","// This optional code is used to register a service worker.\r\n// register() is not called by default.\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 subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n\twindow.location.hostname === 'localhost' ||\r\n\t\t// [::1] is the IPv6 localhost address.\r\n\t\twindow.location.hostname === '[::1]' ||\r\n\t\t// 127.0.0.0/8 are considered localhost for IPv4.\r\n\t\twindow.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\r\n);\r\n\r\nexport function register(config) {\r\n\tif (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n\t\t// The URL constructor is available in all browsers that support SW.\r\n\t\tconst publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n\t\tif (publicUrl.origin !== window.location.origin) {\r\n\t\t\t// Our service worker won't work if PUBLIC_URL is on a different origin\r\n\t\t\t// from what our page is served on. This might happen if a CDN is used to\r\n\t\t\t// serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\twindow.addEventListener('load', () => {\r\n\t\t\tconst swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n\t\t\tif (isLocalhost) {\r\n\t\t\t\t// This is running on localhost. Let's check if a service worker still exists or not.\r\n\t\t\t\tcheckValidServiceWorker(swUrl, config);\r\n\r\n\t\t\t\t// Add some additional logging to localhost, pointing developers to the\r\n\t\t\t\t// service worker/PWA documentation.\r\n\t\t\t\tnavigator.serviceWorker.ready.then(() => {\r\n\t\t\t\t\tconsole.log('This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA');\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\t// Is not localhost. Just register service worker\r\n\t\t\t\tregisterValidSW(swUrl, config);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n\tnavigator.serviceWorker\r\n\t\t.register(swUrl)\r\n\t\t.then((registration) => {\r\n\t\t\tregistration.onupdatefound = () => {\r\n\t\t\t\tconst installingWorker = registration.installing;\r\n\t\t\t\tif (installingWorker == null) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tinstallingWorker.onstatechange = () => {\r\n\t\t\t\t\tif (installingWorker.state === 'installed') {\r\n\t\t\t\t\t\tif (navigator.serviceWorker.controller) {\r\n\t\t\t\t\t\t\t// At this point, the updated precached content has been fetched,\r\n\t\t\t\t\t\t\t// but the previous service worker will still serve the older\r\n\t\t\t\t\t\t\t// content until all client tabs are closed.\r\n\t\t\t\t\t\t\tconsole.log('New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA.');\r\n\r\n\t\t\t\t\t\t\t// Execute callback\r\n\t\t\t\t\t\t\tif (config && config.onUpdate) {\r\n\t\t\t\t\t\t\t\tconfig.onUpdate(registration);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// At this point, everything has been precached.\r\n\t\t\t\t\t\t\t// It's the perfect time to display a\r\n\t\t\t\t\t\t\t// \"Content is cached for offline use.\" message.\r\n\t\t\t\t\t\t\tconsole.log('Content is cached for offline use.');\r\n\r\n\t\t\t\t\t\t\t// Execute callback\r\n\t\t\t\t\t\t\tif (config && config.onSuccess) {\r\n\t\t\t\t\t\t\t\tconfig.onSuccess(registration);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tconsole.error('Error during service worker registration:', error);\r\n\t\t});\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n\t// Check if the service worker can be found. If it can't reload the page.\r\n\tfetch(swUrl, {\r\n\t\theaders: { 'Service-Worker': 'script' }\r\n\t})\r\n\t\t.then((response) => {\r\n\t\t\t// Ensure service worker exists, and that we really are getting a JS file.\r\n\t\t\tconst contentType = response.headers.get('content-type');\r\n\t\t\tif (response.status === 404 || (contentType != null && contentType.indexOf('javascript') === -1)) {\r\n\t\t\t\t// No service worker found. Probably a different app. Reload the page.\r\n\t\t\t\tnavigator.serviceWorker.ready.then((registration) => {\r\n\t\t\t\t\tregistration.unregister().then(() => {\r\n\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\t// Service worker found. Proceed as normal.\r\n\t\t\t\tregisterValidSW(swUrl, config);\r\n\t\t\t}\r\n\t\t})\r\n\t\t.catch(() => {\r\n\t\t\tconsole.log('No internet connection found. App is running in offline mode.');\r\n\t\t});\r\n}\r\n\r\nexport function unregister() {\r\n\tif ('serviceWorker' in navigator) {\r\n\t\tnavigator.serviceWorker.ready\r\n\t\t\t.then((registration) => {\r\n\t\t\t\tregistration.unregister();\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error.message);\r\n\t\t\t});\r\n\t}\r\n}\r\n","import * as ACTIONS from 'constants/actions';\r\nimport { API_URL, HTTP_HEADERS } from 'constants/apis';\r\nimport config from 'config';\r\nimport { UserManager } from 'paycor-oidc-client';\r\n\r\nconst { AUTHENTICATION } = API_URL;\r\n\r\nexport const redirectOnUnauthenticated = () => {\r\n\tconst _return = encodeURIComponent(window.location.href);\r\n\treturn (window.location.href = `${AUTHENTICATION}/Signin?ReturnUrl=${_return}`);\r\n};\r\n\r\nexport const redirectToLogout = () => {\r\n\treturn (window.location.href = `${AUTHENTICATION}/Logout`);\r\n};\r\n\r\nexport const refreshSession = () => {\r\n\treturn fetch(`${AUTHENTICATION}/`, HTTP_HEADERS().GET);\r\n};\r\n\r\nexport const clearUser = (dispatch) => {\r\n\tlet manager = new UserManager(config.securitySettings);\r\n\tmanager.removeUser().then(() => {\r\n\t\tdispatch({\r\n\t\t\ttype: ACTIONS.LOGGED_IN_USER_LOADED,\r\n\t\t\tpayload: null\r\n\t\t});\r\n\t});\r\n};\r\n\r\nexport const onAuthFailed = (e) => {\r\n\tconsole.error('Authentication Failed:', e);\r\n\tredirectOnUnauthenticated();\r\n};\r\n\r\nexport const onAuthError = (e) => {\r\n\tconsole.error('Authentication Error occurred:', e);\r\n\t// redirectOnUnauthenticated();\r\n};\r\n","import React from 'react';\r\nimport { NavLink } from 'react-router-dom';\r\nimport logo from 'images/App_Activation_Logo.svg';\r\nimport './_styles.module.scss';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getTranslatedText } from 'utils/i18n';\r\n\r\nconst Header = () => {\r\n\tconst { t } = useTranslation();\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\"logo\"\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\nexport default Header;\r\n","import React, { useEffect } from 'react';\r\nimport { Route, useLocation } from 'react-router-dom';\r\n\r\nconst ScrollToTopRoute = (props) => {\r\n\tconst { pathname } = useLocation();\r\n\tconst { component: AppComponent, ...rest } = props;\r\n\r\n\tuseEffect(() => {\r\n\t\twindow.scrollTo(0, 0);\r\n\t}, [pathname]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default ScrollToTopRoute;\r\n","import React, { lazy, Suspense } from 'react';\r\nimport { Switch, Redirect } from 'react-router-dom';\r\nimport LoadingStatus from '@paycor/pds-loading-status';\r\nimport { RouteUrls } from 'constants/routeUrls';\r\nimport ScrollToTopRoute from 'components/ScrollToTopRoute';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getTranslatedText } from 'utils/i18n';\r\n\r\nconst PageNotFound = lazy(() => import('components/PageNotFound'));\r\nconst Forbidden = lazy(() => import('pages/Forbidden'));\r\nconst Home = lazy(() => import('pages/Home'));\r\nconst Activate = lazy(() => import('pages/Activate'));\r\nconst ActivateClient = lazy(() => import('pages/Activate/Clients'));\r\nconst ActivateConfirm = lazy(() => import('pages/Activate/Confirm'));\r\nconst AuthorizePage = lazy(() => import('pages/Authorize'));\r\nconst ClientActivation = lazy(() => import('pages/ClientActivation'));\r\nconst ClientRedirect = lazy(() => import('pages/ClientRedirect'));\r\nconst ActivateUsers = lazy(() => import('pages/UserActivation'));\r\n\r\nexport default () => {\r\n\tconst { t } = useTranslation();\r\n\tconst { PAGE_NOT_FOUND, HOME, HOME_APP, FORBIDDEN, AUTHORIZE, ACTIVATE, ACTIVATE_CLIENT, ACTIVATE_CONFIRM, CLIENTACTIVATION, CLIENTREDIRECT, ACTIVATE_USERS } = RouteUrls;\r\n\treturn (\r\n\t\t}>\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n","import React from 'react';\r\nimport { Security } from 'paycor-react-oidc';\r\nimport { onAuthFailed, onAuthError } from 'utils/authentication';\r\nimport { API_URL } from 'constants/apis';\r\nimport config from 'config';\r\nimport LoadingStatus from '@paycor/pds-loading-status';\r\n\r\nimport Header from 'pages/Header';\r\nimport Routes from 'root-routes';\r\n\r\nimport 'App.scss';\r\nimport { SessionTimeout } from '@paycor/design-system';\r\nimport { GlobalProvider } from './globalContext';\r\nimport { InitializeReactI18n } from './utils/i18n';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getTranslatedText } from 'utils/i18n';\r\n\r\n\r\nconst App = () => {\r\n\tconst { t } = useTranslation();\r\n\tInitializeReactI18n();\r\n\tconst {\r\n\t\tAPIM_SUBSCRIPTION_KEY,\r\n\t\tHOST: { BASE_SECURE_URL }\r\n\t} = config;\r\n\tconst { ACCOUNTS } = API_URL;\r\n\r\n\treturn (\r\n\t\t}\r\n\t\t>\r\n\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default App;\r\n","import 'react-app-polyfill/ie11'; // REQUIRED for IE11 polyfills\r\nimport 'react-app-polyfill/stable'; // REQUIRED for all other polyfills\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { BrowserRouter as Router } from 'react-router-dom';\r\nimport { HttpErrorPage } from '@paycor/design-system';\r\nimport * as serviceWorker from './serviceWorker';\r\nimport App from './App';\r\nimport './index.scss';\r\nimport config from 'config';\r\n\r\n// This will intercept any 401 responses from HTTP/XHR calls and redirect the user to the login screen. Additional\r\n// response handlers can be defined, or the default 401 overwritten\r\n// XHRInterceptor.createInterceptor(\r\n// {\r\n// \t403: () => {\r\n// \t\t// your logic here\r\n// \t}\r\n// });\r\n\r\nReactDOM.render(\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t,\r\n\tdocument.getElementById('paycor-app-activation-ui')\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: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n","import i18n from 'i18next';\r\nimport { initReactI18next } from 'react-i18next';\r\nimport Backend from 'i18next-http-backend';\r\nimport LanguageDetector from 'i18next-browser-languagedetector';\r\nimport once from 'lodash/once';\r\n\r\nconst InitializeI18n = (languagePreferenceOptions) => {\r\n\ti18n\r\n\t\t.use(Backend)\r\n\t\t.use(LanguageDetector)\r\n\t\t.use(initReactI18next)\r\n\t\t.init({\r\n\t\t\tdebug: false,\r\n\t\t\tns: ['translation'],\r\n\t\t\tdetection: languagePreferenceOptions,\r\n\t\t\tfallbackLng: 'en',\r\n\t\t\tbackend: {\r\n\t\t\t\tloadPath: `/appactivation/locales/{{ns}}.{{lng}}.json`\r\n\t\t\t},\r\n\t\t\tinterpolation: {\r\n\t\t\t\tescapeValue: false\r\n\t\t\t},\r\n\t\t\treact: {\r\n\t\t\t\tuseSuspense: false\r\n\t\t\t}\r\n\t\t});\r\n};\r\n\r\nexport async function InitializeReactI18n() {\r\n\ttry {\r\n\t\tconst languagePreferenceOptions = {\r\n\t\t\torder: ['cookie'],\r\n\t\t\tlookupCookie: 'paycorCulture'\r\n\t\t};\r\n\r\n\t\tlet i18nInit = once(InitializeI18n);\r\n\t\ti18nInit(languagePreferenceOptions);\r\n\t} catch (error) {\r\n\t\tconsole.error(error);\r\n\t}\r\n}\r\n\r\nexport function getTranslatedText(translate, key, defaultText) {\r\n\treturn translate ? translate(key, defaultText) : defaultText;\r\n}\r\n\r\n","import { UserManager } from 'paycor-oidc-client';\r\nimport config from 'config';\r\n\r\nexport default () => {\r\n\tlet manager = new UserManager(config.securitySettings);\r\n\treturn manager.getAuthorizationHeader();\r\n};\r\n","import config from 'config';\r\nimport buildAuthToken from 'utils/build-auth-token';\r\n\r\nconst {\r\n\tHOST: { APIM_SUBSCRIPTION_KEY },\r\n\tHOST: { BASE_APIM_URL }\r\n} = config;\r\n\r\nexport const API_ERROR_MESSAGE = 'Sorry, something went wrong. Please try again later.';\r\nexport const API_LOAD_ERROR_MESSAGE = \"Sorry, we can't load $token right now. Please wait a bit and try again.\";\r\nexport const NO_CLIENT_SELECTION_MESSAGE = 'You must select a client.';\r\nexport const BANNER_ERROR_MESSAGE = 'Please correct the errors below to continue.';\r\nexport const UNAUTHENTICATED_ERROR_MESSAGE = 'Access denied. Please login with authenticated user. Redirecting to Login page.';\r\nexport const SOMETHING_WENT_WRONG = \"Something went wrong, please wait and try again or contact DeveloperPortalSupport@paycor.com.\";\r\nexport const CLIENTS_NOT_UNDER_SAME_COMPANY = \"At this time you cannot activate multiple clients that are not in the same company.\";\r\n\r\nexport let STANDARD_HEADERS = {\r\n\tAccept: 'application/json',\r\n\t'Content-Type': 'application/json',\r\n\tpragma: 'no-cache',\r\n\t'cache-control': 'no-cache'\r\n};\r\n\r\nlet FORM_DATA_HEADERS = {\r\n\tAccept: 'application/json, text/javascript, */*',\r\n\tpragma: 'no-cache',\r\n\t'cache-control': 'no-cache'\r\n};\r\n\r\nlet FORM_URLENCODED_DATA_HEADERS = {\r\n\tAccept: 'application/json, text/javascript, */*',\r\n\t'Content-Type': 'application/x-www-form-urlencoded',\r\n\tpragma: 'no-cache',\r\n\t'cache-control': 'no-cache'\r\n};\r\n\r\nexport const METHODS = {\r\n\tGET: 'get',\r\n\tPOST: 'post',\r\n\tPUT: 'put',\r\n\tDELETE: 'delete'\r\n};\r\n\r\nconst defaultHeadersForType = (type = 'standard') => {\r\n\tif (type === 'form') {\r\n\t\treturn FORM_DATA_HEADERS;\r\n\t} else if (type === 'form-urlencoded') {\r\n\t\treturn FORM_URLENCODED_DATA_HEADERS;\r\n\t}\r\n\treturn STANDARD_HEADERS;\r\n};\r\n\r\nexport const HTTP_HEADERS = (type = 'standard') => {\r\n\tlet _headers = defaultHeadersForType(type);\r\n\t_headers = Object.assign(_headers, {\r\n\t\t'Ocp-Apim-Subscription-Key': APIM_SUBSCRIPTION_KEY,\r\n\t\tauthorization: `${buildAuthToken()}`\r\n\t});\r\n\r\n\treturn {\r\n\t\tGET: {\r\n\t\t\tmethod: METHODS.GET,\r\n\t\t\tmode: 'cors',\r\n\t\t\theaders: _headers,\r\n\t\t\tcredentials: 'include'\r\n\t\t},\r\n\t\tPOST: {\r\n\t\t\tmethod: METHODS.POST,\r\n\t\t\tmode: 'cors',\r\n\t\t\theaders: _headers,\r\n\t\t\tcredentials: 'include'\r\n\t\t},\r\n\t\tPUT: {\r\n\t\t\tmethod: METHODS.PUT,\r\n\t\t\tmode: 'cors',\r\n\t\t\theaders: _headers,\r\n\t\t\tcredentials: 'include'\r\n\t\t},\r\n\t\tDELETE: {\r\n\t\t\tmethod: METHODS.DELETE,\r\n\t\t\tmode: 'cors',\r\n\t\t\theaders: _headers,\r\n\t\t\tcredentials: 'include'\r\n\t\t}\r\n\t};\r\n};\r\n\r\nexport const API_URL = {\r\n\tAPI: `/api`,\r\n\tAUTHENTICATION: `/authentication`,\r\n\tACCOUNTS: `/accounts`,\r\n\tSTS: `/sts/`,\r\n\tAPP_ACTIVATION: '/appactivator',\r\n\tAPP_CREATOR: '/appcreator',\r\n\tAPIM_ROOT: (api) => {\r\n\t\treturn process.env.NODE_ENV === 'production' ? `${BASE_APIM_URL}${api}` : api;\r\n\t}\r\n};\r\n\r\nexport const APP_INFO = {\r\n\tAPP_TYPE_REPORTING: `Reporting`,\r\n\tAPP_TYPE_STANDARD: `Standard`\r\n};\r\n"],"sourceRoot":""}