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ACzC8B,EAAYC,EAAAA,GAAAA,WAAgB,EAAGJ,GAKnC,OAJIpC,OAAOyC,uCACPF,EAAYvC,OAAOyC,qCAAqCD,EAAAA,GAAAA,WAAgB,EAAGJ,MAGxEM,EAAAA,EAAAA,IAAYP,EAAaI,EACpC,C","sources":["webpack://pathways/./app/javascript/reducers/rootReducer.js","webpack://pathways/./app/javascript/packs/application.js","webpack://pathways/./app/javascript/packs/store.js"],"sourcesContent":["import {combineReducers} from 'redux';\nimport {RESET_DATA, userData} from './userData';\nimport {assessmentData} from './assessment';\n\nconst appReducer = combineReducers({\n userData, assessmentData\n});\n\nexport default (state, action) => {\n if (action.type === RESET_DATA) {\n // eslint-disable-next-line no-undefined\n return appReducer(undefined, action);\n }\n\n return appReducer(state, action);\n};","/* eslint-env node */\n/*\n * This file is automatically compiled by Webpack, along with any other files\n * present in this directory. You're encouraged to place your actual application logic in\n * a relevant structure within app/javascript and only use these pack files to reference\n * that code so it'll be compiled.\n */\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport {Provider} from 'react-redux';\nimport {Router, Redirect, Route, Switch} from 'react-router-dom';\nimport {createBrowserHistory} from 'history';\nimport {persistStore, persistReducer} from 'redux-persist';\nimport storage from 'redux-persist/lib/storage'; // defaults to localStorage for web and AsyncStorage for react-native\nimport configureStore from './store';\nimport Routes from '../components/Routes';\nimport rootReducer from '../reducers/rootReducer';\nimport {PersistGate} from 'redux-persist/integration/react';\nimport ScrollToTop from '../components/ScrollToTop';\nimport ReactGA from 'react-ga4';\n\nrequire('@rails/ujs').start();\nrequire('turbolinks').start();\nconst componentRequireContext = require.context('components', true);\nconst ReactRailsUJS = require('react_ujs');\nReactRailsUJS.useContext(componentRequireContext);\n\nconst persistConfig = {\n key: 'root-pathways',\n storage\n};\n\nReactGA.initialize(window.GOOGLE_GTAG, {\n anonymizeIp: true\n});\n\nconst responseId = document.cookie.replace(/(?:(?:^|.*;\\s*)response_id\\s*=\\s*([^;]*).*$)|^.*$/, '$1');\n\nif (responseId.length > 0) {\n ReactGA.set({userId: responseId});\n}\n\nconst history = createBrowserHistory();\n\nconst persistedReducer = persistReducer(persistConfig, rootReducer);\nconst store = configureStore(persistedReducer, history);\nconst persistor = persistStore(store);\n\nconst ReactApp = () =>\n \n \n \n \n \n \n \n \n \n \n \n ;\n\ndocument.addEventListener('DOMContentLoaded', () => {\n ReactDOM.render(,\n document.getElementById('main').appendChild(document.createElement('div')));\n});// Support component names relative to this directory:","import {createStore, applyMiddleware} from 'redux';\nimport thunk from 'redux-thunk';\nimport {routerMiddleware} from 'react-router-redux';\n\n/* eslint-disable no-underscore-dangle */\nexport default function configureStore(rootReducer, history) {\n const middlewares = [thunk, routerMiddleware(history)];\n let enhancers = applyMiddleware(...middlewares);\n if (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) { // eslint-disable-line\n enhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__(applyMiddleware(...middlewares)); // eslint-disable-line\n }\n\n return createStore(rootReducer, enhancers);\n}\n/* eslint-enable */"],"names":["appReducer","combineReducers","userData","assessmentData","require","componentRequireContext","useContext","persistConfig","key","storage","ReactGA","window","GOOGLE_GTAG","anonymizeIp","responseId","document","cookie","replace","length","userId","history","createBrowserHistory","persistedReducer","persistReducer","state","action","type","RESET_DATA","undefined","store","configureStore","persistor","persistStore","ReactApp","loading","ScrollToTop","component","Routes","path","to","addEventListener","ReactDOM","name","getElementById","appendChild","createElement","rootReducer","middlewares","thunk","routerMiddleware","enhancers","applyMiddleware","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","createStore"],"sourceRoot":""}