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,EAAA,QAAY,MACR,SAAAC,GAAU,OACP,gBAAC,WAAc,KACX,gBAACC,EAAA,QAAgB,eAACC,WAAYF,EAAWE,YAAgBF,EAAW3B,OAChE,gBAAC8B,EAAA,QAAW,KACR,gBAAC,KAAM,KACH,gBAAC,KAAK,CAACC,UAAWC,EAAAA,QAAQC,KAAK,aAC/B,gBAAC,KAAQ,CAACC,GAAG,WAIZ,MAKzB,EAEhB3C,SAASkB,iBAAiB,oBAAoB,WAC1C0B,EAAAA,OAAgB,gBAACX,EAAQ,CAACY,KAAK,UAC3B7C,SAAS8C,eAAe,QAAQC,YAAY/C,SAASgD,cAAc,QAC3E,G,oECjHe,SAASjC,EAAekC,EAAa5C,GAChD,IAAM6C,EAAc,CAACC,EAAAA,GAAOC,EAAAA,EAAAA,IAAiB/C,IACzCgD,EAAYC,EAAAA,GAAAA,WAAgB,EAAGJ,GAKnC,OAJItD,OAAO2D,uCACPF,EAAYzD,OAAO2D,qCAAqCD,EAAAA,GAAAA,WAAgB,EAAGJ,MAGxEM,EAAAA,EAAAA,IAAYP,EAAaI,EACpC,C","sources":["webpack://promise/./app/javascript/reducers/rootReducer.js","webpack://promise/./app/javascript/packs/application.js","webpack://promise/./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, createMemoryHistory} 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';\nimport ModalManager from '../components/ModalManager';\nimport MainContentModal from '../components/MainContentModal';\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\n/*\n * In production, do not generate browser history. Only keep the memory history required by React router,\n * but, within the browser, this website will look like a single page\n */\nconst history = process.env.RAILS_ENV === 'development' ? createMemoryHistory() : createBrowserHistory();\n\nconst persistedReducer = persistReducer(persistConfig, rootReducer);\nconst store = configureStore(persistedReducer, history);\nconst persistor = persistStore(store);\n\nconst loadHGTVContent = () => {\n const MAX_SECONDS_TO_LOAD_CONTENT = 5;\n window.timeStamp ||= new Date();\n const now = new Date();\n const secondsElapsed = (now.getTime() - window.timeStamp.getTime()) / 1000;\n\n const object = document.getElementsByTagName('object')[0];\n\n try {\n /*\n * it may take a bit of time for the iFrame to load, and we don't want to make\n * any content decisions until we have waited a certain period of time\n */\n if (secondsElapsed < MAX_SECONDS_TO_LOAD_CONTENT) {\n setTimeout(loadHGTVContent, 100);\n }\n else if (object.contentDocument.body.children.length === 0) {\n /*\n * We can only end up here if the domain does not have a website\n * in which case we remove the object from the webpage in order\n * to allow users to click underneath the object, which would have\n * a fallback Pinterest page. Without removing this, the Pinterest\n * page cannot be clicked on or scrolled through\n */\n object.parentNode.removeChild(object);\n }\n }\n catch (ex) {\n /*\n * if we end up here, that means object.contentDocument resulted in an exception\n * which can only happen for one reason: the domain hosts a valid website\n * and the browser is preventing access to that website's code for security reasons\n */\n }\n};\n\ndocument.addEventListener('DOMContentLoaded', loadHGTVContent);\n\nconst ReactApp = () =>\n \n \n \n \n {modalProps =>\n \n \n \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});","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","addEventListener","loadHGTVContent","timeStamp","Date","secondsElapsed","getTime","object","getElementsByTagName","setTimeout","contentDocument","body","children","parentNode","removeChild","ex","ReactApp","loading","ModalManager","modalProps","MainContentModal","hideModals","ScrollToTop","component","Routes","path","to","ReactDOM","name","getElementById","appendChild","createElement","rootReducer","middlewares","thunk","routerMiddleware","enhancers","applyMiddleware","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","createStore"],"sourceRoot":""}