{ "version": 3, "sources": ["../javascripts/components/filters/default-filter-block.tsx", "../javascripts/components/filters/active-filters.tsx", "../javascripts/components/filters/save-subscription-button.tsx", "../javascripts/helpers/query.ts", "../javascripts/components/filters/filter-foldout.tsx", "../javascripts/components/filters/filter-foldout-checkbox.tsx", "../javascripts/components/filters/filter-foldout-item.tsx", "../javascripts/components/filters/filter-wx-panel.tsx", "../javascripts/components/filters/selected-filter-modal.tsx", "../javascripts/components/filters/select-filter.tsx", "../javascripts/components/filters/advanced-filter-help.tsx", "../javascripts/components/filters/select-filter-item.tsx", "../javascripts/components/filters/select-filter-item-advanced.tsx", "../javascripts/components/filters/select-filter-location.tsx", "../javascripts/components/filters/query-foldout.tsx", "../javascripts/components/filters/select-filter-location-map.tsx", "../javascripts/components/filters/select-filter-range.tsx", "../javascripts/components/filters/select-filter-range-histogram.tsx", "../javascripts/helpers/list.ts", "../javascripts/components/filters/filter-bar.tsx", "../javascripts/components/filters/filter-bar-item.tsx", "../javascripts/components/filters/filter-bar-slider.tsx", "../javascripts/components/search/pagination-v2.tsx", "../javascripts/hooks/useQueryFilterFromUrl.ts"], "sourcesContent": ["import { bindActionCreators } from '@reduxjs/toolkit';\nimport React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { openFilter, openFoldout } from '../../actions/filters';\nimport { search } from '../../actions/search';\n\nimport ActiveFilters from './active-filters';\nimport FilterFoldout from './filter-foldout';\n\nimport { useLocation, useNavigate } from 'react-router-dom';\nimport type { Facet } from '../../@types/ElasticSearchResponse';\nimport { getListQueryConcatQueryfilter } from '../../helpers/list';\nimport type QueryFilter from '../../helpers/query-filter';\nimport { getQueryFilter } from '../../utils/reselectors';\nimport FilterBar from './filter-bar';\n\nconst BASE_SEARCH_PATH = '/sok';\n\ninterface DefaultFilterBlockProps {\n target: string;\n silent?: boolean;\n umbrellaFacet?: string;\n useContainer?: boolean;\n children?: React.ReactNode;\n navigate?: (queryFilter: QueryFilter) => void;\n}\n\nconst DefaultFilterBlock = ({\n target,\n silent,\n umbrellaFacet,\n useContainer,\n children,\n navigate,\n}: DefaultFilterBlockProps) => {\n const dispatch = useDispatch();\n const _navigate = useNavigate();\n\n const { pathname } = useLocation();\n\n const queryFilter = useSelector(getQueryFilter);\n\n const actions = bindActionCreators({ search, openFoldout, openFilter }, dispatch);\n\n const localNavigate = (nextQueryFilter: QueryFilter) => {\n if (!silent) {\n if (target && pathname !== BASE_SEARCH_PATH) {\n _navigate(`${target}${getListQueryConcatQueryfilter(nextQueryFilter.toQueryURL())}`);\n } else if (nextQueryFilter.toQueryString() !== queryFilter.toQueryString()) {\n _navigate(\n `${location.pathname}${getListQueryConcatQueryfilter(nextQueryFilter.toQueryURL())}`,\n { replace: true },\n );\n }\n }\n\n if (!queryFilter.isSame(queryFilter) && silent) {\n _navigate(\n `${target || BASE_SEARCH_PATH}${getListQueryConcatQueryfilter(queryFilter.toQueryURL())}`,\n );\n }\n };\n\n const onRequestSearch = (nextQueryFilter: QueryFilter) => {\n const _nextQueryFilter = nextQueryFilter.removePagination();\n\n if (navigate) {\n navigate(_nextQueryFilter);\n } else {\n localNavigate(_nextQueryFilter);\n }\n\n actions.search(_nextQueryFilter);\n };\n\n const onRequestFilter = (facet: Facet) => {\n if (navigate) {\n navigate(queryFilter);\n } else {\n localNavigate(queryFilter);\n }\n\n actions.openFilter(facet, !process.env.SSR ? window.scrollY : 0, false);\n };\n\n const onRequestFoldout = () => {\n if (navigate) {\n navigate(queryFilter);\n } else {\n localNavigate(queryFilter);\n }\n\n actions.openFoldout(!process.env.SSR ? window.scrollY : 0);\n };\n\n if (useContainer) {\n return (\n <>\n
\n \n \n
\n {children}\n
\n
\n \n
\n
\n \n );\n }\n\n return (\n <>\n \n \n {children}\n \n \n );\n};\n\nexport default DefaultFilterBlock;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport QueryFilter from '../../helpers/query-filter';\n\nimport { togglableFilters, toggleableExcludingFilters } from '../../shared/togglable-filters';\n\nimport { bindActionCreators } from '@reduxjs/toolkit';\nimport { useDispatch, useSelector } from 'react-redux';\nimport {\n closeFilter,\n closeFoldout,\n hideFilterBar,\n openFilter,\n openFoldout,\n showFilterBar,\n} from '../../actions/filters';\nimport { numberSeparator } from '../../helpers/formats';\nimport {\n type CombinedFacet,\n getExcludingFacetSelections,\n getFacetSelections,\n getQueryFilter,\n} from '../../utils/reselectors';\nimport { TagGroup, TagItem } from '../tag';\nimport SaveSubscriptionButton from './save-subscription-button';\n\nconst HiddenParams = ['isAuctionItem', 'sellerType', 'leasing', 'businessLeasing', 'tags'];\n\nconst getRangeTitle = (facet: CombinedFacet) => {\n const preChar = facet.min === facet.range?.min ? facet.prefixChar : '';\n const sufChar = facet.max === facet.range?.max ? facet.suffixChar : '';\n const min = facet.valueFormat ? numberSeparator(facet.range?.min || 0) : facet.range?.min;\n const max = facet.valueFormat ? numberSeparator(facet.range?.max || 0) : facet.range?.max;\n\n return `${facet.prefix}${preChar}${min}\u2013${max}${sufChar}${facet.suffix}`;\n};\n\ninterface ActiveFiltersProps {\n umbrellaFacet?: string;\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst ActiveFilters = ({ umbrellaFacet, onRequestSearch }: ActiveFiltersProps) => {\n const { t } = useTranslation(['common', 'search']);\n const dispatch = useDispatch();\n\n const facets = useSelector(getFacetSelections);\n const excludingFacets = useSelector(getExcludingFacetSelections);\n const queryFilter = useSelector(getQueryFilter);\n\n const actions = bindActionCreators(\n { openFoldout, closeFoldout, openFilter, closeFilter, showFilterBar, hideFilterBar },\n dispatch,\n );\n\n const onDisplayFacet = (facet: CombinedFacet) =>\n actions.openFilter(facet, !process.env.SSR ? window.scrollY : 0, false);\n\n const onDisplayExcludingFacet = (facet: CombinedFacet) =>\n actions.openFilter(facet, !process.env.SSR ? window.scrollY : 0, true);\n\n const onRemoveFacet = (id: string) => {\n const vals = queryFilter.exclusion(id);\n const nextQueryFilter = queryFilter.remove(id);\n nextQueryFilter.setExclusion(id, vals);\n onRequestSearch(nextQueryFilter);\n };\n\n const onRemoveRange = (id: string) => {\n const nextQueryFilter = queryFilter.removeRange(id);\n onRequestSearch(nextQueryFilter);\n };\n\n const onRemoveExclusionFacet = (id: string) => {\n const vals = queryFilter.get(id);\n const nextQueryFilter = queryFilter.remove(id);\n nextQueryFilter.set(id, vals);\n onRequestSearch(nextQueryFilter);\n };\n\n const onRemoveFilter = (id: string, value: string) => {\n let nextQueryFilter = queryFilter.remove(id, value);\n\n if (\n !nextQueryFilter.removeAll(QueryFilter.OperationalParams.concat(HiddenParams)).hasFilters()\n ) {\n nextQueryFilter = nextQueryFilter.removeAll(\n QueryFilter.OperationalParams.concat(HiddenParams),\n );\n }\n\n onRequestSearch(nextQueryFilter);\n };\n\n const onRemoveSpatial = () => {\n const nextQueryFilter = queryFilter.removeSpatial();\n onRequestSearch(nextQueryFilter);\n };\n\n const onRemoveQuery = () => {\n const nextQueryFilter = queryFilter.removeQuery();\n onRequestSearch(nextQueryFilter);\n };\n\n const onClearFilters = () => {\n const nextQueryFilter = new QueryFilter();\n onRequestSearch(nextQueryFilter);\n };\n\n if (umbrellaFacet) {\n return (\n
\n
\n
\n
\n {!queryFilter.isEmpty() && (\n
\n
\n \n \n {t('Clear', { ns: 'common' })}\n \n
\n
\n )}\n
\n \n
\n
\n
\n
\n
\n );\n }\n\n const modifiedQueryFilter = queryFilter.removeAll(\n QueryFilter.OperationalParams.concat(HiddenParams),\n );\n\n if (modifiedQueryFilter.isEmpty()) {\n return null;\n }\n\n let freetextFilter = null;\n const filters = togglableFilters().filter((filter) => modifiedQueryFilter.has(filter.id));\n const excludedFilters = toggleableExcludingFilters().filter((filter) =>\n modifiedQueryFilter.has(filter.id),\n );\n\n if (modifiedQueryFilter.hasQuery()) {\n freetextFilter = (\n \n );\n }\n\n return (\n
\n \n\n
\n
\n
\n {!queryFilter.isEmpty() && (\n
\n
\n \n \n {t('Clear', { ns: 'common' })}\n \n
\n
\n )}\n
\n {facets.map((facet) => {\n if (facet.isRangeFacet) {\n return (\n onDisplayFacet(facet)}\n onRemove={() => onRemoveRange(facet.id)}\n />\n );\n }\n if (facet.isLocationFacet) {\n return (\n onDisplayFacet(facet)}\n onRemove={() => onRemoveSpatial()}\n />\n );\n }\n\n if (facet.filters.length > 1) {\n return (\n onRemoveFacet(facet.id)}\n title={facet.displayName}\n >\n {facet.filters\n .sort((a, b) => a.displayName.localeCompare(b.displayName))\n .map((filter) => (\n onDisplayFacet(facet)}\n onRemove={() => onRemoveFilter(facet.id, filter.displayName)}\n />\n ))}\n \n );\n }\n\n return (\n onDisplayFacet(facet)}\n onRemove={() => onRemoveFilter(facet.id, facet.filters[0].displayName)}\n />\n );\n })}\n {excludingFacets.map((excludingFacet) => {\n if (excludingFacet.filters.length > 1) {\n return (\n onRemoveExclusionFacet(excludingFacet.id)}\n title={excludingFacet.displayName}\n >\n {excludingFacet.filters\n .sort((a, b) => a.displayName.localeCompare(b.displayName))\n .map((filter) => (\n onDisplayExcludingFacet(excludingFacet)}\n onRemove={() => onRemoveFilter(excludingFacet.id, filter.displayName)}\n />\n ))}\n \n );\n }\n\n return (\n onDisplayExcludingFacet(excludingFacet)}\n onRemove={() =>\n onRemoveFilter(excludingFacet.id, excludingFacet.filters[0].displayName)\n }\n />\n );\n })}\n {filters.map((filter) => (\n onRemoveFacet(filter.id)}\n />\n ))}\n {excludedFilters.map((filter) => (\n onRemoveFacet(filter.id)}\n />\n ))}\n {freetextFilter}\n
\n
\n
\n
\n
\n );\n};\n\nexport default ActiveFilters;\n", "import { bindActionCreators } from '@reduxjs/toolkit';\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useLocation, useNavigate } from 'react-router-dom';\n\nimport type { SubscriptionSearchItem } from '../../@types/AdvertismentSubscription';\nimport { collectSubscription, create, update } from '../../actions/search-subscription';\nimport { getGuidFromPath } from '../../helpers/query';\nimport QueryFilter from '../../helpers/query-filter';\nimport { ExchangeTypes, useDataExchangeStatus } from '../../hooks/exchange-status';\nimport { getMarket } from '../../i18n';\nimport type { RootState } from '../../reducers';\nimport { Button } from '../../styled-components/components/Button';\nimport { IconBookmark } from '../../styled-components/components/Icon';\nimport Modal from '../../styled-components/components/Modal';\nimport {\n getLastSearchSubscription,\n getQueryFilter,\n getSearchSubscription,\n} from '../../utils/reselectors';\nimport SearchSubscription from '../subscriptions/search-subscription';\n\nconst resolveSearchSubsriptionRoute = () => {\n const { marketCode } = getMarket();\n switch (marketCode) {\n case 'NO':\n return '/lister/overvaket-sok';\n default:\n return '/listor/bevakade-sokningar';\n }\n};\n\n// same compoent used twice\nlet blocked = false;\n\ninterface SaveSubscriptionButtonProps {\n className?: string;\n testId?: string;\n}\n\nconst SaveSubscriptionButton = ({ className, testId }: SaveSubscriptionButtonProps) => {\n const { t } = useTranslation(['common', 'search']);\n const dispatch = useDispatch();\n const navigate = useNavigate();\n\n const { pathname } = useLocation();\n const id = getGuidFromPath(pathname);\n const requestStatus = useSelector((s) => s.subscriptions.search.requestStatus);\n const responseStatus = useSelector(\n (s) => s.subscriptions.search.responseStatus,\n );\n const queryFilter = useSelector(getQueryFilter);\n const subscription = useSelector((s) =>\n getSearchSubscription(s, id),\n );\n const latestSubscription = useSelector(getLastSearchSubscription);\n\n const actions = bindActionCreators({ update, create, collectSubscription }, dispatch);\n\n const [modal, setModal] = useState(false);\n const statusUpdate = useDataExchangeStatus(ExchangeTypes.Updating, [\n requestStatus,\n responseStatus,\n ]);\n const statusCreate = useDataExchangeStatus(ExchangeTypes.Creating, [\n requestStatus,\n responseStatus,\n ]);\n\n useEffect(() => {\n if (modal) {\n if ((statusUpdate.successful || statusCreate.successful) && latestSubscription) {\n setModal(false);\n actions.collectSubscription(latestSubscription);\n }\n }\n }, [statusUpdate, statusCreate]);\n\n useEffect(() => {\n if (!blocked && statusCreate.successful && latestSubscription) {\n blocked = true;\n\n navigate(\n `${resolveSearchSubsriptionRoute()}/${latestSubscription.id}?qf=${btoa(\n new QueryFilter(latestSubscription.query).toString(),\n )}`,\n );\n }\n }, [statusCreate.successful]);\n\n useEffect(() => {\n if (statusCreate.failed) {\n blocked = false;\n }\n }, [statusCreate.failed]);\n\n const onUpdate = () => {\n if (subscription && id) {\n const payload = {\n createdAt: '2019-07-03T12:24:41.5453071',\n lastNotifiedAt: '2019-07-03T12:24:41.5453076',\n id,\n name: subscription.name,\n query: queryFilter.toString(),\n };\n\n actions.update(payload);\n }\n };\n\n if (!queryFilter) return null;\n\n let disabled = false;\n if (subscription && queryFilter && queryFilter.isSame(new QueryFilter(subscription.query))) {\n disabled = true;\n }\n\n return (\n <>\n {modal && subscription && (\n setModal(false)}\n footerActions={[\n setModal(false)}\n title={t('cancel', { ns: 'common' })}\n $tone=\"clear\"\n $fullWidth\n >\n {t('cancel', { ns: 'common' })}\n ,\n \n {t('Update', { ns: 'search' })}\n ,\n ]}\n >\n {t('doYouWantToUpdateMonitoring', { ns: 'search', name: subscription.name })}\n \n )}\n {modal && !subscription && (\n setModal(false)} query={queryFilter.toString()} />\n )}\n
\n
\n setModal(true)}\n data-testid={testId}\n >\n
\n \n
\n
\n {subscription\n ? t('updateMonitoring', { ns: 'search' })\n : t('monitor', { ns: 'search' })}\n
\n \n
\n
\n \n );\n};\n\nexport default SaveSubscriptionButton;\n", "export const getQuery = (namespace: string) => {\n if (process.env.SSR) return null;\n const url = window.location.search;\n const re = new RegExp(`[?&]${namespace}(=([^&#]*)|&|#|$)`);\n const results = re.exec(url);\n\n return !results || !results[2] ? null : results[2].replace(/\\+/g, ' ');\n};\n\nexport const getGuidFromPath = (path: string) => {\n const result = /((\\w{4,12}-?)){5}/.exec(path);\n return result ? result[0] : null;\n};\n", "import { bindActionCreators } from '@reduxjs/toolkit';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport type { Facet } from '../../@types/ElasticSearchResponse';\nimport { closeFoldout, openFilter } from '../../actions/filters';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { RootState } from '../../reducers';\nimport { togglableFilters, toggleableExcludingFilters } from '../../shared/togglable-filters';\nimport {\n getActiveFacet,\n getFacetList,\n getQueryFilter,\n getSearchHitCount,\n} from '../../utils/reselectors';\nimport FilterFoldoutCheckbox from './filter-foldout-checkbox';\nimport FilterFoldoutItem from './filter-foldout-item';\nimport FilterWxPanel from './filter-wx-panel';\nimport SelectedFilterModal from './selected-filter-modal';\n\ninterface FilterFoldoutProps {\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst FilterFoldout = ({ onRequestSearch }: FilterFoldoutProps) => {\n const { t } = useTranslation('search');\n const dispatch = useDispatch();\n\n const open = useSelector((s) => s.filters.foldoutOpen);\n const current = useSelector(getActiveFacet);\n const facets = useSelector(getFacetList);\n const queryFilter = useSelector(getQueryFilter);\n const numberOfHits = useSelector(getSearchHitCount);\n\n const actions = bindActionCreators({ openFilter, closeFoldout }, dispatch);\n\n const onDisplayFacet = (facet: Facet) =>\n actions.openFilter(facet, !process.env.SSR ? window.scrollY : 0, false);\n\n const onCloseFoldout = () => actions.closeFoldout();\n\n if (!open) return null;\n\n let className = undefined;\n if (open && current) {\n className = 'is-open';\n } else if (open) {\n className = 'is-open filter-list-is-open';\n }\n\n return (\n
\n
\n
\n \n
\n
\n
    \n {facets\n .filter(({ hidden }) => !hidden)\n .map((facet) => (\n onDisplayFacet(facet)}\n />\n ))}\n
    \n
      \n {togglableFilters().map((filter) => (\n \n ))}\n {toggleableExcludingFilters().map((filter) => (\n \n ))}\n
    \n
    \n
\n
\n
\n
\n
\n
\n \n
\n \n
\n
\n {t('Show number of results', { ns: 'search', count: numberOfHits })}\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n
\n );\n};\n\nexport default FilterFoldout;\n", "import React from 'react';\nimport type QueryFilter from '../../helpers/query-filter';\n\ninterface Filter {\n id: string;\n displayName: string;\n tagDisplayName?: string;\n}\n\ninterface FilterFoldoutCheckboxPRops {\n filter: Filter;\n queryFilter: QueryFilter;\n excluding?: boolean;\n onChange: (queryFilter: QueryFilter) => void;\n}\n\nconst FilterFoldoutCheckbox = ({\n filter,\n queryFilter,\n onChange,\n excluding,\n}: FilterFoldoutCheckboxPRops) => {\n const onToggleFilter = (e: React.ChangeEvent) => {\n e.stopPropagation();\n e.preventDefault();\n\n let nextQueryFilter = queryFilter;\n if (queryFilter.has(filter.id)) {\n nextQueryFilter = nextQueryFilter.remove(filter.id);\n } else {\n nextQueryFilter = nextQueryFilter.add(filter.id, excluding ? 'false' : 'true');\n }\n\n onChange(nextQueryFilter);\n };\n\n return (\n
  • \n
    \n
    \n \n
    \n
    \n \n
  • \n );\n};\n\nexport default FilterFoldoutCheckbox;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { CombinedFacet } from '../../utils/reselectors';\n\ninterface FilterFoldoutItemProps {\n onClick: (e: React.MouseEvent) => void;\n isActive?: boolean;\n facet: CombinedFacet;\n}\n\nconst FilterFoldoutItem = ({ onClick, isActive, facet }: FilterFoldoutItemProps) => {\n const { t } = useTranslation('search');\n\n return (\n \n \n
    {facet.displayName}
    \n
    \n {facet.title &&
    {facet.title}
    }\n
    \n \n
    \n
    \n \n \n );\n};\n\nexport default FilterFoldoutItem;\n", "import { bindActionCreators } from '@reduxjs/toolkit';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { closeFoldout, openFilter } from '../../actions/filters';\nimport QueryFilter from '../../helpers/query-filter';\nimport { getActiveFacet, getQueryFilter } from '../../utils/reselectors';\n\ninterface FilterWxPanelProps {\n title: string;\n modifiers?: string;\n children?: React.ReactNode;\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst FilterWxPanel = ({ title, onRequestSearch, children, modifiers }: FilterWxPanelProps) => {\n const { t } = useTranslation(['common', 'search']);\n const dispatch = useDispatch();\n\n const facet = useSelector(getActiveFacet);\n const queryFilter = useSelector(getQueryFilter);\n\n const actions = bindActionCreators(\n {\n openFilter,\n closeFoldout,\n },\n dispatch,\n );\n\n const onCloseFoldout = () => actions.closeFoldout();\n const onReset = () => {\n if (facet) {\n let qf = queryFilter;\n qf = qf.remove(facet.id);\n qf = qf.removeRange(facet.id);\n qf = qf.removeSpatial();\n onRequestSearch(qf);\n }\n };\n\n const onClearFilters = () => {\n if (facet) {\n onReset();\n } else {\n onRequestSearch(new QueryFilter());\n }\n };\n\n return (\n
    \n
    \n
    \n \n
    \n \n
    \n
    {t('Clear', { ns: 'common' })}
    \n \n
    \n
    {title}
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    {children}
    \n
    \n );\n};\n\nexport default FilterWxPanel;\n", "import { bindActionCreators } from '@reduxjs/toolkit';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { closeFilter, closeFoldout } from '../../actions/filters';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { RootState } from '../../reducers';\nimport { requestStatus } from '../../shared/statuses';\nimport { getActiveFacet, getQueryFilter, getSearchHitCount } from '../../utils/reselectors';\nimport FilterWxPanel from './filter-wx-panel';\nimport SelectFilter from './select-filter';\nimport SelectFilterLocation from './select-filter-location';\nimport SelectFilterRange from './select-filter-range';\n\ninterface SelectedFilterModalProps {\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst SelectedFilterModal = ({ onRequestSearch }: SelectedFilterModalProps) => {\n const { t } = useTranslation('search');\n const dispatch = useDispatch();\n\n const searching = useSelector(\n (s) => s.search.requestStatus === requestStatus.FETCHING_LIST,\n );\n const facet = useSelector(getActiveFacet);\n const isExcludedFacet = useSelector((s) => s.filters.isExcludedFacet);\n const queryFilter = useSelector(getQueryFilter);\n const numberOfHits = useSelector(getSearchHitCount);\n\n const actions = bindActionCreators({ closeFoldout, closeFilter }, dispatch);\n\n const onReset = () => {\n if (facet) {\n const nextQueryFilter = queryFilter.remove(facet.id).removeRange(facet.id);\n onRequestSearch(nextQueryFilter);\n }\n };\n\n const onCloseFoldout = () => actions.closeFoldout();\n const onCloseFilter = () => actions.closeFilter();\n\n if (!facet) {\n return null;\n }\n\n let filterSelector = null;\n let filterBodyBlock = null;\n let filterModifier = '';\n const isResetable = queryFilter.has(facet.id) || queryFilter.hasRange(facet.id);\n if (facet.isLocationFacet) {\n return (\n \n );\n } else if (facet.isRangeFacet) {\n filterSelector = (\n \n );\n } else {\n filterSelector = (\n \n );\n filterModifier = 'list';\n }\n\n if (searching) filterBodyBlock =
    ;\n\n return (\n \n {filterBodyBlock}\n {filterSelector}\n
    \n
    \n
    \n \n
    \n \n
    \n
    {t('All filters', { ns: 'search' })}
    \n \n
    \n
    \n \n
    \n \n
    \n
    \n {t('Show number of results', { ns: 'search', count: numberOfHits })}\n
    \n \n
    \n
    \n
    \n \n );\n};\n\nexport default SelectedFilterModal;\n", "import React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { Filter } from '../../@types/ElasticSearchResponse';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { CombinedFacet } from '../../utils/reselectors';\nimport AdvancedFilterHelp from './advanced-filter-help';\nimport SelectFilterItem from './select-filter-item';\nimport SelectFilterItemAdvanced from './select-filter-item-advanced';\n\ninterface SelectFilterProps {\n queryFilter: QueryFilter;\n facet?: CombinedFacet;\n isExcludedFacet?: boolean;\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst SelectFilter = ({\n queryFilter,\n facet,\n isExcludedFacet,\n onRequestSearch,\n}: SelectFilterProps) => {\n const { t } = useTranslation(['common', 'search']);\n const [state, setState] = useState({\n query: '',\n forceVisibility: false,\n filterType: isExcludedFacet ? 1 : 0,\n });\n\n useEffect(() => {\n if (facet?.isExcludeProhibited && state.filterType) {\n setState((s) => ({ ...s, filterType: 0 }));\n }\n }, [facet?.isExcludeProhibited, state.filterType, setState]);\n\n const onQuery = (e: React.ChangeEvent) => {\n setState({ ...state, query: e.currentTarget.value });\n };\n\n const onChange = (filter: Filter) => {\n if (facet) {\n let nextQueryFilter = queryFilter;\n\n if (nextQueryFilter.contains(facet.id, filter.displayName)) {\n nextQueryFilter = nextQueryFilter.removePagination().remove(facet.id, filter.displayName);\n } else {\n nextQueryFilter = nextQueryFilter.removePagination().add(facet.id, filter.displayName);\n }\n\n onRequestSearch(nextQueryFilter);\n }\n };\n\n const onInclude = (filter: Filter) => {\n if (facet) {\n let nextQueryFilter = queryFilter;\n nextQueryFilter = nextQueryFilter.add(facet.id, filter.displayName);\n onRequestSearch(nextQueryFilter);\n }\n };\n\n const onExclude = (filter: Filter) => {\n if (facet) {\n let nextQueryFilter = queryFilter;\n nextQueryFilter = nextQueryFilter.exclude(facet.id, filter.displayName);\n onRequestSearch(nextQueryFilter);\n }\n };\n\n const onForceVisibility = () => setState({ ...state, forceVisibility: true });\n\n const filters = useMemo(() => {\n if (!facet) return undefined;\n\n const charMap: Record = { \u0160: 'S', \u0161: 's', \u00CB: 'E', \u00EB: 'e' };\n const normalize = (str: string) =>\n str.replace(/[\u0160\u0161\u00CB\u00EB]/g, (char) => charMap[char] || char).toLowerCase();\n\n let filtered = facet.filters;\n\n if (state.query) {\n const query = state.query.toLowerCase();\n filtered = filtered.filter(({ displayName }) => normalize(displayName).includes(query));\n }\n\n if (!state.forceVisibility && filtered.length > 25) {\n return filtered.slice(0, 20);\n }\n\n return filtered;\n }, [facet, state.query, state.forceVisibility]);\n\n if (!facet) return null;\n\n return (\n <>\n
    \n {!facet.isExcludeProhibited && (\n
      \n
    • \n setState({ ...state, filterType: 0 })}\n title={t('Show simple filters', { ns: 'search' })}\n >\n {t('Simple', { ns: 'search' })}\n \n
    • \n
    • \n setState({ ...state, filterType: 1 })}\n title={t('Show advanced filters', { ns: 'search' })}\n >\n {t('Advanced', { ns: 'search' })}\n \n
    • \n
    \n )}\n\n {!!state.filterType && }\n
    \n
    \n
    \n
    \n \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
      \n {filters\n ?.filter((x) => !!x.displayName)\n ?.map((filter, index) =>\n !state.filterType ? (\n \n ) : (\n \n ),\n )}\n {!state.forceVisibility && facet.filters.length > 25 && (\n
    • \n \n {t('Show more', { ns: 'common' })}\n \n
    • \n )}\n
    \n
    \n
    \n \n );\n};\n\nexport default SelectFilter;\n", "import Cookies from 'cookies-js';\nimport React, { useCallback, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { cdn } from '../../helpers/urls';\n\nconst COOKIE_WARNING_EXPIRY = 365 * 24 * 3600;\nconst COOKIE_ADVANCED_FILTER_HELP = 'wayke-advanced-filter-help-cookie';\n\nconst getCookie = () => {\n return !!Cookies.get(COOKIE_ADVANCED_FILTER_HELP);\n};\n\nconst setCookie = () => {\n Cookies.set(COOKIE_ADVANCED_FILTER_HELP, true, { expires: COOKIE_WARNING_EXPIRY });\n return true;\n};\n\nconst AdvancedFilterHelp = () => {\n const { t } = useTranslation('search');\n const [visible, setVisible] = useState(!getCookie());\n const [expanded, setExpanded] = useState(false);\n const onHide = useCallback(() => {\n setVisible(false);\n setCookie();\n }, []);\n\n if (!visible) return null;\n\n return (\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    {t('Exclude from search', { ns: 'search' })}
    \n
    \n setExpanded(!expanded)}\n >\n {expanded ? t('Hide example', { ns: 'search' }) : t('Show example', { ns: 'search' })}\n \n
    \n {expanded && (\n
    \n {t(\n 'In addition to adding to your search, you can exclude from your search. For example: all gray cars.',\n { ns: 'search' },\n )}\n \n \n \n \n \n
    \n )}\n
    \n
    \n \n \n \n
    \n
    \n
    \n );\n};\n\nexport default AdvancedFilterHelp;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { Filter } from '../../@types/ElasticSearchResponse';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { CombinedFacet } from '../../utils/reselectors';\n\ninterface SelectFilterItemAdvancedProps {\n filter: Filter;\n facet: CombinedFacet;\n queryFilter: QueryFilter;\n index: number;\n onChange: (filter: Filter) => void;\n}\n\nconst SelectFilterItemAdvanced = ({\n filter,\n facet,\n queryFilter,\n index,\n onChange,\n}: SelectFilterItemAdvancedProps) => {\n const { t } = useTranslation(['search', 'validation']);\n const isIncluded = queryFilter.contains(facet.id, filter.displayName);\n\n return (\n
  • \n
    \n onChange(filter)}\n title={\n filter.selected && isIncluded\n ? t('Remove this filter', {\n ns: 'search',\n name: filter.translatedDisplayName || filter.displayName,\n })\n : t('Add this filter', {\n ns: 'search',\n name: filter.translatedDisplayName || filter.displayName,\n })\n }\n data-testid={`filter-modal-list-item-${index}`}\n >\n
    \n
    \n
    \n
    \n {filter.translatedDisplayName ||\n filter.displayName ||\n t('valueMissing', { ns: 'validation' })}\n
    \n \n
    \n
    {filter.count}
    \n
  • \n );\n};\n\nexport default SelectFilterItemAdvanced;\n", "import React from 'react';\nimport type { Filter } from '../../@types/ElasticSearchResponse';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { CombinedFacet } from '../../utils/reselectors';\n\ninterface SelectFilterItemAdvancedProps {\n filter: Filter;\n facet: CombinedFacet;\n queryFilter: QueryFilter;\n onInclude: (filter: Filter) => void;\n onExclude: (filter: Filter) => void;\n}\n\nconst SelectFilterItemAdvanced = ({\n filter,\n facet,\n queryFilter,\n onInclude,\n onExclude,\n}: SelectFilterItemAdvancedProps) => {\n const isIncluded = queryFilter.contains(facet.id, filter.displayName);\n const isExcluded = queryFilter.excludes(facet.id, filter.displayName);\n return (\n
  • \n
    \n \n
    \n onInclude(filter)}\n >\n \n \n onExclude(filter)}\n >\n \n \n
    \n
    {filter.displayName}
    \n
    \n
  • \n
    {filter.count}
    \n \n );\n};\n\nexport default SelectFilterItemAdvanced;\n", "import { bindActionCreators } from '@reduxjs/toolkit';\nimport Slider from 'rc-slider';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport type { WaykeLocation, WaykeQueryLocation } from '../../@types/WaykeLocation';\nimport { clear, current, lookup, search } from '../../actions/geo';\nimport type QueryFilter from '../../helpers/query-filter';\nimport { ExchangeTypes, useDataExchangeStatus } from '../../hooks/exchange-status';\nimport type { RootState } from '../../reducers';\nimport type { CombinedFacet } from '../../utils/reselectors';\nimport { SpinnerInline } from '../spinner';\nimport FilterWxPanel from './filter-wx-panel';\nimport { QueryFoldoutBlock, QueryFoldoutItem } from './query-foldout';\nimport SelectFilterLocationMap from './select-filter-location-map';\n\ninterface SelectFilterLocationProps {\n queryFilter: QueryFilter;\n radius?: number;\n facet: CombinedFacet;\n onCloseFoldout: () => void;\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst SelectFilterLocation = ({\n facet,\n queryFilter,\n onCloseFoldout,\n onRequestSearch,\n}: SelectFilterLocationProps) => {\n const { t } = useTranslation(['common', 'search']);\n const dispatch = useDispatch();\n\n const requestStatus = useSelector((s) => s.geo.requestStatus);\n const responseStatus = useSelector((s) => s.geo.responseStatus);\n const position = useSelector((s) => s.geo.location);\n const results = useSelector((s) => s.geo.results || []);\n\n const actions = bindActionCreators({ search, clear, current }, dispatch);\n\n const requestGet = useDataExchangeStatus(ExchangeTypes.Fetching, [requestStatus, responseStatus]);\n const timeoutId = useRef(undefined);\n\n const initialLocation = queryFilter.hasSpatial()\n ? {\n ...(queryFilter.getSpatial() as WaykeQueryLocation),\n radius: (queryFilter.getSpatial() as WaykeQueryLocation)?.distance,\n }\n : position\n ? position\n : undefined;\n\n const [searchTerm, setSearchTerm] = useState('');\n const [currentLocation, setCurrentLocation] = useState(initialLocation);\n const [open, setOpen] = useState(false);\n const currentLocationRef = useRef(currentLocation);\n currentLocationRef.current = currentLocation;\n\n useEffect(() => {\n if (!position) {\n actions.current();\n }\n }, []);\n\n useEffect(() => {\n clearTimeout(timeoutId.current);\n timeoutId.current = setTimeout(() => {\n if (searchTerm) {\n actions.search(searchTerm);\n } else {\n actions.clear();\n }\n }, 500);\n }, [searchTerm]);\n\n useEffect(() => {\n if (!currentLocation && position) {\n setCurrentLocation({\n ...position,\n });\n }\n }, [position?.lat, position?.lng]);\n\n const onRequestCurrentPosition = () => {\n if (!position) {\n actions.current();\n } else {\n setCurrentLocation({\n ...position,\n });\n }\n };\n\n const onChange = (e: React.ChangeEvent) => setSearchTerm(e.target.value);\n\n const onKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === 'Enter' && results.length > 0) {\n onSelect(results[0]);\n }\n };\n\n const onSliderChange = (radius: number | number[]) => {\n if (currentLocation) {\n setCurrentLocation({\n ...currentLocation,\n radius: radius as number,\n });\n }\n };\n\n const onSelect = (location: WaykeLocation) => {\n setCurrentLocation(location);\n actions.clear();\n };\n\n const onPositionChange = (lat: number, lng: number) => {\n lookup(lat, lng, (json) => {\n let match = json.results.find((r) => r.types?.includes('administrative_area_level_2'));\n\n if (!match) {\n match = json.results.find((r) => r.types?.includes('political'));\n }\n\n if (match && currentLocationRef.current) {\n const name = match.address_components?.[0].long_name || match.formatted_address || '';\n const nextLocation = {\n ...currentLocationRef.current,\n lat,\n lng,\n city: name,\n name,\n radius: currentLocationRef.current?.radius || 50,\n };\n setCurrentLocation(nextLocation);\n }\n });\n };\n\n const onOpen = () => setOpen(true);\n\n const onRequestSearchClick = () => {\n if (currentLocation?.lat && currentLocation.lng) {\n const nextActive = currentLocation as WaykeLocation;\n const nextQueryFilter = queryFilter.removePagination().addSpatial(nextActive);\n onRequestSearch(nextQueryFilter);\n onCloseFoldout();\n }\n };\n\n let resultsMarkup = null;\n if (open || !currentLocation) {\n if (requestGet.pending) {\n resultsMarkup = (\n \n false}>\n \n \n \n );\n } else if (results.length > 0) {\n resultsMarkup = (\n \n {results.map((result) => (\n onSelect(result)}\n >\n
    \n
    \n {result.city} +50 km\n
    \n
    \n
    \n {t('Choose', { ns: 'common' })}\n
    \n
    \n
    \n \n ))}\n
    \n );\n }\n }\n\n const buttonOrInput = (\n
    \n
    \n
    \n ) => e.preventDefault()}\n >\n \n
    \n {resultsMarkup && (\n
    \n
    {resultsMarkup}
    \n
    \n )}\n
    \n \n \n \n
    \n
    \n
    \n );\n\n if (!currentLocation) {\n return (\n \n
    \n
    \n
    \n
    \n
    {buttonOrInput}
    \n
    \n
    \n
    \n \n );\n }\n\n return (\n \n
    \n
    \n \n {buttonOrInput}\n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    +{currentLocation.radius} km
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n
    {t('Confirm location', { ns: 'search' })}
    \n \n
    \n
    \n
    \n
    \n );\n};\n\nexport default SelectFilterLocation;\n", "import React from 'react';\n\ninterface QueryFoldoutItemProps {\n active?: boolean;\n onClick?: () => void;\n children?: React.ReactNode;\n}\n\nexport const QueryFoldoutItem = ({ active, onClick, children }: QueryFoldoutItemProps) => (\n
  • \n \n
  • \n);\n\ninterface QueryFoldoutBlockProps {\n title: string;\n visible?: boolean;\n children?: React.ReactNode;\n}\n\nexport const QueryFoldoutBlock = ({ title, visible, children }: QueryFoldoutBlockProps) => {\n if (!visible) {\n return null;\n }\n\n return (\n <>\n
    {title}
    \n
      {children}
    \n \n );\n};\n", "import React, { useEffect, useRef, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { getPixelRadius } from '../../utils/maps';\n\nconst MAP_CENTER = { lat: 63.176683, lng: 14.636068 };\n\nconst createMap = (\n element: HTMLDivElement,\n center: google.maps.LatLng,\n initialZoomLevel: number,\n) => {\n if (!element) return null;\n\n return new window.google.maps.Map(element, {\n center,\n zoom: initialZoomLevel,\n disableDefaultUI: true,\n scrollwheel: false,\n zoomControl: false,\n mapTypeControl: false,\n scaleControl: false,\n clickableIcons: false,\n disableDoubleClickZoom: true,\n fullscreenControl: false,\n gestureHandling: 'greedy',\n keyboardShortcuts: false,\n maxZoom: 13,\n });\n};\nconst createMarker = (map: google.maps.Map, center: google.maps.LatLng, radius: number) =>\n new google.maps.Circle({\n strokeColor: '#f65964',\n strokeWeight: 1,\n strokeOpacity: 1.0,\n fillColor: '#f65964',\n fillOpacity: 0.15,\n map,\n center,\n radius: radius * 1000,\n });\n\ninterface MapPosition {\n lat: number;\n lng: number;\n}\n\ninterface SelectFilterLocationMapProps {\n position?: MapPosition;\n radius?: number;\n children?: React.ReactNode;\n onChange: (lat: number, lng: number) => void;\n onRequestCurrentPosition: () => void;\n}\n\nconst SelectFilterLocationMap = ({\n position,\n radius,\n children,\n onChange,\n onRequestCurrentPosition,\n}: SelectFilterLocationMapProps) => {\n const { t } = useTranslation('search');\n const mapContainerRef = useRef(null);\n const mapRef = useRef(null);\n const markerRef = useRef(null);\n const timeoutRef = useRef(-1 as unknown as NodeJS.Timeout);\n\n const [state, setState] = useState({ active: false, dragging: false, dimensions: 0 });\n\n useEffect(() => {\n const emptyMap = !position;\n const location = emptyMap ? MAP_CENTER : position;\n if (mapContainerRef.current) {\n mapRef.current = createMap(\n mapContainerRef.current,\n new google.maps.LatLng(location.lat, location.lng),\n emptyMap ? 3 : 8,\n );\n\n if (mapRef.current) {\n const map = mapRef.current;\n map.addListener('dragstart', onDragStart);\n map.addListener('idle', onDragEnd);\n if (state.active && radius && position) {\n map.addListener('projection_changed', () => repaint(radius, position, true));\n }\n }\n }\n\n return () => {\n mapRef.current = null;\n markerRef.current = null;\n };\n }, []);\n\n useEffect(() => {\n if (position && radius) {\n repaint(radius, position, true);\n }\n }, [position?.lat, position?.lng]);\n\n useEffect(() => {\n if (position && radius) {\n repaint(radius, position, true);\n }\n }, [radius?.toString()]);\n\n const resetAspectRatio = () => {\n if (mapRef.current && markerRef.current) {\n const map = mapRef.current;\n const markerBounds = markerRef.current.getBounds();\n const markerCenter = markerRef.current.getCenter();\n if (markerBounds && markerCenter) {\n map.fitBounds(markerBounds);\n map.setCenter(markerCenter);\n }\n }\n };\n\n const repaint = (\n radius: number,\n position: MapPosition,\n shoudlResetAspectRatio = false,\n delay = false,\n ) => {\n if (!position || !mapRef.current) {\n return;\n }\n const latlng = new window.google.maps.LatLng(position.lat, position.lng);\n if (!markerRef.current) {\n markerRef.current = createMarker(mapRef.current, latlng, radius);\n } else {\n const marker = markerRef.current;\n marker.setCenter(latlng);\n marker.setRadius(radius * 1000);\n }\n\n if (shoudlResetAspectRatio) {\n if (delay) {\n // Used when search menu is open, then a location i selected.\n setTimeout(resetAspectRatio, 200);\n } else {\n resetAspectRatio();\n }\n }\n };\n\n const onDragStart = () => {\n if (mapRef.current && markerRef.current) {\n const map = mapRef.current;\n const marker = markerRef.current;\n clearTimeout(timeoutRef.current);\n if (!state.active) {\n const dimensions = getPixelRadius(map, marker) * 2;\n map.setOptions({\n minZoom: (map as unknown as { zoom: number }).zoom,\n maxZoom: (map as unknown as { zoom: number }).zoom,\n });\n marker.setMap(null);\n setState({ ...state, active: true, dragging: true, dimensions });\n }\n }\n };\n\n const onDragEnd = () => {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = setTimeout(() => {\n if (mapRef.current) {\n const map = mapRef.current;\n\n map.setOptions({ minZoom: null, maxZoom: 15 });\n if (markerRef.current) {\n const marker = markerRef.current;\n\n marker.setMap(map);\n const mapCenter = map.getCenter();\n if (mapCenter) {\n marker.setCenter(mapCenter);\n }\n }\n setState({ ...state, dragging: false, active: false });\n onPositionChange();\n }\n }, 500);\n };\n\n const onPositionChange = () => {\n if (!mapRef.current) return;\n\n if (markerRef.current && position) {\n const map = mapRef.current;\n const center = map.getCenter();\n const marker = markerRef.current;\n if (center) {\n marker.setCenter(center);\n if (\n (center.lat().toFixed(2) !== position.lat.toFixed(2) ||\n center.lng().toFixed(2) !== position.lng.toFixed(2)) &&\n radius\n ) {\n onChange(center.lat(), center.lng());\n }\n }\n }\n };\n\n const { active, dragging, dimensions } = state;\n const mapOverlayStyle = {\n display: active && dragging ? 'block' : 'none',\n width: `${dimensions}px`,\n height: `${dimensions}px`,\n };\n\n return (\n
    \n
    \n
    \n
    \n {children}\n {navigator.geolocation && (\n
    \n \n \n \n
    \n )}\n
    \n
    \n {t('Drag the map to select a location', { ns: 'search' })}\n
    \n
    \n );\n};\n\nexport default SelectFilterLocationMap;\n", "import Slider from 'rc-slider';\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { numberSeparator } from '../../helpers/formats';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { CombinedFacet } from '../../utils/reselectors';\nimport SelectFilterRangeHistogram from './select-filter-range-histogram';\n\nconst getUnit = (facet: CombinedFacet, value: number | null) => {\n const { suffix, suffixSingular } = facet;\n\n if (!suffixSingular) {\n return suffix;\n }\n\n const isPlural = (value || 0) > 1;\n return isPlural ? suffix : suffixSingular;\n};\n\nconst formatNumber = (shouldFormat: boolean | undefined, value: number) => {\n if (shouldFormat) {\n return numberSeparator(value) || 0;\n }\n return value;\n};\n\nconst getActualMaxValue = (facet: CombinedFacet, max: number | undefined) => {\n switch (facet.id) {\n case 'price':\n return 10000000;\n\n case 'mileage':\n return 100000;\n\n case 'enginePower':\n return 2000;\n\n default:\n return max;\n }\n};\n\nconst createNewQueryFilter = (\n id: string,\n queryFilter: QueryFilter,\n from: number | null,\n to: number | null,\n min: number | undefined,\n max: number | undefined,\n) => {\n const isFromMin = from === min;\n const isToMax = to === max;\n\n const fromValue = isFromMin ? null : from;\n const toValue = isToMax ? null : to;\n return queryFilter.removePagination().removeRange(id).addRange(id, fromValue, toValue);\n};\n\ninterface SelectFilterRangeProps {\n facet: CombinedFacet;\n queryFilter: QueryFilter;\n onRequestSearch: (queryFilter: QueryFilter) => void;\n onCloseFoldout: () => void;\n onReset?: () => void;\n}\n\nconst SelectFilterRange = ({\n facet,\n queryFilter,\n onCloseFoldout,\n onRequestSearch,\n}: SelectFilterRangeProps) => {\n const { prefixChar: _prefixChar, suffixChar, rangeStep, valueFormat, range } = facet;\n const debounceRef = useRef(undefined);\n\n const min = facet.min;\n const sliderMax = facet.max;\n const actualMax = getActualMaxValue(facet, sliderMax);\n\n const [fromValue, setFromValue] = useState(range?.min || 0);\n const [toValue, setToValue] = useState(range?.max || 0);\n const [isFromFocused, setIsFromFocused] = useState(false);\n const [isToFocused, setIsToFocused] = useState(false);\n\n const fromValueRef = useRef(fromValue);\n fromValueRef.current = fromValue;\n const toValueRef = useRef(toValue);\n toValueRef.current = toValue;\n\n const interactionRef = useRef<'input' | 'slider'>('slider');\n\n const prefixChar = _prefixChar || ((fromValue ?? 0) <= (min ?? 0) ? '<' : null);\n\n const performSearch = () => {\n const hasNoChanges =\n (range?.min || 0) === fromValueRef.current && (range?.max || 0) === toValueRef.current;\n\n if (hasNoChanges) {\n return;\n }\n const newQueryFilter = createNewQueryFilter(\n facet.id,\n queryFilter,\n fromValueRef.current,\n toValueRef.current,\n interactionRef.current === 'slider' ? min : undefined,\n interactionRef.current === 'slider' ? sliderMax : undefined,\n );\n onRequestSearch(newQueryFilter);\n };\n\n const handleInputValueChange = (\n e: React.ChangeEvent,\n setValue: (value: number | null) => void,\n ) => {\n interactionRef.current = 'input';\n const value = e.currentTarget.value;\n const isEmpty = value === '';\n\n if (isEmpty) {\n return setValue(null);\n }\n\n const numberValue = Number.parseInt(value, 10);\n\n if (Number.isNaN(numberValue)) {\n setValue(null);\n } else {\n setValue(numberValue);\n }\n };\n\n const handleInputKeyUp = (e: React.KeyboardEvent) => {\n const isEnterClick = e.keyCode === 13;\n\n if (isEnterClick) {\n onCloseFoldout();\n }\n };\n\n const handleInputBlur = (setFocus: (focused: boolean) => void) => {\n setFocus(false);\n };\n\n const handleSliderValueChange = (value: number | number[]) => {\n interactionRef.current = 'slider';\n const isEditingInput = isFromFocused || isToFocused;\n\n if (isEditingInput) {\n return;\n }\n\n const [from, to] = value as number[];\n\n const hasFromChanged = from !== fromValue;\n const hasToChanged = to !== toValue;\n\n if (hasFromChanged) {\n setFromValue(from);\n } else if (hasToChanged) {\n setToValue(to);\n }\n };\n\n useEffect(() => {\n clearTimeout(debounceRef.current);\n debounceRef.current = setTimeout(() => {\n performSearch();\n }, 250);\n }, [fromValue, toValue]);\n\n useEffect(() => {\n return () => clearTimeout(debounceRef.current);\n }, []);\n\n const fromUnit = getUnit(facet, fromValue);\n const toUnit = getUnit(facet, toValue);\n const minUnit = getUnit(facet, min || 0);\n const maxUnit = getUnit(facet, sliderMax || 0);\n\n const shouldFormatFrom = valueFormat && !isFromFocused;\n const shouldFormatTo = valueFormat && !isToFocused;\n\n const formattedFrom = fromValue === null ? '' : formatNumber(shouldFormatFrom, fromValue);\n const formattedTo = toValue === null ? '' : formatNumber(shouldFormatTo, toValue);\n\n const formattedMin = formatNumber(valueFormat, min || 0);\n const formattedSliderMax = formatNumber(valueFormat, sliderMax || 0);\n\n const sliderValueMin = ((fromValue ?? 0) < (min ?? 0) ? min : fromValue) ?? 0;\n const sliderValueMax = ((toValue ?? 0) > (actualMax ?? 0) ? actualMax : toValue) ?? 0;\n const sliderValue = [sliderValueMin, sliderValueMax];\n\n return (\n <>\n
    \n
    \n
    \n
    \n
    \n
    \n handleInputValueChange(e, setFromValue)}\n onFocus={() => setIsFromFocused(true)}\n onBlur={() => handleInputBlur(setIsFromFocused)}\n onKeyUp={handleInputKeyUp}\n />\n
    {fromUnit}
    \n
    \n
    \n
    \n
    \n
    \n
    \n handleInputValueChange(e, setToValue)}\n onFocus={() => setIsToFocused(true)}\n onBlur={() => handleInputBlur(setIsToFocused)}\n onKeyUp={handleInputKeyUp}\n />\n
    {toUnit}
    \n
    \n
    \n
    \n
    \n\n
    \n \n\n \n
    \n\n
    \n
    \n {prefixChar}\n {formattedMin} {minUnit}\n
    \n
    \n {formattedSliderMax}\n {suffixChar} {maxUnit}\n
    \n
    \n
    \n
    \n
    \n \n );\n};\n\nexport default SelectFilterRange;\n", "import React from 'react';\nimport type { Filter } from '../../@types/ElasticSearchResponse';\nimport type { CombinedFacet } from '../../utils/reselectors';\n\nconst getPercentage = (value: number, total: number) => {\n return (100 / total) * value;\n};\n\nconst getHistogramRatio = (largest: number) => {\n const isTooLarge = largest > 100;\n\n if (isTooLarge) {\n return 1;\n }\n return Math.floor(100 / largest);\n};\n\nconst getHistogramBars = (filters: Filter[]) => {\n const totalCount = filters.reduce((accumulator, f) => accumulator + f.count, 0);\n const bars: { [key: string]: number | undefined } = {};\n\n let largest = 0;\n\n filters.forEach((filter) => {\n const percentage = getPercentage(filter.count, totalCount);\n const isNewLargest = percentage > largest;\n\n bars[filter.query] = percentage;\n\n if (isNewLargest) {\n largest = percentage;\n }\n });\n\n const ratio = getHistogramRatio(largest);\n\n return {\n ratio,\n bars,\n };\n};\n\ninterface SelectFilterRangeHistogramProps {\n facet: CombinedFacet;\n}\n\nconst SelectFilterRangeHistogram = ({ facet }: SelectFilterRangeHistogramProps) => {\n const { histogram, filters } = facet;\n\n const shouldShowHistogram = histogram && filters && filters.length > 0;\n\n if (!shouldShowHistogram) {\n return null;\n }\n\n const { bars, ratio } = getHistogramBars(filters);\n\n const barItems = filters.map((filter) => {\n const displayName = filter.displayName\n .replace(facet.prefixChar || '', '')\n .replace(facet.suffixChar || '', '');\n\n const value = Number.parseFloat(displayName);\n const isActive = value >= (facet.range?.min || 0) && value <= (facet.range?.max || 0);\n\n const count = bars[filter.query] as number;\n const height = ratio * count;\n\n return (\n
    \n \n
    \n );\n });\n\n return (\n
    \n
    {barItems}
    \n
    \n );\n};\n\nexport default SelectFilterRangeHistogram;\n", "import { getQuery } from './query';\n\nexport const getListQueryConcatQueryfilter = (queryString: string, espaceAmpersand = false) => {\n const listQuery = getQuery('list');\n if (!listQuery) return queryString;\n\n return queryString.indexOf('?') > -1\n ? `${queryString}${espaceAmpersand ? '%26' : '&'}list=${listQuery}`\n : `${queryString}?list=${listQuery}`;\n};\n", "import React, { useRef, useEffect, useState, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSelector } from 'react-redux';\n\nimport { getQuery } from '../../helpers/query';\nimport type QueryFilter from '../../helpers/query-filter';\nimport type { RootState } from '../../reducers';\nimport { getQueryFilter } from '../../selectors/search';\nimport { requestStatus } from '../../shared/statuses';\nimport { type CombinedFacet, getFacetList } from '../../utils/reselectors';\nimport SearchSubscription from '../subscriptions/search-subscription';\nimport FilterBarItem from './filter-bar-item';\nimport FilterBarSlider from './filter-bar-slider';\nimport SaveSubscriptionButton from './save-subscription-button';\n\ninterface State {\n visibleScrollSize: boolean;\n queryFilter: QueryFilter | null;\n subscribe: boolean;\n}\n\ninterface FilterBarProps {\n onRequestFoldout: () => void;\n onRequestFilter: (facet: CombinedFacet) => void;\n onRequestSearch: (queryFilter: QueryFilter) => void;\n}\n\nconst FilterBar = ({ onRequestFoldout, onRequestFilter }: FilterBarProps) => {\n const { t } = useTranslation('search');\n const initSubscribe = getQuery('subscribe');\n const isSearching = useSelector(\n (s) => s.search.requestStatus === requestStatus.FETCHING_LIST,\n );\n const facets = useSelector(getFacetList);\n const queryFilter = useSelector(getQueryFilter);\n\n const [state, setState] = useState({\n visibleScrollSize: false,\n queryFilter: null,\n subscribe: initSubscribe === 'true',\n });\n\n const ref = useRef(null);\n\n useEffect(() => {\n if (!isSearching) {\n setState({ ...state, queryFilter });\n }\n }, [isSearching]);\n\n useEffect(() => {\n ref.current?.addEventListener('scroll', onScroll);\n\n return () => {\n ref.current?.removeEventListener('scroll', onScroll);\n };\n }, []);\n\n const onScroll = () => {\n const offset = ref.current?.scrollLeft || 0;\n const nextState = { ...state };\n let hasChanged = false;\n\n if (offset > 0 && !nextState.visibleScrollSize) {\n nextState.visibleScrollSize = true;\n hasChanged = true;\n } else if (offset < 1 && nextState.visibleScrollSize) {\n nextState.visibleScrollSize = false;\n hasChanged = true;\n }\n\n if (hasChanged) {\n setState(nextState);\n }\n };\n\n const onDisplayFacet = (facet: CombinedFacet) => onRequestFilter(facet);\n const onOpenFoldout = () => onRequestFoldout();\n const onToggleSubscription = () => setState({ ...state, subscribe: !state.subscribe });\n\n const checkboxFilters = useMemo(() => {\n const checkboxes = facets\n .filter((facet) => !facet.hidden)\n .map((facet) => (\n onDisplayFacet(facet)} />\n ));\n return checkboxes;\n }, [facets, queryFilter, onDisplayFacet]);\n\n return (\n
    \n {state.subscribe && (\n \n )}\n
    \n
    \n \n
    \n \n
    \n
    {t('All filters', { ns: 'search' })}
    \n \n
    \n \n
    \n {checkboxFilters}\n
    \n );\n};\n\nexport default FilterBar;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { CombinedFacet } from '../../utils/reselectors';\n\ninterface FilterBarItemProps {\n facet: CombinedFacet;\n onClick: (e: React.MouseEvent) => void;\n}\n\nconst FilterBarItem = ({ facet, onClick }: FilterBarItemProps) => {\n const { t } = useTranslation('search');\n\n return (\n 0 ? ' is-active' : ''}`}\n title={t('Open the filter', { ns: 'search', name: facet.displayName })}\n onClick={onClick}\n data-testid={`quick-filter-button-${facet.id}`}\n >\n {facet.displayName}\n \n );\n};\n\nexport default FilterBarItem;\n", "import React, { useEffect, useState, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\n\ninterface FilterBarSliderProps {\n children?: React.ReactNode;\n}\n\nconst FilterBarSlider = ({ children }: FilterBarSliderProps) => {\n const { t } = useTranslation('search');\n const [translate, setTranslate] = useState(0);\n const [max, setMax] = useState(0);\n const listReference = useRef(null);\n\n const onPrev = () => setTranslate(0 < translate - 100 ? translate - 100 : 0);\n const onNext = () => setTranslate(max < translate + 100 ? max : translate + 100);\n\n useEffect(() => {\n if (listReference && listReference.current) {\n let maxSize = listReference.current.children.length * 2 + 50;\n for (let i = 0; i < listReference.current.children.length; i++) {\n maxSize += listReference.current.children[i].clientWidth;\n }\n setMax(maxSize - listReference.current.clientWidth);\n }\n }, [listReference]);\n\n return (\n
    \n
    \n
    \n 0 ? { transform: `translateX(${-1 * translate}px)` } : undefined}\n >\n {children}\n
    \n
    \n \n \n \n \n
    \n \n \n \n \n
    \n
    \n
    \n );\n};\n\nexport default FilterBarSlider;\n", "import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Link, useLocation } from 'react-router-dom';\nimport type { Page } from '../../@types/ElasticSearchResponse';\nimport { QueryFilter } from '../../helpers';\n\ninterface PaginationV2Props {\n pages?: Page[] | null;\n target: string;\n onScrollTop?: () => void;\n}\n\nconst PaginationV2 = ({ pages, target, onScrollTop }: PaginationV2Props) => {\n const { t } = useTranslation(['search']);\n const location = useLocation();\n\n if (!pages?.length) {\n return null;\n }\n\n let prevPage: Page | null = null;\n let nextPage: Page | null = null;\n\n for (let i = 0; i < pages.length; i++) {\n if (i > 0 && pages[i].selected) {\n prevPage = pages[i - 1];\n }\n if (i < pages.length - 1 && pages[i].selected) {\n nextPage = pages[i + 1];\n }\n }\n\n const createQueryUrl = (query: string) => {\n let queryFilter = new QueryFilter(query || '');\n if (queryFilter.getQuery() === '*') {\n queryFilter = queryFilter.removeQuery();\n }\n\n const list = new URLSearchParams(location.search).get('list');\n const addQuestion = queryFilter.toQueryURL().indexOf('?') === -1;\n const listQuery = list ? `${addQuestion ? '?' : '&'}list=${list}` : '';\n return `${target}${queryFilter.toQueryURL()}${listQuery}`;\n };\n\n const onClick = () => {\n onScrollTop?.();\n };\n\n let prev = (\n
    \n \n
    \n \n
    \n \n
    \n );\n\n let next = (\n
    \n \n
    \n \n
    \n \n
    \n );\n\n if (prevPage) {\n prev = (\n
    \n \n
    \n \n
    \n \n
    \n );\n }\n if (nextPage) {\n next = (\n
    \n \n
    \n \n
    \n \n
    \n );\n }\n\n return (\n
    \n {prev}\n {next}\n
      \n {pages.map((page) => (\n \n \n {page.displayName}\n \n \n ))}\n
    \n
    \n );\n};\n\nexport default PaginationV2;\n", "import { useMemo } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport type { Filter } from '../@types/ElasticSearchResponse';\nimport type { WaykeQueryLocation } from '../@types/WaykeLocation';\nimport QueryFilter, { queryFilterImport } from '../helpers/query-filter';\nimport { slugify } from '../helpers/urls';\nimport { getFacetList } from '../utils/reselectors';\n\n// Searching for G\u00F6teborg will create /sok/goteborg.\n// In order to match above we need to remove \"\", Sverige\" from filter displaynames. Ex \"G\u00F6teborg, Sverige\"\n\nconst fixLocationFilterName = (displayName: string) => {\n return displayName.replace(/, (Sverige|Norge)/g, '');\n};\n\nconst useQueryFilterFromUrl = (path = '/sok') => {\n const location = useLocation();\n\n const facets = useSelector(getFacetList);\n\n const params = new URLSearchParams(location.search);\n\n const qfPath = useMemo(() => {\n if (location.pathname.substring(0, path.length) !== path) return undefined;\n\n const queryURL = location.pathname.substring(path.length);\n\n const queryURLValues = queryURL\n .toLocaleLowerCase()\n .replace(/^\\/|\\/$/g, '')\n .split('/')\n .filter((q) => !!q);\n\n let queryFilter = new QueryFilter();\n facets.forEach((facet) =>\n facet?.filters?.forEach((filter) => {\n const fixedDisplayName = facet.isLocationFacet\n ? fixLocationFilterName(filter.displayName)\n : filter.displayName;\n const index = fixedDisplayName ? queryURLValues.indexOf(slugify(fixedDisplayName)) : -1;\n if (index > -1) {\n if (facet.isLocationFacet) {\n const _filter = filter as unknown as Filter & WaykeQueryLocation;\n queryFilter = queryFilter.addSpatial({\n ..._filter,\n radius: _filter.distance,\n });\n } else if (facet.isRangeFacet && facet.id === 'modelYear') {\n queryFilter = queryFilter.addRange(\n facet.id,\n Number.parseInt(filter.displayName, 10),\n Number.parseInt(filter.displayName, 10),\n );\n } else if (!facet.isRangeFacet) {\n queryFilter = queryFilter.add(facet.id, filter.displayName);\n }\n /** Removes matched queryUrlFacetValue\n * Example: sok/mini will both match manufacturer MINI and modelSeries Mini causing zero results\n * because no car has manufacture MINI and modelSeries Mini.\n * ModelSeries mini is related to manufacturer Ausin (Old and before BMW bought Austin)\n **/\n queryURLValues.splice(index, 1);\n }\n }),\n );\n return queryFilter;\n }, [location.pathname, facets]);\n\n const qfQuery = useMemo(() => {\n return queryFilterImport(params.get('qf'));\n }, [location.search]);\n\n const result = qfPath?.toString() ? qfPath : qfQuery;\n return result;\n};\n\nexport default useQueryFilterFromUrl;\n"], "mappings": "8tCACA,IAAAA,EAAkB,SCDlB,IAAAC,EAAkB,SCClB,IAAAC,EAA2C,SCDpC,IAAMC,GAAYC,GAAsB,CAE7C,IAAMC,EAAM,OAAO,SAAS,OAEtBC,EADK,IAAI,OAAO,OAAOF,CA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O,SAASC,EAAO,YAAa,EAAE,EACtC,OAAO,SAASA,EAAO,YAAa,EAAE,CACxC,EACUD,EAAM,eAChBF,EAAcA,EAAY,IAAIE,EAAM,GAAIC,EAAO,WAAW,GAO5DL,EAAe,OAAOO,EAAO,CAAC,CAChC,CACF,CAAC,CACH,EACOL,CACT,EAAG,CAACT,EAAS,SAAUE,CAAM,CAAC,EAExBe,KAAU,YAAQ,IACfC,GAAkBb,EAAO,IAAI,IAAI,CAAC,EACxC,CAACL,EAAS,MAAM,CAAC,EAGpB,OADeM,GAAQ,SAAS,EAAIA,EAASW,CAE/C,EAEOE,GAAQrB", "names": ["import_react", "import_react", "import_react", "getQuery", "namespace", "url", "results", "getGuidFromPath", "path", "result", "resolveSearchSubsriptionRoute", "marketCode", "getMarket", "blocked", "SaveSubscriptionButton", "className", "testId", "t", "useTranslation", "dispatch", "useDispatch", "navigate", "useNavigate", "pathname", "useLocation", "id", "getGuidFromPath", "requestStatus", "useSelector", "s", "responseStatus", "queryFilter", "getQueryFilter", "subscription", "getSearchSubscription", "latestSubscription", "getLastSearchSubscription", "actions", "bindActionCreators", "update", "create", "collectSubscription", "modal", "setModal", "statusUpdate", "useDataExchangeStatus", "statusCreate", "query_filter_default", "onUpdate", "payload", "disabled", "React", "Modal_default", "Button", "search_subscription_default", "IconBookmark", "save_subscription_button_default", "HiddenParams", "getRangeTitle", "facet", "preChar", "sufChar", "min", "numberSeparator", "max", "ActiveFilters", "umbrellaFacet", "onRequestSearch", "t", "useTranslation", "dispatch", "useDispatch", "facets", "useSelector", "getFacetSelections", "excludingFacets", "getExcludingFacetSelections", "queryFilter", "getQueryFilter", "actions", "bindActionCreators", "openFoldout", "closeFoldout", "openFilter", "closeFilter", "showFilterBar", "hideFilterBar", "onDisplayFacet", "onDisplayExcludingFacet", "onRemoveFacet", "id", "vals", "nextQueryFilter", "onRemoveRange", "onRemoveExclusionFacet", "onRemoveFilter", "value", "query_filter_default", "onRemoveSpatial", "onRemoveQuery", "onClearFilters", "React", "tag_item_default", "modifiedQueryFilter", "freetextFilter", "filters", "togglableFilters", "filter", "excludedFilters", "toggleableExcludingFilters", "save_subscription_button_default", "tag_group_default", "a", "b", "excludingFacet", "active_filters_default", "import_react", "import_react", "FilterFoldoutCheckbox", "filter", "queryFilter", "onChange", "excluding", "onToggleFilter", "e", "nextQueryFilter", "React", "filter_foldout_checkbox_default", "import_react", "FilterFoldoutItem", "onClick", "isActive", "facet", "t", "useTranslation", "React", "filter_foldout_item_default", "import_react", "FilterWxPanel", "title", "onRequestSearch", "children", "modifiers", "t", "useTranslation", "dispatch", "useDispatch", "facet", "useSelector", "getActiveFacet", "queryFilter", "getQueryFilter", "actions", "bindActionCreators", "openFilter", "closeFoldout", "onCloseFoldout", "onReset", "qf", "onClearFilters", "query_filter_default", "React", "filter_wx_panel_default", "import_react", "import_react", "import_cookies_js", "import_react", "COOKIE_WARNING_EXPIRY", "COOKIE_ADVANCED_FILTER_HELP", "getCookie", "Cookies", "setCookie", "AdvancedFilterHelp", "t", "useTranslation", "visible", "setVisible", "expanded", "setExpanded", "onHide", "React", "cdn", "advanced_filter_help_default", "import_react", "SelectFilterItemAdvanced", "filter", "facet", "queryFilter", "index", "onChange", "t", "useTranslation", "isIncluded", "React", "select_filter_item_default", "import_react", "SelectFilterItemAdvanced", "filter", "facet", "queryFilter", "onInclude", "onExclude", "isIncluded", "isExcluded", "React", "select_filter_item_advanced_default", "SelectFilter", "queryFilter", "facet", "isExcludedFacet", "onRequestSearch", "t", "useTranslation", "state", "setState", "s", "onQuery", "e", "onChange", "filter", "nextQueryFilter", "onInclude", "onExclude", "onForceVisibility", "filters", "charMap", "normalize", "str", "char", "filtered", "query", "displayName", "React", "advanced_filter_help_default", "x", "index", "select_filter_item_advanced_default", "select_filter_item_default", "select_filter_default", "import_react", "import_react", "QueryFoldoutItem", "active", "onClick", "children", "React", "QueryFoldoutBlock", "title", "visible", "import_react", "MAP_CENTER", "createMap", "element", "center", "initialZoomLevel", "createMarker", "map", "radius", "SelectFilterLocationMap", "position", "children", "onChange", "onRequestCurrentPosition", "t", "useTranslation", "mapContainerRef", "mapRef", "markerRef", "timeoutRef", "state", "setState", "emptyMap", "location", "onDragStart", "onDragEnd", "repaint", "resetAspectRatio", "markerBounds", "markerCenter", "shoudlResetAspectRatio", "delay", "latlng", "marker", "dimensions", "getPixelRadius", "mapCenter", "onPositionChange", "active", "dragging", "mapOverlayStyle", "React", "select_filter_location_map_default", "SelectFilterLocation", "facet", "queryFilter", "onCloseFoldout", "onRequestSearch", "t", "useTranslation", "dispatch", "useDispatch", "requestStatus", "useSelector", "s", "responseStatus", "position", "results", "actions", "bindActionCreators", "search", "clear", "current", "requestGet", "useDataExchangeStatus", "timeoutId", "initialLocation", "searchTerm", "setSearchTerm", "currentLocation", "setCurrentLocation", "open", "setOpen", "currentLocationRef", "onRequestCurrentPosition", "onChange", "e", "onKeyDown", "onSelect", "onSliderChange", "radius", "location", "onPositionChange", "lat", "lng", "lookup", "json", "match", "r", "name", "nextLocation", "onOpen", "onRequestSearchClick", "nextActive", "nextQueryFilter", "resultsMarkup", "React", "QueryFoldoutBlock", "QueryFoldoutItem", "spinner_inline_default", "result", "buttonOrInput", "filter_wx_panel_default", "select_filter_location_map_default", "es_default", "select_filter_location_default", "import_react", "import_react", "getPercentage", "value", "total", "getHistogramRatio", "largest", "getHistogramBars", "filters", "totalCount", "accumulator", "f", "bars", "filter", "percentage", "isNewLargest", "SelectFilterRangeHistogram", "facet", "histogram", "ratio", "barItems", "displayName", "isActive", "count", "height", "React", "select_filter_range_histogram_default", "getUnit", "facet", "value", "suffix", "suffixSingular", "formatNumber", "shouldFormat", "numberSeparator", "getActualMaxValue", "max", "createNewQueryFilter", "id", "queryFilter", "from", "to", "min", "isFromMin", "isToMax", "fromValue", "toValue", "SelectFilterRange", "onCloseFoldout", "onRequestSearch", "_prefixChar", "suffixChar", "rangeStep", "valueFormat", "range", "debounceRef", "sliderMax", "actualMax", "setFromValue", "setToValue", "isFromFocused", "setIsFromFocused", "isToFocused", "setIsToFocused", "fromValueRef", "toValueRef", "interactionRef", "prefixChar", "performSearch", "newQueryFilter", "handleInputValueChange", "e", "setValue", "numberValue", "handleInputKeyUp", "handleInputBlur", "setFocus", "handleSliderValueChange", "fromUnit", "toUnit", "minUnit", "maxUnit", "shouldFormatFrom", "shouldFormatTo", "formattedFrom", "formattedTo", "formattedMin", "formattedSliderMax", "sliderValueMin", "sliderValueMax", "React", "select_filter_range_histogram_default", "es_default", "select_filter_range_default", "SelectedFilterModal", "onRequestSearch", "useTranslation", "dispatch", "useDispatch", "searching", "useSelector", "s", "requestStatus", "facet", "getActiveFacet", "isExcludedFacet", "queryFilter", "getQueryFilter", "numberOfHits", "getSearchHitCount", "actions", "bindActionCreators", "closeFoldout", "closeFilter", "onReset", "nextQueryFilter", "onCloseFoldout", "onCloseFilter", "filterSelector", "filterBodyBlock", "filterModifier", "isResetable", "React", "select_filter_location_default", "select_filter_range_default", "select_filter_default", "filter_wx_panel_default", "selected_filter_modal_default", "FilterFoldout", "onRequestSearch", "useTranslation", "dispatch", "useDispatch", "open", "useSelector", "s", "current", "getActiveFacet", "facets", "getFacetList", "queryFilter", "getQueryFilter", "numberOfHits", "getSearchHitCount", "actions", "bindActionCreators", "openFilter", "closeFoldout", "onDisplayFacet", "facet", "onCloseFoldout", "className", "React", "filter_wx_panel_default", "hidden", "filter_foldout_item_default", "togglableFilters", "filter", "filter_foldout_checkbox_default", "toggleableExcludingFilters", "selected_filter_modal_default", "filter_foldout_default", "getListQueryConcatQueryfilter", "queryString", "espaceAmpersand", "listQuery", "getQuery", "import_react", "import_react", "FilterBarItem", "facet", "onClick", "t", "useTranslation", "React", "filter_bar_item_default", "import_react", "FilterBarSlider", "children", "useTranslation", "translate", "setTranslate", "max", "setMax", "listReference", "onPrev", "onNext", "maxSize", "i", "React", "filter_bar_slider_default", "FilterBar", "onRequestFoldout", "onRequestFilter", "t", "useTranslation", "initSubscribe", "getQuery", "isSearching", "useSelector", "s", "requestStatus", "facets", "getFacetList", "queryFilter", "getQueryFilter", "state", "setState", "ref", "onScroll", "offset", "nextState", "hasChanged", "onDisplayFacet", "facet", "onOpenFoldout", "onToggleSubscription", "checkboxFilters", "React", "filter_bar_item_default", "search_subscription_default", "save_subscription_button_default", "filter_bar_slider_default", "filter_bar_default", "BASE_SEARCH_PATH", "DefaultFilterBlock", "target", "silent", "umbrellaFacet", "useContainer", "children", "navigate", "dispatch", "useDispatch", "_navigate", "useNavigate", "pathname", "useLocation", "queryFilter", "useSelector", "getQueryFilter", "actions", "bindActionCreators", "search", "openFoldout", "openFilter", "localNavigate", "nextQueryFilter", "getListQueryConcatQueryfilter", "onRequestSearch", "_nextQueryFilter", "onRequestFilter", "facet", "onRequestFoldout", "React", "active_filters_default", "filter_bar_default", "filter_foldout_default", "default_filter_block_default", "import_react", "PaginationV2", "pages", "target", "onScrollTop", "t", "useTranslation", "location", "useLocation", "prevPage", "nextPage", "i", "createQueryUrl", "query", "queryFilter", "query_filter_default", "list", "addQuestion", "listQuery", "onClick", "prev", "React", "next", "Link", "page", "pagination_v2_default", "import_react", "fixLocationFilterName", "displayName", "useQueryFilterFromUrl", "path", "location", "useLocation", "facets", "useSelector", "getFacetList", "params", "qfPath", "queryURLValues", "q", "queryFilter", "query_filter_default", "facet", "filter", "fixedDisplayName", "index", "slugify", "_filter", "qfQuery", "queryFilterImport", "useQueryFilterFromUrl_default"] }