{"version":3,"sources":["redux/types/index.js","redux/reducers/authReducer.js","redux/reducers/cartReducer.js","redux/reducers/dialogReducers.js","redux/reducers/generalReducer.js","redux/reducers/coverageReducer.js","redux/reducers/addressReducer.js","redux/reducers/locationReducer.js","redux/reducers/index.js","redux/store.js","components/util/Loader.js","App.js","serviceWorker.js","index.js","helpers/Storage.js"],"names":["DRAWER_MENU","AUTH_DIALOG","COVERAGE_DIALOG","LOCATION_DIALOG","SET_USER","SET_CARTS","ADD_CART","SET_ADDRESS","initialState","user","error","loanding","authReducer","state","type","payload","cart","cartReducer","carts","Object","keys","length","Storage","setCart","removeCart","option","generalReducer","coverageReducer","address","addressReducer","locationReducer","combineReducers","auth","dialog","dialogReducers","general","coverage","location","middleware","thunkMiddleware","store","createStore","reducers","composeWithDevTools","applyMiddleware","Loader","className","color","loading","size","Home","lazy","Cart","Manual","FrequentQuestion","Catalog","BrandPage","MomentPage","ProfilePage","DetailPage","PackPage","HistoryPage","thankPage","DataPolicyPage","CookiePolicyPage","TermPage","RecoveryPage","NoCoveregePage","PrivateRoute","Component","component","rest","render","props","getToken","to","App","fallback","exact","path","style","paddingBottom","fontSize","buttonText","marginLeft","borderBottom","href","isLocalhost","Boolean","window","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","controller","console","log","onUpdate","onSuccess","catch","TagManager","initialize","gtmId","process","ReactDOM","document","getElementById","URL","origin","addEventListener","fetch","headers","response","contentType","get","status","indexOf","ready","unregister","reload","checkValidServiceWorker","cookies","Cookies","setToken","token","remove","set","maxAge","sameSite","secure","removeToken","setAddress","getAddress","removeAddress","getCart","setPublish","publish","getPublish","setPaymentCard","payment","getPaymentCard","removePaymentCard","setOverAdult","getOverAdult","removeOverAdult","setOverFourteen","getOverFourteen","removeOverFourteen"],"mappings":"+FAAA,gRAAO,IAEMA,EAAc,cACdC,EAAc,cACdC,EAAkB,kBAClBC,EAAkB,kBAElBC,EAAW,WAEXC,EAAY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export const ERROR = 'ERROR'\r\n\r\nexport const DRAWER_MENU = 'DRAWER_MENU'\r\nexport const AUTH_DIALOG = 'AUTH_DIALOG'\r\nexport const COVERAGE_DIALOG = 'COVERAGE_DIALOG'\r\nexport const LOCATION_DIALOG = 'LOCATION_DIALOG'\r\n\r\nexport const SET_USER = 'SET_USER'\r\n\r\nexport const SET_CARTS = 'SET_CARTS'\r\nexport const ADD_CART = 'ADD_CART'\r\n\r\nexport const SET_ADDRESS = 'SET_ADDRESS'","import {\r\n SET_USER\r\n} from '../types'\r\n\r\nconst initialState = {\r\n user: null,\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst authReducer = (state = initialState, { type, payload }) => {\r\n switch(type) {\r\n case SET_USER:\r\n return {\r\n ...state,\r\n loanding: false,\r\n user: payload\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default authReducer;","import Storage from '../../helpers/Storage'\r\n\r\nimport {\r\n SET_CARTS,\r\n ADD_CART\r\n} from '../types'\r\n\r\nconst initialState = {\r\n cart: {},\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst cartReducer = (state = initialState, { type, payload }) => {\r\n let carts;\r\n\r\n switch(type) {\r\n case SET_CARTS:\r\n\r\n if(Object.keys(payload).length > 0) {\r\n Storage.setCart(payload); \r\n } else {\r\n Storage.removeCart();\r\n }\r\n\r\n //Storage.setCart(payload);\r\n return {\r\n ...state,\r\n cart: payload\r\n }\r\n case ADD_CART:\r\n carts = {\r\n ...state,\r\n cart: {\r\n ...state.cart,\r\n ...payload\r\n }\r\n }\r\n\r\n Storage.setCart(carts.cart);\r\n return carts\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default cartReducer;","import {\r\n AUTH_DIALOG\r\n} from '../types'\r\n\r\nconst initialState = {\r\n option: null,\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst generalReducer = (state = initialState, { type, payload }) => {\r\n switch(type) {\r\n case AUTH_DIALOG:\r\n return {\r\n ...state,\r\n option: payload\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default generalReducer;","import {\r\n DRAWER_MENU,\r\n AUTH_DIALOG\r\n} from '../types'\r\n\r\nconst initialState = {\r\n option: false,\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst generalReducer = (state = initialState, { type, payload }) => {\r\n switch(type) {\r\n case DRAWER_MENU:\r\n return {\r\n ...state,\r\n option: payload\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default generalReducer;","import {\r\n COVERAGE_DIALOG\r\n} from '../types'\r\n\r\nconst initialState = {\r\n option: false,\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst coverageReducer = (state = initialState, { type, payload }) => {\r\n switch(type) {\r\n case COVERAGE_DIALOG:\r\n return {\r\n ...state,\r\n option: payload\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default coverageReducer;","import {\r\n SET_ADDRESS\r\n} from '../types'\r\n\r\nconst initialState = {\r\n address: null,\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst addressReducer = (state = initialState, { type, payload }) => {\r\n switch(type) {\r\n case SET_ADDRESS:\r\n return {\r\n ...state,\r\n loanding: false,\r\n address: payload\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default addressReducer;","import {\r\n LOCATION_DIALOG\r\n} from '../types'\r\n\r\nconst initialState = {\r\n option: false,\r\n error: null,\r\n loanding: false\r\n}\r\n\r\nconst locationReducer = (state = initialState, { type, payload }) => {\r\n switch(type) {\r\n case LOCATION_DIALOG:\r\n return {\r\n ...state,\r\n option: payload\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default locationReducer;","import { combineReducers } from 'redux';\r\nimport authReducer from './authReducer';\r\nimport cartReducer from './cartReducer';\r\nimport dialogReducers from './dialogReducers';\r\nimport generalReducer from './generalReducer';\r\nimport coverageReducer from './coverageReducer';\r\nimport addressReducer from './addressReducer';\r\nimport locationReducer from './locationReducer';\r\n\r\nexport default combineReducers({\r\n auth: authReducer,\r\n cart: cartReducer,\r\n dialog: dialogReducers,\r\n general: generalReducer,\r\n coverage: coverageReducer,\r\n address: addressReducer,\r\n location: locationReducer\r\n})\r\n","import { createStore, applyMiddleware, compose } from 'redux'\r\nimport { composeWithDevTools } from 'redux-devtools-extension'\r\nimport thunkMiddleware from \"redux-thunk\"\r\nimport reducers from './reducers';\r\n\r\nconst middleware = [\r\n thunkMiddleware,\r\n];\r\n\r\nconst store = createStore(\r\n reducers,\r\n composeWithDevTools(applyMiddleware(...middleware))\r\n \r\n);\r\n\r\nexport default store;","import React from 'react'\r\nimport ClipLoader from \"react-spinners/ClipLoader\"\r\n\r\nconst Loader = () => {\r\n return (\r\n
\r\n \r\n
\r\n )\r\n}\r\n\r\nexport default Loader\r\n","import React, { lazy, Suspense } from 'react';\r\nimport { BrowserRouter, Route, Redirect, Switch } from 'react-router-dom';\r\nimport CookieConsent from \"react-cookie-consent\";\r\n\r\n// STORAGE\r\nimport Storage from './helpers/Storage';\r\n\r\n//REDUX\r\nimport { Provider } from 'react-redux'\r\nimport store from './redux/store'\r\n\r\n// SASS\r\nimport 'antd/dist/antd.css';\r\nimport './styles/theme.scss';\r\n\r\n// COMPONENTS\r\nimport Loader from './components/util/Loader'\r\n\r\nconst Home = lazy(() => import('./pages/home/home.page'));\r\nconst Cart = lazy(() => import('./pages/cart/cart.page'));\r\nconst Manual = lazy(() => import('./pages/manual/manual.page'));\r\nconst FrequentQuestion = lazy(() => import('./pages/frequent-questions/frequent-questions.page'));\r\nconst Catalog = lazy(() => import('./pages/catalog/catalog.page'));\r\nconst BrandPage = lazy(() => import('./pages/brand/brand.page'));\r\nconst MomentPage = lazy(() => import('./pages/moment/moment.page'));\r\nconst ProfilePage = lazy(() => import('./pages/profile/profile.page'));\r\nconst DetailPage = lazy(() => import('./pages/detail/detail.page'));\r\nconst PackPage = lazy(() => import('./pages/pack/pack.page'));\r\nconst HistoryPage = lazy(() => import('./pages/history/history.page'));\r\nconst thankPage = lazy(() => import('./pages/thank/thank.page'));\r\nconst DataPolicyPage = lazy(() => import('./pages/policy/datapolicy.page'));\r\nconst CookiePolicyPage = lazy(() => import('./pages/policy/cookiepolicy.page'));\r\nconst TermPage = lazy(() => import('./pages/policy/term.page'));\r\nconst RecoveryPage = lazy(() => import('./pages/recovery/recovery.page'));\r\nconst NoCoveregePage = lazy(() => import('./pages/nocoverege/nocoverege.page'));\r\n\r\n\r\n\r\n// COMPONENTES\r\nconst App = (props) => {\r\n\r\n const NotFoundRedirect = () => \r\n\r\n return (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n

\r\n Utilizamos cookies para mejorar la navegaciĆ³n en el sitio. \r\n \r\n Mas InformaciĆ³n\r\n \r\n

\r\n \r\n \r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\n// RUTAS PRIVADAS\r\nconst PrivateRoute = ({ component: Component, ...rest }) => (\r\n (\r\n Storage.getToken()\r\n ? \r\n : \r\n )} />\r\n)\r\n\r\nexport default App;\r\n\r\n","// 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 window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.0/8 are considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl, {\r\n headers: { 'Service-Worker': 'script' },\r\n })\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready\r\n .then(registration => {\r\n registration.unregister();\r\n })\r\n .catch(error => {\r\n console.error(error.message);\r\n });\r\n }\r\n}\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport * as serviceWorker from './serviceWorker';\r\nimport 'react-app-polyfill/ie11';\r\nimport 'react-app-polyfill/stable';\r\n\r\nimport TagManager from 'react-gtm-module';\r\n\r\nconst tagManagerArgs = {\r\n gtmId: process.env.REACT_APP_KEY_GOOGLE_TAG\r\n}\r\n\r\nTagManager.initialize(tagManagerArgs);\r\n\r\nReactDOM.render(\r\n ,\r\n document.getElementById('root')\r\n);\r\n\r\n\r\nserviceWorker.register();\r\n","import { Cookies } from 'react-cookie'\r\nconst cookies = new Cookies();\r\n\r\nexport const KEY_TOKEN = \"token\";\r\nexport const KEY_ADDRESS = \"address\";\r\nexport const KEY_CART = \"cart\";\r\nexport const KEY_PUBLISH = \"publish\";\r\nexport const KEY_OVER_ADULT = \"overAdult\";\r\nexport const KEY_OVER_FOURTEEN = \"overFourteen\";\r\nexport const KEY_PAYMENT = \"payment\";\r\n\r\nconst Storage = {\r\n // TOKEN\r\n setToken(token) {\r\n cookies.remove(KEY_TOKEN);\r\n cookies.set(KEY_TOKEN, token, {\r\n maxAge: 60 * 60 * 5,\r\n sameSite: \"lax\", \r\n path: \"/\",\r\n secure: true\r\n });\r\n },\r\n\r\n getToken() {\r\n return cookies.get(KEY_TOKEN);\r\n },\r\n\r\n removeToken() {\r\n cookies.remove(KEY_TOKEN);\r\n },\r\n\r\n // ADDRESS\r\n setAddress(address) {\r\n cookies.remove(KEY_ADDRESS);\r\n cookies.set(KEY_ADDRESS, address, {\r\n sameSite: \"lax\", \r\n path: \"/\",\r\n secure: true\r\n });\r\n },\r\n\r\n getAddress() {\r\n return cookies.get(KEY_ADDRESS) ? cookies.get(KEY_ADDRESS) : {};\r\n },\r\n\r\n removeAddress() {\r\n cookies.remove(KEY_ADDRESS);\r\n },\r\n\r\n // CART\r\n setCart(cart) {\r\n cookies.remove(KEY_CART);\r\n cookies.set(KEY_CART, cart, {\r\n sameSite: \"lax\", \r\n path: \"/\",\r\n secure: true\r\n });\r\n },\r\n\r\n getCart() {\r\n return cookies.get(KEY_CART) && \r\n cookies.get(KEY_CART) || [];\r\n },\r\n\r\n removeCart() {\r\n cookies.remove(KEY_CART);\r\n },\r\n\r\n // PUBLICIDAD\r\n setPublish(publish) {\r\n cookies.remove(KEY_PUBLISH);\r\n cookies.set(KEY_PUBLISH, publish, {\r\n maxAge: 60 * 60 * 5,\r\n sameSite: \"lax\", \r\n path: \"/\",\r\n secure: true\r\n });\r\n },\r\n\r\n getPublish() {\r\n return cookies.get(KEY_PUBLISH);\r\n },\r\n\r\n // PUBLICIDAD\r\n setPaymentCard(payment) {\r\n cookies.remove(KEY_PAYMENT);\r\n cookies.set(KEY_PAYMENT, payment, {\r\n maxAge: 60 * 60 * 5,\r\n sameSite: \"lax\",\r\n path: \"/\", \r\n secure: true\r\n });\r\n },\r\n\r\n getPaymentCard() {\r\n return cookies.get(KEY_PAYMENT);\r\n },\r\n\r\n removePaymentCard() {\r\n cookies.remove(KEY_PAYMENT);\r\n },\r\n\r\n // OVER ADULT\r\n setOverAdult(option) {\r\n cookies.remove(KEY_OVER_ADULT);\r\n cookies.set(KEY_OVER_ADULT, option, {\r\n sameSite: \"lax\", \r\n path: \"/\",\r\n secure: true\r\n });\r\n },\r\n\r\n getOverAdult() {\r\n return cookies.get(KEY_OVER_ADULT);\r\n },\r\n\r\n removeOverAdult() {\r\n cookies.remove(KEY_OVER_ADULT);\r\n },\r\n \r\n // OVER FOURTEEN\r\n setOverFourteen(option) {\r\n cookies.remove(KEY_OVER_FOURTEEN);\r\n cookies.set(KEY_OVER_FOURTEEN, option, {\r\n sameSite: \"lax\", \r\n path: \"/\",\r\n secure: true\r\n });\r\n },\r\n\r\n getOverFourteen() {\r\n return cookies.get(KEY_OVER_FOURTEEN);\r\n },\r\n\r\n removeOverFourteen() {\r\n cookies.remove(KEY_OVER_FOURTEEN);\r\n },\r\n}\r\n\r\n\r\nexport default Storage"],"sourceRoot":""}