{"version":3,"sources":["store/auth/user/actionTypes.js","store/auth/user/reducer.js","store/auth/user/reducerPersist.js","store/auth/account/actionTypes.js","store/auth/account/reducer.js","store/auth/auth.reducer.js","store/entities/referral/actionTypes.js","store/entities/referral/reducer.js","store/entities/categories/actionTypes.js","store/entities/categories/reducer.js","store/entities/posts/actionTypes.js","store/entities/posts/reducer.js","store/entities/entities.reducer.js","store/ui/banks/actionTypes.js","store/ui/banks/reducer.js","store/ui/ui.reducer.js","store/reducer.js","store/middlewares/api.js","config.js","store/store.js","App.js","components/misc/UnsecurePageAlert.jsx","index.js"],"names":["LOGIN_USER","LOGIN_USER_START","LOGIN_USER_FAILED","UPDATE_LOGIN_USER","LOGOUT_USER","initialState","loading","signupForm","forgotPassword","forgotPasswordForm","resetPasswordLoading","resetPassword","verifyAccountLoading","verifyAccount","resendMailLoading","resendMail","loggedIn","data","signedUp","signupUser","profileUpdateLoading","profileUpdated","passwordUpdateLoading","passwordUpdated","combineReducers","user","state","arguments","length","undefined","action","type","actions","payload","message","toast","error","payloadErrors","errors","Object","keys","forEach","key","i","success","email","userPersist","token","_id","userData","userName","username","userType","window","location","href","account","createReferralLoading","createReferralSuccess","referralForm","allCategories","getCategoryLoading","getCategory","reloadPage","allPosts","postLoading","post","referral","categories","category","posts","allBanksLoading","allBanks","banks","rootPersistConfig","storage","localStorage","whitelist","authPersistConfig","rootReducer","entities","entitiesReducer","auth","persistReducer","authReducer","ui","uiReducer","api","store","next","async","url","method","onStart","onSuccess","onError","useLoginJwt","http","dispatch","axios","create","loginJwt","getState","headers","Authorization","request","baseURL","process","then","response","catch","userActions","navigator","onLine","composedEnhancer","compose","applyMiddleware","devToolsEnhancer","trace","createStore","reducer","persistor","persistStore","GeneralLayout","lazy","BlankLayout","NullLayout","Error404","XFrameOptions","HomeV1","HomeV2","HomeV3","bookDemo","bookDemoV2","productsOnDemandPay","productsBulkPayment","ProductsSavings","ProductsRewards","BusinessPayroll","Company","AppointmentSuccess","Terms","PrivacyPolicy","MarketingForm","MarketingRedirectPage","WebinarRedirectPage","WebinarOne","WebinarTwo","WebinarThree","WebinarFour","GuideTwo","GuideThree","GuideFinHealth","GuideUltimateJobOfferChecklist","GuideDaringCeoSeries","WebinarFive","WebinarSix","WebinarSeven","CookiePolicy","BusinessPayment","BusinessODP","BusinessCredit","BusinessAccount","BusinessPage","module","default","InvoicePage","PersonalPage","library","add","fas","ScrollToTop","withRouter","ScrollToTopComponent","mounted","useRef","useEffect","current","scrollTo","RouteLayout","_ref","component","Component","layout","Layout","authUser","authRole","rest","_jsx","Route","render","props","includes","children","Redirect","to","App","React","Fragment","_jsxs","BrowserRouter","Helmet","JSON","stringify","Suspense","fallback","_Fragment","Switch","exact","path","from","UnsecurePageAlert","className","FontAwesomeIcon","icon","Sentry","dsn","integrations","Integrations","BrowserTracing","tracesSampleRate","ReactDOM","StrictMode","HelmetProvider","ToastContainer","autoClose","self","top","Provider","PersistGate","document","getElementById"],"mappings":"uOAAO,MAAMA,EAAa,aACbC,EAAmB,mBACnBC,EAAoB,oBAYpBC,EAAoB,oBACpBC,EAAc,c,WCZ3B,MAAMC,EAAe,CACjBC,SAAS,EAITC,WAAY,CAAC,EAEbC,gBAAgB,EAChBC,mBAAoB,CAAC,EACrBC,sBAAsB,EACtBC,eAAe,EACfC,sBAAsB,EACtBC,eAAe,EACfC,mBAAmB,EACnBC,YAAY,GCfhB,MAAMV,EAAe,CACjBW,UAAU,EACVC,KAAM,CAAC,EACPC,UAAU,EACVC,WAAY,CAAC,GCNV,MCGDd,EAAe,CACjBe,sBAAsB,EACtBC,gBAAgB,EAChBC,uBAAuB,EACvBC,iBAAiB,GCFNC,gCAAgB,CAC3BC,KJeW,WAAgD,IAA/BC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGtB,EAAcyB,EAAMH,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EACxD,OAAQC,EAAOC,MAEX,KAAKC,EAoBD,OAlBAN,EAAQ,IACDA,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gBAIhCC,iBAAkB,IAIpBC,IAAS/B,OACPF,cAACS,IAAMyB,WAAU,CAAA7B,SACfM,eAACwB,IAAc,CAAA9B,SAAA,CACbL,cAACoC,IAAc,CAACC,UAAW,MACzB5K,OAAO6K,OAAS7K,OAAO8K,KACvBvC,cAACwC,IAAQ,CAAC5I,MAAOA,EAAMyG,SACrBL,cAACyC,IAAW,CAAC5G,UAAWA,EAAUwE,SAChCL,cAACQ,GAAG,QAIR/I,OAAO6K,OAAS7K,OAAO8K,KAAQvC,cAACuB,GAAiB,SAGvDmB,SAASC,eAAe,Q","file":"static/js/main.aa41ff2a.chunk.js","sourcesContent":["export const LOGIN_USER = \"LOGIN_USER\";\nexport const LOGIN_USER_START = \"LOGIN_USER_START\";\nexport const LOGIN_USER_FAILED = \"LOGIN_USER_FAILED\";\n\nexport const FORGOT_PASSWORD = \"FORGOT_PASSWORD\";\nexport const FORGOT_PASSWORD_START = \"FORGOT_PASSWORD_START\";\nexport const FORGOT_PASSWORD_FAILED = \"FORGOT_PASSWORD_FAILED\";\nexport const FORGOT_PASSWORD_RESET = \"FORGOT_PASSWORD_RESET\";\n\nexport const RESET_PASSWORD = \"RESET_PASSWORD\";\nexport const RESET_PASSWORD_START = \"RESET_PASSWORD_START\";\nexport const RESET_PASSWORD_FAILED = \"RESET_PASSWORD_FAILED\";\nexport const RESET_PASSWORD_RESET = \"RESET_PASSWORD_RESET\";\n\nexport const UPDATE_LOGIN_USER = \"UPDATE_LOGIN_USER\";\nexport const LOGOUT_USER = \"LOGOUT_USER\";\n","import * as actions from \"./actionTypes\";\nimport { toast } from 'react-toastify';\n\nconst initialState = {\n loading: false,\n // loggedIn: false, // moved to persist\n // data: {}, // moved to persist\n // signedUp: false, // moved to persist\n signupForm: {},\n // signupUser: {}, // moved to persist\n forgotPassword: false,\n forgotPasswordForm: {},\n resetPasswordLoading: false,\n resetPassword: false,\n verifyAccountLoading: false,\n verifyAccount: false,\n resendMailLoading: false,\n resendMail: false,\n};\n\n\nexport default function reducer(state = initialState, action) {\n switch (action.type) {\n\n case actions.LOGIN_USER:\n // console.log(\"login success\");\n state = {\n ...state,\n loading: false,\n // loggedIn: true,\n // data: {\n // token: action.payload.token,\n // _id: action.payload.employer._id,\n // firstName: action.payload.employer.firstName,\n // lastName: action.payload.employer.lastName,\n // name: action.payload.employer.firstName + \" \" + action.payload.employer.lastName,\n // email: action.payload.employer.email,\n // phoneNumber: action.payload.employer.phoneNumber,\n // userType: action.payload.employer.userType,\n // jobTitle: action.payload.employer.jobTitle,\n // },\n signupForm: {},\n // signedUp: false,\n }\n return state;\n\n\n case actions.UPDATE_LOGIN_USER:\n state = {\n ...state,\n // data: {\n // ...state.data,\n // firstName: action.payload.data.firstName,\n // lastName: action.payload.data.lastName,\n // name: action.payload.data.firstName + \" \" + action.payload.data.lastName,\n // email: action.payload.data.email,\n // phoneNumber: action.payload.data.phoneNumber,\n // },\n }\n return state;\n\n\n case actions.LOGIN_USER_START:\n state = {\n ...state,\n loading: true,\n // loggedIn: false,\n // data: {}\n }\n return state;\n\n\n case actions.LOGIN_USER_FAILED:\n if (action.payload.message === \"Password does not match\") {\n toast.error(\"Invalid Email Address or Password\");\n }\n else if (action.payload.message === \"Validation Errors\") {\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function (key) {\n for (let i = 0; i < payloadErrors[key].length; i++) {\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else {\n toast.error(action.payload.message);\n }\n\n state = {\n ...state,\n loading: false,\n // loggedIn: false,\n // data: {}\n }\n return state;\n\n\n case actions.LOGOUT_USER:\n state = {\n ...state,\n // loggedIn: false,\n // data: {}\n }\n // window.location.href = \"/login\";\n return state;\n\n\n case actions.FORGOT_PASSWORD:\n toast.success(\"Password reset pin has been sent to your email address\");\n state = {\n ...state,\n loading: false,\n forgotPassword: true,\n forgotPasswordForm: {\n email: action.payload.email\n }\n }\n return state;\n\n\n case actions.FORGOT_PASSWORD_START:\n state = {\n ...state,\n loading: true,\n forgotPassword: false,\n }\n return state;\n\n\n case actions.FORGOT_PASSWORD_FAILED:\n if (action.payload.message === \"Validation Errors\") {\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function (key) {\n for (let i = 0; i < payloadErrors[key].length; i++) {\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else {\n toast.error(action.payload.message);\n }\n\n state = {\n ...state,\n loading: false,\n forgotPassword: false,\n }\n return state;\n\n\n case actions.FORGOT_PASSWORD_RESET:\n state = {\n ...state,\n forgotPassword: false,\n }\n return state;\n\n\n case actions.RESET_PASSWORD:\n // toast.success(\"Password reset successful\");\n state = {\n ...state,\n resetPasswordLoading: false,\n resetPassword: true,\n }\n return state;\n\n\n case actions.RESET_PASSWORD_START:\n state = {\n ...state,\n resetPasswordLoading: true,\n resetPassword: false,\n }\n return state;\n\n\n case actions.RESET_PASSWORD_FAILED:\n if (action.payload.message === \"Validation Errors\") {\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function (key) {\n for (let i = 0; i < payloadErrors[key].length; i++) {\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else {\n toast.error(action.payload.message);\n }\n\n state = {\n ...state,\n resetPasswordLoading: false,\n resetPassword: false,\n }\n return state;\n\n\n case actions.RESET_PASSWORD_RESET:\n state = {\n ...state,\n resetPassword: false,\n }\n return state;\n\n\n default:\n return state;\n }\n}","import * as actions from \"./actionTypes\";\n\nconst initialState = {\n loggedIn: false,\n data: {},\n signedUp: false,\n signupUser: {},\n};\n\n\nexport default function reducer(state = initialState, action) {\n switch (action.type) {\n\n case actions.LOGIN_USER:\n state = {\n ...state,\n loggedIn: true,\n data: {\n token: action.payload.token,\n _id: action.payload.userData._id,\n userName: action.payload.userData.username,\n email: action.payload.userData.email,\n userType: action.payload.userData.userType,\n },\n signedUp: false,\n }\n return state;\n\n\n case actions.LOGIN_USER_START:\n state = {\n ...state,\n loggedIn: false,\n data: {}\n }\n return state;\n\n\n case actions.LOGIN_USER_FAILED:\n state = {\n ...state,\n loggedIn: false,\n data: {}\n }\n return state;\n\n\n case actions.UPDATE_LOGIN_USER:\n state = {\n ...state,\n data: {\n ...state.data,\n userName: action.payload.data.userName,\n email: action.payload.data.email,\n },\n }\n return state;\n\n\n case actions.LOGOUT_USER:\n state = {\n ...state,\n loggedIn: false,\n data: {}\n }\n window.location.href = \"/login\";\n return state;\n\n\n default:\n return state;\n }\n}","export const UPDATE_PROFILE = \"UPDATE_PROFILE\";\nexport const UPDATE_PROFILE_START = \"UPDATE_PROFILE_START\";\nexport const UPDATE_PROFILE_FAILED = \"UPDATE_PROFILE_FAILED\";\nexport const UPDATE_PROFILE_RESET = \"UPDATE_PROFILE_RESET\";\n\nexport const UPDATE_PASSWORD = \"UPDATE_PASSWORD\";\nexport const UPDATE_PASSWORD_START = \"UPDATE_PASSWORD_START\";\nexport const UPDATE_PASSWORD_FAILED = \"UPDATE_PASSWORD_FAILED\";\nexport const UPDATE_PASSWORD_RESET = \"UPDATE_PASSWORD_RESET\";\n","import * as actions from \"./actionTypes\";\nimport { toast } from 'react-toastify';\n\nconst initialState = {\n profileUpdateLoading: false,\n profileUpdated: false,\n passwordUpdateLoading: false,\n passwordUpdated: false,\n};\n\n\nexport default function reducer(state = initialState, action){\n switch (action.type){\n\n case actions.UPDATE_PROFILE:\n toast.success(action.payload.message);\n state = {\n ...state,\n profileUpdateLoading: false,\n profileUpdated: true,\n }\n return state;\n\n \n case actions.UPDATE_PROFILE_START:\n state = {\n ...state,\n profileUpdateLoading: true,\n }\n return state;\n\n\n case actions.UPDATE_PROFILE_FAILED:\n if (action.payload.message === \"Validation Errors\"){\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function(key) {\n for (let i = 0; i < payloadErrors[key].length; i++){\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else{\n toast.error(action.payload.message);\n }\n\n state = {\n ...state,\n profileUpdateLoading: false,\n }\n return state;\n\n\n case actions.UPDATE_PROFILE_RESET:\n state = {\n ...state,\n profileUpdated: false,\n }\n return state;\n\n\n case actions.UPDATE_PASSWORD:\n toast.success(action.payload.message);\n state = {\n ...state,\n passwordUpdateLoading: false,\n passwordUpdated: true,\n }\n return state;\n\n \n case actions.UPDATE_PASSWORD_START:\n state = {\n ...state,\n passwordUpdateLoading: true,\n }\n return state;\n\n\n case actions.UPDATE_PASSWORD_FAILED:\n if (action.payload.message === \"Validation Errors\"){\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function(key) {\n for (let i = 0; i < payloadErrors[key].length; i++){\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else{\n toast.error(action.payload.message);\n }\n \n state = {\n ...state,\n passwordUpdateLoading: false,\n }\n return state;\n\n\n case actions.UPDATE_PASSWORD_RESET:\n state = {\n ...state,\n passwordUpdated: false,\n }\n return state;\n\n\n\n default:\n return state;\n }\n}","import { combineReducers } from \"redux\";\nimport userReducer from \"./user/reducer\";\nimport userPersistReducer from \"./user/reducerPersist\";\nimport accountReducer from \"./account/reducer\";\n\nexport default combineReducers({\n user: userReducer,\n userPersist: userPersistReducer,\n account: accountReducer,\n});","export const CREATE_REFERRAL = \"CREATE_REFERRAL\";\nexport const CREATE_REFERRAL_START = \"CREATE_REFERRAL_START\";\nexport const CREATE_REFERRAL_FAILED = \"CREATE_REFERRAL_FAILED\";\n","import * as actions from \"./actionTypes\";\nimport { toast } from 'react-toastify';\n\nconst initialState = {\n createReferralLoading: false,\n createReferralSuccess: false,\n referralForm: {},\n};\n\n\nexport default function reducer(state = initialState, action) {\n switch (action.type) {\n\n case actions.CREATE_REFERRAL:\n state = {\n ...state,\n createReferralLoading: false,\n createReferralSuccess: true,\n referralForm: { ...action.payload }\n }\n return state;\n\n\n case actions.CREATE_REFERRAL_START:\n state = {\n ...state,\n createReferralLoading: true,\n createReferralSuccess: false,\n }\n return state;\n\n\n case actions.CREATE_REFERRAL_FAILED:\n if (action.payload.message === \"Validation Errors\") {\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function (key) {\n for (let i = 0; i < payloadErrors[key].length; i++) {\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else {\n toast.error(action.payload.message);\n }\n\n state = {\n ...state,\n createReferralLoading: false,\n createReferralSuccess: false,\n referralForm: {},\n }\n return state;\n\n\n default:\n return state;\n }\n}","\nexport const GET_ALL_CATEGORIES = \"GET_ALL_CATEGORIES\";\nexport const GET_ALL_CATEGORIES_START = \"GET_ALL_CATEGORIES_START\";\nexport const GET_ALL_CATEGORIES_FAILED = \"GET_ALL_CATEGORIES_FAILED\";\n\nexport const GET_CATEGORY = \"GET_CATEGORY\";\nexport const GET_CATEGORY_START = \"GET_CATEGORY_START\";\nexport const GET_CATEGORY_FAILED = \"GET_CATEGORY_FAILED\";\n\nexport const RELOAD_PAGE_RESET = \"RELOAD_PAGE_RESET\";\n","import * as actions from \"./actionTypes\";\nimport { toast } from 'react-toastify';\n\nconst initialState = {\n loading: false,\n allCategories: {},\n getCategoryLoading: false,\n getCategory: {},\n\n reloadPage: false,\n};\n\n\nexport default function reducer(state = initialState, action) {\n switch (action.type) {\n\n case actions.GET_ALL_CATEGORIES:\n state = {\n ...state,\n loading: false,\n allCategories: { ...action.payload }\n }\n return state;\n\n\n case actions.GET_ALL_CATEGORIES_START:\n state = {\n ...state,\n loading: true,\n }\n return state;\n\n\n case actions.GET_ALL_CATEGORIES_FAILED:\n toast.error(action.payload.message);\n state = {\n ...state,\n loading: false,\n allCategories: {},\n }\n return state;\n\n\n case actions.GET_CATEGORY:\n state = {\n ...state,\n getCategoryLoading: false,\n getCategory: { ...action.payload.category }\n }\n return state;\n\n\n case actions.GET_CATEGORY_START:\n state = {\n ...state,\n getCategoryLoading: true,\n }\n return state;\n\n\n case actions.GET_CATEGORY_FAILED:\n toast.error(action.payload.message);\n state = {\n ...state,\n getCategoryLoading: false,\n getCategory: {},\n }\n return state;\n\n\n case actions.RELOAD_PAGE_RESET:\n state = {\n ...state,\n reloadPage: false,\n }\n return state;\n\n\n default:\n return state;\n }\n}","\nexport const GET_ALL_POSTS = \"GET_ALL_POSTS\";\nexport const GET_ALL_POSTS_START = \"GET_ALL_POSTS_START\";\nexport const GET_ALL_POSTS_FAILED = \"GET_ALL_POSTS_FAILED\";\n\nexport const GET_POST = \"GET_POST\";\nexport const GET_POST_START = \"GET_POST_START\";\nexport const GET_POST_FAILED = \"GET_POST_FAILED\";\n\nexport const RELOAD_PAGE_RESET = \"RELOAD_PAGE_RESET\";\n","import * as actions from \"./actionTypes\";\nimport { toast } from 'react-toastify';\n\nconst initialState = {\n loading: false,\n allPosts: {},\n postLoading: false,\n post: {},\n\n reloadPage: false,\n};\n\n\nexport default function reducer(state = initialState, action) {\n switch (action.type) {\n\n case actions.GET_ALL_POSTS:\n state = {\n ...state,\n loading: false,\n allPosts: { ...action.payload }\n }\n return state;\n\n\n case actions.GET_ALL_POSTS_START:\n state = {\n ...state,\n loading: true,\n }\n return state;\n\n\n case actions.GET_ALL_POSTS_FAILED:\n toast.error(action.payload.message);\n state = {\n ...state,\n loading: false,\n allPosts: {},\n }\n return state;\n\n\n case actions.GET_POST:\n state = {\n ...state,\n postLoading: false,\n post: { ...action.payload.post }\n }\n return state;\n\n\n case actions.GET_POST_START:\n state = {\n ...state,\n postLoading: true,\n }\n return state;\n\n\n case actions.GET_POST_FAILED:\n toast.error(action.payload.message);\n state = {\n ...state,\n postLoading: false,\n post: {},\n }\n return state;\n\n\n case actions.RELOAD_PAGE_RESET:\n state = {\n ...state,\n reloadPage: false,\n }\n return state;\n\n\n default:\n return state;\n }\n}","import { combineReducers } from \"redux\";\nimport referralReducer from \"./referral/reducer\";\nimport categoriesReducer from \"./categories/reducer\";\nimport postsReducer from \"./posts/reducer\";\n\nexport default combineReducers({\n referral: referralReducer,\n categories: categoriesReducer,\n posts: postsReducer,\n});\n","export const GET_BANKS = \"GET_BANKS\";\nexport const GET_BANKS_START = \"GET_BANKS_START\";\nexport const GET_BANKS_FAILED = \"GET_BANKS_FAILED\";\n","import * as actions from \"./actionTypes\";\nimport { toast } from 'react-toastify';\n\nconst initialState = {\n allBanksLoading: false,\n allBanks: [],\n};\n\n\nexport default function reducer(state = initialState, action) {\n switch (action.type) {\n\n case actions.GET_BANKS:\n state = {\n ...state,\n allBanksLoading: false,\n allBanks: [...action.payload.data]\n }\n return state;\n\n\n case actions.GET_BANKS_START:\n state = {\n ...state,\n allBanksLoading: true,\n }\n return state;\n\n\n case actions.GET_BANKS_FAILED:\n if (action.payload.message === \"Validation Errors\") {\n const payloadErrors = action.payload.errors;\n Object.keys(payloadErrors).forEach(function (key) {\n for (let i = 0; i < payloadErrors[key].length; i++) {\n toast.error(payloadErrors[key][i]);\n }\n });\n }\n else {\n toast.error(action.payload.message);\n }\n\n state = {\n ...state,\n allBanksLoading: false,\n allBanks: [],\n }\n return state;\n\n\n default:\n return state;\n }\n}","import { combineReducers } from \"redux\";\nimport banksReducer from \"./banks/reducer\";\n\nexport default combineReducers({\n banks: banksReducer,\n});","import { combineReducers } from \"redux\";\nimport { persistReducer } from \"redux-persist\";\n\nimport localStorage from \"redux-persist/lib/storage\";\n// import sessionStorage from 'redux-persist/lib/storage/session'; // accessible in tabs only\n\nimport authReducer from \"./auth/auth.reducer\";\nimport entitiesReducer from \"./entities/entities.reducer\";\nimport uiReducer from \"./ui/ui.reducer\";\n\nconst rootPersistConfig = {\n key: \"root\",\n storage: localStorage,\n whitelist: [\"\"],\n}\n\nconst authPersistConfig = {\n key: \"auth\",\n storage: localStorage,\n whitelist: [\"userPersist\"],\n}\n\nconst rootReducer = combineReducers({\n entities: entitiesReducer,\n auth: persistReducer(authPersistConfig, authReducer),\n ui: uiReducer,\n});\n\nexport default persistReducer(rootPersistConfig, rootReducer);","// import http, {useLoginJwt, dontUseLoginJwt} from \"services/httpService\"\nimport axios from \"axios\";\nimport * as config from \"config\";\nimport * as userActions from \"store/auth/user/actionTypes\";\n\nconst api = store => next => async action => {\n\n if (action.type !== config.apiRequestStart) {\n next(action);\n }\n else {\n\n const { url, method, data, onStart, onSuccess, onError, useLoginJwt } = action.payload;\n if (onStart) {\n store.dispatch({ type: onStart });\n }\n\n let http;\n if ((typeof useLoginJwt !== \"undefined\") && (useLoginJwt === false)) {\n http = axios.create();\n }\n else {\n const loginJwt = store.getState().auth.userPersist.data.token;\n http = axios.create({\n headers: {\n Authorization: loginJwt,\n }\n });\n }\n\n next(action); // for debugger logging purpose (in chrome Redux dev tools)\n\n await http.request({\n baseURL: config.apiBaseUrl,\n url,\n method,\n data\n }).then((response) => {\n store.dispatch({ type: config.apiRequestSuccess, payload: response }); // for debugger logging purpose\n if (onSuccess) {\n store.dispatch({ type: onSuccess, payload: response.data });\n }\n }).catch((error) => {\n // console.log(error); //check with dummy base64 endpoint online\n store.dispatch({ type: config.apiRequestFailed, payload: error }); // for debugger logging purpose\n if (onError) {\n if (error.response) {\n store.dispatch({ type: onError, payload: error.response.data });\n if (error.response.data.message === \"Expired Session, Please Login Again\") {\n // window.setTimeout(function () {\n store.dispatch({ type: userActions.LOGOUT_USER });\n // }, 1000);\n }\n }\n else if (error.request) {\n if (navigator.onLine) {\n store.dispatch({\n type: onError,\n payload: {\n message: \"Error: Invalid request. Please try again later.\"\n }\n });\n }\n else {\n store.dispatch({\n type: onError,\n payload: {\n message: \"No Internet Connection\"\n }\n });\n }\n }\n else {\n store.dispatch({\n type: onError,\n payload: {\n message: \"An error occurred. Please try again later.\"\n }\n });\n }\n }\n });\n\n }\n\n}\n\nexport default api;","// Main\nexport const projectName = 'Earnipay';\nexport const repoName = 'earnipay-website';\n\n// API - middleware\nexport const apiRequestStart = \"API/REQUEST_START\";\nexport const apiRequestSuccess = \"API/REQUEST_SUCCESS\"; // for logging purpose only\nexport const apiRequestFailed = \"API/REQUEST_FAILED\"; // for logging purpose only\n\n// API - base url\nexport const apiBaseUrl = process.env.REACT_APP_API_BASE_URL;\n\n// API - user auth\nexport const apiCreateReferral = \"/miscellaneous/referral/invite/send\";\n\n// API - financial education\nexport const apiCategories = \"/financial-education/categories\";\nexport const apiPosts = \"/financial-education/posts\";\n\n// API - banks\nexport const apiGetBanks = \"/miscellaneous/get-bank-list\";\n","import { createStore, applyMiddleware, compose } from \"redux\";\nimport { devToolsEnhancer } from \"redux-devtools-extension\"; // using chrome extension tool\nimport { persistStore } from \"redux-persist\";\nimport reducer from \"./reducer\";\n// import logger from \"./middlewares/logger\";\nimport api from \"./middlewares/api\";\n\n// const composedEnhancer = compose(applyMiddleware(logger), applyMiddleware(api), devToolsEnhancer({trace: true}));\nconst composedEnhancer = compose(applyMiddleware(api), devToolsEnhancer({trace: true}));\n\nexport const store = createStore(reducer, composedEnhancer);\nexport const persistor = persistStore(store);\n\nexport default store;","import React, { Suspense, useEffect, useRef, lazy } from \"react\";\nimport {\n BrowserRouter,\n Route,\n Switch,\n Redirect,\n withRouter,\n} from \"react-router-dom\";\nimport { library } from \"@fortawesome/fontawesome-svg-core\";\nimport { fas } from \"@fortawesome/free-solid-svg-icons\";\nimport { Helmet } from \"react-helmet-async\";\n\nconst GeneralLayout = lazy(() => import(\"./components/layouts/generalLayout\"));\nconst BlankLayout = lazy(() => import(\"./components/layouts/blankLayout\"));\nconst NullLayout = lazy(() => import(\"./components/layouts/nullLayout\"));\nconst Error404 = lazy(() => import(\"./components/misc/error404\"));\nconst XFrameOptions = lazy(() => import(\"./components/misc/x-frame-options\"));\n\n// const Home = lazy(() => import(\"./pages/home/home\"));\nconst HomeV1 = lazy(() => import(\"./pages/home/oldVersions/home-v1\"));\nconst HomeV2 = lazy(() => import(\"./pages/home/oldVersions/home-v2\"));\nconst HomeV3 = lazy(() => import(\"./pages/home/oldVersions/home-v3\"));\nconst bookDemo = lazy(() => import(\"./pages/book-demo\"));\nconst bookDemoV2 = lazy(() => import(\"./pages/book-demo-v2\"));\n// const productsInvoice = lazy(() => import(\"./pages/products/invoice\"));\nconst productsOnDemandPay = lazy(() =>\n import(\"./pages/products/on-demand-pay\")\n);\nconst productsBulkPayment = lazy(() => import(\"./pages/products/bulk-payment\"));\n// const productsPayroll = lazy(() => import(\"./pages/products/payroll\"));\nconst ProductsSavings = lazy(() => import(\"pages/products/Savings\"));\nconst ProductsRewards = lazy(() => import(\"pages/products/Rewards\"));\nconst BusinessPayroll = lazy(() => import(\"pages/business/payroll\"));\nconst Company = lazy(() => import(\"pages/company\"));\n// const Employers = lazy(() => import(\"./pages/Employers\"));\n// const Employees = lazy(() => import(\"./pages/Employees\"));\nconst AppointmentSuccess = lazy(() =>\n import(\"pages/marketingPage/AppointmentSuccess\")\n);\nconst Terms = lazy(() => import(\"./pages/others/terms\"));\nconst PrivacyPolicy = lazy(() => import(\"./pages/others/privacyPolicy\"));\nconst MarketingForm = lazy(() => import(\"./pages/marketingPage/marketingForm\"));\nconst MarketingRedirectPage = lazy(() =>\n import(\"./pages/marketingPage/MarketingRedirectPage\")\n);\nconst WebinarRedirectPage = lazy(() =>\n import(\"pages/marketingPage/WebinarRedirectPage\")\n);\nconst WebinarOne = lazy(() => import(\"./pages/marketingPage/WebinarOne\"));\nconst WebinarTwo = lazy(() => import(\"pages/marketingPage/WebinarTwo\"));\nconst WebinarThree = lazy(() => import(\"pages/marketingPage/WebinarThree\"));\nconst WebinarFour = lazy(() => import(\"pages/marketingPage/WebinarFour\"));\nconst GuideTwo = lazy(() => import(\"pages/marketingPage/GuideTwo\"));\nconst GuideThree = lazy(() => import(\"pages/marketingPage/GuideThree\"));\nconst GuideFinHealth = lazy(() =>\n import(\"pages/marketingPage/GuideFinancialHealth\")\n);\nconst GuideUltimateJobOfferChecklist = lazy(() =>\n import(\"pages/marketingPage/GuideUltimateJobOfferChecklist\")\n);\nconst GuideDaringCeoSeries = lazy(() =>\n import(\"pages/marketingPage/GuideDaringCeoSeries\")\n);\n// const InstantTransfers = lazy(() =>\n// \timport('./pages/payments').then((module) => ({\n// \t default: module.InstantTransfers,\n// \t}))\n// );\n\nconst WebinarFive = lazy(() => import(\"pages/marketingPage/WebinarFive\"));\nconst WebinarSix = lazy(() => import(\"pages/marketingPage/WebinarSix\"));\nconst WebinarSeven = lazy(() => import(\"pages/marketingPage/WebinarSeven\"));\n// const CareersPage = lazy(() => import(\"pages/careers/CareersPage\"));\nconst CookiePolicy = lazy(() => import(\"pages/others/CookiePolicy\"));\n// const CookieConsentModal = lazy(() => import(\"utils/CookieConsentModal\"));\nconst BusinessPayment = lazy(() => import(\"pages/business/payment\"));\nconst BusinessODP = lazy(() => import(\"pages/business/odp\"));\nconst BusinessCredit = lazy(() => import(\"pages/business/credit\"));\nconst BusinessAccount = lazy(() => import(\"pages/business/account\"));\nconst BusinessPage = lazy(() =>\n import(\"pages/business\").then((module) => ({\n default: module.BusinessPage,\n }))\n);\nconst InvoicePage = lazy(() =>\n import(\"pages/invoice\").then((module) => ({\n default: module.InvoicePage,\n }))\n);\nconst PersonalPage = lazy(() =>\n import(\"pages/products/index\").then((module) => ({\n default: module.PersonalPage,\n }))\n);\n\nlibrary.add(fas);\n\nconst ScrollToTopComponent = () => {\n const mounted = useRef(false);\n useEffect(() => {\n if (!mounted.current) {\n //componentDidMount\n mounted.current = true;\n } else {\n //componentDidUpdate\n window.scrollTo(0, 0);\n }\n });\n return null;\n};\nexport const ScrollToTop = withRouter(ScrollToTopComponent);\n\nconst RouteLayout = ({\n component: Component,\n layout: Layout,\n authUser,\n authRole,\n ...rest\n}) => (\n <Route\n {...rest}\n render={(props) => {\n const user = \"\";\n const user_role = \"\";\n\n if (authUser) {\n if (authUser === \"loggedIn\") {\n if (user.loggedIn === true) {\n if (authRole) {\n if (authRole.includes(user_role)) {\n return (\n <Layout>\n <Component {...props} />\n </Layout>\n );\n } else {\n // alert(\"Access denied due to user role\");\n return <Redirect to=\"/401\" />;\n }\n } else {\n // no roles required, you only need to be logged in\n return (\n <Layout>\n <Component {...props} />\n </Layout>\n );\n }\n } else {\n // alert(\"need to be logged in);\n return <Redirect to=\"/login\" />;\n }\n } else if (authUser === \"loggedOut\") {\n if (user.loggedIn === false) {\n return (\n <Layout>\n <Component {...props} />\n </Layout>\n );\n } else {\n // alert(\"already logged in; need to be logged out to access);\n return <Redirect to=\"/dashboard\" />;\n }\n }\n } else {\n // public page, no auth-yes or auth-no required\n return (\n <Layout>\n <Component {...props} />\n </Layout>\n );\n }\n }}\n />\n);\n\nfunction App() {\n\tconst schemaMarkup = {\n\t\t\"@context\": \"https://schema.org\",\n\t\t\"@type\": \"Organization\",\n\t\t\"name\": \"Earnipay\",\n\t\t\"url\": \"https://earnipay.com\",\n\t\t\"potentialAction\": [\n\t\t {\n\t\t\t\"@type\": \"EntryPoint\",\n\t\t\t\"name\": \"Open a Business Account in minutes\",\n\t\t\t\"urlTemplate\": \"https://business.earnipay.com/sign-up\"\n\t\t },\n\t\t {\n\t\t\t\"@type\": \"EntryPoint\",\n\t\t\t\"name\": \"Login to your business account\",\n\t\t\t\"urlTemplate\": \"https://business.earnipay.com/login\"\n\t\t },\n\t\t {\n\t\t\t\"@type\": \"Action\",\n\t\t\t\"name\": \"Get Earnipay App for iOS\",\n\t\t\t\"target\": \"https://apps.apple.com/ng/app/earnipay/id1614113666\"\n\t\t },\n\t\t {\n\t\t\t\"@type\": \"Action\",\n\t\t\t\"name\": \"Get Earnipay App for Android\",\n\t\t\t\"target\": \"https://play.google.com/store/apps/details?id=com.earnipay\"\n\t\t },\n\t\t {\n\t\t\t\"@type\": \"Action\",\n\t\t\t\"name\": \"About Earnipay\",\n\t\t\t\"target\": \"https://earnipay.com/company\"\n\t\t },\n\t\t {\n\t\t\t\"@type\": \"Action\",\n\t\t\t\"name\": \"Contact Us\",\n\t\t\t\"target\": \"https://earnipay.com/support\"\n\t\t }\n\t\t],\n\t\t\"sameAs\": [\n\t\t \"https://www.facebook.com/Earnipay\",\n\t\t \"https://www.twitter.com/earnipay\",\n\t\t \"https://www.linkedin.com/company/earnipay\",\n\t\t \"https://www.instagram.com/getearnipay/\"\n\t\t]\n\t };\n return (\n <React.Fragment>\n <BrowserRouter>\n <ScrollToTop />\n {/* <CookieConsentModal /> */}\n <Helmet>\n <script type=\"application/ld+json\">\n {JSON.stringify(schemaMarkup)}\n </script>\n </Helmet>\n <Suspense fallback={<></>}>\n <Switch>\n <RouteLayout\n exact\n path=\"/book-demo\"\n layout={BlankLayout}\n component={bookDemo}\n />\n <RouteLayout\n exact\n path=\"/book-demo/v2\"\n layout={BlankLayout}\n component={bookDemoV2}\n />\n\n {/* <RouteLayout exact path=\"/products/invoice\" layout={GeneralLayout} component={productsInvoice} /> */}\n <RouteLayout\n exact\n path=\"/personal/on-demand-pay\"\n layout={GeneralLayout}\n component={productsOnDemandPay}\n />\n <RouteLayout\n exact\n path=\"/personal/credit\"\n layout={GeneralLayout}\n component={productsBulkPayment}\n />\n {/* <RouteLayout exact path=\"/products/payroll\" layout={GeneralLayout} component={productsPayroll} /> */}\n {/* <RouteLayout exact path=\"/careers\" layout={GeneralLayout} component={CareersPage} /> */}\n <RouteLayout\n exact\n path=\"/personal/savings\"\n layout={GeneralLayout}\n component={ProductsSavings}\n />\n <RouteLayout\n exact\n path=\"/personal/rewards\"\n layout={GeneralLayout}\n component={ProductsRewards}\n />\n\n <RouteLayout\n exact\n path=\"/invoice\"\n layout={BlankLayout}\n component={InvoicePage}\n />\n <RouteLayout\n exact\n path=\"/business\"\n layout={GeneralLayout}\n component={BusinessPage}\n />\n <RouteLayout\n exact\n path=\"/company\"\n layout={GeneralLayout}\n component={Company}\n />\n <RouteLayout\n exact\n path=\"/business/account\"\n layout={GeneralLayout}\n component={BusinessAccount}\n />\n <RouteLayout\n exact\n path=\"/business/credit\"\n layout={GeneralLayout}\n component={BusinessCredit}\n />\n <RouteLayout\n exact\n path=\"/business/payment\"\n layout={GeneralLayout}\n component={BusinessPayment}\n />\n <RouteLayout\n exact\n path=\"/business/payroll\"\n layout={GeneralLayout}\n component={BusinessPayroll}\n />\n <RouteLayout\n exact\n path=\"/business/odp\"\n layout={GeneralLayout}\n component={BusinessODP}\n />\n <RouteLayout\n exact\n path=\"/personal\"\n layout={GeneralLayout}\n component={PersonalPage}\n />\n\n <RouteLayout\n exact\n path=\"/terms\"\n layout={GeneralLayout}\n component={Terms}\n />\n <RouteLayout\n exact\n path=\"/privacy-policy\"\n layout={GeneralLayout}\n component={PrivacyPolicy}\n />\n <RouteLayout\n exact\n path=\"/cookie-policy\"\n layout={GeneralLayout}\n component={CookiePolicy}\n />\n\n <RouteLayout\n exact\n path=\"/campaign/guide/5-ways-employee-financial-stress-is-costing-your-business\"\n layout={GeneralLayout}\n component={MarketingForm}\n />\n <RouteLayout\n exact\n path=\"/campaign/guide/how-to-stop-living-from-payday-to-payday\"\n layout={GeneralLayout}\n component={GuideTwo}\n />\n <RouteLayout\n exact\n path=\"/campaign/guide/the-future-of-employee-benefits\"\n layout={GeneralLayout}\n component={GuideThree}\n />\n <RouteLayout\n exact\n path=\"/campaign/guide/improving-the-financial-health-of-your-employees\"\n layout={GeneralLayout}\n component={GuideFinHealth}\n />\n <RouteLayout\n exact\n path=\"/campaign/guide/the-ultimate-job-offer-checklist\"\n layout={GeneralLayout}\n component={GuideUltimateJobOfferChecklist}\n />\n <RouteLayout\n exact\n path=\"/campaign/guide/the-daring-ceo-series\"\n layout={GeneralLayout}\n component={GuideDaringCeoSeries}\n />\n <RouteLayout\n exact\n path=\"/campaign/guide/thank-you\"\n layout={GeneralLayout}\n component={MarketingRedirectPage}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/survival-skills-for-women\"\n layout={GeneralLayout}\n component={WebinarOne}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/navigating-through-a-toxic-workplace-culture\"\n layout={GeneralLayout}\n component={WebinarTwo}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/how-to-keep-your-employees-motivated-even-in-tough-times\"\n layout={GeneralLayout}\n component={WebinarThree}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/how-to-build-a-compelling-talent-attraction-strategy\"\n layout={GeneralLayout}\n component={WebinarFour}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/how-do-i-keep-my-best-talent\"\n layout={GeneralLayout}\n component={WebinarFive}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/helping-employees-thrive-through-disruptions\"\n layout={GeneralLayout}\n component={WebinarSix}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/improving-employee-experience-through-financial-wellness\"\n layout={GeneralLayout}\n component={WebinarSeven}\n />\n <RouteLayout\n exact\n path=\"/campaign/webinar/thank-you\"\n layout={GeneralLayout}\n component={WebinarRedirectPage}\n />\n <RouteLayout\n exact\n path=\"/appointment/success\"\n layout={GeneralLayout}\n component={AppointmentSuccess}\n />\n\n <RouteLayout\n exact\n path=\"/404\"\n layout={NullLayout}\n component={Error404}\n />\n <RouteLayout\n exact\n path=\"/test/clickjacking\"\n layout={NullLayout}\n component={XFrameOptions}\n />\n\n {/* get v0 from gitlab */}\n <RouteLayout\n exact\n path=\"/versions/v1\"\n layout={GeneralLayout}\n component={HomeV1}\n />\n <RouteLayout\n exact\n path=\"/versions/v2\"\n layout={GeneralLayout}\n component={HomeV2}\n />\n <RouteLayout\n exact\n path=\"/versions/v3\"\n layout={GeneralLayout}\n component={HomeV3}\n />\n {/* <RouteLayout exact path=\"/\" layout={GeneralLayout} component={Home} /> */}\n <Route exact path=\"/\">\n <Redirect to=\"/business\" />\n </Route>\n\n <Redirect from=\"/index.html\" to=\"/\" />\n <Redirect from=\"/sitemap.xml\" to=\"/sitemap.xml\" />\n {/* <Redirect from=\"/faq\" to=\"/faqs\" /> */}\n\n <Redirect from=\"/home\" to=\"/\" />\n <Redirect to=\"/404\" />\n </Switch>\n </Suspense>\n </BrowserRouter>\n </React.Fragment>\n );\n}\n\nexport default App;\n","import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\n\n\nconst UnsecurePageAlert = () => {\n return (\n <div className=\"w-screen min-h-screen flex bg-white border-t-8 border-red-500\">\n <div className=\"m-auto px-8 text-center max-w-lg\">\n\n <div className=\"my-6\">\n <div>\n <FontAwesomeIcon icon=\"exclamation-circle\" className=\"text-9xl text-red-500\" />\n </div>\n <div className=\"mt-8 font-boing font-bold text-2xl sm:text-3xl\">\n FAKE WEBSITE DETECTED\n </div>\n <div className=\"mt-4 text-gray-500\">\n If you are seeing this page, the website you are currently on is <span className=\"font-bold px-1.5 py-px bg-red-500 text-white\">FAKE</span>.\n The real website is <span className=\"font-bold text-black\">https://earnipay.com</span>\n \n <div className=\"mt-8 text-left\">\n What to do:\n <ol className=\"mt-2 ml-4 list-decimal\">\n <li>\n Do not click any buttons or links on this website\n </li>\n <li>\n Do not fill or submit any of your information\n </li>\n <li>\n Report this fake website to us via email <span className=\"font-bold text-black\">hello@earnipay.com</span>\n </li>\n <li>\n Leave this fake website immediately\n </li>\n <li>\n Visit the real website: <span className=\"font-bold text-black\">https://earnipay.com</span>\n </li>\n </ol>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n )\n}\n\nexport default UnsecurePageAlert;","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport store, { persistor } from \"store/store\";\nimport { Provider } from 'react-redux';\nimport { PersistGate } from 'redux-persist/integration/react';\n\nimport * as Sentry from \"@sentry/react\";\nimport { Integrations } from \"@sentry/tracing\";\n\nimport App from './App';\nimport UnsecurePageAlert from './components/misc/UnsecurePageAlert';\nimport { ToastContainer } from 'react-toastify';\nimport { HelmetProvider } from \"react-helmet-async\";\nimport \"react-toastify/dist/ReactToastify.min.css\";\nimport 'assets/css/index.css';\nimport 'assets/css/earnipay.css';\n\n\nSentry.init({\n dsn: \"https://92a90cc53bcd48d696cfae0192d92478@o1085459.ingest.sentry.io/6096200\",\n integrations: [new Integrations.BrowserTracing()],\n\n // We recommend adjusting this value in production, or using tracesSampler\n // for finer control\n tracesSampleRate: 1.0,\n});\n\n\nReactDOM.render(\n <React.StrictMode>\n <HelmetProvider>\n <ToastContainer autoClose={5000} />\n {(window.self === window.top) &&\n <Provider store={store}>\n <PersistGate persistor={persistor}>\n <App />\n </PersistGate>\n </Provider>\n }\n {(window.self !== window.top) && <UnsecurePageAlert /> }\n </HelmetProvider>\n </React.StrictMode>,\n document.getElementById('root')\n);"],"sourceRoot":""}