{"version":3,"sources":["webpack:///./src/js/components/react/Dropdown.js","webpack:///./node_modules/react-intersection-observer-hook/dist/react-intersection-observer-hook.esm.js","webpack:///./node_modules/react-infinite-scroll-hook/dist/react-infinite-scroll-hook.esm.js","webpack:///./src/js/modules/locationsListing/components/LocationFacetList.js","webpack:///./src/js/modules/locationsListing/components/LocationCard.js","webpack:///./src/js/modules/locationsListing/hooks/useFetch.js","webpack:///./src/js/modules/locationsListing/index.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","DEFAULT_THRESHOLD","_extends","Object","assign","arguments","source","prototype","hasOwnProperty","call","apply","this","useTrackVisibility","args","_result$entry","_useIntersectionObser","_args$rootMargin","_args$threshold","rootMargin","threshold","nodeRef","rootRef","observerRef","_useState","entry","setEntry","unobserve","currentObserver","disconnect","observe","node","root","observer","IntersectionObserver","_ref","newEntry","initializeObserver","rootNode","useIntersectionObserver","result","isVisible","Boolean","isIntersecting","wasEverVisible","setWasEverVisible","loading","hasNextPage","onLoadMore","_ref$delayInMs","delayInMs","_useTrackVisibility","_useTrackVisibility$","shouldLoadMore","timer","setTimeout","clearTimeout","LocationFacetList","initialFacets","selectedFacets","onFiltersChange","onResetFilters","countryLabel","stateLabel","resetBtnLabel","dropdownDefaultLabel","getSelectedOption","facet","keyword","name","keys","class","array","LocationCard","phoneHref","imageUrlWebp","location","imageUrl","imageAlt","locationName","address","phone","fax","url","indexOf","CommonInnerMarkup","srcSet","src","alt","width","height","parse","href","viewBox","useFetch","endpoint","language","page","filters","results","setResults","totalPages","setTotalPages","facets","setFacets","setLoading","params","forEach","Axios","method","data","resultListing","totalResults","resultsPerPage","updatedFacets","Math","ceil","concat","console","log","fetchData","LocationsListing","noResultsLabel","setPage","setSelectedFacets","sentryRef","useInfiniteScroll","loc","React","memo"],"mappings":"i6CAKA,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,IAAMC,EAAqB,SAAAC,GACzB,IAAMC,EAAYN,EAAWO,QAEzBD,IACEA,IAAcD,EAAEG,QAAWF,EAAUG,SAASJ,EAAEG,SAClDhB,GAAO,KAOb,OAFAkB,SAASC,iBAAiB,QAASP,GAE5B,WACLM,SAASE,oBAAoB,QAASR,MAEvC,IAEHD,qBAAU,WACJZ,GACFW,EAAUK,QAAQM,UAEnB,CAACtB,IAEJY,qBAAU,WACR,GAAInB,EAAgB,CAClB,IAAM8B,EAAQ7B,EAAQ8B,WACpB,SAAAC,GAAM,OAAIA,EAAO5B,KAAiBJ,EAAeI,MAEnDM,EAAUoB,QAEVpB,EAAU,QAEX,CAACN,EAAaH,EAASD,IAE1B,IA0DMiC,EAAkB,WACtB,OAAIjC,EACF,UAAUA,EAAeF,OAEpBC,GAAe,MAGxB,OACE,yBAAKmC,UAAS,yCAAoC/B,EAAW,eAAiB,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/CC,EACAC,EACAC,EACAtC,GAJM0C,EAHJ,EAGIA,WAAYF,EAHhB,EAGgBA,QAASI,EAHzB,EAGyBA,OAAQzD,EAHjC,EAGiCA,QAO9B+E,EAVH,EAUgBC,EAAkB,CACpChF,UACAC,YAAakD,EAAOI,EACpBrD,WAAY,kBAAM2E,EAAQ1B,EAAO,MAb/B,MAmCJ,OACE,oCACE,yBAAKpI,UAAU,8BACb,yBAAKA,UAAU,oBAAf,WACA,kBAAC,EAAD,CACE6F,cAAe6C,EACf5C,eAAgBA,EAChBC,gBArBc,SAACQ,EAASjG,GAC9B,IAAM+I,EAAgB,OACjBvD,GADc,QAEhBS,EAAUjG,IAGG,cAAZiG,UACK8C,EAAa,OAGtBU,EAAkBV,GAClBS,EAAQ,IAWF9D,eA3BY,WAClB+D,EAAkB,IAClBD,EAAQ,IA0BF7D,aAAcA,EACdC,WAAYA,EACZC,cAAeA,EACfC,qBAAsBA,KAG1B,6BACInB,IAAYqD,aAAD,EAACA,EAAS/G,QAGrB,yBAAKvB,UAAU,8BACZsI,aADH,EACGA,EAAS5H,KAAI,SAACwJ,EAAKvJ,GAAN,OACZ,kBAAC,EAAD,CAAcC,IAAKD,EAAGoG,SAAUmD,QAJpC,2BAAIL,GAQL5E,GACEmD,EAAOI,GACN,yBAAKxI,UAAU,UAAUG,IAAK6J,OAO1CJ,EAAiBlI,UAAY,CAC3BwG,SAAUvG,IAAUC,OAAOQ,WAC3B+F,SAAUxG,IAAUC,OAAOQ,WAC3ByH,eAAgBlI,IAAUC,OAAOQ,WACjC6D,aAActE,IAAUC,OAAOQ,WAC/B8D,WAAYvE,IAAUC,OAAOQ,WAC7B+D,cAAexE,IAAUC,OAAOQ,WAChCgE,qBAAsBzE,IAAUC,OAAOQ,YAG1B+H,cAAMC,KAAKR","file":"36.b15416b7c120a05130b7.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
{parse(address)}
\r\n )}\r\n {phone && (\r\n\r\n Phone: \r\n \r\n {phone}\r\n \r\n \r\n \r\n \r\n
\r\n )}\r\n {\r\n /*\r\n Hide fax number from location listing cards - #200710\r\n {fax && (\r\n\r\n Fax: \r\n \r\n {fax}\r\n \r\n \r\n \r\n \r\n
\r\n )}\r\n */\r\n }\r\n{noResultsLabel}
\r\n ) : (\r\n