{"version":3,"sources":["webpack:///./src/js/components/react/Dropdown.js","webpack:///./src/js/components/react/Pagination.js","webpack:///./src/js/helpers/reactHooks/useParams.js","webpack:///./src/js/helpers/reactHooks/useFetch.js","webpack:///./src/js/components/react/SearchBar.js","webpack:///./src/js/components/react/Button.js","webpack:///./src/js/helpers/reactHooks/useExpandCollapse.js","webpack:///./src/js/components/react/filters/FilterItem.js","webpack:///./src/js/components/react/filters/FilterList.js","webpack:///./src/js/components/react/card-listing/ClientCard.js","webpack:///./src/js/components/react/card-listing/ResourceCard.js","webpack:///./src/js/components/react/CardListing.js"],"names":["Dropdown","label","placeholder","selectedOption","options","onChange","disabled","compareAttr","style","useState","open","toggle","cursor","setCursor","guid","useRef","uuidv4","listboxGuid","nativeEl","dropdownEl","triggerEl","listingEl","useEffect","handleClickOutside","e","container","current","target","contains","document","addEventListener","removeEventListener","focus","index","findIndex","option","getDisplayLabel","className","htmlFor","isDevice","ref","id","find","value","Value","tabIndex","aria-label","map","i","key","role","type","aria-haspopup","aria-expanded","aria-controls","onClick","aria-activedescendant","onKeyDown","keyCode","preventDefault","length","aria-selected","handleOptionClick","propTypes","PropTypes","string","shape","oneOfType","number","bool","arrayOf","object","func","isRequired","Pagination","currentPage","totalPages","onNavigate","resultsPerPage","pagesArr","push","CurrentPage","InnerPagination","PaginationEllipsis","href","viewBox","xlinkHref","useParams","updateQs","useMemo","qs","parse","location","search","ignoreQueryPrefix","query","page","sort","currentContent","filters","Object","keys","forEach","filter","dates","params","setParams","qsParams","qsValue","stringify","encode","encodeValuesOnly","arrayFormat","newUrl","protocol","host","pathname","history","pushState","buildQueryString","handlePopState","window","useFetch","endpoint","language","results","setResults","loading","setLoading","Axios","method","url","data","console","log","fetchData","SearchBar","searchLabel","onClear","onSearch","initialQuery","endpointSuggestions","setQuery","component","searchForm","suggestions","setSuggestions","suggestionsOpen","setSuggestionsOpen","selectedSuggestion","setSelectedSuggestion","suggestionsList","element","display","close","list","selected","querySelector","offsetHeight","scrollTop","offsetTop","classList","add","remove","handleSubmit","item","handleLoadSuggestions","q","aria-owns","autoComplete","onSubmit","name","which","UP","DOWN","RETURN","ESC","onFocus","onBlur","handleSelectedOption","Button","theme","clickAction","onDarkBg","small","iconLeft","iconRight","icons","download","join","useExpandCollapse","trigger","setAttribute","visibility","parentNode","onComplete","height","FilterItem","onFilterChange","breakpoint","matchMedia","keyword","matches","setDisplay","listRef","triggerRef","selectedCount","setSelectedCount","count","opt","listener","debounce","aria-labelledby","aria-hidden","data-list-from","checked","includes","selectedClone","splice","indexOf","array","FilterList","selectedFilters","onFiltersChange","onResetFilters","resetBtnLabel","filterHeading","filterListTrigger","filterLists","displayFilters","setDisplayFilters","ClientCard","cardData","cardType","headline","imageAlt","imageUrl","isExternal","subHeadline","title","date","CARD_TYPE","client","src","alt","ResourceCard","description","trackId","hitId","hitType","data-trackid","data-hitid","fetch","slice","split","resource","leader","event","CardListing","suggestionLabel","noResultsLabel","subTitle","hasFilters","hasSearchBar","hasSortBy","initialLoad","setInitialLoad","cardTypeName","setPage","setSort","setFilters","facets","featuredLinks","resultListing","resultsInfo","sortOptions","totalResults","resultsSummary","didYouMean","anchorRef","link","text","getCardComponent","Number","Math","ceil","scrollIntoView","handlePaginate","prototype","React","memo"],"mappings":"g6CAKA,IAAMA,EAAW,SAAC,GASZ,IARJC,EAQI,EARJA,MACAC,EAOI,EAPJA,YACAC,EAMI,EANJA,eAMI,IALJC,eAKI,MALM,GAKN,EAJJC,EAII,EAJJA,SAII,IAHJC,gBAGI,aAFJC,mBAEI,MAFU,QAEV,EADJC,EACI,EADJA,MACI,IACmBC,oBAAS,GAD5B,GACGC,EADH,KACSC,EADT,SAEwBF,mBAAS,MAFjC,GAEGG,EAFH,KAEWC,EAFX,KAGEC,EAAOC,iBAAOC,eACdC,EAAcF,iBAAOC,eACrBE,EAAWH,iBAAO,MAClBI,EAAaJ,iBAAO,MACpBK,EAAYL,iBAAO,MACnBM,EAAYN,iBAAO,MAEzBO,qBAAU,WACR,IA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AAG,OAAIA,EAAIrD,YACxBuH,EAAYzO,MAAK,SAAAuK,GAAG,OAAIA,EAAIrD,YAC5BuH,EAAY,GAElB9Q,SAAU,SAAA4F,GAAI,OAAI4K,EAAQ5K,EAAKtD,YAOzC,yBAAKH,IAAK+O,EAAWlP,UAAU,iCAC5B0F,GAAW,yBAAK1F,UAAU,aACzB0F,GAAWkJ,EAAclO,KAAI,SAACsH,EAAMrH,GAAP,OA3GpB,SAACqH,EAAMrH,GAC9B,OAAQ2N,GACN,KAAK1B,EAAUc,SACb,OAAQ,kBAAC,EAAD,CAAcvB,SAAUnE,EAAMpH,IAAG,eAAUD,KACrD,QACE,OAAQ,kBAAC,EAAD,CAAYwL,SAAUnE,EAAMoE,SAAUkC,EAAc1N,IAAG,eAAUD,MAsGrB0O,CAAiBrH,EAAMrH,QAGnE+E,KAAa/B,GACb,yBAAK3D,UAAU,kCACb,kBAACqC,EAAA,EAAD,CACEC,YAAagN,OAAO3L,GACpBpB,WAAYgN,KAAKC,KAAKT,EAAetM,GACrCD,WAAY,SAAAmB,GAAI,OArIX,SAAAA,GACrB4K,EAAQ5K,IACJuL,aAAJ,EAAIA,EAAW7P,WACb6P,WAAW7P,QAAQoQ,kBAkIeC,CAAe/L,IACnClB,eAAgBA,MAMxB,yBAAKzC,UAAU,qDACZ+N,OASfF,EAAY8B,UAAY,CACtBrK,SAAU3D,IAAUC,OAAOQ,WAC3BmD,SAAU5D,IAAUC,OAAOQ,WAC3BsK,MAAO/K,IAAUC,OAAOQ,WACxB4L,SAAUrM,IAAUC,OAAOQ,WAC3B2L,eAAgBpM,IAAUC,OAAOQ,YAGpBwN,cAAMC,KAAKhC","file":"6.378a18d71ec2eca1bf06.js","sourcesContent":["import React, { useState, useEffect, useRef, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { isDevice } from '../../helpers';\r\nimport { v4 as uuidv4 } from 'uuid';\r\n\r\nconst Dropdown = ({\r\n label,\r\n placeholder,\r\n selectedOption,\r\n options = [],\r\n onChange,\r\n disabled = false,\r\n compareAttr = 'value',\r\n style\r\n}) => {\r\n const [open, toggle] = useState(false);\r\n const [cursor, setCursor] = useState(null);\r\n const guid = useRef(uuidv4());\r\n const listboxGuid = useRef(uuidv4());\r\n const nativeEl = useRef(null);\r\n const dropdownEl = useRef(null);\r\n const triggerEl = useRef(null);\r\n const listingEl = useRef(null);\r\n\r\n useEffect(() => {\r\n const handleClickOutside = e => {\r\n const container = dropdownEl.current;\r\n\r\n if (container) {\r\n if (container !== e.target && !container.contains(e.target)) {\r\n toggle(false);\r\n }\r\n }\r\n };\r\n\r\n document.addEventListener('click', handleClickOutside);\r\n\r\n return () => {\r\n document.removeEventListener('click', handleClickOutside);\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (open) {\r\n listingEl.current.focus();\r\n }\r\n }, [open]);\r\n\r\n useEffect(() => {\r\n if (selectedOption) {\r\n const index = options.findIndex(\r\n option => option[compareAttr] === selectedOption[compareAttr]\r\n );\r\n setCursor(index);\r\n } else {\r\n setCursor(null);\r\n }\r\n }, [compareAttr, options, selectedOption]);\r\n\r\n const handleTriggerClick = e => {\r\n if (isDevice()) {\r\n return;\r\n }\r\n\r\n toggle(!open);\r\n };\r\n\r\n const handleOptionClick = option => {\r\n onChange(option);\r\n toggle(false);\r\n };\r\n\r\n const handleOptionChange = e => {\r\n const option = options.find(option => option.value === e.target.value);\r\n onChange(option);\r\n toggle(false);\r\n };\r\n\r\n const handleKeyDown = e => {\r\n /* eslint-disable indent */\r\n switch (e.keyCode) {\r\n case 38: // up\r\n e.preventDefault();\r\n if (cursor) {\r\n setCursor(cursor - 1);\r\n } else {\r\n setCursor(options.length - 1);\r\n }\r\n break;\r\n case 40: // down\r\n e.preventDefault();\r\n if (cursor !== null && cursor < options.length - 1) {\r\n setCursor(cursor + 1);\r\n } else {\r\n setCursor(0);\r\n }\r\n break;\r\n case 27: // esc\r\n e.preventDefault();\r\n toggle(false);\r\n triggerEl.current.focus();\r\n break;\r\n case 13: // enter\r\n e.preventDefault();\r\n if (cursor !== null) {\r\n onChange(options[cursor]);\r\n }\r\n toggle(false);\r\n triggerEl.current.focus();\r\n break;\r\n case 9: // tab\r\n toggle(false);\r\n break;\r\n }\r\n /* eslint-enable indent */\r\n };\r\n\r\n const getDisplayLabel = () => {\r\n if (selectedOption) {\r\n return `${selectedOption.label}`;\r\n }\r\n return placeholder || null;\r\n };\r\n\r\n return (\r\n
\r\n {subHeadline && parse(subHeadline)}\r\n {title && parse(title)}\r\n {date && parse(date)}\r\n {date && location &&
}\r\n {location && parse(location)}\r\n
{parse(description)}
\r\n