{"version":3,"sources":["redux/auth/actions.js","helpers/Utils.js","helpers/Firebase.js","index.js","assets/css/sass/themes lazy /^/gogo/..*/.scss$/ groupOptions: {} namespace object","redux/contants.js","redux/settings/reducer.js","redux/menu/reducer.js","redux/auth/reducer.js","redux/reducers.js","services/login.js","redux/auth/saga.js","redux/sagas.js","redux/store.js","reportWebVitals.js","AppRenderer.js","constants/defaultValues.js"],"names":["loginUser","user","history","type","LOGIN_USER_REQUEST","payload","loginUserSuccess","LOGIN_USER_SUCCESS","loginUserError","message","LOGIN_USER_ERROR","forgotPasswordSuccess","forgotUserMail","FORGOT_PASSWORD_SUCCESS","forgotPasswordError","FORGOT_PASSWORD_ERROR","resetPasswordSuccess","newPassword","RESET_PASSWORD_SUCCESS","resetPasswordError","RESET_PASSWORD_ERROR","registerUser","REGISTER_USER","registerUserSuccess","REGISTER_USER_SUCCESS","registerUserError","REGISTER_USER_ERROR","logoutUser","LOGOUT_USER","userTokenRefreshRequest","userTokenRefreshSuccess","userTokenRefreshFailure","getDayName","date","Date","locale","toLocaleDateString","weekday","getDirection","direction","defaultDirection","localStorage","getItem","localValue","error","console","log","isRtl","getCurrentColor","currentColor","defaultColor","themeColorStorageKey","setCurrentColor","color","setItem","getCurrentRadius","currentRadius","themeRadiusStorageKey","setCurrentRadius","radius","getCurrentLanguage","language","defaultLocale","localeOptions","filter","x","id","length","setCurrentLanguage","getCurrentUser","JSON","parse","setCurrentUser","stringify","removeItem","guardarDatosFormulario","datos","obtenerDatosFormulario","guardarTipoRegistrro","tipo","obtenerTipoRegistro","quitarTildes","value","toLowerCase","normalize","replace","formatoMoneda","valor","Intl","NumberFormat","style","currency","format","delay","ms","Promise","res","setTimeout","firebase","initializeApp","firebaseConfig","auth","database","isMultiColorActive","isDarkSwitchActive","then","require","map","webpackAsyncContext","req","__webpack_require__","o","resolve","e","Error","code","ids","t","keys","Object","module","exports","CHANGE_LOCALE","FORGOT_PASSWORD_REQUEST","RESET_PASSWORD_REQUEST","MENU_SET_CLASSNAMES","MENU_CONTAINER_ADD_CLASSNAME","MENU_CLICK_MOBILE_MENU","MENU_CHANGE_DEFAULT_CLASSES","MENU_CHANGE_HAS_SUB_ITEM_STATUS","INIT_STATE","containerClassnames","defaultMenuType","subHiddenBreakpoint","menuHiddenBreakpoint","menuClickCount","selectedMenuHasSubItems","currentUser","isAuthGuardActive","resetPasswordCode","loading","reducers","combineReducers","menu","state","action","settings","authUser","baseUrl","urlBase","obtnerModulosMenus","headers","axios","get","login","body","post","watchLoginUser","watchRegisterUser","watchLogoutUser","watchForgotPassword","watchResetPassword","rootSaga","takeEvery","loginWithEmailPassword","loginWithEmailPasswordAsync","email","password","username","catch","response","data","call","item","idPerfil","activo","activado","token","role","rol","Authorization","modulo","push","adminRoot","window","location","reload","put","registerWithEmailPassword","registerWithEmailPasswordAsync","createUserWithEmailAndPassword","uid","logout","logoutAsync","signOut","forgotPassword","forgotPasswordAsync","sendPasswordResetEmail","forgotPasswordStatus","resetPassword","resetPasswordAsync","confirmPasswordReset","resetPasswordStatus","all","fork","authSagas","enhancer","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","sagaMiddleware","createSagaMiddleware","middlewares","configureStore","initialState","store","createStore","applyMiddleware","run","sagas","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","App","React","lazy","Main","fallback","className","ReactDOM","render","document","getElementById","UserRole","SUPER","Admin","Editor","Natural","Juridica","Contador","Contable","Persona","SinMembresia","auxiliar","name","apiKey","authDomain","databaseURL","projectId","storageBucket","messagingSenderId","searchPath","title","img","colors","urlBaseReact","diasSemana","_id","dia","estado","APROBADO","PENDIENTE","RECHAZADO","optionsDeDias","label","registro","Formulariocliente","FormularioUsuario","Estatuto"],"mappings":"8HAAA,ueAgBaA,EAAY,SAACC,EAAMC,GAAO,MAAM,CAC3CC,KAAMC,IACNC,QAAS,CAAEJ,OAAMC,WAClB,EACYI,EAAmB,SAACL,GAAI,MAAM,CACzCE,KAAMI,IACNF,Q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0L,MAAO,MACpB,CAAE1L,MAAO,GAAI0L,MAAO,MACpB,CAAE1L,MAAO,GAAI0L,MAAO,MACpB,CAAE1L,MAAO,GAAI0L,MAAO,MACpB,CAAE1L,MAAO,GAAI0L,MAAO,OAGTC,EAAW,WACXC,EAAoB,UACpBC,EAAoB,UAEpBC,EAAW,0B","file":"static/js/main.9d13b447.chunk.js","sourcesContent":["import {\r\n LOGIN_USER_REQUEST,\r\n LOGIN_USER_SUCCESS,\r\n LOGOUT_USER,\r\n REGISTER_USER,\r\n REGISTER_USER_SUCCESS,\r\n LOGIN_USER_ERROR,\r\n REGISTER_USER_ERROR,\r\n FORGOT_PASSWORD_REQUEST,\r\n FORGOT_PASSWORD_SUCCESS,\r\n FORGOT_PASSWORD_ERROR,\r\n RESET_PASSWORD_REQUEST,\r\n RESET_PASSWORD_SUCCESS,\r\n RESET_PASSWORD_ERROR,\r\n} from '../contants';\r\n\r\nexport const loginUser = (user, history) => ({\r\n type: LOGIN_USER_REQUEST,\r\n payload: { user, history },\r\n});\r\nexport const loginUserSuccess = (user) => ({\r\n type: LOGIN_USER_SUCCESS,\r\n payload: user,\r\n});\r\nexport const loginUserError = (message) => ({\r\n type: LOGIN_USER_ERROR,\r\n payload: { message },\r\n});\r\n\r\nexport const forgotPassword = (forgotUserMail, history) => ({\r\n type: FORGOT_PASSWORD_REQUEST,\r\n payload: { forgotUserMail, history },\r\n});\r\nexport const forgotPasswordSuccess = (forgotUserMail) => ({\r\n type: FORGOT_PASSWORD_SUCCESS,\r\n payload: forgotUserMail,\r\n});\r\nexport const forgotPasswordError = (message) => ({\r\n type: FORGOT_PASSWORD_ERROR,\r\n payload: { message },\r\n});\r\n\r\nexport const resetPassword = ({ resetPasswordCode, newPassword, history }) => ({\r\n type: RESET_PASSWORD_REQUEST,\r\n payload: { resetPasswordCode, newPassword, history },\r\n});\r\nexport const resetPasswordSuccess = (newPassword) => ({\r\n type: RESET_PASSWORD_SUCCESS,\r\n payload: newPassword,\r\n});\r\nexport const resetPasswordError = (message) => ({\r\n type: RESET_PASSWORD_ERROR,\r\n payload: { message },\r\n});\r\n\r\nexport const registerUser = (user, history) => ({\r\n type: REGISTER_USER,\r\n payload: { user, history },\r\n});\r\nexport const registerUserSuccess = (user) => ({\r\n type: REGISTER_USER_SUCCESS,\r\n payload: user,\r\n});\r\nexport const registerUserError = (message) => ({\r\n type: REGISTER_USER_ERROR,\r\n payload: { message },\r\n});\r\n\r\nexport const logoutUser = (history) => ({\r\n type: LOGOUT_USER,\r\n payload: { history },\r\n});\r\n\r\nexport function userTokenRefreshRequest() {\r\n return {\r\n type: 'USER_TOKEN_REFRESH_REQUEST',\r\n payload: 'trying to refresh token',\r\n };\r\n}\r\n\r\nexport function userTokenRefreshSuccess() {\r\n return {\r\n type: 'USER_TOKEN_REFRESH_SUCCESS',\r\n payload: 'token refresh success',\r\n };\r\n}\r\n\r\nexport function userTokenRefreshFailure() {\r\n return {\r\n type: 'USER_TOKEN_REFRESH_FAILURE',\r\n payload: 'token refresh failed',\r\n };\r\n}\r\n","import {\r\n defaultDirection,\r\n defaultLocale,\r\n defaultColor,\r\n localeOptions,\r\n themeColorStorageKey,\r\n themeRadiusStorageKey,\r\n} from 'constants/defaultValues';\r\n\r\nexport const mapOrder = (array, order, key) => {\r\n array.sort((a, b) => {\r\n const A = a[key];\r\n const B = b[key];\r\n if (order.indexOf(`${A}`) > order.indexOf(`${B}`)) {\r\n return 1;\r\n }\r\n return -1;\r\n });\r\n return array;\r\n};\r\n\r\nexport const getDayName = (date = new Date(), locale = 'en-US') => {\r\n return date.toLocaleDateString(locale, { weekday: 'long' });\r\n};\r\n\r\nexport const getDateWithFormat = () => {\r\n const today = new Date();\r\n let dd = today.getDate();\r\n let mm = today.getMonth() + 1; // January is 0!\r\n\r\n const yyyy = today.getFullYear();\r\n if (dd < 10) {\r\n dd = `0${dd}`;\r\n }\r\n if (mm < 10) {\r\n mm = `0${mm}`;\r\n }\r\n return `${dd}.${mm}.${yyyy}`;\r\n};\r\n\r\nexport const getCurrentTime = () => {\r\n const now = new Date();\r\n return `${now.getHours()}:${now.getMinutes()}`;\r\n};\r\n\r\nexport const getDirection = () => {\r\n let direction = defaultDirection;\r\n\r\n try {\r\n if (localStorage.getItem('direction')) {\r\n const localValue = localStorage.getItem('direction');\r\n if (localValue === 'rtl' || localValue === 'ltr') {\r\n direction = localValue;\r\n }\r\n }\r\n } catch (error) {\r\n console.log('>>>>: src/helpers/Utils.js : getDirection -> error', error);\r\n direction = defaultDirection;\r\n }\r\n return {\r\n direction,\r\n isRtl: direction === 'rtl',\r\n };\r\n};\r\nexport const setDirection = (localValue) => {\r\n let direction = 'ltr';\r\n if (localValue === 'rtl' || localValue === 'ltr') {\r\n direction = localValue;\r\n }\r\n try {\r\n localStorage.setItem('direction', direction);\r\n } catch (error) {\r\n console.log('>>>>: src/helpers/Utils.js : setDirection -> error', error);\r\n }\r\n};\r\n\r\nexport const getCurrentColor = () => {\r\n let currentColor = defaultColor;\r\n try {\r\n if (localStorage.getItem(themeColorStorageKey)) {\r\n currentColor = localStorage.getItem(themeColorStorageKey);\r\n }\r\n } catch (error) {\r\n console.log('>>>>: src/helpers/Utils.js : getCurrentColor -> error', error);\r\n currentColor = defaultColor;\r\n }\r\n return currentColor;\r\n};\r\n\r\nexport const setCurrentColor = (color) => {\r\n try {\r\n localStorage.setItem(themeColorStorageKey, color);\r\n } catch (error) {\r\n console.log('>>>>: src/helpers/Utils.js : setCurrentColor -> error', error);\r\n }\r\n};\r\n\r\nexport const getCurrentRadius = () => {\r\n let currentRadius = 'rounded';\r\n try {\r\n if (localStorage.getItem(themeRadiusStorageKey)) {\r\n currentRadius = localStorage.getItem(themeRadiusStorageKey);\r\n }\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : getCurrentRadius -> error',\r\n error\r\n );\r\n currentRadius = 'rounded';\r\n }\r\n return currentRadius;\r\n};\r\nexport const setCurrentRadius = (radius) => {\r\n try {\r\n localStorage.setItem(themeRadiusStorageKey, radius);\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : setCurrentRadius -> error',\r\n error\r\n );\r\n }\r\n};\r\n\r\nexport const getCurrentLanguage = () => {\r\n let language = defaultLocale;\r\n try {\r\n language =\r\n localStorage.getItem('currentLanguage') &&\r\n localeOptions.filter(\r\n (x) => x.id === localStorage.getItem('currentLanguage')\r\n ).length > 0\r\n ? localStorage.getItem('currentLanguage')\r\n : defaultLocale;\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : getCurrentLanguage -> error',\r\n error\r\n );\r\n language = defaultLocale;\r\n }\r\n return language;\r\n};\r\nexport const setCurrentLanguage = (locale) => {\r\n try {\r\n localStorage.setItem('currentLanguage', locale);\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : setCurrentLanguage -> error',\r\n error\r\n );\r\n }\r\n};\r\n\r\nexport const getCurrentUser = () => {\r\n let user = null;\r\n try {\r\n user =\r\n localStorage.getItem('calendartax_current_user') != null\r\n ? JSON.parse(localStorage.getItem('calendartax_current_user'))\r\n : null;\r\n } catch (error) {\r\n console.log('>>>>: src/helpers/Utils.js : getCurrentUser -> error', error);\r\n user = null;\r\n }\r\n\r\n return user;\r\n};\r\n\r\nexport const setCurrentUser = (user) => {\r\n try {\r\n if (user) {\r\n localStorage.setItem('calendartax_current_user', JSON.stringify(user));\r\n } else {\r\n localStorage.removeItem('calendartax_current_user');\r\n }\r\n } catch (error) {\r\n console.log('>>>>: src/helpers/Utils.js : setCurrentUser -> error', error);\r\n }\r\n};\r\n\r\nexport const guardarDatosFormulario = (datos) => {\r\n try {\r\n if (datos) {\r\n localStorage.setItem('datosFormulario', JSON.stringify(datos));\r\n } else {\r\n localStorage.removeItem('datosFormulario');\r\n }\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : guardarDatosFormulario -> error',\r\n error\r\n );\r\n }\r\n};\r\n\r\nexport const obtenerDatosFormulario = () => {\r\n let datos = null;\r\n try {\r\n datos =\r\n localStorage.getItem('datosFormulario') != null\r\n ? JSON.parse(localStorage.getItem('datosFormulario'))\r\n : null;\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : obtenerDatosFormulario -> error',\r\n error\r\n );\r\n datos = null;\r\n }\r\n return datos;\r\n};\r\n\r\nexport const guardarTipoRegistrro = (tipo) => {\r\n try {\r\n if (tipo) {\r\n localStorage.setItem('tipoRegistro', tipo);\r\n } else {\r\n localStorage.removeItem('tipoRegistro');\r\n }\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : guardarTipoRegistro -> error',\r\n error\r\n );\r\n }\r\n};\r\n\r\nexport const obtenerTipoRegistro = () => {\r\n let tipo = null;\r\n try {\r\n tipo = localStorage.getItem('tipoRegistro');\r\n } catch (error) {\r\n console.log(\r\n '>>>>: src/helpers/Utils.js : obtenerTipoRegistro -> error',\r\n error\r\n );\r\n tipo = null;\r\n }\r\n return tipo;\r\n};\r\n\r\nexport const quitarTildes = (value) => {\r\n return value\r\n .toLowerCase()\r\n .normalize('NFD')\r\n .replace(/[\\u0300-\\u036f]/g, '');\r\n};\r\n\r\nexport const formatoMoneda = (valor) => {\r\n const valorCop = new Intl.NumberFormat('es-CO', {\r\n style: 'currency',\r\n currency: 'COP',\r\n }).format(valor);\r\n return valorCop;\r\n};\r\nexport const delay = (ms) => new Promise((res) => setTimeout(res, ms));\r\n","import firebase from 'firebase/app';\r\nimport 'firebase/auth';\r\nimport 'firebase/database';\r\n\r\nimport { firebaseConfig } from 'constants/defaultValues';\r\n\r\nfirebase.initializeApp(firebaseConfig);\r\n\r\nconst auth = firebase.auth();\r\nconst database = firebase.database();\r\n\r\nexport { auth, database };\r\n","/* eslint-disable global-require */\r\nimport './assets/css/vendor/bootstrap.min.css';\r\nimport './assets/css/vendor/bootstrap.rtl.only.min.css';\r\nimport 'react-circular-progressbar/dist/styles.css';\r\nimport 'react-perfect-scrollbar/dist/css/styles.css';\r\nimport 'react-big-calendar/lib/css/react-big-calendar.css';\r\nimport 'react-image-lightbox/style.css';\r\nimport 'video.js/dist/video-js.css';\r\nimport {\r\n isMultiColorActive,\r\n defaultColor,\r\n isDarkSwitchActive,\r\n} from './constants/defaultValues';\r\nimport { getCurrentColor, setCurrentColor } from './helpers/Utils';\r\n\r\nconst color =\r\n isMultiColorActive || isDarkSwitchActive ? getCurrentColor() : defaultColor;\r\nsetCurrentColor(color);\r\n\r\nconst render = () => {\r\n import(`./assets/css/sass/themes/gogo.${color}.scss`).then(() => {\r\n require('./AppRenderer');\r\n });\r\n};\r\nrender();\r\n","var map = {\n\t\"./gogo.dark.bluenavy.scss\": [\n\t\t89,\n\t\t78\n\t],\n\t\"./gogo.dark.blueolympic.scss\": [\n\t\t90,\n\t\t79\n\t],\n\t\"./gogo.dark.blueyale.scss\": [\n\t\t91,\n\t\t80\n\t],\n\t\"./gogo.dark.greenlime.scss\": [\n\t\t92,\n\t\t81\n\t],\n\t\"./gogo.dark.greenmoss.scss\": [\n\t\t93,\n\t\t82\n\t],\n\t\"./gogo.dark.greysteel.scss\": [\n\t\t94,\n\t\t83\n\t],\n\t\"./gogo.dark.orangecarrot.scss\": [\n\t\t95,\n\t\t84\n\t],\n\t\"./gogo.dark.purplemonster.scss\": [\n\t\t96,\n\t\t85\n\t],\n\t\"./gogo.dark.redruby.scss\": [\n\t\t97,\n\t\t86\n\t],\n\t\"./gogo.dark.yellowgranola.scss\": [\n\t\t98,\n\t\t87\n\t],\n\t\"./gogo.light.bluenavy.scss\": [\n\t\t99,\n\t\t88\n\t],\n\t\"./gogo.light.blueolympic.scss\": [\n\t\t100,\n\t\t89\n\t],\n\t\"./gogo.light.blueyale.scss\": [\n\t\t101,\n\t\t90\n\t],\n\t\"./gogo.light.greenlime.scss\": [\n\t\t102,\n\t\t91\n\t],\n\t\"./gogo.light.greenmoss.scss\": [\n\t\t103,\n\t\t92\n\t],\n\t\"./gogo.light.greysteel.scss\": [\n\t\t104,\n\t\t93\n\t],\n\t\"./gogo.light.orangecarrot.scss\": [\n\t\t105,\n\t\t94\n\t],\n\t\"./gogo.light.purplemonster.scss\": [\n\t\t106,\n\t\t95\n\t],\n\t\"./gogo.light.redruby.scss\": [\n\t\t107,\n\t\t96\n\t],\n\t\"./gogo.light.yellowgranola.scss\": [\n\t\t108,\n\t\t97\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 7);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 56;\nmodule.exports = webpackAsyncContext;","/* SETTINGS */\r\nexport const CHANGE_LOCALE = 'CHANGE_LOCALE';\r\n\r\n/* AUTH */\r\nexport const LOGIN_USER_REQUEST = 'LOGIN_USER_REQUEST';\r\nexport const LOGIN_USER_SUCCESS = 'LOGIN_USER_SUCCESS';\r\nexport const LOGIN_USER_ERROR = 'LOGIN_USER_ERROR';\r\nexport const REGISTER_USER = 'REGISTER_USER';\r\nexport const REGISTER_USER_SUCCESS = 'REGISTER_USER_SUCCESS';\r\nexport const REGISTER_USER_ERROR = 'REGISTER_USER_ERROR';\r\nexport const LOGOUT_USER = 'LOGOUT_USER';\r\nexport const FORGOT_PASSWORD_REQUEST = 'FORGOT_PASSWORD_REQUEST';\r\nexport const FORGOT_PASSWORD_SUCCESS = 'FORGOT_PASSWORD_SUCCESS';\r\nexport const FORGOT_PASSWORD_ERROR = 'FORGOT_PASSWORD_ERROR';\r\nexport const RESET_PASSWORD_REQUEST = 'RESET_PASSWORD_REQUEST';\r\nexport const RESET_PASSWORD_SUCCESS = 'RESET_PASSWORD_SUCCESS';\r\nexport const RESET_PASSWORD_ERROR = 'RESET_PASSWORD_ERROR';\r\nexport const TOKEN_EXPIRED_ERROR = 'TOKEN_EXPIRED_ERROR';\r\n\r\n/* MENU */\r\nexport const MENU_SET_CLASSNAMES = 'MENU_SET_CLASSNAMES';\r\nexport const MENU_CONTAINER_ADD_CLASSNAME = 'MENU_CONTAINER_ADD_CLASSNAME';\r\nexport const MENU_CLICK_MOBILE_MENU = 'MENU_CLICK_MOBILE_MENU';\r\nexport const MENU_CHANGE_DEFAULT_CLASSES = 'MENU_CHANGE_DEFAULT_CLASSES';\r\nexport const MENU_CHANGE_HAS_SUB_ITEM_STATUS =\r\n 'MENU_CHANGE_HAS_SUB_ITEM_STATUS';\r\n","import { getCurrentLanguage } from 'helpers/Utils';\r\nimport { CHANGE_LOCALE } from '../contants';\r\n\r\nconst INIT_STATE = {\r\n locale: getCurrentLanguage(),\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case CHANGE_LOCALE:\r\n return { ...state, locale: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n defaultMenuType,\r\n subHiddenBreakpoint,\r\n menuHiddenBreakpoint,\r\n} from 'constants/defaultValues';\r\nimport {\r\n MENU_SET_CLASSNAMES,\r\n MENU_CONTAINER_ADD_CLASSNAME,\r\n MENU_CLICK_MOBILE_MENU,\r\n MENU_CHANGE_DEFAULT_CLASSES,\r\n MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n} from '../contants';\r\n\r\nconst INIT_STATE = {\r\n containerClassnames: defaultMenuType,\r\n subHiddenBreakpoint,\r\n menuHiddenBreakpoint,\r\n menuClickCount: 0,\r\n selectedMenuHasSubItems: defaultMenuType === 'menu-default', // if you use menu-sub-hidden as default menu type, set value of this variable to false\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case MENU_CHANGE_HAS_SUB_ITEM_STATUS:\r\n return { ...state, selectedMenuHasSubItems: action.payload };\r\n\r\n case MENU_SET_CLASSNAMES:\r\n return {\r\n ...state,\r\n containerClassnames: action.payload.containerClassnames,\r\n menuClickCount: action.payload.menuClickCount,\r\n };\r\n\r\n case MENU_CLICK_MOBILE_MENU:\r\n return {\r\n ...state,\r\n containerClassnames: action.payload.containerClassnames,\r\n menuClickCount: action.payload.menuClickCount,\r\n };\r\n\r\n case MENU_CONTAINER_ADD_CLASSNAME:\r\n return { ...state, containerClassnames: action.payload };\r\n\r\n case MENU_CHANGE_DEFAULT_CLASSES:\r\n return { ...state, containerClassnames: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import { getCurrentUser } from 'helpers/Utils';\r\nimport { isAuthGuardActive, currentUser } from 'constants/defaultValues';\r\nimport {\r\n LOGIN_USER_REQUEST,\r\n LOGIN_USER_SUCCESS,\r\n LOGIN_USER_ERROR,\r\n REGISTER_USER,\r\n REGISTER_USER_SUCCESS,\r\n REGISTER_USER_ERROR,\r\n LOGOUT_USER,\r\n FORGOT_PASSWORD_REQUEST,\r\n FORGOT_PASSWORD_SUCCESS,\r\n FORGOT_PASSWORD_ERROR,\r\n RESET_PASSWORD_REQUEST,\r\n RESET_PASSWORD_SUCCESS,\r\n RESET_PASSWORD_ERROR,\r\n} from '../contants';\r\n\r\nconst INIT_STATE = {\r\n currentUser: isAuthGuardActive ? currentUser : getCurrentUser(),\r\n forgotUserMail: '',\r\n newPassword: '',\r\n resetPasswordCode: '',\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case LOGIN_USER_REQUEST:\r\n return { ...state, loading: true, error: '' };\r\n case LOGIN_USER_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: action.payload,\r\n error: '',\r\n };\r\n case LOGIN_USER_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: null,\r\n error: action.payload.message,\r\n };\r\n case FORGOT_PASSWORD_REQUEST:\r\n return { ...state, loading: true, error: '' };\r\n case FORGOT_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n forgotUserMail: action.payload,\r\n error: '',\r\n };\r\n case FORGOT_PASSWORD_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n forgotUserMail: '',\r\n error: action.payload.message,\r\n };\r\n case RESET_PASSWORD_REQUEST:\r\n return { ...state, loading: true, error: '' };\r\n case RESET_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n newPassword: action.payload,\r\n resetPasswordCode: '',\r\n error: '',\r\n };\r\n case RESET_PASSWORD_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n newPassword: '',\r\n resetPasswordCode: '',\r\n error: action.payload.message,\r\n };\r\n case REGISTER_USER:\r\n return { ...state, loading: true, error: '' };\r\n case REGISTER_USER_SUCCESS:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: action.payload,\r\n error: '',\r\n };\r\n case REGISTER_USER_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n currentUser: null,\r\n error: action.payload.message,\r\n };\r\n case LOGOUT_USER:\r\n return { ...state, currentUser: null, error: '' };\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import { combineReducers } from 'redux';\r\nimport settings from './settings/reducer';\r\nimport menu from './menu/reducer';\r\nimport authUser from './auth/reducer';\r\n\r\nconst reducers = combineReducers({\r\n menu,\r\n settings,\r\n authUser,\r\n});\r\n\r\nexport default reducers;\r\n","import axios from 'axios';\r\n// import { encode } from 'base-64';\r\nimport { urlBase } from '../constants/defaultValues';\r\n\r\nconst baseUrl = urlBase;\r\n\r\nconst login = (body) => {\r\n return axios.post(`${baseUrl}/auth/login`, body);\r\n};\r\n\r\nexport const obtnerModulosMenus = (id, headers) =>\r\n axios.get(`${baseUrl}/auth/modulos_menus/${id}`, { headers });\r\n\r\nexport default login;\r\n","/* eslint-disable */\r\nimport { all, call, fork, put, takeEvery } from 'redux-saga/effects';\r\nimport { auth } from 'helpers/Firebase';\r\nimport { adminRoot, currentUser } from 'constants/defaultValues';\r\nimport { setCurrentUser } from 'helpers/Utils';\r\nimport jwt_decode from 'jwt-decode';\r\nimport {\r\n LOGIN_USER_REQUEST,\r\n REGISTER_USER,\r\n LOGOUT_USER,\r\n FORGOT_PASSWORD_REQUEST,\r\n RESET_PASSWORD_REQUEST,\r\n} from '../contants';\r\n\r\nimport {\r\n loginUserSuccess,\r\n loginUserError,\r\n registerUserSuccess,\r\n registerUserError,\r\n forgotPasswordSuccess,\r\n forgotPasswordError,\r\n resetPasswordSuccess,\r\n resetPasswordError,\r\n userTokenRefreshRequest,\r\n userTokenRefreshSuccess,\r\n userTokenRefreshFailure,\r\n} from './actions';\r\n\r\nimport login, { obtnerModulosMenus } from '../../services/login';\r\n\r\nexport function* watchLoginUser() {\r\n yield takeEvery(LOGIN_USER_REQUEST, loginWithEmailPassword);\r\n}\r\n\r\nconst loginWithEmailPasswordAsync = async (email, password) => {\r\n const body = {\r\n username: email,\r\n password,\r\n };\r\n\r\n return login(body)\r\n .then((user) => user)\r\n .catch((error) => error.response.data);\r\n};\r\n\r\nfunction* loginWithEmailPassword({ payload }) {\r\n const { email, password } = payload.user;\r\n const { history } = payload;\r\n\r\n const loginUser = yield call(loginWithEmailPasswordAsync, email, password);\r\n\r\n if (!loginUser.message) {\r\n console.log('este es el item', loginUser.data);\r\n\r\n console.log(loginUser);\r\n const item = {\r\n id: loginUser.data.id,\r\n idPerfil: loginUser.data.id,\r\n activo: loginUser.data.activado,\r\n token: loginUser.data.token,\r\n role: loginUser.data.rol,\r\n email: loginUser.data.username,\r\n };\r\n console.log(item.token);\r\n const headers = {\r\n Authorization: `Bearer ${item.token}`,\r\n };\r\n obtnerModulosMenus(item.idPerfil, headers).then((response) => {\r\n item.modulo = response.data;\r\n setCurrentUser(item);\r\n history.push(adminRoot);\r\n window.location.reload(true);\r\n });\r\n yield put(loginUserSuccess(item));\r\n } else {\r\n yield put(loginUserError(loginUser.message));\r\n }\r\n\r\n // } catch (error) {\r\n // yield put(loginUserError(error));\r\n // }\r\n}\r\n\r\nexport function* watchRegisterUser() {\r\n yield takeEvery(REGISTER_USER, registerWithEmailPassword);\r\n}\r\n\r\nconst registerWithEmailPasswordAsync = async (email, password) =>\r\n await auth\r\n .createUserWithEmailAndPassword(email, password)\r\n .then((user) => user)\r\n .catch((error) => error);\r\n\r\nfunction* registerWithEmailPassword({ payload }) {\r\n const { email, password } = payload.user;\r\n const { history } = payload;\r\n try {\r\n const registerUser = yield call(\r\n registerWithEmailPasswordAsync,\r\n email,\r\n password\r\n );\r\n if (!registerUser.message) {\r\n const item = { uid: registerUser.user.uid, ...currentUser };\r\n console.log(item);\r\n setCurrentUser(item);\r\n yield put(registerUserSuccess(item));\r\n history.push(adminRoot);\r\n } else {\r\n yield put(registerUserError(registerUser.message));\r\n }\r\n } catch (error) {\r\n yield put(registerUserError(error));\r\n }\r\n}\r\n\r\nexport function* watchLogoutUser() {\r\n yield takeEvery(LOGOUT_USER, logout);\r\n}\r\n\r\nconst logoutAsync = async (history) => {\r\n await auth\r\n .signOut()\r\n .then((user) => user)\r\n .catch((error) => error);\r\n history.push(adminRoot);\r\n};\r\n\r\nfunction* logout({ payload }) {\r\n const { history } = payload;\r\n setCurrentUser();\r\n yield call(logoutAsync, history);\r\n}\r\n\r\nexport function* watchForgotPassword() {\r\n yield takeEvery(FORGOT_PASSWORD_REQUEST, forgotPassword);\r\n}\r\n\r\nconst forgotPasswordAsync = async (email) => {\r\n return await auth\r\n .sendPasswordResetEmail(email)\r\n .then((user) => user)\r\n .catch((error) => error);\r\n};\r\n\r\nfunction* forgotPassword({ payload }) {\r\n const { email } = payload.forgotUserMail;\r\n try {\r\n const forgotPasswordStatus = yield call(forgotPasswordAsync, email);\r\n if (!forgotPasswordStatus) {\r\n yield put(forgotPasswordSuccess('success'));\r\n } else {\r\n yield put(forgotPasswordError(forgotPasswordStatus.message));\r\n }\r\n } catch (error) {\r\n yield put(forgotPasswordError(error));\r\n }\r\n}\r\n\r\nexport function* watchResetPassword() {\r\n yield takeEvery(RESET_PASSWORD_REQUEST, resetPassword);\r\n}\r\n\r\nconst resetPasswordAsync = async (resetPasswordCode, newPassword) => {\r\n return await auth\r\n .confirmPasswordReset(resetPasswordCode, newPassword)\r\n .then((user) => user)\r\n .catch((error) => error);\r\n};\r\n\r\nfunction* resetPassword({ payload }) {\r\n const { newPassword, resetPasswordCode } = payload;\r\n try {\r\n const resetPasswordStatus = yield call(\r\n resetPasswordAsync,\r\n resetPasswordCode,\r\n newPassword\r\n );\r\n if (!resetPasswordStatus) {\r\n yield put(resetPasswordSuccess('success'));\r\n } else {\r\n yield put(resetPasswordError(resetPasswordStatus.message));\r\n }\r\n } catch (error) {\r\n yield put(resetPasswordError(error));\r\n }\r\n}\r\n\r\nconst checkTokenExpirationMiddleware = (store) => (next) => (action) => {\r\n const token =\r\n JSON.parse(localStorage.getItem('user')) &&\r\n JSON.parse(localStorage.getItem('user')).token;\r\n if (jwtDecode(token).exp < Date.now() / 1000) {\r\n next(action);\r\n localStorage.clear();\r\n }\r\n next(action);\r\n};\r\n\r\nfunction* loadInitialActions() {\r\n const dateNow = new Date();\r\n console.log('Que cosas tan tremendas');\r\n console.log(\r\n jwt_decode(token).exp < dateNow.getTime() - jwt_decode(token).iat\r\n );\r\n const token =\r\n JSON.parse(localStorage.getItem('user')) &&\r\n JSON.parse(localStorage.getItem('user')).token;\r\n if (\r\n token &&\r\n jwt_decode(token).exp < dateNow.getTime() - jwt_decode(token).iat\r\n ) {\r\n logout();\r\n }\r\n}\r\n\r\nexport function* watchTokenUser() {\r\n yield takeEvery(monitorableAction, monitor);\r\n}\r\n\r\n// Intento de renovación de Token\r\n\r\nconst ignoreActionTypes = ['TOKEN_REFRESH'];\r\n\r\nfunction monitorableAction(action) {\r\n return (\r\n action.type.includes('REQUEST') &&\r\n ignoreActionTypes.every((fragment) => !action.type.includes(fragment))\r\n );\r\n}\r\n\r\nfunction identifyAction(action) {\r\n return action.type.split('_').slice(0, -1).join('_');\r\n}\r\nfunction getSuccessType(action) {\r\n return `${identifyAction(action)}_SUCCESS`;\r\n}\r\nfunction getFailType(action) {\r\n return `${identifyAction(action)}_FAILURE`;\r\n}\r\n\r\nfunction* monitor(monitoredAction) {\r\n console.log('started monitoring', monitoredAction.type);\r\n const { fail } = yield race({\r\n success: take(getSuccessType(monitoredAction)),\r\n fail: take(getFailType(monitoredAction)),\r\n });\r\n\r\n if (fail && fail.payload && fail.payload.code === 401) {\r\n console.log('detected 401, refreshing token');\r\n yield put(userTokenRefreshRequest());\r\n\r\n const { success } = yield race({\r\n success: take(userTokenRefreshSuccess().type),\r\n fail: take(userTokenRefreshFailure().type),\r\n });\r\n\r\n if (success) {\r\n console.log('token refreshed, retrying', monitoredAction.type);\r\n yield put(monitoredAction);\r\n } else {\r\n console.log('token refresh failed, logging out user');\r\n yield put(userLogoutRequest());\r\n }\r\n }\r\n\r\n console.log('monitoring', monitoredAction.type, 'finished');\r\n}\r\n\r\nexport default function* rootSaga() {\r\n yield all([\r\n fork(watchLoginUser),\r\n fork(watchLogoutUser),\r\n fork(watchRegisterUser),\r\n fork(watchForgotPassword),\r\n fork(watchResetPassword),\r\n // fork(watchTokenUser),\r\n ]);\r\n}\r\n","import { all } from 'redux-saga/effects';\r\nimport authSagas from './auth/saga';\r\n\r\nexport default function* rootSaga() {\r\n yield all([authSagas()]);\r\n}\r\n","/* eslint-disable global-require */\r\nimport { createStore, applyMiddleware, compose } from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport reducers from './reducers';\r\nimport sagas from './sagas';\r\n\r\nconst enhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\n\r\nconst sagaMiddleware = createSagaMiddleware();\r\n\r\nconst middlewares = [sagaMiddleware];\r\n\r\nexport function configureStore(initialState) {\r\n const store = createStore(\r\n reducers,\r\n initialState,\r\n enhancer(applyMiddleware(...middlewares))\r\n );\r\n\r\n sagaMiddleware.run(sagas);\r\n\r\n if (module.hot) {\r\n module.hot.accept('./reducers', () => {\r\n const nextRootReducer = require('./reducers');\r\n store.replaceReducer(nextRootReducer);\r\n });\r\n }\r\n\r\n return store;\r\n}\r\n","const reportWebVitals = (onPerfEntry) => {\r\n if (onPerfEntry && onPerfEntry instanceof Function) {\r\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\r\n getCLS(onPerfEntry);\r\n getFID(onPerfEntry);\r\n getFCP(onPerfEntry);\r\n getLCP(onPerfEntry);\r\n getTTFB(onPerfEntry);\r\n });\r\n }\r\n};\r\n\r\nexport default reportWebVitals;\r\n","import React, { Suspense } from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport { configureStore } from './redux/store';\r\nimport reportWebVitals from './reportWebVitals';\r\n\r\nconst App = React.lazy(() => import(/* webpackChunkName: \"App\" */ './App'));\r\n\r\nconst Main = () => {\r\n return (\r\n \r\n }>\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nReactDOM.render(, document.getElementById('root'));\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\nreportWebVitals();\r\n","export const UserRole = {\r\n SUPER: 'SUPER',\r\n Admin: 'administrador',\r\n Editor: 'ROL_USER',\r\n Natural: 'Natural',\r\n Juridica: 'Juridica',\r\n Contador: 'Contador',\r\n Contable: 'Contable',\r\n Persona: 'ROL_PERSONA',\r\n SinMembresia: 'Usuario sin membresia',\r\n auxiliar: 'auxiliar',\r\n};\r\n\r\n/*\r\nMenu Types:\r\n\"menu-default\", \"menu-sub-hidden\", \"menu-hidden\"\r\n*/\r\nexport const defaultMenuType = 'menu-default';\r\n\r\nexport const subHiddenBreakpoint = 1440;\r\nexport const menuHiddenBreakpoint = 768;\r\nexport const defaultLocale = 'es';\r\nexport const localeOptions = [\r\n { id: 'en', name: 'English - LTR', direction: 'ltr' },\r\n { id: 'es', name: 'Español', direction: 'ltr' },\r\n { id: 'enrtl', name: 'English - RTL', direction: 'rtl' },\r\n];\r\n\r\nexport const firebaseConfig = {\r\n apiKey: 'AIzaSyBBksq-Asxq2M4Ot-75X19IyrEYJqNBPcg',\r\n authDomain: 'gogo-react-login.firebaseapp.com',\r\n databaseURL: 'https://gogo-react-login.firebaseio.com',\r\n projectId: 'gogo-react-login',\r\n storageBucket: 'gogo-react-login.appspot.com',\r\n messagingSenderId: '216495999563',\r\n};\r\n\r\nexport const adminRoot = '/app';\r\nexport const VencimientoToken = '/app/login';\r\nexport const buyUrl = 'https://1.envato.market/k4z0';\r\nexport const searchPath = `${adminRoot}/#`;\r\nexport const servicePath = 'https://api.coloredstrategies.com';\r\n\r\nexport const currentUser = {\r\n id: 1,\r\n title: 'Sarah Kortney',\r\n img: '/assets/img/profiles/9.jpg',\r\n date: 'Last seen today 15:24',\r\n role: UserRole.Admin,\r\n};\r\n\r\nexport const themeColorStorageKey = 'yellowgranola';\r\nexport const isMultiColorActive = true;\r\nexport const defaultColor = 'light.yellowgranola';\r\nexport const isDarkSwitchActive = false;\r\nexport const defaultDirection = 'ltr';\r\nexport const themeRadiusStorageKey = '__theme_radius';\r\nexport const isAuthGuardActive = true;\r\nexport const colors = [\r\n 'bluenavy',\r\n 'blueyale',\r\n 'blueolympic',\r\n 'greenmoss',\r\n 'greenlime',\r\n 'purplemonster',\r\n 'orangecarrot',\r\n 'redruby',\r\n 'yellowgranola',\r\n 'greysteel',\r\n];\r\n\r\n// AMBIENTE LOCAL\r\n// export const urlBase = 'http://localhost:5000';\r\n// export const urlBaseReact = 'http://localhost:3000';\r\n// AMBIENTE PRODUCCION\r\nexport const urlBase = 'https://app.calendartax.com:5000';\r\nexport const urlBaseReact = 'https://calendartax.com';\r\n// AMBIENTE PRUEBASS\r\n// export const urlBase = 'http://18.234.253.64:5000';\r\n// export const urlBaseReact =\r\n// 'http://www.calendartax.ml.s3-website-us-east-1.amazonaws.com';\r\n\r\nexport const idPerfil = {\r\n Persona: '6248a0ad7db77f2667375bed',\r\n Contador: '6248a0907db77f2667375be6',\r\n SinMembresia: '62c83054dd1ca737a7de3c52',\r\n Administrador: '62354f83cad277b637c51aa5',\r\n};\r\n\r\nexport const diasSemana = [\r\n {\r\n _id: 'lunes',\r\n dia: 'lunes',\r\n },\r\n { _id: 'martes', dia: 'martes' },\r\n { _id: 'miercoles', dia: 'miércoles' },\r\n { _id: 'jueves', dia: 'jueves' },\r\n { _id: 'viernes', dia: 'viernes' },\r\n { _id: 'sabado', dia: 'sábado' },\r\n { _id: 'domingo', dia: 'domingo' },\r\n];\r\n\r\nexport const estado = {\r\n APROBADO: 'Aprobado',\r\n PENDIENTE: 'Pendiente',\r\n RECHAZADO: 'Rechazado',\r\n};\r\n\r\nexport const optionsDeDias = [\r\n { value: 1, label: '1' },\r\n { value: 2, label: '2' },\r\n { value: 3, label: '3' },\r\n { value: 4, label: '4' },\r\n { value: 5, label: '5' },\r\n { value: 6, label: '6' },\r\n { value: 7, label: '7' },\r\n { value: 8, label: '8' },\r\n { value: 9, label: '9' },\r\n { value: 10, label: '10' },\r\n { value: 11, label: '11' },\r\n { value: 12, label: '12' },\r\n { value: 13, label: '13' },\r\n { value: 14, label: '14' },\r\n { value: 15, label: '15' },\r\n];\r\n\r\nexport const registro = 'registro';\r\nexport const Formulariocliente = 'cliente';\r\nexport const FormularioUsuario = 'usuario';\r\n\r\nexport const Estatuto = '62c82d70dd1ca737a7de3c4b';\r\n"],"sourceRoot":""}