{"version":3,"sources":["globalutilities/index.js","Services/actions/auth/auth.js","Services/actions/auth/index.js","Services/actions/auth/types.js","polyfill.js","App.js","serviceWorker.js","index.js","config/index.js","Services/reducers/authReducer.js","Services/reducers/index.js","Services/store.js"],"names":["__webpack_require__","d","__webpack_exports__","Loader","designationValue","qualificationValue","totalMonths","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","a","createElement","style","position","top","left","right","bottom","height","width","backgroundColor","opacity","zIndex","textAlign","className","checkAuth","_ref","Object","asyncToGenerator","regenerator_default","mark","_callee","auth","token","result","wrap","_context","prev","next","appConfig","authToken","axios","get","concat","appUrl","headers","authorization","Content-Type","sent","data","success","store","dispatch","type","CHECKAUTH_SUCCESS","payload","objectSpread","loginDetails","alert","signOut","t0","stop","_x","apply","this","arguments","checkMail","_ref2","_callee2","res","_context2","post","abrupt","console","log","message","error","_x2","forgotPassword","_ref3","_callee3","emailId","_context3","_x3","localStorage","setItem","clear","window","location","href","SIGN_OUT","auth_signOut","CustomEvent","event","params","bubbles","cancelable","detail","undefined","evt","document","createEvent","initCustomEvent","prototype","Event","loading","react_default","globalutilities","SignIn","Loadable","loader","Promise","all","e","then","bind","resetPassword","DefaultLayout","PrivateRoute","Component","component","Route","render","props","getItem","Redirect","to","RedirectRoute","App","es","BrowserRouter","Switch","exact","path","name","App_RedirectRoute","App_PrivateRoute","Boolean","hostname","match","ReactDOM","src_App_0","getElementById","navigator","serviceWorker","ready","registration","unregister","require","config","initialState","userEmail","appReducer","combineReducers","form","state","length","action","userName","role","userId","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","createStore","applyMiddleware","thunk","promiseMiddleware"],"mappings":"0FAAAA,EAAAC,EAAAC,EAAA,sBAAAC,IAAAH,EAAAC,EAAAC,EAAA,sBAAAE,IAAAJ,EAAAC,EAAAC,EAAA,sBAAAG,IAAAL,EAAAC,EAAAC,EAAA,sBAAAI,IAAA,IAAAC,EAAAP,EA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D,QAAS,GACT6E,SAAU,GACVC,KAAM,GACNC,OAAQ,GACR/H,MAAM,KCfVjC,EAAAC,EAAAC,EAAA,sBAAAiD,IAMA,IAAM8G,EAAmB1E,OAAO2E,sCAAwCC,IAG3DhH,EAAQiH,YDWY,WAAsB,IAArBT,EAAqB1F,UAAA2F,OAAA,QAAA1D,IAAAjC,UAAA,GAAAA,UAAA,GAAf,GAAI4F,EAAW5F,UAAA2F,OAAA,EAAA3F,UAAA,QAAAiC,EACrD,OAAQ2D,EAAOxG,MACf,KAAKqC,IAIH,OAHAjB,QAAQC,IAAI,oDACZU,aAAaC,QAAQ,QAAS,IAC9BD,aAAaC,QAAQ,QAAS,IACvB1D,OAAA6B,EAAA,EAAA7B,CAAA,GAAI2H,GACb,QACE,OAAOE,EAAWG,EAAOE,KCjB3B,GAEAI,EAAiBI,YACfC,IACAC","file":"static/js/main.72fc805c.chunk.js","sourcesContent":["import React from \"react\"\n\nexport const Loader = () => (\n
\n
\n
\n
\n
\n
\n
\n
\n
\n);\n\nexport const designationValue = [\n \"H.R. manager\",\n \"Android developer\",\n \"Web developer\",\n \"Project Manager\",\n \"Business Development Manager\",\n \"Internet Marketing Head\",\n \"Graphic Designer\",\n \"COO\",\n \"CTO\",\n \"CEO/MD\"\n];\n\nexport const qualificationValue = [\n \"Bachelor of engineering\",\n \"Bsc\",\n \"Msc\",\n \"BCA\",\n \"MCA\",\n \"H.S.C\",\n \"Diploma\",\n \"D2D\"\n];\nexport const totalMonths = [\n \"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\",\n \"August\", \"September\", \"October\", \"November\", \"December\"\n];\n","import axios from \"axios\"\nimport {store} from \"../../store\"\nimport {\n CHECKAUTH_SUCCESS,\n SIGN_OUT,\n} from \"./types\"\nimport appConfig from \"../../../config\";\n\nexport const checkAuth = async (auth) => {\n try {\n const token = appConfig.authToken() || auth || \"\"\n if(token){\n const result = await axios.get(`${appConfig.appUrl}/auth/checkauth`, {\n headers: {\n \"authorization\" : token,\n \"Content-Type\": \"application/json\"\n }\n });\n if (result && result.data && result.data.success) {\n store.dispatch({\n type: CHECKAUTH_SUCCESS,\n payload: { ...(result.data && result.data.loginDetails), token }\n });\n } else {\n alert(\"UnAuthorized person\")\n signOut()\n }\n }\n } catch (error) {\n signOut()\n }\n}\nexport const checkMail = async (data) => {\n let result = {};\n try {\n const res = await axios.post(`${appConfig.appUrl}/auth/signin`,data);\n result = res.data || {};\n return { success: true, data: result }\n } catch (err) {\n console.log(\"error in getting time info : \", err);\n return { success: false, message: (err && err.data && err.data.error) || \"something went wrong\" }\n }\n};\nexport const forgotPassword = async (emailId) => {\n\n try {\n const res = await axios.post(`${appConfig.appUrl}/auth/forgotpassword`,{emailId});\n return res && res.data\n } catch (err) {\n console.log(\"error in getting time info : \", err);\n return { success: false, message: (err && err.data && err.data.error) || \"something went wrong\" }\n }\n};\n\nexport const signOut = () => {\n console.log(\"in action signOut\")\n localStorage.setItem(\"token\", \"\")\n localStorage.setItem(\"email\", \"\")\n localStorage.clear()\n window.location.href=\"/login\"\n return {\n type: SIGN_OUT\n }\n}\n","export * from \"./auth\"\nexport * from \"./types\"\n","export const CHECKAUTH_SUCCESS = \"CHECKAUTH_SUCCESS\"\nexport const SIGN_OUT = \"SIGN_OUT\"\n","/*\n* required polyfills\n*/\n\n/** IE9, IE10 and IE11 requires all of the following polyfills. **/\n// import 'core-js/es6/symbol'\n// import 'core-js/es6/object'\n// import 'core-js/es6/function'\n// import 'core-js/es6/parse-int'\n// import 'core-js/es6/parse-float'\n// import 'core-js/es6/number'\n// import 'core-js/es6/math'\n// import 'core-js/es6/string'\n// import 'core-js/es6/date'\nimport 'core-js/es6/array'\n// import 'core-js/es6/regexp'\nimport 'core-js/es6/map'\n// import 'core-js/es6/weak-map'\nimport 'core-js/es6/set'\nimport 'core-js/es7/object'\nimport 'core-js/es6/promise'\n\n/** IE10 and IE11 requires the following for the Reflect API. */\n// import 'core-js/es6/reflect'\n\n/** Evergreen browsers require these. **/\n// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.\n// import 'core-js/es7/reflect'\n\n// CustomEvent() constructor functionality in IE9, IE10, IE11\n(function () {\n\n if ( typeof window.CustomEvent === \"function\" ) return false\n\n function CustomEvent ( event, params ) {\n params = params || { bubbles: false, cancelable: false, detail: undefined }\n var evt = document.createEvent( 'CustomEvent' )\n evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail )\n return evt\n }\n\n CustomEvent.prototype = window.Event.prototype\n\n window.CustomEvent = CustomEvent\n})()\n","import React, {Component} from \"react\";\nimport {BrowserRouter, Route, Switch, Redirect} from \"react-router-dom\";\nimport {Loader} from \"./globalutilities\"\nimport Loadable from 'react-loadable';\nimport {Provider} from 'react-redux';\nimport {store} from \"./Services/store\"\nimport \"./App.scss\";\nimport \"ladda/dist/ladda-themeless.min.css\";\nimport 'antd/dist/antd.css';\nimport \"react-select/dist/react-select.min.css\";\nimport 'react-toastify/dist/ReactToastify.css';\nimport {checkAuth} from \"./Services/actions/auth\";\n\nconst loading = () => \n\n\nconst SignIn = Loadable({\n loader: () => import(\"./views/Login\"),\n loading\n});\n\nconst resetPassword = Loadable({\n loader: () => import(\"./views/ResetPassword\"),\n loading\n});\n\nconst DefaultLayout = Loadable({\n loader: () => import('./containers/DefaultLayout'),\n loading\n});\n\nconst PrivateRoute = ({component: Component}) => (\n \n localStorage.getItem(\"token\") ? : \n }/>\n);\nconst RedirectRoute = ({component: Component}) => (\n \n localStorage.getItem(\"token\") ? : \n }/>\n);\n\nclass App extends Component {\n\n async componentWillMount() {\n await checkAuth()\n }\n\n render() {\n return (\n \n \n \n \n \n \n \n \n \n )\n }\n}\n\nexport default App\n","// In production, we register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://goo.gl/SC7cgQ'\n );\n });\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n\n // Execute callback\n if (config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import 'react-app-polyfill/ie9'; // For IE 9-11 support\nimport 'react-app-polyfill/ie11'; // For IE 11 support\nimport './polyfill'\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\nserviceWorker.unregister();\n","require(\"dotenv\").config()\n\nconst appConfig = {\n appUrl: \"https://bvmadmin.bvm.now.sh\",\n token: localStorage.getItem(\"token\") || \"\",\n authToken: () => localStorage.getItem(\"token\") || \"\"\n};\n\nexport default appConfig\n","import {\n CHECKAUTH_SUCCESS,\n SIGN_OUT\n} from \"../actions/auth/types\"\n\nconst initialState = {\n userEmail: \"\",\n}\n\nexport const authReducer = (state = initialState, action) => {\n const {payload} = action\n switch (action.type) {\n case CHECKAUTH_SUCCESS:\n console.log(\"auth action : \", action)\n return {\n ...state,\n ...payload\n }\n case SIGN_OUT:\n console.log(\"reducer SIGN_OUT\")\n return {...initialState}\n default:\n return state\n }\n}\n","import { combineReducers } from \"redux\"\nimport {authReducer} from \"./authReducer\"\nimport { SIGN_OUT } from \"../actions/auth/types\"\n\nconst appReducer = combineReducers({\n form:{},\n auth:authReducer,\n})\n\nconst initialState = {\n auth:{\n emailId: \"\",\n userName: \"\",\n role: \"\",\n userId: \"\",\n token:\"\"\n }\n}\n\n\nexport const appGlobalReducers = (state={}, action) => {\n switch (action.type) {\n case SIGN_OUT:\n console.log(\"resetting the entire state to wipe out the state\")\n localStorage.setItem(\"token\", \"\")\n localStorage.setItem(\"email\", \"\")\n return {...initialState}\n default:\n return appReducer(state, action)\n }\n}\n","import { createStore, applyMiddleware, compose } from \"redux\"\nimport promiseMiddleware from \"redux-promise\"\nimport thunk from \"redux-thunk\"\n\nimport {appGlobalReducers} from \"./reducers\"\n\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\n\n\nexport const store = createStore(\n appGlobalReducers,\n {},\n // eslint-disable-next-line no-underscore-dangle\n composeEnhancers(applyMiddleware(\n thunk,\n promiseMiddleware,\n ))\n)\n"],"sourceRoot":""}