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B1H,KAAOqH,EAAqB1B,KAAK,KAAM+B,EAAmB1H,KAAK2F,KAAK+B,G,KClFvF,IAAIE,EAAsB1F,EAAoBQ,OAAE3c,EAAW,CAAC,MAAM,IAAOmc,EAAoB,SAC7F0F,EAAsB1F,EAAoBQ,EAAEkF,E","sources":["webpack://newamerica-cms/webpack/runtime/chunk loaded","webpack://newamerica-cms/webpack/runtime/load script","webpack://newamerica-cms/webpack/runtime/css loading","webpack://newamerica-cms/./newamericadotorg/assets/lib/utils/get-nested-state.js","webpack://newamerica-cms/./newamericadotorg/assets/lib/utils/camelize.js","webpack://newamerica-cms/./newamericadotorg/assets/lib/utils/get-props.js","webpack://newamerica-cms/./newamericadotorg/assets/lib/utils/trigger-scroll-events.js","webpack://newamerica-cms/./newamericadotorg/assets/react/actions.js","webpack://newamerica-cms/./newamericadotorg/assets/react/setMeta.js","webpack://newamerica-cms/./newamericadotorg/assets/lib/add-event-listeners.js","webpack://newamerica-cms/./newamericadotorg/assets/lib/add-observers.js","webpack://newamerica-cms/./newamericadotorg/assets/react/mobile-menu/constants.js","webpack://newamerica-cms/./newamericadotorg/assets/react/mobile-menu/components/Heading.js","webpack://newamerica-cms/./newamericadotorg/assets/react/mobile-menu/components/SearchInput.js","webpack://newamerica-cms/./newamericadotorg/assets/react/mobile-menu/components/Tabs.js","webpack://newamerica-cms/./newamericadotorg/assets/react/mobile-menu/components/Menus.js","webpack://newamerica-cms/./newamericadotorg/assets/react/mobile-menu/index.js","webpack://newamerica-cms/./newamericadotorg/assets/newamericadotorg.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/actions.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/action-helpers.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/components/Fetch.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/components/Response.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/components/props.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/constants.js","webpack://newamerica-cms/./newamericadotorg/assets/react/cache.js","webpack://newamerica-cms/./newamericadotorg/assets/react/components/Icons.js","webpack://newamerica-cms/./newamericadotorg/assets/react/components/LoadingIcon.js","webpack://newamerica-cms/./newamericadotorg/assets/react/constants.js","webpack://newamerica-cms/./newamericadotorg/assets/react/react-renderer.js","webpack://newamerica-cms/./newamericadotorg/assets/react/api/reducers.js","webpack://newamerica-cms/./newamericadotorg/assets/react/reducers.js","webpack://newamerica-cms/./newamericadotorg/assets/react/store.js","webpack://newamerica-cms/webpack/bootstrap","webpack://newamerica-cms/webpack/runtime/compat get default export","webpack://newamerica-cms/webpack/runtime/define property getters","webpack://newamerica-cms/webpack/runtime/ensure chunk","webpack://newamerica-cms/webpack/runtime/get javascript chunk filename","webpack://newamerica-cms/webpack/runtime/get mini-css chunk filename","webpack://newamerica-cms/webpack/runtime/getFullHash","webpack://newamerica-cms/webpack/runtime/global","webpack://newamerica-cms/webpack/runtime/harmony module decorator","webpack://newamerica-cms/webpack/runtime/hasOwnProperty shorthand","webpack://newamerica-cms/webpack/runtime/make namespace object","webpack://newamerica-cms/webpack/runtime/node module decorator","webpack://newamerica-cms/webpack/runtime/publicPath","webpack://newamerica-cms/webpack/runtime/jsonp chunk loading","webpack://newamerica-cms/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"newamerica-cms:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t\tif (script.src.indexOf(window.location.origin + '/') !== 0) {\n\t\t\tscript.crossOrigin = \"anonymous\";\n\t\t}\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var createStylesheet = (chunkId, fullhref, resolve, reject) => {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = (event) => {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realhref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realhref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realhref;\n\t\t\tlinkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\tif (linkTag.href.indexOf(window.location.origin + '/') !== 0) {\n\t\tlinkTag.crossOrigin = \"anonymous\";\n\t}\n\tdocument.head.appendChild(linkTag);\n\treturn linkTag;\n};\nvar findStylesheet = (href, fullhref) => {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar datahref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (datahref === href || datahref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar datahref = tag.getAttribute(\"data-href\");\n\t\tif(datahref === href || datahref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = (chunkId) => {\n\treturn new Promise((resolve, reject) => {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t314: 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"49\":1,\"55\":1,\"271\":1,\"324\":1,\"355\":1,\"363\":1,\"429\":1,\"523\":1,\"524\":1,\"555\":1,\"564\":1,\"576\":1,\"597\":1,\"613\":1,\"707\":1,\"789\":1,\"814\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, (e) => {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","/**\n Recursively find object in nested state with string 'parent.child.grandchild';\n**/\n\nconst getNestedState = (state, name) => {\n let i = name.indexOf('.');\n if(i===-1) return state[name] || undefined;\n return getNestedState(state[name.slice(0,i)] || {}, name.slice(i+1,name.length));\n}\n\nexport default getNestedState;\n","/**\n Return camelCase version of-a-string\n**/\n\nconst camelize = function(str) {\n return str.replace(/-([a-z])/g, function(g){return g[1].toUpperCase(); });;\n}\n\nexport default camelize;\n","/**\nGet all data- properties from html element\n**/\n\nimport camelize from './camelize';\n\nconst getProps = function(el){\n let props = {};\n for(let i=0; i {\n let docHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n\n const ENTER_CLASS = 'scroll-entered';\n const LEFT_CLASS = 'scroll-left';\n const IN_VIEW_CLASS = 'scroll-in-view';\n const HAS_TRIGGERED_CLASS = 'scroll-triggered';\n let oneE;\n for(let e of events){\n for(let el of e.els){\n oneE = el;\n let rect = el.getBoundingClientRect(),\n offset = getOffset(el, el.getAttribute('data-scroll-offset') || e.offset || 0 ),\n topOffset = getOffset(el, el.getAttribute('data-scroll-top-offset') || offset || e.topOffset || 0),\n bottomOffset = getOffset(el, el.getAttribute('data-scroll-bottom-offset') || offset || e.bottomOffset || 0),\n triggerPoint = el.getAttribute('data-scroll-trigger-point') || e.triggerPoint || 'top',\n triggerPointOffset = getTriggerPointOffset(triggerPoint, docHeight);\n\n let markedEntered = el.classList.contains(ENTER_CLASS),\n markedLeft = el.classList.contains(LEFT_CLASS),\n markedInView = el.classList.contains(IN_VIEW_CLASS),\n markedTriggered = el.classList.contains(HAS_TRIGGERED_CLASS),\n hasEntered = rect.top + topOffset + triggerPointOffset <= 0,\n hasLeft = -rect.top > el.offsetHeight + bottomOffset + triggerPointOffset,\n progress = 1-(rect.top+triggerPointOffset+el.offsetHeight+bottomOffset-0.5)/(el.offsetHeight - topOffset + bottomOffset),\n inView = hasEntered && !hasLeft;\n\n let targetSelector = el.getAttribute('data-scroll-target') || e.target;\n let target = targetSelector ? document.querySelector(targetSelector) : null;\n\n if(inView && !markedInView){\n if(e.onEnter) e.onEnter(target || el, direction);\n el.classList.remove(LEFT_CLASS);\n el.classList.add(IN_VIEW_CLASS);\n if(target){\n target.classList.remove(LEFT_CLASS);\n target.classList.add(IN_VIEW_CLASS);\n }\n }\n if(inView){\n if(e.onTick) e.onTick(target || el, direction, progress );\n }\n if(hasEntered && !markedTriggered){\n el.classList.add(HAS_TRIGGERED_CLASS);\n if(target){\n target.classList.add(HAS_TRIGGERED_CLASS);\n }\n }\n if(hasEntered && !markedEntered){\n if(e.enter) e.enter(target || el, direction);\n el.classList.remove(LEFT_CLASS);\n el.classList.add(ENTER_CLASS);\n if(target){\n target.classList.remove(LEFT_CLASS);\n target.classList.add(ENTER_CLASS);\n }\n }\n // account for scenarios where scroll speed skips over element\n if(!hasEntered && (markedInView||markedLeft||markedEntered)){\n if(e.onLeave) e.onLeave(target || el, direction);\n if(e.onTick) e.onTick(target || el, direction, rect.top > 0 ? 0 : 1);\n el.classList.remove(IN_VIEW_CLASS);\n el.classList.remove(ENTER_CLASS);\n el.classList.remove(LEFT_CLASS);\n if(target){\n target.classList.remove(IN_VIEW_CLASS);\n target.classList.remove(ENTER_CLASS);\n target.classList.remove(LEFT_CLASS);\n }\n }\n if(hasLeft && markedInView){\n if(e.onLeave) e.onLeave(target || el, direction);\n if(e.onTick) e.onTick(target || el, direction, rect.top > 0 ? 0 : 1);\n el.classList.remove(IN_VIEW_CLASS);\n el.classList.remove(LEFT_CLASS);\n if(target){\n target.classList.remove(IN_VIEW_CLASS);\n target.classList.remove(LEFT_CLASS);\n }\n }\n if(hasLeft && !markedLeft){\n if(e.leave) e.leave(target || el, direction);\n if(e.onTick) e.onTick(target || el, direction, 1);\n el.classList.add(LEFT_CLASS);\n if(target)\n target.classList.add(LEFT_CLASS);\n }\n }\n }\n // reflow\n if(oneE) void(oneE.offsetHeight);\n}\n\nexport default scrollEvents;\n\nfunction getOffset(el, offset) {\n if(typeof(offset)=='number') return offset;\n if(!offset) return false;\n if(offset.indexOf('%')!=-1)\n return el.offsetHeight * offset.replace('%', '')/100;\n if(offset.indexOf('vh')!=-1){\n let docHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n return docHeight * offset.replace('vh', '')/100;\n }\n\n return +offset;\n}\n\nfunction getTriggerPointOffset(triggerPoint, docHeight){\n switch(triggerPoint){\n case 'top':\n return 0;\n case 'bottom':\n return -docHeight;\n case 'middle':\n return -docHeight/2;\n default:\n return 0;\n }\n}\n","import { fetchData, setParams } from './api/actions';\nimport { getNestedState } from '../lib/utils/index';\nimport SmoothScroll from 'smooth-scroll';\nimport store from './store';\nimport {\n SET_SCROLL_POSITION, SET_SCROLL_DIRECTION, ADD_SCROLL_EVENT,\n RELOAD_SCROLL_EVENT, RELOAD_SCROLL_EVENTS, TRIGGER_SCROLL_EVENTS, SET_AD_HOC_STATE, SET_ANY_STATE,\n SET_SCROLL, SET_IS_SCROLLING, SET_SEARCH_IS_OPEN, TOGGLE_MOBILE_MENU, SET_SITE_BASEURL,\n SET_WINDOW_WIDTH\n} from './constants';\n\n\nconst findScrollEventBySelector = (selector) => {\n // assumes 1 event for each selector...\n let state = store.getState().site.scrollEvents;\n for(let i=0;i {\n window.scrollTo(0, position);\n store.dispatch({\n type: SET_SCROLL_POSITION,\n position,\n component: 'site'\n });\n return this;\n }\n\n setScroll = ({ position, direction }) => {\n store.dispatch({\n type: SET_SCROLL,\n scroll: { position, direction },\n component: 'site'\n });\n\n return this;\n }\n\n addScrollEvent = ({\n onEnter, onLeave, onTick, enter, leave, offset, topOffset, bottomOffset,\n triggerPoint, selector, target\n }) => {\n let els = document.querySelectorAll(selector);\n store.dispatch({\n type: ADD_SCROLL_EVENT,\n component: 'site',\n eventObject: {\n onEnter, onLeave, onTick, enter, leave, selector,\n offset, topOffset, bottomOffset, triggerPoint, els, target\n }\n });\n\n return this;\n }\n\n setScrollDirection = (direction) => {\n store.dispatch({\n type: SET_SCROLL_DIRECTION,\n component: 'site',\n direction\n });\n return this;\n }\n\n setIsScrolling = (isScrolling) => {\n store.dispatch({\n type: SET_IS_SCROLLING,\n component: 'site',\n isScrolling\n });\n return this;\n }\n\n reloadScrollEvents = (selector) => {\n let event;\n if(selector){\n event = findScrollEventBySelector(selector);\n if(!event) return this.addScrollEvent({selector});\n }\n store.dispatch({\n type: event ? RELOAD_SCROLL_EVENT : RELOAD_SCROLL_EVENTS,\n component: 'site',\n event\n });\n\n return this;\n }\n\n smoothScroll = (anchor) => {\n scroll.animateScroll(anchor);\n return this;\n }\n\n triggerScrollEvents = () => {\n store.dispatch({\n type: TRIGGER_SCROLL_EVENTS,\n component: 'site'\n });\n return this;\n }\n\n setWindowWidth = (width) => {\n store.dispatch({\n type: SET_WINDOW_WIDTH,\n component: 'site',\n width\n });\n return this;\n }\n\n setState = (component, state) => {\n store.dispatch({\n type: SET_ANY_STATE,\n component,\n state\n });\n }\n\n getState = (name) => {\n return getNestedState(store.getState(), name);\n }\n\n addAdHocObserver = ({ stateName, onChange }) => {\n let observer = observerFactory(`site.adHoc.${stateName}`, onChange);\n store.subscribe(observer);\n return this;\n }\n\n addObserver = ({ stateName, onChange }) => {\n if(this.getState(stateName)===undefined) this.setState(stateName, null);\n let observer = observerFactory(stateName, onChange);\n store.subscribe(observer);\n return this;\n }\n\n toggleSearch = (state) => {\n if(state===undefined) state = !this.getState('site.searchIsOpen');\n store.dispatch({\n type: SET_SEARCH_IS_OPEN,\n component: 'site',\n isOpen: state\n });\n\n return this;\n }\n\n toggleMobileMenu = (_isOpen) => {\n let state = _isOpen !== undefined ? _isOpen : !getNestedState(store.getState(), 'site.mobileMenuIsOpen');\n store.dispatch({\n type: TOGGLE_MOBILE_MENU,\n component: 'site',\n state\n });\n }\n\n setSiteBaseUrl = (url) => {\n store.dispatch({\n type: SET_SITE_BASEURL,\n component: 'site',\n url\n });\n }\n}\n\nconst actions = new Actions();\nexport default actions;\n","import store from './store';\nimport { fetchData, setParams } from './api/actions';\n\nconst setMeta = () => {\n store.dispatch(setParams('meta', { endpoint: 'meta' } ));\n store.dispatch(fetchData('meta'));\n}\n\nexport default setMeta;\n","import actions from '../react/actions';\nimport store from '../react/store';\nimport triggerScrollEvents from './utils/trigger-scroll-events';\n\nlet listeners = [\n function onScroll() {\n let timeout = 0;\n let onscroll = e => {\n clearTimeout(timeout);\n actions.setIsScrolling(true);\n timeout = setTimeout(() => {\n actions.setIsScrolling(false);\n }, 17);\n };\n\n window.addEventListener('scroll', onscroll, true);\n window.addEventListener('touchmove', onscroll, true);\n },\n\n function onResize() {\n let timeout = 0;\n let onresize = e => {\n requestAnimationFrame(() => {\n actions.setWindowWidth(document.documentElement.clientWidth);\n });\n };\n window.addEventListener('resize', onresize);\n },\n\n function openSearch() {\n let search = document.querySelector('.header__nav__search__icon');\n if (!search) return;\n search.addEventListener('click', function() {\n store.dispatch({\n type: 'TOGGLE_SEARCH',\n component: 'site',\n });\n });\n },\n\n\n function menuToggle() {\n let menu = document.getElementById('mobile-menu-toggle');\n if (!menu) return;\n menu.addEventListener('click', function() {\n store.dispatch({\n type: 'TOGGLE_MOBILE_MENU',\n component: 'site'\n });\n });\n },\n\n function scrollTarget() {\n actions.addScrollEvent({\n selector: '.scroll-target'\n });\n\n actions.addScrollEvent({\n selector: '.na-dataviz.lazy',\n offset: '-350',\n onEnter: el => {\n if (!el.classList.contains('scroll-triggered') && window.renderDataViz)\n window.renderDataViz(el);\n }\n });\n },\n\n function activeDropdownToggle() {\n let drops = document.querySelectorAll(\n '.header__nav__dropdown__header.drop'\n );\n if (!drops) return;\n for (let drop of drops) {\n drop.addEventListener('click', function(e) {\n e.stopPropagation();\n store.dispatch({\n type: 'TOGGLE_ACTIVE_DROPDOWN',\n component: 'site',\n el: this\n });\n });\n }\n\n document.body.addEventListener('click', () => {\n store.dispatch({\n type: 'TOGGLE_ACTIVE_DROPDOWN',\n component: 'site',\n el: null\n });\n });\n },\n\n function loadFadeInImage() {\n let images = document.querySelectorAll('.fade-in-image');\n if (!images) return;\n for (let i = 0; i < images.length; i++) {\n let img = images[i];\n if (img.complete || img.readyState === 4) {\n img.classList.add('loaded');\n continue;\n }\n images[i].addEventListener('load', function() {\n this.classList.add('loaded');\n });\n }\n }\n];\n\nexport default () => {\n for (let listener of listeners) listener();\n};\n","import actions from '../react/actions';\nimport triggerScrollEvents from './utils/trigger-scroll-events';\nimport store from '../react/store'\n\nlet observers = [\n function scroll(){\n let prevPosition = window.scrollY || window.pageYOffset,\n direction, prevDirection, position = 0, animationFrame = 0, startTime = 0;\n const onscroll = () => {\n position = window.scrollY || window.pageYOffset;\n\n if(position===prevPosition) direction = prevDirection\n else direction = position < prevPosition ? 'REVERSE' : 'FORWARD';\n\n triggerScrollEvents(\n position, prevPosition, direction,\n store.getState().site.scroll.events\n );\n actions.setScroll({ position, direction });\n prevPosition = position;\n prevDirection = direction;\n animationFrame = window.requestAnimationFrame(onscroll);\n }\n\n actions.addObserver({\n stateName: 'site.scroll.isScrolling',\n onChange: (isScrolling) => {\n if(isScrolling)\n animationFrame = window.requestAnimationFrame(onscroll);\n else\n window.cancelAnimationFrame(animationFrame);\n }\n });\n },\n\n function scrollDirection(){\n let body = document.getElementsByTagName('body')[0];\n actions.addObserver({\n stateName: 'site.scroll.direction',\n onChange: (direction) => {\n if(direction=='FORWARD') body.classList.remove('scroll-reverse');\n else body.classList.add('scroll-reverse');\n }\n });\n },\n\n function isLoading(){\n actions.addObserver({\n stateName: 'site.isLoading',\n onChange: (isLoading) => {\n if(isLoading) document.body.classList.add('is-loading');\n else document.body.classList.remove('is-loading');\n }\n });\n },\n\n function menuOpen(){\n let menu = document.getElementById('mobile-menu__wrapper');\n if(!menu) return;\n let lastScrollY = 0;\n actions.addObserver({\n stateName: 'site.mobileMenuIsOpen',\n onChange: (mobileMenuIsOpen)=>{\n if(mobileMenuIsOpen){\n lastScrollY = window.scrollY;\n menu.classList.add('open');\n document.body.style.top = -lastScrollY + 'px';\n document.body.classList.add('scroll-md-disabled');\n } else {\n menu.classList.remove('open');\n document.body.classList.remove('scroll-md-disabled');\n window.scrollTo(0, lastScrollY);\n document.body.style.top = '';\n }\n }\n });\n },\n\n function searchOpen(){\n let searchInput = document.getElementById('search-input');\n if(!searchInput) return;\n actions.addObserver({\n stateName: 'site.searchIsOpen',\n onChange: (searchIsOpen)=>{\n if(searchIsOpen){\n document.body.classList.add('search-is-open');\n searchInput.focus();\n } else {\n document.body.classList.remove('search-is-open');\n }\n }\n });\n },\n\n function toggleActiveDropdown(){\n actions.addObserver({\n stateName: 'site.activeDropdown',\n onChange: (activeDropdown, prevActiveDropdown)=>{\n if(prevActiveDropdown) prevActiveDropdown.parentNode.classList.remove('active');\n if(activeDropdown){\n document.body.classList.add('dropdown-active');\n activeDropdown.parentNode.classList.add('active')\n } else {\n document.body.classList.remove('dropdown-active');\n }\n }\n });\n }\n];\n\nexport default () => {\n for(let observer of observers) observer();\n}\n","export const ID = 'mobile-menu';\nexport const NAME = 'mobileMenu';\n","import './Heading.scss';\n\nimport React from 'react';\n\nconst Heading = ({selectedTab, switchTab}) => (\n
\n
\n {switchTab(false);}}>\n {selectedTab}\n \n
\n);\n\nexport default Heading;\n","import './SearchInput.scss';\n\nimport React from 'react';\nimport { Search } from '../../components/Icons';\n\nconst SearchInput = ({}) => (\n
\n
\n \n \n \n \n
\n);\n\nexport default SearchInput;\n","import './Tabs.scss';\n\nimport React from 'react';\nimport SearchInput from './SearchInput';\nimport { Response } from '../../components/API'\n\nexport const PrimaryTab = ({switchTab}) => (\n
\n
\n \n
\n \n
\n
\n \n
\n
\n Publications\n
\n
\n The Thread\n
\n
\n Events\n
\n
\n
\n);\n\nconst ProgramsTab = ({ response: { results }}) => {\n return(\n
\n {results.programs.sort((a,b) => (a.title > b.title ? 1 : -1)).map((p, i)=>(\n
\n {p.title}\n
\n ))}\n
\n );\n};\n\nconst 快活app官网Tab = ({ response: { results }}) => (\n
\n {results.about_pages.map((a,i)=>(\n
\n {a.title}\n
\n ))}\n
\n);\n\nexport const SecondaryTab = ({}) => (\n
\n \n \n
\n);\n","import './Menus.scss';\n\nimport React, { Component } from 'react';\nimport { Response } from '../../components/API';\nimport { connect } from 'react-redux';\nimport Heading from './Heading';\nimport { PrimaryTab, SecondaryTab } from './Tabs';\n\nclass Menus extends Component {\n constructor(props) {\n super(props);\n this.state = { selectedTab: false };\n }\n\n componentDidUpdate(prevProps){\n if(this.props.isOpen !== prevProps.isOpen && this.props.isOpen === false) this.setState({ selectedTab: false });\n }\n\n switchTab = (selectedTab) => {\n this.setState({ selectedTab });\n }\n\n render() {\n let { isOpen } = this.props;\n let { selectedTab } = this.state;\n return(\n
\n \n
\n \n \n
\n
\n );\n }\n}\n\nconst mapStateToProps = (state) => ({\n isOpen: state.site.mobileMenuIsOpen\n});\n\nexport default Menus = connect(mapStateToProps)(Menus);\n","import './index.scss';\n\nimport React, { Component } from 'react';\nimport { NAME, ID } from './constants';\nimport Menus from './components/Menus';\n\nclass APP extends Component {\n render(){\n return (\n \n );\n }\n}\n\nexport default { NAME, ID, APP };\n","import './scss/critical.scss';\nimport './scss/index.scss';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport * as ReactRedux from 'react-redux';\nimport * as Redux from 'redux';\n\nwindow.React = React;\nwindow.ReactDOM = ReactDOM;\nwindow.ReactRedux = ReactRedux;\nwindow.Redux = Redux;\n\nimport reactRenderer from './react/react-renderer';\nimport actions from './react/actions';\nimport cache from './react/cache';\nimport setMeta from './react/setMeta';\nimport addEventListeners from './lib/add-event-listeners';\nimport addObservers from './lib/add-observers';\nimport mobileMenu from './react/mobile-menu/index';\nimport Fetch from './react/api/components/Fetch';\nimport Response from './react/api/components/Response';\n\nconst _Fetch = props => (\n \n \n \n);\n\nconst _Response = props => (\n \n \n \n);\n\n// initialize on ready\nif (document.readyState != 'loading') init();\nelse document.addEventListener('DOMContentLoaded', init);\n\nwindow.newamericadotorg = {\n react: reactRenderer,\n actions,\n cache,\n Fetch: _Fetch,\n Response: _Response,\n renderDataViz: el => {\n let viz = document.querySelectorAll('.na-dataviz:not(.lazy)');\n\n if (!window.renderDataViz || !viz) return;\n for (let i = 0; i < viz.length; i++) {\n viz[i].setAttribute('id', viz[i].getAttribute('data-id'));\n window.renderDataViz(viz[i]);\n }\n }\n};\n\nfunction init() {\n setMeta();\n reactRenderer.add(mobileMenu);\n importPageComponents();\n addEventListeners();\n addObservers();\n actions.triggerScrollEvents();\n if (window.user.isAuthenticated) {\n cache.clearAll();\n console.log('cache cleared');\n }\n\n // JS for Datawrapper\n window.addEventListener(\"message\",function(a){if(void 0!==a.data[\"datawrapper-height\"])for(var e in a.data[\"datawrapper-height\"]){var t=document.getElementById(\"datawrapper-chart-\"+e)||document.querySelector(\"iframe[src*='\"+e+\"']\");t&&(t.style.height=a.data[\"datawrapper-height\"][e]+\"px\")}});\n}\n\nfunction importPageComponents() {\n import(/* webpackChunkName: \"na-core-components\" */ './react/components.core');\n\n switch (document.body.getAttribute('id')) {\n case 'na-home':\n import(/* webpackChunkName: \"na-home-components\" */ './react/components.home');\n break;\n case 'na-program':\n import(/* webpackChunkName: \"na-program-components\" */ './react/components.program');\n break;\n case 'na-report':\n import(/* webpackChunkName: \"na-report-components\" */ './react/components.report');\n break;\n case 'na-weekly':\n import(/* webpackChunkName: \"na-weekly-components\" */ './react/components.weekly');\n break;\n case 'na-thread':\n import(/* webpackChunkName: \"na-thread-components\" */ './react/components.thread');\n break;\n case 'na-indepth':\n import(/* webpackChunkName: \"na-indepth-components\" */ './react/components.indepth');\n break;\n case 'na-surveys-homepage':\n import(/* webpackChunkName: \"na-surveys-homepage-components\" */ './react/components.surveys-homepage');\n break;\n case 'na-preview':\n const urlParams = new URLSearchParams(window.location.search);\n\n let element = document.getElementById(\"na-react__preview\");\n\n element.dataset.token = urlParams.get(\"token\");\n element.dataset.contentType = urlParams.get(\"content_type\");\n\n if (urlParams.get(\"content_type\") == \"report.report\") {\n element.setAttribute(\"id\", \"na-react__report\"); // imitate the actual id used by the report page type\n import(/* webpackChunkName: \"na-report-components\" */ './react/components.report');\n } else if (urlParams.get(\"content_type\") == \"home.programaboutpage\" || urlParams.get(\"content_type\") == \"home.programabouthomepage\" ) {\n let programContainer = document.getElementById(\"na-react__preview\");\n programContainer.setAttribute(\"class\", \"program container--full-width\");\n\n // Recreate the inner program container element.\n let inner = document.createElement(\"div\");\n inner.setAttribute(\"id\", \"na-react__program-page\");\n inner.dataset.token = urlParams.get(\"token\");\n inner.dataset.contentType = urlParams.get(\"content_type\");\n inner.dataset.preview = true;\n inner.dataset.programId = \"-1\";\n inner.dataset.programType = \"program\";\n inner.dataset.programTitle = \"Preview\";\n programContainer.appendChild(inner);\n\n import(/* webpackChunkName: \"na-program-components\" */ './react/components.program');\n }\n break;\n default:\n break;\n }\n}\n","import {\n SET_PARAMS, SET_QUERY_PARAM, SET_QUERY, RESET_QUERY, SET_ENDPOINT, RECEIVE_RESULTS,\n RECEIVE_AND_APPEND_RESULTS, SET_BASE, BASEURL,\n SET_TEMPLATE_URL, RECEIVE_RENDERED_TEMPLATE,\n SET_HAS_NEXT, SET_HAS_PREVIOUS, SET_PAGE, SET_RESPONSE, APPEND_RESPONSE, PREPEND_RESPONSE,\n SET_IS_FETCHING, SET_HAS_RESULTS, SET_FETCHING_ERROR, SET_FETCHING_SUCCESS,\n SET_FETCHING_FAILURE\n} from './constants';\n\nimport getNestedState from '../../lib/utils/get-nested-state';\nimport { generateUrl, parseResponse } from './action-helpers';\n\nexport const setParams = (component, {endpoint, query, baseUrl}) => ({\n type: SET_PARAMS,\n component,\n endpoint,\n query,\n baseUrl\n});\n\nexport const setBase = (component, baseUrl) => ({\n type: SET_BASE,\n component,\n baseUrl\n});\n\n\nexport const setQueryParam = (component, {key, value}) => ({\n type: SET_QUERY_PARAM,\n component,\n key,\n value\n});\n\nexport const setQuery = (component, query) => ({\n type: SET_QUERY,\n component,\n query\n});\n\nexport const resetQuery = (component, query) => ({\n type: RESET_QUERY,\n component,\n query\n});\n\nexport const setEndpoint = (component, endpoint) => ({\n type: SET_ENDPOINT,\n component,\n endpoint\n});\n\nexport const setIsFetching = (component, status) => ({\n type: SET_IS_FETCHING,\n component,\n status\n});\n\nexport const setFetchingError = (component, error) => ({\n type: SET_FETCHING_ERROR,\n component,\n error\n});\n\nexport const setFetchingFailure = (component, error) => ({\n type: SET_FETCHING_FAILURE,\n component,\n error\n});\n\nexport const setFetchingSuccess = (component) => ({\n type: SET_FETCHING_SUCCESS,\n component\n});\n\nexport const setHasResults = (component, status) => ({\n type: SET_HAS_RESULTS,\n component,\n status\n});\n\nexport const receiveResults = (component, results) => ({\n type: RECEIVE_RESULTS,\n component,\n results\n});\n\nexport const appendResults = (component, results) => ({\n type: RECEIVE_AND_APPEND_RESULTS,\n component,\n results\n});\n\nexport const setResponse = (component, response, operation='replace') => ({\n type: SET_RESPONSE,\n component,\n response,\n operation\n});\n\nexport const setHasNext = (component, hasNext) => ({\n type: SET_HAS_NEXT,\n component,\n hasNext\n});\n\nexport const setHasPrevious = (component, hasPrevious) => ({\n type: SET_HAS_PREVIOUS,\n component,\n hasPrevious\n});\n\nexport const setPage = (component, page) => ({\n type: SET_PAGE,\n component,\n page\n});\n\nexport const setTemplateUrl = (component, templateUrl) => ({\n type: SET_TEMPLATE_URL,\n component,\n templateUrl\n});\n\nexport const receiveTemplate = (component, template) => ({\n type: RECEIVE_RENDERED_TEMPLATE,\n component,\n template\n});\n\nexport const fetchData = (component, callback=()=>{}, operation='replace', tries=0) => (dispatch,getState) => {\n let state = getNestedState(getState(), component);\n let url = generateUrl(state.params)\n let request = `${url.pathname}${url.searchParams.toString()}-withnextprevparams`;\n\n dispatch(setIsFetching(component, true));\n dispatch({ component: 'site', type: 'SITE_IS_LOADING', isLoading: true });\n\n return fetch(url.toString(), {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest'\n }\n }).then(response => {\n if (!response.ok) {\n throw Error(response.statusText);\n }\n return response.json();\n }).then(jsonResponse => {\n if (jsonResponse.error) {\n throw Error(jsonResponse.message);\n }\n return parseResponse(jsonResponse);\n }).then(json => {\n dispatch({ component: 'site', type: 'SITE_IS_LOADING', isLoading: false });\n dispatch(setFetchingSuccess(component));\n callback(json);\n dispatch(setResponse(component, json, operation));\n }).catch(function(error) {\n dispatch(setFetchingError(component, error));\n if(tries < 3){\n setTimeout(() => {\n dispatch(fetchData(component, callback, operation, tries+1));\n }, 500);\n } else {\n dispatch(setFetchingFailure(component, error));\n dispatch({ component: 'site', type: 'SITE_IS_LOADING', isLoading: false });\n }\n });\n}\n\nexport const fetchAndAppend = (component, callback=()=>{}) => {\n return fetchData(component, callback, 'append');\n}\n\nexport const fetchAndPrepend = (component, callback=()=>{}) => {\n return fetchData(component, callback, 'prepend');\n}\n","export const parseResponse = (json) => {\n let results, hasNext, hasPrevious, page, count;\n if(json.results){\n results = json.results;\n hasNext = json.next!==null;\n hasPrevious = json.previous!==null;\n page = 1;\n count = json.count;\n let re = /.+page=([0-9]+)/;\n\n if(hasNext){\n let next = re.exec(json.next);\n page = next ? +next[1]-1 : 1;\n } else if(hasPrevious){\n let next = re.exec(json.previous);\n page = next ? +next[1]+1 : 2;\n }\n } else {\n results = json;\n hasNext = false;\n hasPrevious = false;\n page = 1;\n count = null;\n }\n\n if(json.error)\n console.log(json.error, json.message);\n\n return {\n hasNext, hasPrevious, page, results, count, error: json.error,\n message: json.message,\n nextParams: json.next ? new URL(json.next).searchParams : null,\n prevParams: json.previous ? new URL(json.previous).searchParams : null,\n }\n};\n\nexport const generateUrl = (params) => {\n let url = new URL(`${params.baseUrl}${params.endpoint}/`);\n for(let k in params.query)\n url.searchParams.append(k, params.query[k]);\n\n return url;\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport reactRenderer from '../../react-renderer';\nimport Response from './Response';\nimport LoadingIcon from '../../components/LoadingIcon';\nimport { mapDispatchToProps, mapStateToProps } from './props';\n\nclass Fetch extends Component {\n hasLoaded = false;\n componentWillMount(){\n let {\n setEndpoint, resetQuery, receiveResults, endpoint,\n initialQuery, clear, fetchData, fetchOnMount, setBase, baseUrl\n } = this.props;\n\n setEndpoint(endpoint);\n if(baseUrl) setBase(baseUrl);\n resetQuery(initialQuery);\n\n if(clear){\n receiveResults([]);\n return;\n }\n\n if(fetchOnMount) fetchData();\n }\n\n componentDidUpdate(prevProps){\n let { fetchData, eager, resetQuery,initialQuery, fetchOnMount, endpoint, setEndpoint } = this.props;\n if(!eager || !fetchOnMount) return;\n if(JSON.stringify(prevProps.initialQuery) != JSON.stringify(initialQuery)|| prevProps.endpoint != endpoint ){\n setEndpoint(endpoint);\n resetQuery(initialQuery);\n fetchData();\n }\n }\n render() {\n let { className, showLoading, component, transition, fetchOnMount, renderIfNoResults, children, loadingState } = this.props;\n let { isFetching, results, hasResults} = this.props.response;\n\n if(component===null) return null;\n if(!hasResults && fetchOnMount){\n if(loadingState) return ( loadingState );\n if(showLoading) return (
);\n return null;\n }\n\n if(hasResults && results.length===0 && !renderIfNoResults && !this.hasLoaded) return null;\n this.hasLoaded = true;\n\n let classes = 'na-react__fetch-component' + (transition ? ' fetch-transition ' : '') + (className ? ' ' + className : '') + (isFetching ? ' is-fetching': '');\n\n if(!showLoading){\n return ();\n }\n\n return (\n \n \n {isFetching &&
}\n
\n );\n }\n}\n\nFetch = connect(\n mapStateToProps, mapDispatchToProps\n)(Fetch);\n\nclass FetchWrapper extends Component{\n static propTypes = {\n name: PropTypes.string.isRequired,\n endpoint: PropTypes.string.isRequired,\n component: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.string\n ]),\n loadingState: PropTypes.element,\n eager: PropTypes.bool,\n baseUrl: PropTypes.string,\n clear: PropTypes.bool,\n initialQuery: PropTypes.object,\n fetchOnMount: PropTypes.bool,\n showLoading: PropTypes.bool,\n transition: PropTypes.bool,\n renderIfNoResults: PropTypes.bool\n }\n\n static defaultProps = {\n initialQuery: {},\n fetchOnMount: false,\n eager: false,\n component: 'span',\n showLoading: false,\n transition: false,\n renderIfNoResults: true\n }\n\n name = null;\n\n constructor(props){\n super(props);\n\n let { name } = props;\n let component = reactRenderer.components[name] || {};\n\n if(name.indexOf('.')==-1 || !component.multi)\n this.name = name;\n else if(component.multi)\n this.name = `${name}.${component.components.length}`;\n\n }\n\n render(){\n return (\n \n );\n }\n}\n\nexport default FetchWrapper;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport LoadingIcon from '../../components/LoadingIcon';\nimport { mapStateToProps, mapDispatchToProps } from './props';\n\nclass Response extends Component {\n static propTypes = {\n name: PropTypes.string.isRequired,\n component: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.string\n ]),\n showLoading: PropTypes.bool,\n transition: PropTypes.bool,\n renderIfNoResults: PropTypes.bool\n }\n\n static defaultProps = {\n component: 'div',\n showLoading: false,\n transition: false,\n renderIfNoResults: true\n }\n\n hasLoaded = false;\n\n render(){\n let { children, className, transition, showLoading, component, fetchOnMount, renderIfNoResults} = this.props;\n let { isFetching, results, hasResults } = this.props.response;\n\n if(!hasResults && !this.hasLoaded){\n if(showLoading) return (
);\n return null;\n }\n if(hasResults && results.length===0 && !renderIfNoResults && !this.hasLoaded) return null;\n this.hasLoaded = true;\n\n let classes = 'na-react__fetch-response' + (transition ? ' fetch-transition ' : '') + (className ? ' ' + className : '') + (isFetching ? ' is-fetching': '');\n\n if(!showLoading){\n return ();\n }\n\n return (\n \n \n {children}\n {isFetching &&
}\n
\n );\n }\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(Response);\n","import {\n fetchData, fetchAndAppend, fetchAndPrepend, setEndpoint, setQueryParam, setParams,\n setQuery, resetQuery, setBase, receiveResults\n} from '../actions';\nimport { BASEURL } from '../constants';\nimport getNestedState from '../../../lib/utils/get-nested-state';\n\nlet defaultResponse = { isFetching: false, hasNext: false, hasPrevious: false, count: 0, results: [] };\n\nexport const mapStateToProps = (state, { name, baseUrl }) => {\n let componentState = getNestedState(state, name);\n return {\n response: componentState ?\n (componentState.results ? componentState : defaultResponse) :\n defaultResponse,\n baseUrl: baseUrl || state.site.baseUrl || BASEURL\n }\n};\n\nexport const mapDispatchToProps = (dispatch, props) => ({\n setParams: ({ endpoint, query, baseUrl }, eager) => {\n dispatch(setParams(props.name, { endpoint, query, baseUrl }));\n if(eager===true) dispatch(fetchData(props.name));\n },\n\n setEndpoint: (endpoint, eager) => {\n dispatch(setEndpoint(props.name, endpoint));\n if(eager===true) dispatch(fetchData(props.name));\n },\n\n setQueryParam: (key, value, eager) => {\n dispatch(setQueryParam(props.name, {key, value}));\n if(eager===true) dispatch(fetchData(props.name));\n },\n\n setQuery: (query, eager) => {\n dispatch(setQuery(props.name, query));\n if(eager===true) dispatch(fetchData(props.name));\n },\n\n resetQuery: (query, eager) => {\n dispatch(resetQuery(props.name, query));\n if(eager===true) dispatch(fetchData(props.name));\n },\n\n setBase: (baseUrl, eager) => {\n dispatch(setBase(props.name, baseUrl));\n if(eager===true) dispatch(fetchData(props.name));\n },\n\n fetchData: (callback) => {\n dispatch(fetchData(props.name, callback));\n },\n\n fetchAndAppend: (callback) => {\n dispatch(fetchAndAppend(props.name, callback));\n },\n\n fetchAndPrepend: (callback) => {\n dispatch(fetchAndPrepend(props.name, callback));\n },\n\n receiveResults: (val) => {\n dispatch(receiveResults(props.name, val));\n },\n\n clearResults: () => {\n dispatch(receiveResults(props.name, []))\n },\n\n dispatch\n\n});\n","export const BASEURL = `${window.location.origin}/api/`;\nexport const SET_PARAMS = 'SET_PARAMS';\nexport const SET_QUERY_PARAM = 'SET_QUERY_PARAM';\nexport const SET_QUERY = 'SET_QUERY';\nexport const RESET_QUERY = 'RESET_QUERY';\nexport const SET_ENDPOINT = 'SET_ENDPOINT';\nexport const RECEIVE_RESULTS = 'RECEIVE_RESULTS';\nexport const RECEIVE_AND_APPEND_RESULTS = 'RECEIVE_AND_APPEND_RESULTS';\nexport const RECEIVE_AND_PREPEND_RESULTS = 'RECEIVE_AND_PREPEND_RESULTS';\nexport const SET_BASE = 'SET_BASE';\nexport const SET_TEMPLATE_URL = 'SET_TEMPLATE_URL';\nexport const RECEIVE_RENDERED_TEMPLATE = 'RECEIVE_RENDERED_TEMPLATE';\nexport const SET_HAS_NEXT = 'SET_HAS_NEXT';\nexport const SET_HAS_PREVIOUS = 'SET_HAS_PREVIOUS';\nexport const SET_PAGE = 'SET_PAGE';\nexport const SET_RESPONSE = 'SET_RESPONSE';\nexport const SET_IS_FETCHING = 'SET_IS_FETCHING';\nexport const SET_HAS_RESULTS = 'SET_HAS_RESULTS';\nexport const SET_FETCHING_ERROR = 'SET_FETCHING_ERROR';\nexport const SET_FETCHING_SUCCESS = 'SET_FETCHING_SUCCESS';\nexport const SET_FETCHING_FAILURE = 'SET_FETCHING_FAILURE';\n","import store from 'store';\nimport expirePlugin from 'store/plugins/expire';\n\nstore.addPlugin(expirePlugin);\n\nexport default store;\n","import './Icons.scss';\n\nimport React from 'react';\n\nexport const Arrow = ({ direction, ...props }) => (\n
\n
\n
\n
\n
\n);\n\nexport const Doc = (props) => (\n
\n
\n
\n
\n
\n
\n
\n);\n\nexport const PlusX = ({x, white, large, ...props}) => (\n
\n
\n
\n
\n);\n\nexport const LoadingDots = ({ color='black' }) => (\n
\n ...\n
\n);\n\nexport const Search = () => (\n
\n \n \n
\n);\n\nexport const DataViz = ({ className, ...props }) => (\n \n icon_data_viz\n \n);\n\nexport const Home = ({ className, ...props }) => (\n \n icon_home\n \n);\n\nexport const Download = ({ className, ...props }) => (\n \n icon_download\n \n);\n\nexport const Highlight = ({ className, ...props }) => (\n \n icon_highlight\n \n);\n\nexport const Report = ({ className, ...props }) => (\n \n icon_report_1\n \n);\n\nexport const Resource = ({ className, ...props }) => (\n \n icon_resource\n \n);\n","import React from 'react';\n\nconst LoadingIcon = () => (\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n);\n\nexport default LoadingIcon;\n","// constants\nexport const SET_SCROLL_POSITION = 'SET_SCROLL_POSITION';\nexport const ADD_SCROLL_EVENT = 'ADD_SCROLL_EVENT';\nexport const SET_SCROLL_DIRECTION = 'SET_SCROLL_DIRECTION';\nexport const RELOAD_SCROLL_EVENT = 'RELOAD_SCROLL_EVENT';\nexport const RELOAD_SCROLL_EVENTS = 'RELOAD_SCROLL_EVENTS';\nexport const TRIGGER_SCROLL_EVENTS = 'TRIGGER_SCROLL_EVENTS';\nexport const SET_AD_HOC_STATE = 'SET_AD_HOC_STATE';\nexport const SET_SCROLL = 'SET_SCROLL';\nexport const SET_IS_SCROLLING = 'SET_IS_SCROLLING';\nexport const TOGGLE_MOBILE_MENU = 'TOGGLE_MOBILE_MENU';\nexport const SET_ANY_STATE = 'SET_ANY_STATE';\nexport const SET_SITE_BASEURL = 'SET_SITE_BASEURL';\nexport const SITE_IS_LOADING = 'SITE_IS_LOADING';\nexport const TOGGLE_SEARCH = 'TOGGLE_SEARCH';\nexport const SET_SEARCH_IS_OPEN = 'SET_SEARCH_IS_OPEN';\nexport const SET_WINDOW_WIDTH = 'SET_WINDOW_WIDTH';\nexport const SET_IP = 'SET_IP';\nexport const TOGGLE_ACTIVE_DROPDOWN = 'TOGGLE_ACTIVE_DROPDOWN';\n","import { render } from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { camelize, getProps } from '../lib/utils/index';\nimport React from 'react';\nimport { siteReducer } from './reducers';\nimport store from './store';\n\nclass ReactRenderer {\n constructor(store){\n this.store = store;\n this.components = {};\n }\n\n add(COMPONENT) {\n siteReducer.addComponentReducer(COMPONENT);\n\n if(COMPONENT.MULTI)\n this.__addMulti__(COMPONENT.NAME, COMPONENT.ID, COMPONENT.APP, COMPONENT.REDUCERS);\n else\n this.__add__(COMPONENT.NAME, COMPONENT.ID, COMPONENT.APP, COMPONENT.REDUCERS);\n }\n\n __addMulti__(name, id, App) {\n let selector = `na-react__${id}`;\n let els = document.getElementsByClassName(selector);\n if(!this.components[selector])\n this.components[selector] = { components: [], multi: true };\n\n for(let i=0; i { this.__addMulti__(name, id, App); }\n else\n this.components[selector].render = () => { console.warn(`${name} is already rendered!`); }\n }\n\n __add__(name, id, App, reducers) {\n let selector = `na-react__${id}`;\n let el = document.getElementById(selector);\n this.components[name] = { name, selector, el, multi: false, reducers }\n\n if(el){\n this.components[name].app = this.__render__(el, App);\n this.components[name].render = () => { console.warn(`${name} is already rendered!`); }\n } else {\n this.components[name].render = () => { this.__add__(name, id, App); }\n }\n }\n\n __render__(el, App, index=0){\n let props = getProps(el);\n props.index = index;\n return render(\n ,\n el\n );\n }\n}\n\nexport default new ReactRenderer(store);\n","import {\n SET_PARAMS, SET_QUERY_PARAM, SET_QUERY, RESET_QUERY, SET_ENDPOINT, RECEIVE_RESULTS,\n RECEIVE_AND_APPEND_RESULTS, RECEIVE_AND_PREPEND_RESULTS, SET_BASE, BASEURL,\n SET_TEMPLATE_URL, RECEIVE_RENDERED_TEMPLATE,\n SET_HAS_NEXT, SET_HAS_PREVIOUS, SET_PAGE, SET_RESPONSE,\n SET_IS_FETCHING, SET_HAS_RESULTS, SET_FETCHING_ERROR, SET_FETCHING_SUCCESS,\n SET_FETCHING_FAILURE\n} from './constants';\n\nconst paramsState = {\n baseUrl: BASEURL, endpoint: 'post', query: {}\n}\n\nfunction ensureQueryIsObject(query) {\n // The internal state uses an object to represent query parameters at the moment\n // This function ensures any URLSearchParams are converted to objects\n\n if (query instanceof URLSearchParams) {\n const queryObj = {};\n query.forEach((value, key) => {\n queryObj[key] = value;\n });\n return queryObj;\n }\n\n return query\n}\n\nexport const params = (state=paramsState, action) => {\n switch(action.type) {\n case SET_PARAMS:\n return {\n baseUrl: action.baseUrl || state.baseUrl,\n endpoint: action.endpoint || state.endpoint,\n query: (action.query ? { ...state.query, ...ensureQueryIsObject(action.query) } : state.query)\n };\n case SET_QUERY_PARAM:\n return {\n ...state,\n query: {\n ...state.query,\n [action.key]: action.value\n }\n };\n case SET_QUERY:\n return {\n ...state,\n query: {\n ...state.query,\n ...ensureQueryIsObject(action.query)\n }\n };\n case RESET_QUERY:\n return {\n ...state,\n query: action.query || {}\n }\n case SET_ENDPOINT:\n return {\n ...state,\n endpoint: action.endpoint\n }\n case SET_BASE:\n return {\n ...state,\n baseUrl: action.baseUrl\n }\n default:\n return state;\n }\n}\n\nexport const responseStatus = (state={ status: 'OK', error: false }, action) => {\n switch(action.type) {\n case SET_IS_FETCHING:\n if(action.status === true)\n return {\n status: 'FETCHING',\n error: false\n }\n return state;\n case SET_FETCHING_ERROR:\n return {\n status: 'FAILING',\n error: action.error\n }\n case SET_FETCHING_SUCCESS:\n return {\n status: 'OK',\n error: false\n }\n case SET_FETCHING_FAILURE:\n return {\n status: 'FAILED',\n error: action.error\n }\n default:\n return state;\n }\n}\n\nexport const results = (state=[], action) => {\n switch(action.type) {\n case SET_RESPONSE:\n if(action.operation==='append')\n return [...state, ...action.response.results];\n else if(action.operation=='prepend')\n return [...action.response.results, ...state];\n else\n return action.response.results;\n case RECEIVE_AND_APPEND_RESULTS:\n return [...state, ...action.results];\n case RECEIVE_AND_PREPEND_RESULTS:\n return [...action.results, ...state];\n case RECEIVE_RESULTS:\n return action.results;\n default:\n return state;\n }\n}\n\nexport const isFetching = (state=false, action) => {\n switch(action.type){\n case SET_RESPONSE:\n return false;\n case SET_IS_FETCHING:\n return action.status;\n default:\n return state;\n }\n}\n\nexport const hasResults = (state=false, action) => {\n switch(action.type){\n case SET_RESPONSE:\n return true;\n case SET_HAS_RESULTS:\n return action.status;\n default:\n return state;\n }\n}\n\nexport const count = (state=null, action) => {\n switch(action.type){\n case SET_RESPONSE:\n return action.response.count || null;\n default:\n return state;\n }\n}\n\nexport const hasNext = (state=false, action) => {\n switch(action.type){\n case SET_RESPONSE:\n return action.response.hasNext;\n case SET_HAS_NEXT:\n return action.hasNext;\n default:\n return state;\n }\n}\n\nexport const hasPrevious = (state=false, action) => {\n switch(action.type){\n case SET_RESPONSE:\n return action.response.hasPrevious;\n case SET_HAS_PREVIOUS:\n return action.hasPrevious;\n default:\n return state;\n }\n}\n\nexport const page = (state=1, action) => {\n switch(action.type){\n case SET_RESPONSE:\n return action.response.page || 1;\n case SET_PAGE:\n return action.page;\n default:\n return state;\n }\n}\n\nexport const nextParams = (state=null, action) => {\n switch(action.type){\n case SET_RESPONSE:\n if (action.response.nextParams) {\n return action.response.nextParams;\n } else {\n return state;\n }\n\n default:\n return state;\n }\n}\n\nexport const prevParams = (state=null, action) => {\n switch(action.type){\n case SET_RESPONSE:\n if (action.response.prevParams) {\n return action.response.prevParams;\n } else {\n return state;\n }\n\n default:\n return state;\n }\n}\n\nexport const templateUrl = (state='', action) => {\n switch(action.type) {\n case SET_TEMPLATE_URL:\n return action.templateUrl;\n default:\n return state;\n }\n}\n\nexport const templateResult = (state={}, action) => {\n switch(action.type){\n case RECEIVE_RENDERED_TEMPLATE:\n return action.templateResult;\n default:\n return state;\n }\n}\n\nconst reducers = {\n params,\n responseStatus,\n results,\n hasNext,\n hasPrevious,\n count,\n page,\n nextParams,\n prevParams,\n isFetching,\n hasResults\n}\n\nexport default reducers;\n","import { combineReducers } from 'redux';\nimport triggerScrollEvents from '../lib/utils/trigger-scroll-events';\nimport apiReducers from './api/reducers';\n\nimport {\n SET_SCROLL_POSITION, SET_SCROLL_DIRECTION, ADD_SCROLL_EVENT,\n RELOAD_SCROLL_EVENT, RELOAD_SCROLL_EVENTS, TRIGGER_SCROLL_EVENTS, SET_AD_HOC_STATE,\n SET_SCROLL, SET_IS_SCROLLING, SET_SEARCH_IS_OPEN, TOGGLE_MOBILE_MENU,\n SET_SITE_BASEURL, SITE_IS_LOADING, TOGGLE_SEARCH, SET_WINDOW_WIDTH, SET_IP,\n TOGGLE_ACTIVE_DROPDOWN\n} from './constants';\n\n// reducers\nconst scrollEvents = (state=[], action) => {\n switch(action.type){\n case ADD_SCROLL_EVENT:\n return [...state, action.eventObject];\n case RELOAD_SCROLL_EVENT:\n let e = state.splice(action.event.index,1)[0];\n return [...state, {...e, els: document.querySelectorAll(e.selector)}];\n case RELOAD_SCROLL_EVENTS:\n let events = [];\n for(let e of state)\n events.push({...e, els: document.querySelectorAll(e.selector)});\n return events;\n case TRIGGER_SCROLL_EVENTS:\n // not best redux practice, but easiest way to retrigger scroll events when\n // there is no scroll is through reducer\n triggerScrollEvents(window.scrollY, window.scrollY, 'FORWARD', state);\n return state;\n default:\n return state;\n }\n}\n\nconst scroll = (state={position: 0, direction: 'FORWARD', events: [], isScrolling: false}, action) => {\n switch(action.type){\n case SET_SCROLL_POSITION:\n return { ...state, position: action.position };\n case SET_SCROLL_DIRECTION:\n return { ...state, direction: action.direction };\n case SET_SCROLL:\n return { ...state, ...action.scroll };\n case SET_IS_SCROLLING:\n return { ...state, isScrolling: action.isScrolling };\n case ADD_SCROLL_EVENT:\n case RELOAD_SCROLL_EVENTS:\n case RELOAD_SCROLL_EVENT:\n case TRIGGER_SCROLL_EVENTS:\n return { ...state, events: scrollEvents(state.events, action)};\n default:\n return state;\n }\n}\n\nconst mobileMenuIsOpen = (state=false, action) => {\n switch(action.type){\n case TOGGLE_MOBILE_MENU:\n return !state;\n default:\n return state;\n }\n}\n\nconst searchIsOpen = (state=false, action) => {\n switch(action.type){\n case TOGGLE_SEARCH:\n return !state;\n case SET_SEARCH_IS_OPEN:\n return action.isOpen;\n default:\n return state;\n }\n}\n\nconst baseUrl = (state=false, action) => {\n switch(action.type){\n case SET_SITE_BASEURL:\n return action.url;\n default:\n return state;\n }\n}\n\nconst ip = (state=0, action) => {\n switch(action.type){\n case SET_IP:\n return action.ip;\n default:\n return state;\n }\n}\n\nconst isLoading = (state=false, action) => {\n switch(action.type){\n case SITE_IS_LOADING:\n return action.isLoading;\n default:\n return state;\n }\n}\n\nconst windowWidth = (state=document.documentElement.clientWidth, action) => {\n switch(action.type){\n case SET_WINDOW_WIDTH:\n return action.width;\n default:\n return state;\n }\n}\n\nconst activeDropdown = (state=null, action) => {\n switch(action.type){\n case TOGGLE_ACTIVE_DROPDOWN:\n if(state==action.el)\n return null;\n return action.el;\n default:\n return state;\n }\n}\n\nlet reducer = combineReducers({\n scroll,\n searchIsOpen,\n mobileMenuIsOpen,\n baseUrl,\n isLoading,\n windowWidth,\n ip,\n activeDropdown\n});\n\nimport { SET_ANY_STATE } from './constants';\nconst setAnyState = (state) => {\n if(state instanceof Array)\n return [...state];\n if(state instanceof Object)\n return {...state};\n return state;\n}\n\nclass SiteReducer {\n constructor(){\n this.componentReducers = {\n site: (state, action) => {\n return{\n ...state,\n ...reducer(state, action)\n }\n },\n default: combineReducers(apiReducers)\n };\n }\n\n setNestedState = (state, componentName, action, rdcr) => {\n let i = componentName.indexOf('.');\n let name = i === -1 ? componentName : componentName.slice(0,i);\n let componentState = state[name] || {};\n\n if(!rdcr) rdcr = this.getComponentReducer(name) || this.getComponentReducer('default');\n\n if(i===-1){\n if(rdcr===SET_ANY_STATE) return { [name]: setAnyState(action.state) };\n return { [name]: rdcr(componentState, action) };\n }\n\n let subName = componentName.slice(i+1, componentName.length);\n\n return {\n [name]: {\n ...componentState,\n ...this.setNestedState(componentState, subName, action, rdcr)\n }\n };\n }\n\n reducer = (state={ site: {} }, action) => {\n // Each action needs the name of the component in action.component\n if(action.type && action.component){\n let rdcr = action.type == SET_ANY_STATE ? SET_ANY_STATE : false;\n let _state = {\n ...state,\n ...this.setNestedState(state, action.component, action, rdcr)\n }\n\n return _state;\n }\n\n return state;\n }\n\n\n getComponentReducer(name){\n return this.componentReducers[name];\n }\n\n addComponentReducer(component){\n let name = component.NAME.split('.')[0];\n\n if(component.REDUCERS)\n this.componentReducers[name] = combineReducers({ ...apiReducers, ...component.REDUCERS });\n else\n this.componentReducers[name] = combineReducers(apiReducers);\n\n return this;\n }\n}\n\nexport const siteReducer = new SiteReducer();\n","import { createStore, applyMiddleware } from 'redux';\nimport thunkMiddleware from 'redux-thunk'\n\nimport { siteReducer } from './reducers';\n\nexport default createStore(\n siteReducer.reducer,\n applyMiddleware(thunkMiddleware)\n);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + ({\"49\":\"na-press-room\",\"55\":\"na-subscribe\",\"271\":\"na-our-funding\",\"324\":\"na-jobs\",\"355\":\"na-search\",\"363\":\"na-weekly-components\",\"429\":\"na-our-story\",\"523\":\"na-thread-components\",\"524\":\"na-programs\",\"555\":\"na-home-components\",\"564\":\"na-surveys-homepage-components\",\"576\":\"na-events\",\"597\":\"na-indepth-components\",\"613\":\"na-core-components\",\"707\":\"na-program-components\",\"789\":\"na-report-components\",\"814\":\"na-publications\"}[chunkId] || chunkId) + \"-\" + __webpack_require__.h() + \".js\";\n};","// This function allow to reference all chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + {\"49\":\"na-press-room\",\"55\":\"na-subscribe\",\"271\":\"na-our-funding\",\"314\":\"newamericadotorg\",\"324\":\"na-jobs\",\"355\":\"na-search\",\"363\":\"na-weekly-components\",\"429\":\"na-our-story\",\"523\":\"na-thread-components\",\"524\":\"na-programs\",\"555\":\"na-home-components\",\"564\":\"na-surveys-homepage-components\",\"576\":\"na-events\",\"597\":\"na-indepth-components\",\"613\":\"na-core-components\",\"707\":\"na-program-components\",\"789\":\"na-report-components\",\"814\":\"na-publications\"}[chunkId] + \"-\" + __webpack_require__.h() + \".css\";\n};","__webpack_require__.h = () => (\"f2ab1270182d56ffe19d\")","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t314: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknewamerica_cms\"] = self[\"webpackChunknewamerica_cms\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [152], () => (__webpack_require__(69151)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","loadStylesheet","installedCssChunks","getNestedState","state","name","i","indexOf","undefined","slice","length","str","replace","g","toUpperCase","el","props","attributes","attr","nodeName","val","nodeValue","camelize","scrollPosition","prevScrollPosition","direction","events","oneE","_step","docHeight","Math","max","document","documentElement","clientHeight","window","innerHeight","ENTER_CLASS","LEFT_CLASS","IN_VIEW_CLASS","HAS_TRIGGERED_CLASS","_iterator","_createForOfIteratorHelper","s","n","done","_step2","e","value","_iterator2","els","rect","getBoundingClientRect","offset","getOffset","getAttribute","topOffset","bottomOffset","triggerPointOffset","getTriggerPointOffset","triggerPoint","markedEntered","classList","contains","markedLeft","markedInView","markedTriggered","hasEntered","top","hasLeft","offsetHeight","progress","inView","targetSelector","target","querySelector","onEnter","remove","add","onTick","enter","onLeave","leave","err","f","observerFactory","stateName","onChange","currentState","nextState","store","scroll","SmoothScroll","_createClass","Actions","_this","_classCallCheck","_defineProperty","position","scrollTo","type","SET_SCROLL_POSITION","component","_ref","SET_SCROLL","_ref2","selector","querySelectorAll","ADD_SCROLL_EVENT","eventObject","SET_SCROLL_DIRECTION","isScrolling","SET_IS_SCROLLING","event","site","scrollEvents","index","findScrollEventBySelector","addScrollEvent","RELOAD_SCROLL_EVENT","RELOAD_SCROLL_EVENTS","anchor","animateScroll","TRIGGER_SCROLL_EVENTS","width","SET_WINDOW_WIDTH","SET_ANY_STATE","_ref3","observer","concat","_ref4","getState","setState","SET_SEARCH_IS_OPEN","isOpen","_isOpen","TOGGLE_MOBILE_MENU","url","SET_SITE_BASEURL","setParams","endpoint","fetchData","listeners","timeout","onscroll","clearTimeout","actions","setTimeout","addEventListener","requestAnimationFrame","clientWidth","search","menu","getElementById","renderDataViz","drops","stopPropagation","this","body","images","img","complete","readyState","observers","prevDirection","prevPosition","scrollY","pageYOffset","animationFrame","triggerScrollEvents","cancelAnimationFrame","getElementsByTagName","isLoading","lastScrollY","mobileMenuIsOpen","style","searchInput","searchIsOpen","focus","activeDropdown","prevActiveDropdown","parentNode","selectedTab","switchTab","React","className","href","onClick","_objectDestructuringEmpty","action","method","Search","autoComplete","id","placeholder","PrimaryTab","SearchInput","ProgramsTab","results","response","programs","sort","a","b","title","map","p","key","slug","快活app官网Tab","about_pages","SecondaryTab","Response","Menus","_Component","_inherits","_super","_createSuper","call","_assertThisInitialized","prevProps","toLowerCase","Heading","Component","connect","NAME","ID","APP","apply","arguments","ReactDOM","ReactRedux","Redux","init","setMeta","reactRenderer","mobileMenu","urlParams","URLSearchParams","location","element","dataset","token","get","contentType","setAttribute","programContainer","inner","createElement","preview","programId","programType","programTitle","appendChild","importPageComponents","_i","_listeners","listener","addEventListeners","_observers","addObservers","user","isAuthenticated","cache","console","log","data","t","height","newamericadotorg","react","Fetch","viz","query","baseUrl","SET_PARAMS","setBase","SET_BASE","setQueryParam","SET_QUERY_PARAM","setQuery","SET_QUERY","resetQuery","RESET_QUERY","setEndpoint","SET_ENDPOINT","receiveResults","RECEIVE_RESULTS","setResponse","operation","SET_RESPONSE","callback","tries","dispatch","params","URL","k","searchParams","append","generateUrl","pathname","toString","status","SET_IS_FETCHING","setIsFetching","fetch","headers","then","ok","Error","statusText","json","jsonResponse","error","message","hasNext","hasPrevious","page","count","next","previous","re","exec","nextParams","prevParams","parseResponse","SET_FETCHING_SUCCESS","setFetchingSuccess","catch","SET_FETCHING_ERROR","setFetchingError","SET_FETCHING_FAILURE","setFetchingFailure","fetchAndAppend","fetchAndPrepend","_len","args","Array","_key","_this$props","initialQuery","clear","fetchOnMount","_this$props2","eager","JSON","stringify","_this$props3","showLoading","transition","renderIfNoResults","loadingState","children","_this$props$response","isFetching","hasResults","LoadingIcon","hasLoaded","classes","mapStateToProps","mapDispatchToProps","FetchWrapper","_Component2","_super2","_this2","multi","components","_extends","PropTypes","defaultResponse","componentState","BASEURL","clearResults","origin","RECEIVE_AND_APPEND_RESULTS","RECEIVE_AND_PREPEND_RESULTS","SET_HAS_NEXT","SET_HAS_PREVIOUS","SET_PAGE","SET_HAS_RESULTS","expirePlugin","Arrow","_objectWithoutProperties","_excluded","PlusX","x","white","large","_excluded2","LoadingDots","_ref3$color","color","DataViz","_excluded3","xmlns","viewBox","d","Home","_ref5","_excluded4","points","Download","_ref6","_excluded5","Highlight","_ref7","_excluded6","Resource","_ref9","_excluded8","SITE_IS_LOADING","TOGGLE_SEARCH","SET_IP","TOGGLE_ACTIVE_DROPDOWN","ReactRenderer","COMPONENT","siteReducer","MULTI","__addMulti__","REDUCERS","__add__","App","getElementsByClassName","app","__render__","push","render","warn","reducers","getProps","Provider","paramsState","ensureQueryIsObject","queryObj","forEach","_objectSpread","responseStatus","_toConsumableArray","splice","reducer","combineReducers","windowWidth","ip","SiteReducer","componentName","rdcr","getComponentReducer","Object","setAnyState","subName","setNestedState","componentReducers","default","apiReducers","split","createStore","applyMiddleware","thunkMiddleware","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","loaded","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","r","getter","__esModule","definition","o","defineProperty","enumerable","chunkId","Promise","all","reduce","promises","u","h","miniCssF","globalThis","Function","hmd","create","set","obj","prop","prototype","hasOwnProperty","l","script","needAttach","scripts","charset","nc","src","crossOrigin","onScriptComplete","prev","onerror","onload","doneFns","removeChild","bind","head","Symbol","toStringTag","nmd","paths","resolve","reject","fullhref","existingLinkTags","datahref","tag","rel","existingStyleTags","findStylesheet","linkTag","errorType","realhref","code","request","createStylesheet","miniCss","installedChunks","installedChunkData","promise","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}