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H,QAC/C9G,EAAAA,EAAAA,KAACoJ,EAAAA,EAAM,MACH,gBCnBR,OAOC,WACA,aAEA,IAAImG,EAAS,CAAC,EAAEC,eAEhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAEL9P,EAAI,EAAGA,EAAIqG,UAAU9F,OAAQP,IAAK,CAC1C,IAAI+P,EAAM1J,UAAUrG,GAChB+P,IACHD,EAAUE,EAAYF,EAASG,EAAWF,IAE5C,CAEA,OAAOD,CACR,CAEA,SAASG,EAAYF,GACpB,GAAmB,kBAARA,GAAmC,kBAARA,EACrC,OAAOA,EAGR,GAAmB,kBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAOF,EAAWO,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAa3I,OAAO4I,UAAUD,WAAaN,EAAIM,SAASA,WAAWE,SAAS,iBACnF,OAAOR,EAAIM,WAGZ,IAAIP,EAAU,GAEd,IAAK,IAAIjI,KAAOkI,EACXJ,EAAOa,KAAKT,EAAKlI,IAAQkI,EAAIlI,KAChCiI,EAAUE,EAAYF,EAASjI,IAIjC,OAAOiI,CACR,CAEA,SAASE,EAAahP,EAAOyP,GAC5B,OAAKA,EAIDzP,EACIA,EAAQ,IAAMyP,EAGfzP,EAAQyP,EAPPzP,CAQT,CAEqC0P,EAAOC,SAC3Cd,EAAWe,QAAUf,EACrBa,EAAOC,QAAUd,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIF,CArEA","sources":["components/atoms/Pagination/index.js","components/atoms/AutoSuggest/index.js","components/atoms/SearchForm/index.js","components/atoms/TopCities/index.js","components/atoms/TopBusinesses/index.js","components/sections/Categories/index.js","components/sections/Footer/index.js","components/atoms/Logo/index.js","components/sections/Header/index.js","components/atoms/Card/index.js","components/atoms/BusinessCards/index.js","components/atoms/Featured/index.js","components/atoms/PriorityListing/index.js","components/sections/DirectoryList/index.js","routes/Results/index.js","../node_modules/classnames/index.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport cn from 'classnames'\n\nimport './index.scss'\n\nconst Pagination = props => {\n  const totalPages = Math.ceil(props.resultsCount / props.perPage)\n\n  const getPages = () => {\n    let pages = []\n\n    if(totalPages <= 5){\n      for (var i=1; i<=totalPages; i++){\n        pages.push(i)\n      }\n    } else if(props.page < 3){\n      for (var i=1; i<=5; i++){\n        pages.push(i)\n      }\n    } else if(props.page > totalPages - 2){\n      for (var i=totalPages-5; i<=totalPages; i++){\n        pages.push(i)\n      }\n    } else {\n      for (var i=props.page-2; i<=props.page+2; i++){\n        pages.push(i)\n      }\n    }\n\n    return(pages)\n  }\n\n  const updatePage = page => {\n    if(page >= 1 && page <= totalPages && page !== props.page){\n      props.updatePage(page)\n    }\n  }\n\n  return (\n    <div className=\"pagination-wrapper\">\n      {getPages().length > 1 && <React.Fragment>\n        <div className={cn('prev trigger', {active: props.page > 1})} onClick={ () => updatePage(props.page - 1) }>&lt;&lt;</div>\n        {getPages().map( page => <div key={page} className={cn('trigger', {current: page === props.page})} onClick={ () => updatePage(page) }>{page}</div>)}\n        <div className={cn('next trigger', {active: props.page < totalPages})} onClick={ () => updatePage(props.page + 1) }>&gt;&gt;</div>\n      </React.Fragment>}\n    </div>\n  )\n}\n\nPagination.propTypes = {\n  page: PropTypes.number,\n  perPage: PropTypes.number,\n  resultsCount: PropTypes.number,\n  updatePage: PropTypes.func.isRequired,\n}\n\nPagination.defaultProps = {\n  page: 1,\n  perPage: 10,\n  resultsCount: 0,\n}\n\nexport default Pagination\n","import React from 'react'\n\n// import { sortBy } from 'lodash'\n\nimport './index.scss'\n\nconst AutoSuggest = props => {\n  const [ value, setValue ] = React.useState(props.defaultValue || '')\n  const [ options, setOptions ] = React.useState([])\n  const [ optionsCache, setOptionsCache ] = React.useState([])\n  const [ optionIndex, setOptionIndex ] = React.useState(-1)\n  const [ selected, setSelected ] = React.useState({\n    label: props.defaultValue,\n    id: props.defaultValue,\n  })\n  const [ hasChanged, setHasChanged ] = React.useState(false)\n\n  const ref = React.useRef(null)\n\n  const getOptions = async term => {\n    if(term.length > 0){\n      const response = await fetch(`${props.fetchUrl}?${props.searchParam || 'term'}=${term.toLowerCase()}${props.maxResults ? `&limit=${props.maxResults}` : ''}`)\n      const json = await response.json() || []\n\n      // Update options schema.\n      let _options = json[props.responseCollectionKey].map( option => {\n        return {\n          label: option[props.optionLabel],\n          id: option[props.optionId],\n        }\n      })\n\n      // if(term === '' && _options.length === 0){\n      //   _options = props.defaultOptions || []\n      // }\n\n      setOptions(_options)\n      setOptionsCache(_options)\n    }\n  }\n\n  const handleBlur = e => {\n    if(!e.relatedTarget || !e.relatedTarget.classList.contains('typeahead-option')){\n      // Since we're allowing freeform text, just store it as the value.\n      setSelected({\n        label: value,\n      })\n      setOptions([])\n\n      // // console.log('!e.relatedTarget')\n      // if(!selected.id && !value) {\n      //   // console.log('!selected.id && !value')\n      //   if(options.length > 0){\n      //     setValue(options[0].label)\n      //     setSelected(options[0])\n      //   } else {\n      //     setValue('')\n      //     setSelected({})\n      //   }\n      // } else if(!value){\n      //   // console.log('!value')\n      //   if(options.length > 0){\n      //     setValue(options[0].label)\n      //     setSelected(options[0])\n      //   } else {\n      //     setValue('')\n      //     setSelected({})\n      //   }\n      // } else if(!selected.id && value){\n      //   if(options.length > 0){\n      //     setValue(options[0].label)\n      //     setSelected(options[0])\n      //     props.onSelect(options[0])\n      //   } else {\n      //     setValue('')\n      //     setSelected({})\n      //   }\n      // }\n      // setOptions([])\n    }\n  }\n\n  const handleChange = e => {\n    getOptions(e.target.value)\n    setValue(e.target.value)\n    setOptionIndex(-1)\n    setHasChanged(true)\n    setSelected({})\n    props.onChange(e.target.value)\n  }\n\n  const handleKeyDown = React.useCallback( e => {\n    if(e.keyCode === 13) { // 'User pressed enter key')\n      // We want to fire an event that the delegate can handle.\n      props.onEnter && props.onEnter()\n    } else if(e.keyCode === 38) { // User pressed up arrow\n      setOptionIndex( prevOptionIndex => options.length > 0 ? (prevOptionIndex - 1) < 0 ? options.length - 1 : prevOptionIndex - 1 : 0 )\n    } else if(e.keyCode === 40) { // User pressed down arrow\n      setOptionIndex( prevOptionIndex => options.length > 0 ? (prevOptionIndex + 1) > options.length - 1 ? 0 : prevOptionIndex + 1 : 0 )\n    }\n  }, [options])\n\n  const handleOptionSelect = (e, option) => {\n    if(e) {\n      e.preventDefault()\n      e.stopPropagation()\n    }\n\n    setValue(option.label)\n    setSelected(option)\n    setOptionIndex(options.map(option => option.label).indexOf(option.label))\n    setOptions([])\n\n    props.onSelect(option)\n  }\n\n  React.useEffect( () => {\n    const element = ref.current\n\n    element.addEventListener('keydown', handleKeyDown)\n    return () => {\n      element.removeEventListener('keydown', handleKeyDown)\n    }\n  }, [handleKeyDown])\n\n  React.useEffect( () => {\n    // This is for when the user uses arrows keys...\n    if(options.length > 0 && optionIndex > -1){\n      setValue(options[optionIndex].label)\n      setSelected(options[optionIndex])\n    }\n  }, [optionIndex])\n\n  React.useEffect( () => {\n    // Update selected if necessary.\n    if((!selected.label || selected.label !== value) && optionsCache.length){\n      const _selected = optionsCache.filter( option => option.label === value )\n      if(_selected.length) {\n        setSelected( prevSelected => _selected[0] )\n        props.onSelect(_selected[0])\n      }\n    }\n  }, [value])\n\n  React.useEffect( () => {\n    props.onSelect(selected)\n  }, [selected])\n\n  return <div className=\"typeahead-container\" ref={ref}>\n    <input\n      value={value || (!hasChanged && props.defaultValue ? props.defaultValue : '')}\n      onChange={ e => handleChange(e)}\n      placeholder={props.placeholder || 'Enter a value...'}\n      onBlur={ e => handleBlur(e) }\n      onClick={ e => {\n        if(e.target.value?.trim().length === 0){\n          if(props.defaultOptions){\n            setOptions(props.defaultOptions)\n          } else {\n            handleChange(e)\n          }\n        }\n      } }\n      />\n    {(options.length > 0) && <div className=\"typeahead-drop-container\">\n      {props.defaultOptionsLabel && !value && <label>{props.defaultOptionsLabel}</label>}\n      {options.map( option => <a href=\"/\" className=\"typeahead-option\" key={option.id} onClick={ e => handleOptionSelect(e, option) } tabIndex=\"-1\">{option.label}</a> )}\n    </div>}\n  </div>\n}\n\nexport default AutoSuggest\n","import React from 'react'\n\nimport { SiteContext } from 'context/site-context'\n\nimport {\n  getGeoFromLocalStorage,\n} from 'helpers'\n\nimport AutoSuggest from 'components/atoms/AutoSuggest'\n\nimport './index.scss'\n\nconst useFocus = () => {\n  const htmlElRef = React.useRef(null)\n  const setFocus = () => {htmlElRef.current &&  htmlElRef.current.focus()}\n\n  return [ htmlElRef, setFocus ]\n}\n\nconst SearchForm = props => {\n  const [ site, setSite ] = React.useContext(SiteContext)\n\n  const [ state, setState ] = React.useState({\n    term: new URLSearchParams(window.location.search).get('term') || site.term || localStorage.getItem('term') || '',\n    location: new URLSearchParams(window.location.search).get('where') || site.location || getGeoFromLocalStorage()?.location || '',\n  })\n\n  const [ errors, setErrors ] = React.useState({})\n\n  const [ locationRef ] = useFocus()\n  const [ submitRef ] = useFocus()\n\n  const handleEnterPress = (term = '') => {\n    if(term === 'category'){\n      // Set focus to the location input (as if the user presssed tab)\n      locationRef.current.children[0].querySelector('input').focus()\n    }\n    if(term === 'location'){\n      // Set focus to the submit button\n      // Can this NOT auto-trigger a click?\n      setTimeout( () => {\n        submitRef.current.focus()\n      }, 250)\n    }\n  }\n\n  const handleSubmit = () => {\n    setErrors({})\n\n    // Simply check for a term and a location.\n    if(state.term && state.location){\n      localStorage.setItem('geoInfo', JSON.stringify({\n        location: state.location,\n      }))\n      localStorage.setItem('term', state.term)\n      setSite({\n        ...site,\n        location: state.location,\n        term: state.term,\n      })\n      // Route the user off to the results page.\n      window.location.href = `${window.location.origin}/results?term=${state.term}&where=${state.location}`\n    } else {\n      const errors = {}\n      if(!state.term){\n        errors.term = true\n      }\n      if(!state.location){\n        errors.location = true\n      }\n      setErrors(errors)\n    }\n  }\n\n  // const handleKeyDown = React.useCallback( e => {\n  //   if(e.keyCode === 13) { // 'User pressed enter key')\n  //     handleSubmit()\n  //   }\n  // }, [handleSubmit])\n\n  // React.useEffect( () => {\n  //   // if(props.category?.name){\n  //   //   setState( prevState => ({\n  //   //     ...prevState,\n  //   //     term: props.category.name,\n  //   //   }))\n  //   // }\n  // }, [props.category])\n\n  // React.useEffect( () => {\n  //   // if(props.location?.name){\n  //   //   setState( prevState => ({\n  //   //     ...prevState,\n  //   //     location: props.location.name,\n  //   //   }))\n  //   // }\n  // }, [props.location])\n\n  // React.useEffect(() => {\n  //   window.addEventListener('keydown', handleKeyDown)\n  //   return () => {\n  //     window.removeEventListener('keydown', handleKeyDown)\n  //   }\n  // }, [handleKeyDown])\n\n  // React.useEffect(() => {\n  //   setState( prevState => ({\n  //     ...prevState,\n  //     location: site.location\n  //   }))\n  // }, [site.location])\n\n  return <div className={`form-container ${props.className || ''}`}>\n    <fieldset className=\"panel-content\">\n      <div className=\"row\">\n        <div className=\"input-container\">\n        <AutoSuggest\n            fetchUrl=\"https://apis.elocal.com/type-ahead/category/autocomplete\"\n            searchParam=\"prompt\"\n            placeholder=\"Service Needed\"\n            maxResults={10}\n            defaultOptionsLabel=\"Search Term\"\n            onSelect={ option => {\n              setState({\n                ...state,\n                term: option.label,\n              })\n            }}\n            onChange={ value => {\n              setErrors({\n                ...errors,\n                term: null,\n              })\n              setState({\n                ...state,\n                term: value,\n              })\n            }}\n            onEnter={ () => handleEnterPress('category') }\n            defaultValue={state.term || null}\n            renderLabel={ option => option.label}\n            optionLabel=\"category_name\"\n            optionId=\"category_id\"\n            responseCollectionKey=\"categories\"\n          />\n          {errors.term && <div className=\"error\">Please enter a search term.</div>}\n        </div>\n        <div className=\"input-container\" ref={locationRef}>\n          <AutoSuggest\n              fetchUrl=\"https://apis.elocal.com/type-ahead/geography/autocomplete\"\n              searchParam=\"prompt\"\n              placeholder=\"City, St or Zip\"\n              maxResults={10}\n              defaultOptionsLabel=\"City, St or Zip\"\n              onSelect={ option => {\n                setState({\n                  ...state,\n                  location: option.label,\n                })\n              }}\n              onChange={ value => {\n                setErrors({\n                  ...errors,\n                  location: null,\n                })\n                setState({\n                  ...state,\n                  location: value,\n                })\n              }}\n              onEnter={ () => handleEnterPress('location') }\n              defaultValue={state.location || null}\n              renderLabel={ option => option.label }\n              optionLabel=\"geography_display_name\"\n              optionId=\"geography_id\"\n              responseCollectionKey=\"geographies\"\n          />\n          {errors.location && <div className=\"error\">Please enter a location.</div>}\n        </div>\n        <button className=\"button-trigger\" onClick={() => handleSubmit()} ref={submitRef}>Search</button>\n      </div>\n    </fieldset>\n  </div>\n}\n\nexport default SearchForm\n","import React from 'react'\n\nimport { NavLink } from 'react-router-dom'\n\nimport { SiteContext } from 'context/site-context'\n\nimport './index.scss'\n\nconst TopCities = () => {\n  const [ site, setSite] = React.useContext(SiteContext)\n\n  const handleCityClick = (e, location) => {\n    localStorage.setItem('geoInfo', JSON.stringify({\n      location: location,\n      city: location.split(', ')[0],\n      region_code: location.split(', ')[1],\n    }))\n\n    setSite({\n      ...site,\n      location: location,\n    })\n  }\n\n  const getCities = () => site.popular_cities ? site.popular_cities.filter( city => city.isTop ) : []\n\n  return <div className=\"top-cities-container\">\n    <ul>\n      {getCities().map( city => {\n        return <li key={city.label}><NavLink to={`/${city.label.split(', ')[1].toLowerCase()}/${city.label.split(', ')[0].toLowerCase()}${!!new URLSearchParams(window.location.search).get('useSampleData') ? '&useSampleData=true' : ''}`} onClick={ e => handleCityClick(e, city.label)}>{city.label}</NavLink></li>\n      })}\n    </ul>\n  </div>\n}\n\nexport default TopCities\n","import React from 'react'\n\nimport { NavLink } from 'react-router-dom'\n\nimport { SiteContext } from 'context/site-context'\n\nimport {\n  getAddress,\n  getProfileUrl,\n  isWebpSupported,\n} from 'helpers'\n\nimport TopCities from 'components/atoms/TopCities'\n\nimport './index.scss'\n\nconst MAX_CATEGORIES_TO_SHOW = 3\nconst MAX_LISTINGS_TO_SHOW = 2\n\nconst TopBusinesses = ({ className = '' }) => {\n  const [ site, setSite ] = React.useContext(SiteContext)\n\n  return <React.Fragment>\n    {Object.entries(site.topBusinesses).length > 0 ? <div className={`top-businesses-container ${className}`}>\n      <div className=\"container\">\n        <h3>Top <span className=\"highlight\">Businesses</span> in {site.location}</h3>\n        <div className=\"categories-wrapper\">\n          {\n            Object.entries(site.topBusinesses)\n              .filter( key => key[0] !== site.upsellCategory ) // Filter out any that match the hero\n              .filter( (key, i) => i < MAX_CATEGORIES_TO_SHOW ) // Restrict the number of categories to render\n              .map( key => {\n              return <div className=\"panel\" key={key[0]}>\n              <h3 style={{\n                backgroundImage: `url(${isWebpSupported() && site.discover[key[0]].imageWebP ? site.discover[key[0]].imageWebP : site.discover[key[0]].image})`,\n                backgroundPosition: 'center center',\n                backgroundRepeat: 'no-repeat',\n                backgroundSize: 'cover'}}><span>{site.discover[key[0]].label}</span></h3>\n              <div className=\"listings-container\">\n                <ul>\n                  {key[1].results?.locations?.map( (listing, i) => {\n                    return i < MAX_LISTINGS_TO_SHOW ? <li key={listing.id}><a href={getProfileUrl(site, listing)}>\n                      <p>{listing.name}</p>\n                      {listing.address && <address>{getAddress(listing.address)}</address>}\n                    </a></li> : null}\n                  )}\n                </ul>\n                <div className=\"actions-container\">\n                  <NavLink to={`/results?term=${key[0]}&where=${site.location}${!!new URLSearchParams(window.location.search).get('useSampleData') ? '&useSampleData=true' : ''}`}  className=\"button-trigger mini\">More...</NavLink>\n                </div>\n              </div>\n            </div>\n          })\n        }\n        </div>\n      </div>\n    </div> : <div className=\"container\">\n      <h3>Popular <span className=\"highlight\">Cities</span></h3>\n      <TopCities />\n    </div>}\n  </React.Fragment>\n}\n\nexport default TopBusinesses\n","import React from 'react'\n\nimport { NavLink } from 'react-router-dom'\n\nimport { SiteContext } from 'context/site-context'\n\nimport { getQS } from 'helpers'\n\nimport './index.scss'\n\nconst Categories = props => {\n  const [ site ] = React.useContext(SiteContext)\n\n  return <React.Fragment>\n    {site.categories ? <div className={`categories-container ${props.className || ''}`}>\n      <div className=\"container\">\n        {props.headline && <h2 dangerouslySetInnerHTML={{ __html: props.headline }} />}\n        {!props.headline && <h2>Discover <span className=\"highlight\">so much more</span></h2>}\n        <div className=\"categories-wrapper\">\n          <ul>\n            {site.categories.sort().map( category => <li key={category}><a href={`/results?term=${category}&where=${site.location}${getQS().trim().length > 0 ? `${getQS()}` : ''}`}>{category}</a></li>)}\n          </ul>\n        </div>\n      </div>\n    </div> : null}\n  </React.Fragment>\n}\n\nexport default Categories\n","import React from 'react'\n\nimport { SiteContext } from 'context/site-context'\n\nimport {\n  getQS,\n  isWebpSupported,\n} from 'helpers'\n\nimport './index.scss'\n\nconst Footer = () => {\n  const [ site ] = React.useContext(SiteContext)\n\n  const qs = () => {\n    return getQS().trim().length > 0 ? `?${getQS()}` : ''\n  }\n\n  const getBanner = () => {\n    const cityData = site.location && site.popular_cities.filter( c => c.label === site.location ).length > 0 ? site.popular_cities.filter( c => c.label === site.location )[0] : site.geoImages\n    if(!cityData.cityImage || !cityData.cityImageWebP){\n      cityData.cityImage = site.geoImages.cityImage\n      cityData.cityImageWebP = site.geoImages.cityImageWebP\n    }\n    return cityData\n  }\n\n  return (\n    <footer>\n      <div className=\"nav-container\">\n        <div className=\"container\">\n          <div className=\"nav-bar\">\n            <a href={`${window.location.origin}/${site.path ? `${site.path}/about` : 'about'}${qs()}`} data-delegate=\"Footer\">About</a>\n            <a href={`${window.location.origin}/${site.path ? `${site.path}/directory` : 'directory'}${qs()}`} data-delegate=\"Footer\">Directory</a>\n            <a href=\"https://elocal.com/careers\" data-delegate=\"Footer\">Careers</a>\n            <a href={`${window.location.origin}/${site.path ? `${site.path}/privacy` : 'privacy'}${qs()}`} data-delegate=\"Footer\">Privacy Policy</a>\n            <a href={`${window.location.origin}/${site.path ? `${site.path}/privacy-california` : 'privacy-california'}${qs()}`} data-delegate=\"Footer\">Privacy Notice for CA Residents</a>\n            <a href={`${window.location.origin}/${site.path ? `${site.path}/privacy-california` : 'privacy-california'}${qs()}`} data-delegate=\"Footer\">Do Not Sell My Info</a>\n            <a href=\"https://www.elocal.com/information#accessible_view\" data-delegate=\"Footer\">Accessible View Page</a>\n            <a href={`${window.location.origin}/${site.path ? `${site.path}/terms` : 'terms'}${qs()}`} data-delegate=\"Footer\">Terms of Use</a>\n          </div>\n        </div>\n      </div>\n      <div className=\"copyright-container\">\n        <div className=\"container\">\n          <aside>Copyright &copy; {new Date().getFullYear()} CityGrid Media.  All Rights Reserved.</aside>\n          <div className=\"icons-container\">\n            <img src={site.logoWhite} alt=\"CitySearch\" />\n            <a href=\"https://www.elocal.com\"><img src=\"//s3.amazonaws.com/assets.elocal.com/sem/assets/images/logos/elocal-logo-white.svg\" alt=\"eLocal\" /></a>\n          </div>\n        </div>\n      </div>\n    </footer>\n  )\n}\n\nexport default Footer\n","import React from 'react'\nimport {NavLink} from 'react-router-dom'\n\nimport { SiteContext } from 'context/site-context'\n\nimport { getQS } from 'helpers'\n\nconst Logo = props => {\n  const [ site, setSite ] = React.useContext(SiteContext)\n\n  return (\n    <NavLink to={`/${getQS().trim().length > 0 ? `?${getQS()}` : ''}`}\n      className=\"main-logo\"\n      onClick={ () => setSite({ ...site, showHeader: false }) }>\n        <img src={site.logoWebP || site.logo} alt={site.domain} />\n      </NavLink>\n  )\n}\n\nexport default Logo\n","import React from 'react'\n\nimport { SiteContext } from 'context/site-context'\n\nimport cn from 'classnames'\n\nimport Logo from 'components/atoms/Logo'\nimport SearchForm from 'components/atoms/SearchForm'\nimport { isWebpSupported } from 'helpers'\n\nimport './index.scss'\n\nconst Header = props => {\n  const [ site ] = React.useContext(SiteContext)\n\n  const [ state, setState ] = React.useState({\n    expanded: false,\n  })\n\n  return (\n    <header className={cn( props.className, { visible: props.showHeader, animate: props.animate })}>\n      <div className=\"container\">\n        <div className=\"wrapper\">\n          <div className=\"main-logo-container\"><Logo /></div>\n          <div className={cn('actions-container', { expanded: state.expanded }) }>\n            <div className=\"form-wrapper\">\n              <span className=\"close-trigger\" onClick={ () => setState({ expanded: false })}><img src=\"//s3.amazonaws.com/assets.elocal.com/sem/assets/images/icons/close.svg\" alt=\"close\" /></span>\n              <SearchForm className=\"mini\" />\n            </div>\n            <div className=\"social-container\">\n              <span onClick={ () => setState({ expanded: true })}><img src=\"//s3.amazonaws.com/assets.elocal.com/sem/assets/images/icons/magnifying-glass.svg\" alt=\"Search\" /></span>\n              {site.social?.map( item => <a href={item.url} key={item.label}><img src={item.img} alt={item.label}/></a>)}\n            </div>\n          </div>\n        </div>\n      </div>\n    </header>\n  )\n}\n\nexport default Header\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { SiteContext } from 'context/site-context'\n\nimport {\n  getAddress,\n  getQS,\n  hasServices,\n  renderServices,\n} from 'helpers'\n\nimport './index.scss'\n\nconst Card = props => {\n  const [ site ] = React.useContext(SiteContext)\n\n  const {\n    result,\n  } = props\n\n  const getLogo = (images = [], name) => {\n    if(!images) return null \n\n    if(images.filter(image => image.primary).length > 0){\n      return <div className=\"logo-container\"><img src={images.filter(image => image.primary)[0].originalUrl} alt={name} /></div>\n    } else if(images.length > 0){\n      return <div className=\"logo-container\"><img src={images[0].originalUrl} alt={name} /></div>\n    } \n    return null\n  }\n\n  const getProfileUrl = () => {\n    const qs = getQS().trim().length > 0 ? `?${getQS()}` : ''\n    return `${window.location.origin}/${site.path ? `${site.path}/` : ''}profile/${result.importedListingId}`\n  }\n\n  // const handleClick = (e, url) => {\n  //   e.preventDefault()\n  //   e.stopPropagation()\n\n  //   // // Fire tracking URL.\n  //   // try {\n  //   //   let img = new Image()\n  //   //   img.onload = window.location.href = url\n  //   //   img.src = `${props.result.impression}&_=${new Date().getTime()}`\n  //   // } catch(e){\n  //   //   window.location.href = url \n  //   // }\n  // }\n\n  return <div className=\"card\" key={result.id}>\n    <a href={getProfileUrl()}>\n      <div className=\"details-container\">\n        <h4 className=\"business-name\">{result.listingName}</h4>\n        <div className=\"address\">{getAddress(result)} {result.postal_code || ''}</div>\n        {hasServices(result) && <div className=\"services\">{renderServices(result.services)}</div>}\n      </div>\n      {getLogo(result.images, result.name)}\n    </a>\n  </div>\n}\n\nCard.propTypes = {\n  result: PropTypes.object.isRequired,\n  count: PropTypes.number.isRequired,\n}\n\nexport default Card\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport cn from 'classnames'\n\nimport Card from 'components/atoms/Card'\n\nimport './index.scss'\n\nexport default class BusinessCards extends React.Component {\n  static propTypes = {\n    isLoading: PropTypes.bool.isRequired,\n    results: PropTypes.array.isRequired,\n    city: PropTypes.string,\n  }\n\n  render () {\n    const {\n      city,\n      isLoading,\n      results,\n    } = this.props\n \n    return <div className={cn('list-container', {isLoading: isLoading})}>\n      {isLoading && <p className=\"loading\">Loading...</p>}\n      <React.Fragment>\n        {results.map( (result, i) => {\n          return <Card key={result.importedListingId} result={result} count={i} city={city} />\n        })}\n      </React.Fragment>\n    </div>\n  }\n}\n","import React from 'react'\n\nimport { NavLink } from 'react-router-dom'\n\nimport {\n  getAddress,\n  hasTags,\n  isWebpSupported,\n  getQS,\n} from 'helpers'\n\nimport { SiteContext } from 'context/site-context'\n\n// import { LazyLoadImage } from 'react-lazy-load-image-component'\n\nimport './index.scss'\n\nconst Featured = ({ results = [] }) => {\n  const [ site ] = React.useContext(SiteContext)\n\n  const getFeatured = () => {\n    return results.filter( business => business.featured )\n  }\n\n  const getProfileUrl = () => {\n    const qs = getQS().trim().length > 0 ? `?${getQS()}` : ''\n    return `${window.location.origin}/${site.path ? `${site.path}/` : ''}profile/${getFeatured()[0].id}${qs}`\n  }\n\n  return <React.Fragment>\n    {getFeatured().length ? <div className=\"featured-container\">\n      <h2><span className=\"highlight\">Recommended</span> by our Experts</h2>\n      <div className=\"featured\">\n        <img src={getFeatured()[0].image || isWebpSupported() ? `//s3.amazonaws.com/assets.elocal.com/sem/assets/images/heros/citysearch-restaurant-001.webp` : `//s3.amazonaws.com/assets.elocal.com/sem/assets/images/heros/citysearch-restaurant-001.png`} />\n        <div className=\"details-container\">\n          <h3><a href={getProfileUrl()}>{getFeatured()[0].name}</a></h3>\n          <div className=\"address\">{getAddress(getFeatured()[0].address)}</div>\n          {hasTags(getFeatured()[0]) && <div className=\"tags\">{getFeatured()[0].tags.filter( tag => !tag.primary ).map( tag => tag.name ).join(', ')}</div>}\n          <NavLink to={getProfileUrl()} className=\"button-trigger mini\">View details...</NavLink>\n        </div>\n      </div>\n    </div> : null}\n  </React.Fragment>\n}\n\nexport default Featured\n","import React from 'react'\n\nimport {\n  getQS,\n} from 'helpers'\n\nimport { SiteContext } from 'context/site-context'\n\nimport './index.scss'\n\nconst PriorityListing = ( { listing = null } ) => {\n  const [ site ] = React.useContext(SiteContext)\n\n  const getProfileUrl = () => {\n    const qs = getQS().trim().length > 0 ? `?${getQS()}` : ''\n    return `${window.location.origin}/${site.path ? `${site.path}/` : ''}profile/${listing.listingId}${qs}`\n  }\n\n  return <React.Fragment>\n    {listing ? <div className=\"priority-listing-container\">\n      <label>Featured business</label>\n      <a href={getProfileUrl()}  className=\"priority-listing\">\n        <div className=\"details-container\">\n          <h2>{listing.name}</h2>\n          {listing.tagline && <div className=\"tagline\">{listing.tagline}</div>}\n        </div>\n        <div className=\"image-container\">{listing.ad_image_url && <img src={listing.ad_image_url} alt={listing.name} />}</div>\n      </a>\n    </div> : null}\n  </React.Fragment>\n}\n\nexport default PriorityListing\n","import React from 'react'\n\nimport { SiteContext } from 'context/site-context'\n\nimport {\n  getGeoFromLocalStorage,\n  getLocationFromZip,\n} from 'helpers'\n\nimport BusinessCards from 'components/atoms/BusinessCards'\nimport Categories from 'components/sections/Categories'\nimport Featured from 'components/atoms/Featured'\nimport Pagination from 'components/atoms/Pagination'\nimport PriorityListing from 'components/atoms/PriorityListing'\nimport SearchForm from 'components/atoms/SearchForm'\nimport TopBusinesses from 'components/atoms/TopBusinesses'\n\nimport './index.scss'\n\nconst DirectoryList = props => {\n  const [ site ] = React.useContext(SiteContext)\n\n  const [ state, setState ] = React.useState({\n    location: new URLSearchParams(window.location.search).get('where') || site.location || getGeoFromLocalStorage()?.location || '',\n    term: new URLSearchParams(window.location.search).get('term') || '',\n    categoryId: new URLSearchParams(window.location.search).get('categoryId') || '',\n    page: new URLSearchParams(window.location.search).get('page') ? parseInt(new URLSearchParams(window.location.search).get('page')) : 1,\n    rpp: new URLSearchParams(window.location.search).get('rpp') ? parseInt(new URLSearchParams(window.location.search).get('rpp')) : 10,\n    total: 0,\n    isEmpty: false,\n    isLoading: true,\n    results: [],\n  })\n\n  const [ priorityListing ] = React.useState()\n\n  // const cleanResults = (data = []) => {\n  //   const results = data.map( result => {\n  //     return {\n  //       ...result.importedListing.importedListing,\n  //       images: result.importedListing.images,\n  //       reviews: result.importedListing.reviews,\n  //       video: result.importedListing.video,\n  //       impression: result.impression,\n  //     }\n  //   })\n  //   return results\n  // }\n\n  const cleanLocation = (location = '') => {\n    let _location;\n\n    _location = location.split(', ')\n    if(_location.length === 2){\n      return {\n        city: _location[0].trim(),\n        state: _location[1].trim()\n      }\n    }\n\n    _location = location.split(',')\n    if(_location.length === 2){\n      return {\n        city: _location[0].trim(),\n        state: _location[1].trim()\n      }\n    }\n\n    _location = location.split(' ')\n    if(_location.length === 2){\n      return {\n        city: _location[0].trim(),\n        state: _location[1].trim()\n      }\n    }\n    if(_location.length > 2){\n      const i = location.lastIndexOf(' ')\n      return {\n        city: location.substring(0, i).trim(),\n        state: location.substring(i).trim()\n      }\n    }\n    if(_location.length < 2){\n      return {\n        city: location.trim(),\n        state: '',\n      }\n    }\n  }\n\n  const isZip = str => (/^[0-9]{5}(?:-[0-9]{4})?$/).test(str)\n\n  const parseLocation = (location = '') => {\n    if(isZip(location)){\n      return `postalCode: \"${location}\"`\n    }\n\n    let _location;\n\n    _location = location.split(', ')\n    if(_location.length === 2){\n      return `city: \"${_location[0].trim()}\", state: \"${_location[1].trim()}\"`\n    }\n\n    _location = location.split(',')\n    if(_location.length === 2){\n      return `city: \"${_location[0].trim()}\", state: \"${_location[1].trim()}\"`\n    }\n\n    _location = location.split(' ')\n    if(_location.length === 2){\n      return `city: \"${_location[0].trim()}\", state: \"${_location[1].trim()}\"`\n    }\n    if(_location.length > 2){\n      const i = location.lastIndexOf(' ')\n      return `city: \"${location.substring(0, i).trim()}\", state: \"${_location[1].trim()}\"`\n    }\n    if(_location.length < 2){\n      return `city: \"${location.substring(0, i).trim()}\"`\n    }\n  }\n\n  React.useEffect( () => {\n    async function loadData() {\n      if(isZip(state.location)){\n        try {\n          getLocationFromZip(state.location, data => {\n            setState( prevState => ({\n              ...prevState,\n              city: data.city,\n              region: data.region,\n              zip_code: data.zip_code,\n            }))\n          })\n        } catch(e){\n          console.debug(e)\n        }\n      }\n\n      try {\n        const response = await fetch('https://apis.elocal.com/citygrid/graphql', {\n          method: 'POST',\n          headers: {\n            'Content-Type': 'application/json'\n          },\n          body: JSON.stringify({\n            query: `{\n              distributionSearch(\n                request: {\n                  searchTerm: \"${state.term}\",\n                  ${parseLocation(state.location)},\n                  affiliateIntegrationCode: \"citysearch\"\n                }\n              ) {\n                importedListing {\n                  importedListing {\n                    importedListingId\n                    listingId\n                    listingName\n                    listingType\n                    street1\n                    street2\n                    city\n                    stateOrProvince\n                    postalCode\n                    organicPhone\n                    services {\n                      id\n                      name\n                    }\n                  }\n                  images {\n                    imageId\n                    primary\n                    originalUrl\n                  }\n                }\n              }\n            }`\n          })\n        }).catch( e => {\n          console.debug(e)\n          const results = site.results?.static || []\n          setState( prevState => ({\n            ...prevState,\n            isEmpty: results.length === 0,\n            results: results,\n            isLoading: false,\n          }))\n        })\n\n        const json = await response.json()\n\n        if(json.errors){\n          console.debug(JSON.stringify(json.errors))\n          const results = site.results?.static || []\n          setState( prevState => ({\n            ...prevState,\n            isEmpty: results.length === 0,\n            results: results,\n            isLoading: false,\n            total: results.length,\n          }))\n        } else {\n          const results = (json?.data?.distributionSearch || []).concat(site.results?.static || [])\n            .map( result => {\n              return {\n                ...result.importedListing.importedListing,\n                images: result.importedListing.images\n              }} )\n          setState( prevState => ({\n            ...prevState,\n            isEmpty: !results.length,\n            results: results,\n            isLoading: false,\n            total: json?.results?.total_hits,\n          }))\n        }\n      } catch(e){\n        console.debug('e', e)\n        const results = site.results?.static || []\n        setState( prevState => ({\n          ...prevState,\n          isEmpty: results.length === 0,\n          results: results,\n          isLoading: false,\n          total: results.length,\n        }))\n      }\n    }\n    !site.isLoadingSiteData && loadData()\n  }, [site.isLoadingSiteData, state.page])\n\n  // React.useEffect( () => {\n  //   async function loadPriorityListingData() {\n  //     if(isZip(state.location)){\n  //       try {\n  //         getLocationFromZip(state.location, data => {\n  //           setState( prevState => ({\n  //             ...prevState,\n  //             city: data.city,\n  //             region: data.region,\n  //             zip_code: data.zip_code,\n  //           }))\n  //         })\n  //       } catch(e){\n  //         console.debug(e)\n  //       }\n  //     }\n  //\n  //     const useSampleData = new URLSearchParams(window.location.search).get('useSampleData')\n  //\n  //     if(useSampleData) {\n  //       setPriorityListing({\n  //         ...SAMPLE_PRIORITY_LISTING.ads[0],\n  //       })\n  //     } else {\n  //       try {\n  //         const url = `https://api.citygridmedia.com/pfp/pl?what=${state.term}&where=${isZip(state.location) ? state.location : `${parseLocation(state.location).city},${parseLocation(state.location).state}`}&publisher=${site.rialto.publisher}&format=json&placement=searchFlex0&max=1`\n  //         const response = await fetch(url)\n  //         .catch( e => {\n  //           console.debug(e)\n  //         })\n  //\n  //         const json = await response.json()\n  //\n  //         if(json.errors){\n  //           console.debug(JSON.stringify(json.errors))\n  //         } else {\n  //           setPriorityListing({ ...json?.ads[0] })\n  //         }\n  //       } catch(e){\n  //         console.debug('e', e)\n  //       }\n  //     }\n  //   }\n  //   loadPriorityListingData()\n  // }, [])\n\n  const getPrettyLocation = () => {\n    if(isZip(state.location)){\n      return <React.Fragment>in <span className=\"highlight\">{state.location}</span></React.Fragment>\n    }\n    const location = cleanLocation(state.location)\n    if(location.city){\n      return <React.Fragment>in <span className=\"highlight\">{location.city}{location.state ? `, ${location.state}` : ''}</span></React.Fragment>\n    }\n    return ''\n  }\n\n  const updatePage = (page = 1) => {\n    setState({\n      ...state,\n      page: page,\n    })\n    window.scrollTo({\n      top: 0,\n      left: 0,\n      behavior: 'smooth',\n    })\n  }\n\n  return <div className=\"directory-list-container\">\n    {!state.isLoading && !state.isEmpty && <React.Fragment>\n      <div className=\"container\">\n        <div className=\"page-container\">\n          <div className=\"main-wrapper\">\n            <h1>Search results for <span className=\"highlight term\">{state.term}</span> {getPrettyLocation()}</h1>\n            <div className=\"results-container\">\n              <PriorityListing listing={priorityListing} />\n              <Featured results={state.results} />\n              <div className=\"list-wrapper\">\n                <BusinessCards\n                  isLoading={state.isLoading}\n                  results={state.results}\n                  city={state.city} />\n              </div>\n            </div>\n            <Pagination\n                page={state.page}\n                perPage={state.rpp}\n                resultsCount={state.total}\n                updatePage={ page => updatePage(page) } />\n          </div>\n          <div className=\"rail-container\">\n            <TopBusinesses />\n          </div>\n        </div>\n      </div>\n    </React.Fragment>}\n    {!state.isLoading && state.isEmpty && <div className=\"no-results-container\">\n      <div className=\"container\">\n        <h2>No matches found.</h2>\n        <div className=\"search-form-wrapper\">\n          <h4>Try a new search</h4>\n          <SearchForm />\n        </div>\n      </div>\n    </div>}\n    {state.isLoading && <div className=\"loading-container container\">Loading...</div>}\n    <Categories />\n  </div>\n}\n\nexport default DirectoryList\n","import React from 'react'\n\nimport cn from 'classnames'\n\nimport { SiteContext } from 'context/site-context'\n\nimport Header from 'components/sections/Header'\nimport DirectoryList from 'components/sections/DirectoryList'\nimport Footer from 'components/sections/Footer'\n\nimport './index.scss'\n\nconst Results = props => {\n  const [ site ] = React.useContext(SiteContext)\n\n  return <div className={cn('page-wrapper', {isLoadingSiteData: site.isLoadingSiteData})}>\n    <Header className=\"mini\" showHeader={true} animate={false} />\n    <DirectoryList state={props.state} city={props.city} />\n    <Footer />\n  </div>\n}\n\nexport default Results\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["Pagination","props","totalPages","Math","ceil","resultsCount","perPage","getPages","pages","i","push","page","updatePage","_jsx","className","children","length","_jsxs","React","cn","active","onClick","map","current","defaultProps","value","setValue","defaultValue","options","setOptions","optionsCache","setOptionsCache","optionIndex","setOptionIndex","selected","setSelected","label","id","hasChanged","setHasChanged","ref","handleChange","e","async","term","response","fetch","fetchUrl","searchParam","toLowerCase","maxResults","_options","json","responseCollectionKey","option","optionLabel","optionId","getOptions","target","onChange","handleKeyDown","keyCode","onEnter","prevOptionIndex","element","addEventListener","removeEventListener","_selected","filter","prevSelected","onSelect","placeholder","onBlur","relatedTarget","classList","contains","handleBlur","_e$target$value","trim","defaultOptions","defaultOptionsLabel","href","handleOptionSelect","preventDefault","stopPropagation","indexOf","tabIndex","useFocus","htmlElRef","setFocus","focus","_getGeoFromLocalStora","site","setSite","SiteContext","state","setState","URLSearchParams","window","location","search","get","localStorage","getItem","getGeoFromLocalStorage","errors","setErrors","locationRef","submitRef","handleEnterPress","arguments","undefined","querySelector","setTimeout","AutoSuggest","renderLabel","handleSubmit","setItem","JSON","stringify","origin","TopCities","popular_cities","city","isTop","NavLink","to","split","handleCityClick","region_code","_ref","Object","entries","topBusinesses","key","upsellCategory","_key$1$results","_key$1$results$locati","style","backgroundImage","isWebpSupported","discover","imageWebP","image","backgroundPosition","backgroundRepeat","backgroundSize","results","locations","listing","getProfileUrl","name","address","getAddress","categories","headline","dangerouslySetInnerHTML","__html","sort","category","getQS","Footer","qs","path","Date","getFullYear","src","logoWhite","alt","showHeader","logoWebP","logo","domain","_site$social","expanded","visible","animate","Logo","SearchForm","social","item","url","img","result","importedListingId","listingName","postal_code","hasServices","renderServices","services","images","primary","originalUrl","getLogo","BusinessCards","render","isLoading","this","Card","count","getFeatured","business","featured","hasTags","tags","tag","join","listingId","tagline","ad_image_url","categoryId","parseInt","rpp","total","isEmpty","priorityListing","isZip","str","test","parseLocation","_location","lastIndexOf","substring","isLoadingSiteData","getLocationFromZip","data","prevState","region","zip_code","console","debug","method","headers","body","query","catch","_site$results","static","_site$results2","_json$data","_site$results3","distributionSearch","concat","importedListing","_json$results","total_hits","_site$results4","loadData","getPrettyLocation","cleanLocation","PriorityListing","Featured","scrollTo","top","left","behavior","TopBusinesses","Categories","Header","DirectoryList","hasOwn","hasOwnProperty","classNames","classes","arg","appendClass","parseValue","Array","isArray","apply","toString","prototype","includes","call","newClass","module","exports","default"],"sourceRoot":""}