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AACd,MAAOA,GACfxhB,EAAAA,cAACuiB,EAAAA,GAAa,KACZviB,EAAAA,cAACR,EAAAA,EAAO,MACRQ,EAAAA,cAAC+gB,GAAU,SAKrB,CDFO,IAAoBmB,E","sources":["webpack://vesta/./app/javascript/_Apps/eugene/components/Toaster.js","webpack://vesta/./app/javascript/_Apps/shared/utils/ga4Event.js","webpack://vesta/./app/javascript/_Apps/shared/utils/hooks/useVisibility.js","webpack://vesta/./app/javascript/ListingAds/utils/subTextFilter.js","webpack://vesta/./app/javascript/ListingAds/reducers/filtersSlice.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/components/Tab.js","webpack://vesta/./app/javascript/ListingAds/components/FadeIn.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/components/Dropdown.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Location.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Inputs/BudgetInput.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Budget.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Inputs/TypeCheckbox.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Type.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Inputs/RoomRadio.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Room.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Inputs/SurfaceInput.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Surface.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Inputs/MoreCriteriaCheckbox/DpeCheckbox.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/Inputs/MoreCriteriaCheckbox/index.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/MoreCriteria.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/Filter/MobileFilters.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/components/MobileDropdown.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/components/MobileTab.js","webpack://vesta/./app/javascript/ListingAds/utils/buyerAlertUrl.js","webpack://vesta/./app/javascript/ListingAds/containers/Filters/index.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/Header/components/DesktopTitle.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/Header/components/MobileTitle.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/Header/components/SortInput.js","webpack://vesta/./app/javascript/ListingAds/reducers/mapSettingsSlice.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/Header/components/MobileMapSelector.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/Header/index.js","webpack://vesta/./app/javascript/ListingAds/utils/filtersToQuery.js","webpack://vesta/./app/javascript/ListingAds/api/clients.js","webpack://vesta/./app/javascript/ListingAds/api/ressources/properties.js","webpack://vesta/./app/javascript/ListingAds/reducers/propertiesSlice.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/components/EstimationCard.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/components/PropertyCard.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/PropertiesList/components/Loader.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/PropertiesList/components/BuyerAlertLink.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/containers/PropertiesList/index.js","webpack://vesta/./app/javascript/ListingAds/containers/AdvertsList/index.js","webpack://vesta/./app/javascript/shared/components/map_options.js","webpack://vesta/./app/javascript/ListingAds/containers/Map/components/MapControl.js","webpack://vesta/./app/javascript/ListingAds/containers/Map/components/OnGoogleApiLoadedMarker.js","webpack://vesta/./app/javascript/ListingAds/utils/formatPrice.js","webpack://vesta/./app/javascript/ListingAds/containers/Map/components/SaleCardMap.js","webpack://vesta/./app/javascript/ListingAds/containers/Map/index.js","webpack://vesta/./app/javascript/ListingAds/reducers/viewportSlice.js","webpack://vesta/./app/javascript/ListingAds/containers/index.js","webpack://vesta/./app/javascript/ListingAds/store.js","webpack://vesta/./app/javascript/packs/listing_ads.jsx"],"sourcesContent":["import React from 'react';\nimport { useToaster } from 'react-hot-toast';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { S_Xmark } from 'hosman-material';\nimport { toast as libToast } from 'react-hot-toast';\nimport { FadeIn } from 'hosman-material';\nconst classNames = require('classnames');\n\nconst Toaster = () => {\n const { toasts, handlers } = useToaster();\n const { startPause, endPause, calculateOffset, updateHeight } = handlers;\n\n return (\n
\n {toasts.map((toast) => {\n const offset = calculateOffset(toast.id, {\n reverseOrder: false,\n margin: 10\n });\n const ref = (el) => {\n if (el && !toast.height) {\n const height = el.getBoundingClientRect().height;\n updateHeight(toast.id, height);\n }\n };\n \n let classes = classNames(\n 'p-3 mb-1 border-2 rounded-2xl transition-all',\n { 'bg-ih-red-5 text-ih-red border-ih-red-30': toast.type == 'error' },\n { 'bg-ih-green-5 text-ih-green border-ih-green-30': toast.type == 'success' }\n );\n\n return (\n \n \n
\n {toast.icon && }\n {toast.message}\n libToast.dismiss(toast.id)}/>\n
\n
\n
\n );\n })}\n \n );\n};\n\nexport default Toaster;\n","export const ga4Event = (eventName, data) => {\n window.dataLayer = window.dataLayer || []\n window.dataLayer.push({\n 'event': eventName,\n ...data\n })\n};\n","import { useState, useEffect, useRef } from 'react';\n\nconst useVisibility = (options) => {\n const [observedElementIsVisible, setObservedElementIsVisible] = useState(false);\n const observedElementRef = useRef(null);\n\n useEffect(() => {\n const callback = (entries) => {\n entries.forEach(entry => {\n setObservedElementIsVisible(entry.isIntersecting);\n });\n };\n\n const observer = new IntersectionObserver(callback, options);\n\n const currentElement = observedElementRef.current;\n if (currentElement) {\n observer.observe(currentElement);\n }\n\n return () => {\n if (currentElement) {\n observer.unobserve(currentElement);\n }\n };\n }, [options]);\n\n return [observedElementIsVisible, observedElementRef];\n};\n\nexport default useVisibility;\n","import React from 'react';\n\nexport default (filtersCollection, tab) => {\n const typeSubtext = () => {\n const apartmentText = filtersCollection[tab].apartment ? 'Appartement' : ''\n const houseText = filtersCollection[tab].house ? 'Maison' : ''\n return subtextHTML(apartmentText, houseText)\n }\n\n const roomSubtext = () => {\n const minRoomText = `${filtersCollection[tab].min_room_number} ${filtersCollection[tab].min_room_number !== '' ? `Pièce${Number(filtersCollection[tab].min_room_number > 1) ? 's' : '' } min.` : ''}`\n const minBedroomText = `${filtersCollection[tab].min_bedroom_number} ${filtersCollection[tab].min_bedroom_number !== '' ? `Chambre${Number(filtersCollection[tab].min_bedroom_number > 1) ? 's' : '' } min.` : ''}`\n return subtextHTML(minRoomText, minBedroomText)\n }\n\n const surfaceSubtext = () => {\n const minSurface = `${filtersCollection[tab].min_area} ${filtersCollection[tab].min_area !== '' ? 'm² min.' : ''}`\n const maxSurface = `${filtersCollection[tab].max_area} ${filtersCollection[tab].max_area !== '' ? 'm² max.' : ''}`\n return subtextHTML(minSurface, maxSurface)\n }\n\n const budgetSubtext = () => {\n const minBudget = `${filtersCollection[tab].min_budget} ${filtersCollection[tab].min_budget !== '' ? '€ min.' : ''}`\n const maxBudget = `${filtersCollection[tab].max_budget} ${filtersCollection[tab].max_budget !== '' ? '€ max.' : ''}`\n return subtextHTML(minBudget, maxBudget)\n }\n\n const subtextHTML = (value1, value2) => {\n return
\n
{value1}
\n
{value2}
\n
\n }\n\n const moreCriteriaSubtext = () => {\n const moreCriterias = []\n filtersCollection.more_criteria.filter((criteria) => {\n switch (criteria) {\n case 'display_for_sale':\n return moreCriterias.push('Biens en vente');\n case 'with_cellar':\n return moreCriterias.push('Cave');\n case 'with_elevator':\n return moreCriterias.push('Ascenseur');\n case 'with_parking':\n return moreCriterias.push('Parking');\n case 'hide_ground_floor':\n return moreCriterias.push('Pas de RDC');\n case 'with_outsides':\n return moreCriterias.push('Espaces extérieurs');\n case 'display_sold':\n return moreCriterias.push('Biens vendus');\n default:\n break;\n }\n })\n return moreCriterias.join(', ')\n }\n\n switch (tab) {\n case 'type':\n return typeSubtext();\n case 'budget':\n return budgetSubtext();\n case 'surface':\n return surfaceSubtext();\n case 'room':\n return roomSubtext();\n case 'moreCriteria':\n return moreCriteriaSubtext();\n default:\n break;\n }\n}\n","import { createSlice } from '@reduxjs/toolkit';\n\nconst queryString = window.location.search;\nconst params = new URLSearchParams(queryString);\n\nconst handleCriteria = () => {\n if (params.get('more_criteria')) return params.get('more_criteria').split(',') || [];\n return ['display_for_sale', 'with_renovation', 'without_renovation']\n}\n\nconst handleBudget = () => {\n if (document.referrer.includes('premium')) return { min_budget: '1 000 000', max_budget: '' }\n\n return { min_budget: params.get('min_budget') || '', max_budget: params.get('max_budget') || ''}\n}\n\nconst initialFilters = {\n zones: params.get('zones')?.split(',')?.filter(zone => zone !== '') || [],\n type: { apartment: checkBoolean(params.get('apartment')), house: checkBoolean(params.get('house')) },\n budget: handleBudget(),\n surface: { min_area: params.get('min_area') || '', max_area: params.get('max_area') || '' },\n room: { min_room_number: params.get('min_room_number') || '', min_bedroom_number: params.get('min_bedroom_number') || '' },\n more_criteria: [...new Set([...handleCriteria()])],\n dpe: params.get('dpe')?.split(',') || ['A','B','C','D','E','F','G']\n}\n\nconst initialState = {\n freezeCollection: initialFilters,\n collection: initialFilters,\n baseCollection: initialFilters,\n selectedTab: null,\n sortFilter: '',\n filtersChanged: false,\n sharedByUser: params.get('shared_by_user') || null,\n hasUnsavedFilters: false\n};\n\nexport const filtersSlice = createSlice({\n name: 'filters',\n initialState,\n reducers: {\n setSelectedTab: (state, { payload }) => {\n state.selectedTab = payload;\n },\n updateFilters: (state, { payload }) => {\n state.collection = payload;\n state.collection = { ...state.collection, ...payload };\n state.hasUnsavedFilters = true;\n },\n updateBaseFilters: (state) => {\n state.baseCollection = state.collection;\n state.sharedByUser = null\n state.hasUnsavedFilters = false;\n state.filtersChanged = true;\n },\n sortFilter: (state, { payload }) => {\n state.sortFilter = payload;\n }\n },\n})\n\nexport const { setSelectedTab, updateFilters, updateBaseFilters, sortFilter } = filtersSlice.actions;\n\nexport default filtersSlice.reducer;\n\nfunction checkBoolean(val) {\n // We want true by default\n if (!val) return true;\n\n return val === 'true';\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useDispatch, useSelector } from 'react-redux';\nconst classNames = require('classnames');\nimport handleSubtext from '../../../utils/subTextFilter'\n\nimport { downArrowSVG, markerSVG } from '../../../../assets/svgIcons';\n\nimport { setSelectedTab } from '../../../reducers/filtersSlice';\n\nconst Tab = ({ name, tab }) => {\n const { collection: filtersCollection, selectedTab } = useSelector((state) => state.filters);\n const isSelected = tab === selectedTab\n const dispatch = useDispatch();\n\n const stateColors = isSelected ? ['#5076F6', 'white'].reverse() : ['#5076F6', 'white'];\n\n let classes = classNames(\n 'vesta-dropdown-filter typo-bold-content',\n { 'vesta-bg-blue-100 vesta-white': isSelected },\n { 'vesta-bg-white vesta-indigo-100': !isSelected }\n );\n\n return (\n
dispatch(setSelectedTab(isSelected ? null : tab))}>\n {tab !== 'location' &&\n
\n
\n {name}\n
\n {handleSubtext(filtersCollection, tab)}\n
\n
\n\n
\n {downArrowSVG(...stateColors)}\n
\n
\n }\n\n {tab === 'location' &&\n
\n
\n {markerSVG(...stateColors)}\n\n
\n {name}\n
{filtersCollection.zones.length > 0 ? filtersCollection.zones.map(zone => zone.trim()).join(', ') : 'Toute la France'}
\n
\n\n
\n {downArrowSVG(...stateColors)}\n
\n
\n
\n }\n
\n );\n}\n\nTab.propTypes = {\n name: PropTypes.string.isRequired,\n tab: PropTypes.string.isRequired\n}\n\nexport default Tab;\n","import React, { useEffect, useState, Fragment } from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from '@headlessui/react';\n\nconst FadeIn = ({ children }) => {\n const [displayed, setDisplayed] = useState(false)\n\n useEffect(() => {\n const displayInterval = setInterval(() => {\n setDisplayed(true)\n }, 50);\n\n return () => {\n clearInterval(displayInterval);\n };\n }, []);\n\n return (\n \n
\n {children}\n
\n \n )\n}\n\n// PropTypes\nFadeIn.propTypes = {\n children: PropTypes.node.isRequired\n}\n\nexport default FadeIn;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { updateFilters, updateBaseFilters, setSelectedTab } from '../../../reducers/filtersSlice';\nimport FadeIn from '../../../components/FadeIn';\n\nimport { rightArrowSVG } from '../../../../assets/svgIcons';\n\nexport const Dropdown = ({ title, tab, children }) => {\n const { baseCollection, selectedTab } = useSelector((state) => state.filters);\n const { totalPrevision, requestPrevisionsState } = useSelector((state) => state.properties);\n const dispatch = useDispatch();\n const isOpen = selectedTab === tab\n\n const handleSubmit = () => {\n dispatch(updateBaseFilters())\n dispatch(setSelectedTab(null))\n pushDataLayer();\n }\n\n const pushDataLayer = () => {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n 'event': 'search_properties',\n ...baseCollection\n })\n }\n\n const handleCancel = () => {\n dispatch(updateFilters(baseCollection))\n dispatch(setSelectedTab(null))\n }\n\n if (!isOpen) return null;\n\n return(\n \n \n \n )\n};\n\nDropdown.propTypes = {\n title: PropTypes.string,\n tab: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired\n}\n\nexport default Dropdown;\n","import React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport GoogleAutocomplete from 'react-google-autocomplete';\nimport { closeSVG } from '../../../../assets/svgIcons';\n\nimport Tab from '../components/Tab';\nimport Dropdown from '../components/Dropdown';\nimport { markerSmallSVG } from '../../../../assets/svgIcons';\n\nimport { updateFilters } from '../../../reducers/filtersSlice';\n\nconst Location = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { zones } = filtersCollection\n const dispatch = useDispatch();\n const [selectedLocation, setSelectedLocation] = useState('');\n const [error, setError] = useState('');\n\n useEffect(() => {\n if (!selectedLocation) return\n\n const combinedZones = [...zones, selectedLocation]\n dispatch(updateFilters(\n {...filtersCollection,\n zones: [...new Set(combinedZones)]\n }\n ))\n }, [selectedLocation])\n\n const onPlaceSelected = (place, inputRef) => {\n if (!place.address_components) {\n setError('Veuillez sélectionner une adresse dans la liste déroulante.');\n return;\n }\n\n const district = findPlaceTypes(place, 'postal_code')\n const locality = findPlaceTypes(place, 'locality')\n\n let postal_code = '';\n if (district) postal_code = district.short_name;\n\n const newPlace = `${locality.short_name} ${postal_code}`;\n inputRef.value = '';\n\n setSelectedLocation(newPlace);\n }\n\n const findPlaceTypes = (place, type) => place.address_components.find((component) => component.types.includes(type));\n\n const removeSelectedOption = (e, locationToRemove) => {\n e.stopPropagation();\n dispatch(updateFilters(\n { ...filtersCollection,\n zones: zones.filter(location => location != locationToRemove)\n }\n ))\n setSelectedLocation('')\n };\n\n return(\n
\n \n\n \n
\n
\n
\n {markerSmallSVG('#5076F6')}\n
\n\n setError('')}\n className='vesta-input vesta-autocomplete' placeholder='Entrez une ville, un arrondissement...'\n name='zones'\n options={{\n types: ['(regions)'],\n componentRestrictions: { country: 'fr' },\n }}\n />\n
\n\n {error &&
{error}
}\n\n {zones?.length > 0 && (\n
\n {\n zones.map((zone, index) => {\n return (\n
removeSelectedOption(e, zone)}>\n {zone}{closeSVG('#5076F6')}\n
\n )\n })\n }\n
\n )}\n
\n
\n
\n )\n};\n\nexport default Location;\n","import React, { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport Cleave from 'cleave.js/react';\n\nimport { updateFilters } from '../../../../reducers/filtersSlice';\n\nconst BudgetInput = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { budget, more_criteria } = filtersCollection\n const dispatch = useDispatch();\n\n const cleaveOptions = {\n numeral: true,\n numeralThousandsGroupStyle: 'thousand',\n delimiter: ' ',\n numeralDecimalScale: 0\n }\n\n const textInputs = [\n { inputName: 'min_budget', displayName: 'Budget minimum' },\n { inputName: 'max_budget', displayName: 'Budget maximum' }\n ]\n\n useEffect(() => {\n if (parseInt(budget.min_budget.replace(/ /g, ''), 10) >= 1500000 && !more_criteria.includes('display_sold')) {\n dispatch(updateFilters({\n ...filtersCollection,\n more_criteria: [...more_criteria, 'display_sold']\n }))\n }\n\n }, [budget.min_budget])\n\n const onChange = (e, inputName) => {\n if (e.target.value > e.target.value.substring(0, 12)) return;\n\n dispatch(\n updateFilters({\n ...filtersCollection,\n budget: { ...budget, [inputName]: e.target.value.substring(0, 12) }\n })\n );\n }\n\n return(\n
\n {textInputs.map(({ inputName, displayName }, index) => (\n \n ))}\n
\n )\n};\n\nexport default BudgetInput;\n","import React from 'react';\n\nimport Tab from '../components/Tab';\nimport Dropdown from '../components/Dropdown';\nimport BudgetInput from './Inputs/BudgetInput';\n\nconst Budget = () => {\n return(\n
\n \n\n \n
\n \n
\n
\n
\n )\n};\n\nexport default Budget;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { apartmentSVG, houseSVG, mediumApartmentSVG, mediumHouseSVG } from '../../../../../assets/svgIcons';\n\nimport { updateFilters } from '../../../../reducers/filtersSlice';\n\nconst TypeCheckbox = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n const { type } = filtersCollection\n const dispatch = useDispatch();\n\n const checkboxes = [{inputName: 'apartment', displayName: 'Appartement'}, {inputName: 'house', displayName: 'Maison'}]\n\n const handleIcons = (inputName) => {\n if (desktopDevice) return inputName === 'apartment' ? apartmentSVG() : houseSVG();\n\n return inputName === 'apartment' ? mediumApartmentSVG() : mediumHouseSVG();\n }\n\n return(\n
\n {checkboxes.map(({ inputName, displayName }, index) => (\n
\n dispatch(updateFilters(\n {...filtersCollection,\n type: {...type, [inputName]: !type[inputName]}\n }\n ))}\n />\n\n \n
\n ))}\n
\n )\n};\n\nexport default TypeCheckbox;\n","import React from 'react';\n\nimport Tab from '../components/Tab';\nimport Dropdown from '../components/Dropdown';\nimport TypeCheckbox from './Inputs/TypeCheckbox';\n\nconst Type = () => {\n return(\n
\n \n\n \n \n \n
\n )\n};\n\nexport default Type;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { updateFilters } from '../../../../reducers/filtersSlice';\n\nconst RoomRadio = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { room } = filtersCollection\n const dispatch = useDispatch();\n\n const optionsNumber = 5\n const roomsInputs = [{ inputName: 'min_room_number', displayName: 'Nombre de pièce(s) minimum ?' }, { inputName: 'min_bedroom_number', displayName: 'Nombre de chambre(s) minimum ?' }]\n\n return(\n
\n {roomsInputs.map(({ inputName, displayName }) => (\n
\n
{displayName}
\n\n
\n {[...Array(optionsNumber)].map((_, index) =>\n
\n 1 ? 's' : ''}`}\n type='radio'\n value={inputName === 'min_room_number' ? index + 1 : index}\n name={inputName}\n checked={inputName === 'min_room_number' ? room[inputName] == index + 1 : room[inputName] == index}\n onChange={(e) => dispatch(updateFilters(\n {...filtersCollection,\n room: {...room, [inputName]: e.target.value}\n }\n ))}\n />\n\n 1 ? 's' : ''}`}\n className='vesta-checkbox-number vesta-checkbox-number--primary typo-h4 vesta-flex-row-center'\n >\n {inputName === 'min_room_number' ? index + 1 : index}\n \n
\n )}\n
\n
\n ))}\n
\n )\n};\n\nexport default RoomRadio;\n","import React from 'react';\n\nimport Tab from '../components/Tab';\nimport Dropdown from '../components/Dropdown';\nimport RoomRadio from './Inputs/RoomRadio';\n\nconst Room = () => {\n return(\n
\n \n\n \n \n \n
\n )\n};\n\nexport default Room;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport Cleave from 'cleave.js/react';\n\nimport { updateFilters } from '../../../../reducers/filtersSlice';\n\nconst SurfaceInput = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { surface } = filtersCollection\n const dispatch = useDispatch();\n\n const cleaveOptions = { numericOnly: true, blocks: [4] }\n const textInputs = [{ inputName: 'min_area', displayName: 'Surface minimum' }, { inputName: 'max_area', displayName: 'Surface maximum' }]\n\n return(\n
\n {textInputs.map(({ inputName, displayName }) => (\n \n\n ))}\n
\n )\n};\n\nexport default SurfaceInput;\n","import React from 'react';\n\nimport Tab from '../components/Tab';\nimport Dropdown from '../components/Dropdown';\nimport SurfaceInput from './Inputs/SurfaceInput';\n\nconst Surface = () => {\n return(\n
\n \n\n \n \n \n
\n )\n};\n\nexport default Surface;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { updateFilters } from '../../../../../reducers/filtersSlice';\n\nconst DpeCheckbox = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { dpe } = filtersCollection\n const dispatch = useDispatch();\n const dpeEnergyLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G'];\n\n const handleChange = (e) => {\n const value = e.target.value;\n let newPayload = [...dpe]\n if (dpe.includes(value)) newPayload = dpe.filter(criteria => criteria !== value)\n else newPayload = [...dpe, value]\n\n dispatch(updateFilters(\n {...filtersCollection, dpe: newPayload}\n ))\n }\n\n return(\n
\n
Performance énergétique (DPE)
\n \n
\n {dpeEnergyLetters.map((letter, index) => (\n
\n \n\n \n
\n ))}\n
\n
\n )\n};\n\nexport default DpeCheckbox;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { updateFilters } from '../../../../../reducers/filtersSlice';\nimport DpeCheckbox from './DpeCheckbox';\n\nconst MoreCriteriaCheckbox = () => {\n const { collection: filtersCollection } = useSelector((state) => state.filters);\n const { more_criteria } = filtersCollection\n const dispatch = useDispatch();\n\n const otherCriterias = {\n hide_ground_floor: 'Pas de RDC',\n with_elevator: 'Ascenseur'\n }\n\n const annexeAreas = {\n with_cellar: 'Cave',\n with_parking: 'Parking',\n with_outsides: 'Espace extérieur'\n }\n\n const saleStates = {\n display_for_sale: 'Biens en vente',\n display_sold: 'Biens vendus',\n }\n\n const renovation = {\n with_renovation: 'Oui',\n without_renovation: 'Non',\n }\n\n const handleChange = (value) => {\n let newPayload = [...more_criteria]\n\n if (more_criteria.includes(value)) newPayload = more_criteria.filter(criteria => criteria !== value)\n else newPayload = [...more_criteria, value]\n\n dispatch(updateFilters(\n {...filtersCollection, more_criteria: newPayload}\n ))\n }\n\n const displayCriteria = (criteria) => (\n
\n {Object.entries(criteria).map(([inputName, displayName], index) => (\n
\n handleChange(inputName)}\n readOnly\n />\n\n \n
\n ))}\n
\n )\n\n return(\n <>\n
\n
Autres critères
\n\n {displayCriteria(otherCriterias)}\n
\n\n
\n
Surfaces annexes
\n\n {displayCriteria(annexeAreas)}\n
\n\n \n\n
\n
Type de bien
\n\n {displayCriteria(saleStates)}\n
\n\n
\n
Travaux potentiels
\n\n {displayCriteria(renovation)}\n
\n \n )\n};\n\nexport default MoreCriteriaCheckbox;\n","import React from 'react';\n\nimport Tab from '../components/Tab';\nimport Dropdown from '../components/Dropdown';\nimport MoreCriteriaCheckbox from './Inputs/MoreCriteriaCheckbox';\n\nconst MoreCriteria = () => {\n return(\n
\n \n\n \n \n \n
\n )\n};\n\nexport default MoreCriteria;\n","import React from 'react';\n\nimport BudgetInput from './Inputs/BudgetInput'\nimport TypeCheckbox from './Inputs/TypeCheckbox'\nimport RoomRadio from './Inputs/RoomRadio'\nimport SurfaceInput from './Inputs/SurfaceInput'\nimport MoreCriteriaCheckbox from './Inputs/MoreCriteriaCheckbox'\n\nconst MobileFilters = () => {\n return(\n <>\n \n \n \n \n \n \n )\n};\n\nexport default MobileFilters;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport MobileFilters from '../Filter/MobileFilters';\nimport { updateFilters, updateBaseFilters, setSelectedTab } from '../../../reducers/filtersSlice';\n\nimport FadeIn from '../../../components/FadeIn';\n\nconst MobileDropdown = () => {\n const { totalPrevision } = useSelector((state) => state.properties);\n const { baseCollection } = useSelector((state) => state.filters);\n const dispatch = useDispatch();\n\n const handleSubmit = () => {\n dispatch(updateBaseFilters())\n dispatch(setSelectedTab(null))\n pushDataLayer();\n }\n\n const pushDataLayer = () => {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n 'event': 'search_properties',\n ...baseCollection\n })\n }\n\n const handleCancel = () => {\n dispatch(updateFilters(baseCollection))\n dispatch(setSelectedTab(null))\n }\n\n return(\n \n
\n
\n \n
\n\n
\n
\n {totalPrevision > 0 && (`Voir ${totalPrevision > 1 ? `les ${totalPrevision} biens` : 'le bien'}`)}\n {totalPrevision <= 0 && ('Aucun bien')}\n
\n\n
handleCancel()}>Réinitialiser les filtres
\n
\n
\n
\n )\n};\n\nexport default MobileDropdown;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport MobileDropdown from '../components/MobileDropdown';\n\nimport { setSelectedTab } from '../../../reducers/filtersSlice';\nimport { filterSvg } from '../../../../assets/svgIcons';\n\nconst MobileTab = ({ tab }) => {\n const { selectedTab } = useSelector((state) => state.filters);\n const dispatch = useDispatch();\n const isSelected = tab === selectedTab\n\n return (\n
\n
dispatch(setSelectedTab(isSelected ? null : 'mobileFilters'))}>\n {filterSvg()}\n\n Filtrer\n
\n\n {isSelected && }\n
\n )\n};\n\nexport default MobileTab;\n","const buyerAlertBaseUrl = `${window.location.origin}/alerte-achat/new?source=site_listing`\n\nexport const buyerAlertUrl = (filters) => {\n const {\n zones,\n type: { apartment, house },\n surface: { min_area },\n budget: { min_budget, max_budget },\n room: { min_room_number, min_bedroom_number }} = filters\n\n const params = `&zone=${JSON.stringify(zones)}&apartment=${apartment}&house=${house}&min_area=${min_area}&min_budget=${min_budget.replace(/ /g, '')}&max_budget=${max_budget.replace(/ /g, '')}&min_room_number=${min_room_number}&min_bedroom_number=${min_bedroom_number}`;\n return `${buyerAlertBaseUrl}${params}`;\n}\n","import React, { useEffect, useRef } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useSearchParams } from 'react-router-dom';\n\nimport Location from './Filter/Location';\nimport Budget from './Filter/Budget';\nimport Type from './Filter/Type';\nimport Room from './Filter/Room';\nimport Surface from './Filter/Surface';\nimport MoreCriteria from './Filter/MoreCriteria';\nimport MobileTab from './components/MobileTab';\n\nimport { buyerAlertUrl } from '../../utils/buyerAlertUrl'\n\nimport { setSelectedTab, updateBaseFilters } from '../../reducers/filtersSlice';\n\nconst Filters = () => {\n const { collection: filtersCollection, hasUnsavedFilters } = useSelector((state) => state.filters)\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n const [searchParams, setSearchParams] = useSearchParams();\n const dispatch = useDispatch();\n const filtersRef = useRef(null)\n const { baseCollection: filters, filtersChanged } = useSelector((state) => state.filters);\n\n useEffect(() => {\n searchParams.set('zones', filtersCollection.zones)\n searchParams.set('apartment', filtersCollection.type.apartment)\n searchParams.set('house', filtersCollection.type.house)\n searchParams.set('min_budget', filtersCollection.budget.min_budget)\n searchParams.set('max_budget', filtersCollection.budget.max_budget)\n searchParams.set('min_area', filtersCollection.surface.min_area)\n searchParams.set('max_area', filtersCollection.surface.max_area)\n searchParams.set('min_room_number', filtersCollection.room?.min_room_number)\n searchParams.set('min_bedroom_number', filtersCollection.room?.min_bedroom_number)\n searchParams.set('more_criteria', filtersCollection.more_criteria.map(criteria => criteria).join(','))\n searchParams.set('dpe', filtersCollection.dpe.map(criteria => criteria).join(','))\n\n setSearchParams(searchParams)\n }, [filtersCollection]);\n\n useEffect(() => {\n document.addEventListener('click', (event) => {\n const filtersElement = filtersRef.current\n const dropdownElement = document.getElementById('dropdown-container')\n const clickedElement = event.target;\n\n if (!dropdownElement?.contains(clickedElement) && hasUnsavedFilters) dispatch(updateBaseFilters());\n\n if (!filtersElement?.contains(clickedElement)) dispatch(setSelectedTab(null));\n });\n }, [hasUnsavedFilters]);\n\n return(\n <>\n {desktopDevice &&\n \n }\n\n {!desktopDevice && (\n
\n
\n \n\n \n
\n
\n )}\n \n )\n};\n\nexport default Filters;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nconst DesktopTitle = () => {\n const { collectionTotal } = useSelector((state) => state.properties);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n\n if (!desktopDevice) return null;\n\n return (\n <>\n
\n {collectionTotal} bien{collectionTotal > 1 && 's'} trouvé{collectionTotal > 1 && 's'}\n
\n \n )\n};\n\nexport default DesktopTitle;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nconst MobileTitle = () => {\n const { coordinates } = useSelector((state) => state.properties);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n\n if (desktopDevice) return null;\n\n return (\n
\n
Bien{coordinates.length > 1 && 's'}
\n
{coordinates.length}
\n
\n )\n};\n\nexport default MobileTitle;\n","import React from 'react';\nimport { useDispatch } from 'react-redux';\n\nimport { sortFilter } from '../../../../../reducers/filtersSlice';\nimport { downArrowSVG } from '../../../../../../assets/svgIcons';\n\nconst SortInput = () => {\n const dispatch = useDispatch();\n\n const handleSelectChange = (event) => {\n const value = event.target.value;\n dispatch(sortFilter(value));\n };\n\n return (\n
\n
\n \n\n {downArrowSVG('#5076F6')}\n
\n\n
\n \n\n \n
\n
\n )\n};\n\nexport default SortInput;\n","import { createSlice } from '@reduxjs/toolkit';\n\nconst initialState = {\n center: {\n lat: 46.7111,\n lng: 1.7191\n },\n zoom: 6,\n bounds: [],\n display: false,\n};\n\nconst mapSettingsSlice = createSlice({\n name: 'mapSettings',\n initialState,\n reducers: {\n setZoom(state, { payload }) {\n state.zoom = payload;\n },\n setCenter(state, { payload }) {\n state.center = payload;\n },\n setBounds(state, { payload }) {\n state.bounds = payload;\n },\n setDisplay(state, { payload }) {\n state.display = payload;\n },\n },\n})\n\nexport const { setZoom, setCenter, setBounds, setDisplay } = mapSettingsSlice.actions;\n\nexport default mapSettingsSlice.reducer;\n","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { mapSvg, menuSvg } from '../../../../../../assets/svgIcons';\n\nimport { setDisplay as setMapDisplay } from '../../../../../reducers/mapSettingsSlice';\n\nconst MobileMapSelector = () => {\n const { display: mapDisplay } = useSelector((state) => state.mapSettings);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n const dispatch = useDispatch();\n\n const handleMapDisplay = () => {\n dispatch(setMapDisplay(!mapDisplay))\n }\n\n if (desktopDevice) return null;\n\n return (\n
\n {mapDisplay ? menuSvg() : mapSvg()}\n
\n )\n};\n\nexport default MobileMapSelector;\n","import React from 'react';\n\nimport DesktopTitle from './components/DesktopTitle';\nimport MobileTitle from './components/MobileTitle';\nimport SortInput from './components/SortInput';\nimport MobileMapSelector from './components/MobileMapSelector';\n\nconst Header = () => {\n return(\n
\n
\n
\n \n\n \n
\n\n \n\n \n
\n
\n )\n};\n\nexport default Header;\n","export function filtersToQuery(filters, states = null) {\n let filter_params = {\n sale_price_gteq: String(filters.budget.min_budget).replace(/[^0-9]|\\s/g, ''),\n sale_price_lteq: String(filters.budget.max_budget).replace(/[^0-9]|\\s/g, ''),\n room_number_gteq: filters.room.min_room_number,\n bedroom_number_gteq: filters.room.min_bedroom_number,\n house_area_or_apartment_area_gteq: filters.surface.min_area,\n house_area_or_apartment_area_lteq: filters.surface.max_area || 100000000\n };\n\n if (filters.more_criteria) {\n let renovation = [];\n if (filters.more_criteria.includes('hide_ground_floor')) filter_params.floor_not_eq = 0;\n if (filters.more_criteria.includes('with_outsides')) filter_params.terrace_or_balcony_or_garden_eq = true;\n if (filters.more_criteria.includes('with_parking')) filter_params.parking_or_garage_eq = true;\n if (filters.more_criteria.includes('with_elevator')) filter_params.elevator_eq = true;\n if (filters.more_criteria.includes('with_cellar')) filter_params.cellar_eq = true;\n if (filters.more_criteria.includes('with_renovation')) renovation = [...renovation, 'to_renovate'];\n if (filters.more_criteria.includes('without_renovation')) renovation = [...renovation, 'good', 'new'];\n filter_params.good_state_eq_any = renovation;\n }\n filter_params.sale_state_eq_any = handleStates(filters, states);\n\n // if all dpe checked send empty array to return all properties via ransack even if they have no dpe letter (nil)\n filter_params.dpe_energy_letter_eq_any = filters.dpe.length === 7 ? [''] : filters.dpe;\n\n let kinds = ['parking_spot'];\n if (filters.type.house === true) kinds = [...kinds, 'house', 'mansion'];\n if (filters.type.apartment === true) kinds = [...kinds, 'apartment', 'duplex', 'triplex', 'loft'];\n\n filter_params.kind_eq_any = kinds;\n\n let sortFilterOption = '';\n if (filters.sortFilter === 'salePriceAsc') sortFilterOption = 'sale_price asc';\n if (filters.sortFilter === 'salePriceDesc') sortFilterOption = 'sale_price DESC';\n if (filters.sortFilter === 'salePriceBySurfaceAsc') sortFilterOption = 'house_area_or_apartment_area asc';\n\n filter_params.s = sortFilterOption;\n\n const params = { q: filter_params, zones: JSON.stringify(filters.zones) };\n\n return querifyObject(params);\n}\n\nfunction handleStates(filters, states) {\n let saleStates = [];\n if (states) saleStates = states\n else {\n if (filters.more_criteria.includes('display_for_sale')) saleStates = [...saleStates, 'awaiting_offer', 'awaiting_sale_agreement'];\n if (filters.more_criteria.includes('display_sold')) saleStates = [...saleStates, 'awaiting_notarial_deed', 'sold'];\n if (!filters.more_criteria.includes('display_for_sale') && !filters.more_criteria.includes('display_sold')) saleStates = ['none'];\n }\n return saleStates\n}\n\nfunction toQuery(key, value) {\n return encodeURIComponent(key) + '=' + encodeURIComponent(value);\n}\n\nfunction fullKey(key, parent) {\n if (parent) return parent + '[' + key + ']';\n else return key;\n}\n\nfunction querifyObject(object, parent = null) {\n return Object.keys(object)\n .map((key) => {\n const value = object[key];\n const full_key = fullKey(key, parent);\n\n if (Array.isArray(value)) return value.map((v) => toQuery(full_key + '[]', v)).join('&');\n else if (typeof value === 'object') return querifyObject(value, full_key);\n else return toQuery(full_key, value);\n })\n .join('&');\n}\n","import axios from 'axios';\n\nlet BASE_URL = `${window.location.origin}/api/v1`;\n\nconst config = {\n headers: {\n 'Access-Control-Allow-Origin': '*',\n }\n};\n\nconst client = {\n get(path, params) {\n return axios.get(`${BASE_URL}${path}?${params}`, config)\n },\n}\n\nexport default client;\n","import client from '../clients';\n\nconst PROPERTIES = {\n getProperties({ filters, page, perPage }) {\n const pageParams = page ? `&page=${page}` : ''\n const perPageParams = perPage ? `&per_page=${perPage}` : ''\n\n return client.get(`/properties`, `${filters}${pageParams}${perPageParams}`);\n },\n\n getCoordinates(params) {\n return client.get(`/properties/coordinates`, params);\n },\n\n getProperty(id) {\n return client.get(`/properties/${id}`);\n },\n}\n\nexport default PROPERTIES;\n","import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';\nimport { filtersToQuery } from '../utils/filtersToQuery';\n\nimport PROPERTIES from '../api/ressources/properties';\n\nexport const getProperties = createAsyncThunk(\n '/propertiesIndex',\n async (filters) => {\n const response = await PROPERTIES.getProperties({ filters: filtersToQuery(filters) })\n return response.data\n }\n);\n\nexport const getCoordinates = createAsyncThunk(\n '/coordinatesIndex',\n async (filters) => {\n const response = await PROPERTIES.getCoordinates(filtersToQuery(filters))\n return response.data\n }\n);\n\nexport const getTotalPrevision = createAsyncThunk(\n '/previsionsTotal',\n async (filters) => {\n const response = await PROPERTIES.getProperties({ filters: filtersToQuery(filters), perPage: 0 })\n return response.data\n }\n);\n\nexport const getProperty = createAsyncThunk(\n '/propertyShow',\n async (id) => {\n const response = await PROPERTIES.getProperty(id)\n return response.data\n }\n)\n\nexport const fetchNextProperties = createAsyncThunk(\n '/propertiesIndexNextPage',\n async ({filters, page}) => {\n const response = await PROPERTIES.getProperties({ filters: filtersToQuery(filters), page: page })\n return response.data\n }\n);\n\nconst initialState = {\n collection: [],\n collectionTotal: 0,\n coordinates: [],\n totalPrevision: 0,\n requestPropertiesState: '',\n page: 1,\n};\n\nexport const propertiesSlice = createSlice({\n name: 'properties',\n initialState,\n reducers: {\n resetProperties(state) {\n state = initialState;\n },\n setPage(state, { payload }) {\n state.page = payload;\n },\n removeProperty(state) {\n state.property = null;\n }\n },\n extraReducers: (builder) => {\n builder.addCase(getProperties.pending, (state) => {\n state.requestPropertiesState = 'pending'\n })\n builder.addCase(getProperties.fulfilled, (state, { payload }) => {\n const { results, page, total } = payload;\n state.collection = results;\n state.collectionTotal = total;\n state.page = page;\n state.requestPropertiesState = 'done';\n })\n builder.addCase(getCoordinates.fulfilled, (state, { payload }) => {\n state.coordinates = payload;\n })\n builder.addCase(getTotalPrevision.pending, (state, { payload }) => {\n state.requestPrevisionsState = 'pending'\n })\n builder.addCase(getTotalPrevision.fulfilled, (state, { payload }) => {\n state.totalPrevision = payload.total\n state.requestPrevisionsState = 'done';\n })\n builder.addCase(fetchNextProperties.pending, (state) => {\n state.requestFetchState = 'pending'\n })\n builder.addCase(fetchNextProperties.fulfilled, (state, { payload }) => {\n let newCollection = state.collection.concat(payload.results);\n let ids = newCollection.map((property) => property.id);\n // filter newCollection to avoid duplicates\n let filteredCollection = newCollection.filter(({ id }, index) => !ids.includes(id, index + 1));\n state.collection = filteredCollection;\n state.requestFetchState = 'done';\n })\n builder.addCase(getProperty.pending, (state) => {\n state.requestPropertyState = 'pending'\n })\n builder.addCase(getProperty.fulfilled, (state, { payload }) => {\n state.property = payload;\n state.requestPropertyState = 'done';\n })\n },\n})\n\nexport const { resetProperties, setPage, removeProperty } = propertiesSlice.actions;\n\nexport default propertiesSlice.reducer;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport { ga4Event } from '../../../../_Apps/shared/utils/ga4Event';\n\nconst EstimationCard = () => {\n return(\n 768 ? '_blank' : '_self'}`}\n rel='noreferrer'\n onClick={() => ga4Event('start_estimation_adverts_listing')}>\n
\n
1090 && 'vesta-margin-x-20'}`}>\n Vous souhaitez vendre pour financer votre projet d'achat ?\n
\n\n
\n Votre estimation en 2 min\n
\n\n
\n \n Gratuit et sans engagement\n
\n
\n
\n )\n};\n\nexport default EstimationCard;\n","import PropTypes from 'prop-types';\nimport React, { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Carousel } from 'react-responsive-carousel';\n\nimport { closeSVG, logoHosmanPremiumSVG } from '../../../../assets/svgIcons';\n\nimport { removeProperty } from '../../../reducers/propertiesSlice';\nimport formattedNumber from '../../../../shared/helpers/format_number';\n\n\nconst PropertyCard = ({ property }) => {\n const { sharedByUser } = useSelector((state) => state.filters);\n const dispatch = useDispatch();\n\n // ------------------------------- CONSTRUCTOR -------------------------------\n const {\n pictures,\n street_name,\n city,\n zip_code,\n area,\n room_number,\n floor,\n dpe_energy_letter,\n sale,\n url,\n quarter_name,\n kind,\n approximate_location\n } = property;\n\n let tracked_url = sharedByUser ? `${url}?shared_by_user=${sharedByUser}` : url\n if (window.location.origin.includes('www') && !tracked_url.includes('www')) {\n tracked_url = tracked_url.replace('://', '://www.')\n }\n\n useEffect(() => {\n const carouselArrows = document.getElementsByClassName('control-arrow');\n [...carouselArrows].forEach((arrow) => {\n if (arrow.classList.contains('control-next')) {\n arrow.classList.add('carousel-button-next-white');\n arrow.insertAdjacentHTML('afterbegin', ``);\n arrow.classList.remove('control-next');\n } else if (arrow.classList.contains('control-prev')) {\n arrow.classList.add('carousel-button-prev-white');\n arrow.insertAdjacentHTML('afterbegin', ``);\n arrow.classList.remove('control-prev');\n }\n arrow.classList.remove('control-arrow');\n\n arrow.onclick = (event) => {\n event.preventDefault();\n };\n\n arrow.ondblclick = (event) => {\n event.preventDefault();\n event.stopPropagation();\n };\n });\n }, []);\n\n // ---------------------------- DISPLAY FUNCTIONS ----------------------------\n const displayAddress = () => {\n return (\n
\n {formatAddress()}\n
\n );\n };\n\n const formatAddress = () => {\n const zipCode = city === 'Paris' ? `750${zip_code.slice(-2)}` : zip_code;\n let city_info = ''\n\n if (quarter_name !== null && kind === 'house' && approximate_location) city_info = `${quarter_name} ${zipCode}`\n else if (street_name) city_info = `${street_name} ${zipCode}`\n else city_info = `${city} ${zipCode}`\n\n return city_info\n };\n\n const displayArrondissementParis = () => {\n if (city === 'Paris') {\n return zip_code.slice(-2);\n }\n }\n\n const displayFloor = (floor) => {\n if (!floor) return '';\n\n switch (floor) {\n case 0:\n return 'Rdc';\n case 1:\n return (\n \n 1er étage\n \n );\n default:\n return (\n \n {floor}\n eét\n \n );\n }\n };\n\n const handleClose = (e) => {\n e.preventDefault()\n dispatch(removeProperty())\n }\n\n // -------------------------------- MAIN VIEW --------------------------------\n return (\n 768 ? '_blank' : '_self' }\n rel='noreferrer'\n className='vesta-margin-y-20'\n id='property-card-page'\n >\n
e.stopPropagation()}>\n
\n {closeSVG(\"#FFFF\")}\n
\n\n \n { pictures.map((picture) => (\n
\n \n \n
\n ))}\n \n\n {`vente\n\n
\n \n
\n\n
\n { sale.premium &&\n \n }\n\n { sale.advert_label_sold &&\n \n }\n\n { dpe_energy_letter && ['A', 'B', 'C', 'D'].includes(dpe_energy_letter) &&\n \n }\n
\n\n
\n {displayAddress()}\n
\n {parseInt(area)}m²\n {room_number}p\n {displayFloor(floor)}\n
\n
\n\n
\n

{sale.price.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ' ')} €

\n\n \n {formattedNumber(property.advert_square_amount)} €/m²\n \n
\n
\n \n );\n};\n\n// PropTypes\nPropertyCard.propTypes = {\n property: PropTypes.object.isRequired,\n};\n\nexport default PropertyCard;\n","import React from 'react';\n\nconst Loader = ({ isLoading }) => {\n if (!isLoading) return null;\n\n return (\n
\n
\n
\n )\n};\n\nexport default Loader;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport { buyerAlertUrl } from '../../../../../utils/buyerAlertUrl';\n\nconst BuyerAlertLink = () => {\n const { display: displayMap } = useSelector((state) => state.mapSettings);\n const { selectedTab, baseCollection: filters, filtersChanged } = useSelector((state) => state.filters);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n\n if (displayMap || desktopDevice || selectedTab === 'mobileFilters') return null;\n\n return (\n \n )\n};\n\nexport default BuyerAlertLink;\n","import React, { useEffect, useRef, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Transition } from '@headlessui/react';\nimport useVisibility from '../../../../../_Apps/shared/utils/hooks/useVisibility';\n\nimport { fetchNextProperties, setPage } from '../../../../reducers/propertiesSlice';\n\nimport EstimationCard from '../../components/EstimationCard';\nimport PropertyCard from '../../components/PropertyCard';\nimport Loader from './components/Loader';\nimport BuyerAlertLink from './components/BuyerAlertLink';\n\nconst PropertiesList = () => {\n const { display: displayMap } = useSelector((state) => state.mapSettings);\n const { requestPropertiesState, collection: propertiesCollection, requestFetchState, collectionTotal: propertiesCollectionLength } = useSelector((state) => state.properties);\n const { baseCollection: filtersCollection, selectedTab, sortFilter } = useSelector((state) => state.filters);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n const properties = useSelector((state) => state.properties);\n const dispatch = useDispatch();\n const propertiesRef = useRef(properties);\n\n const [observerIsVisible, fetchObserverRef] = useVisibility({\n root: null,\n rootMargin: '0px',\n threshold: 0,\n });\n\n useEffect(() => {\n propertiesRef.current = properties;\n }, [properties])\n\n useEffect(() => {\n if (!observerIsVisible) return;\n\n if (propertiesCollectionLength > propertiesRef?.current.collection.length && selectedTab !== 'mobileFilters') {\n const filters = Object.assign({}, filtersCollection, sortFilter ? { sortFilter } : {})\n dispatch(fetchNextProperties({ filters, page: propertiesRef.current.page + 1 }))\n dispatch(setPage(propertiesRef.current.page + 1))\n }\n }, [observerIsVisible])\n\n useEffect(() => {\n if (desktopDevice || selectedTab === 'mobileFilters') return\n\n window.scrollTo({ top: 0, behavior: 'smooth' })\n }, [selectedTab]);\n\n const displayPropertyList = () => {\n const propertiesAndEstimationCards = [];\n\n propertiesCollection.forEach((property, index) => {\n const propertyElement = (\n \n \n \n );\n\n propertiesAndEstimationCards.push(propertyElement);\n\n // Insert Buyer Alert Card every 8 property card\n if ((index + 2) % 8 === 0) propertiesAndEstimationCards.push();\n });\n\n return propertiesAndEstimationCards;\n };\n\n return (\n <>\n
\n {((!desktopDevice && !displayMap && selectedTab !== 'mobileFilters') || desktopDevice) && (\n
\n {displayPropertyList()}\n \n
\n )}\n
\n\n {requestPropertiesState === 'done' &&
}\n\n \n \n )\n};\n\nexport default PropertiesList;\n","import React, { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport Header from './containers/Header';\nimport PropertiesList from './containers/PropertiesList';\n\nimport { getProperties, getCoordinates, getTotalPrevision } from '../../reducers/propertiesSlice';\n\nconst AdvertsList = () => {\n const { baseCollection, collection, sortFilter } = useSelector((state) => state.filters);\n const dispatch = useDispatch();\n\n useEffect(() => {\n dispatch(getCoordinates(baseCollection));\n }, [baseCollection]);\n\n useEffect(() => {\n dispatch(getProperties(Object.assign({}, baseCollection, sortFilter ? { sortFilter } : {})));\n }, [baseCollection, sortFilter]);\n\n useEffect(() => {\n dispatch(getTotalPrevision(collection));\n }, [collection]);\n\n return(\n
\n
\n\n \n
\n )\n};\n\nexport default AdvertsList;\n","const mapOptions = () => {\n return {\n disableDefaultUI: false,\n clickableIcons: false,\n fullscreenControl: false,\n gestureHandling: 'greedy',\n zoomControl: false,\n mapTypeControl: false,\n streetViewControl: false,\n styles: [\n {\n featureType: 'administrative',\n elementType: 'geometry',\n stylers: [\n {\n color: '#96adfa'\n },\n {\n visibility: 'off'\n }\n ]\n },\n {\n featureType: 'administrative.country',\n elementType: 'all',\n stylers: [\n {\n color: '#7a749c'\n }\n ]\n },\n {\n featureType: 'administrative.country',\n elementType: 'labels',\n stylers: [\n {\n color: '#635d8c'\n }\n ]\n },\n {\n featureType: 'administrative.country',\n elementType: 'labels.text',\n stylers: [\n {\n weight: '0.01'\n },\n {\n saturation: '0'\n },\n {\n color: '#48477a'\n }\n ]\n },\n {\n featureType: 'administrative.province',\n elementType: 'all',\n stylers: [\n {\n color: '#48477a'\n },\n {\n weight: '0.01'\n },\n {\n visibility: 'on'\n }\n ]\n },\n {\n featureType: 'administrative.locality',\n elementType: 'all',\n stylers: [\n {\n color: '#48477a'\n },\n {\n weight: '0.01'\n }\n ]\n },\n {\n featureType: 'administrative.neighborhood',\n elementType: 'all',\n stylers: [\n {\n color: '#787687'\n },\n {\n weight: '0.01'\n }\n ]\n },\n {\n featureType: 'administrative.land_parcel',\n elementType: 'all',\n stylers: [\n {\n color: '#787687'\n },\n {\n weight: '0.01'\n }\n ]\n },\n {\n featureType: 'administrative.land_parcel',\n elementType: 'geometry',\n stylers: [\n {\n color: '#96adfa'\n }\n ]\n },\n {\n featureType: 'landscape',\n elementType: 'geometry',\n stylers: [\n {\n saturation: -84\n },\n {\n lightness: 59\n },\n {\n visibility: 'on'\n },\n {\n color: '#F7F7FE'\n }\n ]\n },\n {\n featureType: 'landscape',\n elementType: 'labels',\n stylers: [\n {\n hue: '#ff0000'\n },\n {\n saturation: -100\n },\n {\n lightness: 100\n },\n {\n visibility: 'off'\n }\n ]\n },\n {\n featureType: 'administrative.country',\n elementType: 'geometry.stroke',\n stylers: [\n {\n visibility: 'on'\n },\n {\n color: '#bcbace'\n }\n ]\n },\n {\n featureType: 'landscape.man_made',\n elementType: 'geometry',\n stylers: [\n {\n color: '#21175a'\n },\n {\n visibility: 'off'\n }\n ]\n },\n {\n featureType: 'poi',\n elementType: 'all',\n stylers: [\n {\n visibility: 'on'\n }\n ]\n },\n {\n featureType: 'poi.park',\n elementType: 'all',\n stylers: [\n {\n visibility: 'on'\n },\n {\n color: '#00c4ac'\n },\n {\n weight: '0.01'\n }\n ]\n },\n {\n featureType: 'poi.park',\n elementType: 'geometry',\n stylers: [\n {\n saturation: 1\n },\n {\n lightness: -15\n },\n {\n visibility: 'on'\n },\n {\n color: '#ccf3ef'\n }\n ]\n },\n {\n featureType: 'poi.school',\n elementType: 'all',\n stylers: [\n {\n hue: '#d7e4e4'\n },\n {\n saturation: -60\n },\n {\n lightness: 23\n },\n {\n visibility: 'on'\n }\n ]\n },\n {\n featureType: 'road',\n elementType: 'geometry',\n stylers: [\n {\n hue: '#ff0000'\n },\n {\n saturation: -100\n },\n {\n lightness: 100\n },\n {\n visibility: 'on'\n }\n ]\n },\n {\n featureType: 'road.local',\n elementType: 'geometry.stroke',\n stylers: [\n {\n visibility: 'on'\n },\n {\n color: '#E5E5FF'\n }\n ]\n },\n {\n featureType: 'road.arterial',\n elementType: 'geometry.stroke',\n stylers: [\n {\n visibility: 'on'\n },\n {\n color: '#E5E5FF'\n }\n ]\n },\n {\n featureType: 'road.highway',\n elementType: 'all',\n stylers: [\n {\n visibility: 'off'\n }\n ]\n },\n {\n featureType: 'road.highway',\n elementType: 'geometry',\n stylers: [\n {\n saturation: 100\n },\n {\n lightness: -22\n },\n {\n visibility: 'on'\n },\n {\n color: '#D2D1D7'\n }\n ]\n },\n {\n featureType: 'road.highway',\n elementType: 'labels.text',\n stylers: [\n {\n color: '#BCBACE'\n }\n ]\n },\n {\n featureType: 'road.arterial',\n elementType: 'geometry',\n stylers: [\n {\n saturation: 100\n },\n {\n lightness: -35\n },\n {\n visibility: 'simplified'\n },\n {\n color: '#fff0cb'\n }\n ]\n },\n {\n featureType: 'road.arterial',\n elementType: 'labels',\n stylers: [\n {\n visibility: 'off'\n }\n ]\n },\n {\n featureType: 'road.arterial',\n elementType: 'labels.text',\n stylers: [\n {\n visibility: 'on'\n },\n {\n color: '#BCBACE'\n },\n {\n weight: '0.01'\n }\n ]\n },\n\n {\n featureType: 'water',\n elementType: 'all',\n stylers: [\n {\n saturation: 55\n },\n {\n lightness: -8\n },\n {\n visibility: 'on'\n }\n ]\n },\n {\n featureType: 'water',\n elementType: 'geometry.fill',\n stylers: [\n {\n color: '#DCE4FD'\n },\n {\n saturation: '-10'\n }\n ]\n },\n {\n featureType: 'water',\n elementType: 'labels.text',\n stylers: [\n {\n visibility: 'on'\n },\n {\n color: '#9896FF'\n }\n ]\n }\n ]\n };\n};\n\nexport default mapOptions;\n","import React from 'react';\n\nconst MapControl = ({ zoomIn, zoomOut }) => {\n return (\n
\n \n \n
\n );\n};\n\nexport default MapControl;\n","import propTypes from 'prop-types';\nimport React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { getProperty, removeProperty } from '../../../reducers/propertiesSlice';\n\nimport formatPrice from '../../../utils/formatPrice';\n\nconst OnGoogleApiLoadedMarker = ({ id, zoom, price, state, approximate_location }) => {\n // ------------------------------- CONSTRUCTOR -------------------------------\n const dispatch = useDispatch();\n const { property } = useSelector((state) => state.properties);\n\n // ---------------------------- DISPLAY FUNCTIONS ----------------------------\n const isSold = () => {\n return ['awaiting_notarial_deed', 'sold'].includes(state);\n };\n\n const zoomToSonar = () => {\n if (zoom <= 10) return '10';\n else if (zoom <= 12) return '20';\n else if (zoom <= 13) return '70';\n else if (zoom <= 14) return '130';\n else if (zoom <= 15) return '300';\n else if (zoom <= 16) return '500';\n else if (zoom <= 17) return '700';\n else if (zoom <= 18) return '900';\n else if (zoom <= 19) return '1100';\n };\n\n // ----------------------------- ACTION FUNCTIONS ----------------------------\n const handleClick = () => {\n if (property && property.id == id) dispatch(removeProperty());\n else dispatch(getProperty(id));\n };\n\n // -------------------------------- MAIN VIEW --------------------------------\n return (\n <>\n \n {formatPrice(Number(price))}\n
\n \n );\n};\n\nOnGoogleApiLoadedMarker.propTypes = {\n id: propTypes.number.isRequired,\n zoom: propTypes.number.isRequired,\n price: propTypes.number.isRequired,\n state: propTypes.string.isRequired,\n approximate_location: propTypes.bool.isRequired\n};\n\nexport default OnGoogleApiLoadedMarker;\n","export default (num) => {\n if (num > 999 && num < 1000000) {\n return Math.round(num / 1000) + 'k'; // convert to K for number from > 1000 < 1 million\n } else if (num >= 1000000) {\n return ((num / 1000000).toFixed(2) + 'M').replace(/\\./g, ','); // convert to M for number from > 1 million\n } else if (num < 900) {\n return num; // if value < 1000, nothing to do\n }\n};\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport PropertyCard from '../../AdvertsList/components/PropertyCard';\n\nconst SaleCardMap = () => {\n // ------------------------------- CONSTRUCTOR -------------------------------\n const { property } = useSelector((state) => state.properties);\n // -------------------------------- MAIN VIEW --------------------------------\n return (\n
e.stopPropagation()} onTouchStart={e => e.stopPropagation()} >\n {property && }\n
\n );\n};\n\nexport default SaleCardMap;\n","import GoogleMapReact from 'google-map-react';\nimport React, { useState, useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport useSupercluster from 'use-supercluster';\n\nimport { setBounds, setCenter, setZoom } from '../../reducers/mapSettingsSlice';\nimport { removeProperty } from '../../reducers/propertiesSlice';\n\nimport mapOptions from '../../../shared/components/map_options';\n\nimport MapControl from './components/MapControl';\nimport OnGoogleApiLoadedMarker from './components/OnGoogleApiLoadedMarker';\nimport SaleCardMap from './components/SaleCardMap';\n\nconst Map = () => {\n const mapSettings = useSelector((state) => state.mapSettings);\n const { property, coordinates } = useSelector((state) => state.properties);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n const [onGoogleApiLoadedMap, setOnGoogleApiLoadedMap] = useState(null);\n const [onGoogleApiLoadedMaps, setOnGoogleApiLoadedMaps] = useState(null);\n const dispatch = useDispatch();\n\n useEffect(() => {\n handleApiLoaded(onGoogleApiLoadedMap, onGoogleApiLoadedMaps, coordinates);\n }, [coordinates]);\n\n const Marker = ({ children }) => children;\n\n const displayApproximateLocation = (lat, lng) => {\n return [\n Number(((lng * 1000 + 5) / 1000).toFixed(7)),\n Number(((lat * 1000 + 6) / 1000).toFixed(7))\n ];\n }\n\n const points = coordinates?.map((property) => ({\n properties: {\n cluster: false,\n zoom: mapSettings.zoom,\n propertyId: property.id,\n state: property.state,\n price: property.price,\n approximate_location: property.approximate_location\n },\n geometry: {\n type: 'Point',\n coordinates: property.approximate_location ? displayApproximateLocation(property.lat, property.lng) : [property.lng, property.lat]\n }\n }));\n\n // Make sure only clusters appear on page load\n let minPoints = mapSettings.mapZoom < 9 ? 1 : 6;\n const { clusters, supercluster } = useSupercluster({\n points,\n zoom: mapSettings.zoom,\n bounds: mapSettings.bounds,\n options: { radius: 80, maxZoom: 14, minPoints: minPoints }\n });\n\n const handleApiLoaded = (map, maps, coordinates) => {\n setOnGoogleApiLoadedMap(map);\n setOnGoogleApiLoadedMaps(maps);\n\n recenterMap(map, coordinates);\n };\n\n const zoomIn = () => {\n onGoogleApiLoadedMap?.setZoom(onGoogleApiLoadedMap.getZoom() + 1);\n };\n\n const zoomOut = () => {\n onGoogleApiLoadedMap?.setZoom(onGoogleApiLoadedMap.getZoom() - 1);\n };\n\n const recenterMap = (map, coordinates) => {\n if (typeof google === 'undefined' || typeof google.maps === 'undefined') {\n console.error('Google Maps API not loaded properly.');\n return;\n }\n\n const bounds_map = new google.maps.LatLngBounds();\n\n for (let i = 0; i < coordinates.length; i++) {\n bounds_map.extend(new google.maps.LatLng(coordinates[i].lat, coordinates[i].lng));\n }\n\n if (map && coordinates.length > 0) {\n map.fitBounds(bounds_map);\n\n if (coordinates.length < 2) {\n onGoogleApiLoadedMap?.setZoom(15);\n }\n }\n }\n\n return(\n <>\n {((!desktopDevice && mapSettings.display) || desktopDevice) && (\n
\n
\n \n\n dispatch(removeProperty())}\n yesIWantToUseGoogleMapApiInternals\n onGoogleApiLoaded={({ map, maps }) => {\n handleApiLoaded(map, maps, coordinates);\n }}\n onChange={({ zoom, bounds, center }) => {\n dispatch(setZoom(zoom));\n dispatch(setCenter(center));\n dispatch(setBounds([bounds.nw.lng, bounds.se.lat, bounds.se.lng, bounds.nw.lat]));\n }}\n >\n {clusters.map((cluster) => {\n const [longitude, latitude] = cluster.geometry.coordinates;\n const state = cluster.properties.state;\n const price = cluster.properties.price;\n const approximate_location = cluster.properties.approximate_location;\n const { cluster: isCluster, point_count: pointCount } = cluster.properties;\n if (isCluster) {\n return (\n \n {\n const expansionZoom = Math.max(supercluster.getClusterExpansionZoom(cluster.id), 12);\n onGoogleApiLoadedMap.setZoom(expansionZoom);\n onGoogleApiLoadedMap.panTo({ lat: latitude, lng: longitude });\n }}\n >\n {pointCount}\n
\n \n );\n }\n\n return (\n \n );\n })}\n \n\n {property && (\n
dispatch(removeProperty())}>\n \n
\n )}\n
\n \n )}\n \n )\n};\n\nexport default Map;\n","import { createSlice } from '@reduxjs/toolkit';\n\nconst initialState = {\n desktopDevice: true,\n largeDesktopDevice: false,\n};\n\nconst desktopBreakpoint = 1350;\n\nconst resizeWindowSlice = createSlice({\n name: 'resizeWindow',\n initialState,\n reducers: {\n setDesktopDevice(state, { payload }) {\n state.desktopDevice = desktopBreakpoint < payload;\n },\n },\n})\n\nexport const { setDesktopDevice } = resizeWindowSlice.actions;\n\nexport default resizeWindowSlice.reducer;\n","import React, { useEffect } from 'react';\nimport { useSelector, useDispatch } from 'react-redux';\nimport Filters from './Filters/';\nimport AdvertsList from './AdvertsList';\nimport Map from './Map/';\n\nimport { setDesktopDevice } from '../reducers/viewportSlice';\n\nexport const ListingAds = () => {\n const { requestPropertiesState } = useSelector((state) => state.properties);\n const { selectedTab } = useSelector((state) => state.filters);\n const { desktopDevice } = useSelector((state) => state.viewportSlice);\n const dispatch = useDispatch();\n\n useEffect(() => {\n // Set desktopDevice on initial load\n dispatch(setDesktopDevice(window.innerWidth));\n\n const handleResize = () => {\n const width = window.innerWidth;\n dispatch(setDesktopDevice(width));\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, []);\n\n return (\n
\n {requestPropertiesState === 'pending' && selectedTab !== 'mobileFilters' && (\n
\n
\n
\n )}\n\n
\n \n\n
\n \n\n \n
\n
\n\n
\n )\n};\n\nexport default ListingAds;\n","import { configureStore } from '@reduxjs/toolkit';\n\n// Reducers\nimport filtersReducer from './reducers/filtersSlice';\nimport mapSettingsReducer from './reducers/mapSettingsSlice';\nimport propertiesReducer from './reducers/propertiesSlice';\nimport viewportSliceReducer from './reducers/viewportSlice';\n\nconst reducers = {\n filters: filtersReducer,\n mapSettings: mapSettingsReducer,\n properties: propertiesReducer,\n viewportSlice: viewportSliceReducer\n};\n\n// Middlewares\nlet middlewares = [];\n\n// Adds redux logger only in developement mode\nif (process.env.NODE_ENV === 'development') {\n const { logger } = require('redux-logger');\n middlewares.push(logger);\n}\n\nexport function setupStore(preloadedState) {\n return configureStore({\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({\n immutableCheck: process.env.NODE !== 'test',\n serializableCheck: { warnAfter: 128 },\n }).concat(middlewares),\n reducer: reducers,\n preloadedState\n })\n}\n","import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport ErrorsBoundary from './main/application/errorsBoundary';\nimport Toaster from '../_Apps/eugene/components/Toaster';\nimport { Provider } from 'react-redux';\nimport { BrowserRouter } from 'react-router-dom';\n\nimport ListingAds from '../ListingAds/containers/index';\nimport { setupStore } from '../ListingAds/store';\n\nconst listingAds = document.getElementById('listing-properties-root');\n\nif (listingAds) {\n const store = setupStore();\n\n const root = createRoot(listingAds);\n root.render(\n \n \n \n \n \n \n \n \n );\n}\n"],"names":["classNames","require","Toaster","toasts","handlers","useToaster","startPause","endPause","calculateOffset","updateHeight","React","className","onMouseEnter","onMouseLeave","map","toast","offset","id","reverseOrder","margin","classes","type","key","ref","el","height","getBoundingClientRect","style","transform","opacity","visible","FadeIn","icon","FontAwesomeIcon","size","message","S_Xmark","onClick","libToast","dismiss","ga4Event","eventName","data","window","dataLayer","push","options","observedElementIsVisible","setObservedElementIsVisible","useState","observedElementRef","useRef","useEffect","observer","IntersectionObserver","entries","forEach","entry","isIntersecting","currentElement","current","observe","unobserve","filtersCollection","tab","subtextHTML","value1","value2","typeSubtext","apartmentText","apartment","houseText","house","budgetSubtext","minBudget","min_budget","maxBudget","max_budget","surfaceSubtext","minSurface","min_area","maxSurface","max_area","roomSubtext","minRoomText","min_room_number","Number","minBedroomText","min_bedroom_number","moreCriteriaSubtext","moreCriterias","more_criteria","filter","criteria","join","queryString","location","search","params","URLSearchParams","initialFilters","zones","get","split","zone","checkBoolean","budget","document","referrer","includes","surface","room","Set","dpe","initialState","freezeCollection","collection","baseCollection","selectedTab","sortFilter","filtersChanged","sharedByUser","hasUnsavedFilters","filtersSlice","createSlice","name","reducers","setSelectedTab","state","payload","updateFilters","updateBaseFilters","actions","val","Tab","useSelector","filters","isSelected","dispatch","useDispatch","stateColors","reverse","handleSubtext","downArrowSVG","markerSVG","length","trim","children","displayed","setDisplayed","displayInterval","setInterval","clearInterval","Transition","as","Fragment","show","enter","enterFrom","enterTo","Dropdown","title","totalPrevision","requestPrevisionsState","properties","isOpen","pushDataLayer","rightArrowSVG","Location","selectedLocation","setSelectedLocation","error","setError","combinedZones","findPlaceTypes","place","address_components","find","component","types","markerSmallSVG","GoogleAutocomplete","onPlaceSelected","inputRef","district","locality","postal_code","short_name","newPlace","value","onChange","placeholder","componentRestrictions","country","index","e","removeSelectedOption","locationToRemove","stopPropagation","closeSVG","BudgetInput","cleaveOptions","numeral","numeralThousandsGroupStyle","delimiter","numeralDecimalScale","parseInt","replace","inputName","displayName","Cleave","pattern","target","substring","Budget","TypeCheckbox","desktopDevice","viewportSlice","checked","readOnly","htmlFor","apartmentSVG","houseSVG","mediumApartmentSVG","mediumHouseSVG","handleIcons","Type","RoomRadio","Array","_","Room","SurfaceInput","numericOnly","blocks","Surface","DpeCheckbox","handleChange","newPayload","letter","MoreCriteriaCheckbox","displayCriteria","Object","hide_ground_floor","with_elevator","with_cellar","with_parking","with_outsides","display_for_sale","display_sold","with_renovation","without_renovation","MoreCriteria","MobileFilters","MobileDropdown","handleSubmit","MobileTab","filterSvg","buyerAlertBaseUrl","origin","buyerAlertUrl","JSON","stringify","Filters","searchParams","setSearchParams","useSearchParams","filtersRef","set","addEventListener","event","filtersElement","dropdownElement","getElementById","clickedElement","contains","href","rel","DesktopTitle","collectionTotal","MobileTitle","coordinates","SortInput","defaultValue","mapSettingsSlice","center","lat","lng","zoom","bounds","display","setZoom","setCenter","setBounds","setDisplay","MobileMapSelector","mapDisplay","mapSettings","handleMapDisplay","setMapDisplay","menuSvg","mapSvg","Header","filtersToQuery","states","filter_params","sale_price_gteq","String","sale_price_lteq","room_number_gteq","bedroom_number_gteq","house_area_or_apartment_area_gteq","house_area_or_apartment_area_lteq","renovation","floor_not_eq","terrace_or_balcony_or_garden_eq","parking_or_garage_eq","elevator_eq","cellar_eq","good_state_eq_any","sale_state_eq_any","saleStates","handleStates","dpe_energy_letter_eq_any","kinds","kind_eq_any","sortFilterOption","s","querifyObject","q","toQuery","encodeURIComponent","object","parent","keys","full_key","fullKey","isArray","v","BASE_URL","config","headers","client","path","axios","PROPERTIES","getProperties","page","perPage","pageParams","perPageParams","getCoordinates","getProperty","createAsyncThunk","async","getTotalPrevision","fetchNextProperties","requestPropertiesState","propertiesSlice","resetProperties","setPage","removeProperty","property","extraReducers","builder","addCase","pending","fulfilled","results","total","requestFetchState","newCollection","concat","ids","filteredCollection","requestPropertyState","EstimationCard","innerWidth","PropertyCard","pictures","street_name","city","zip_code","area","room_number","floor","dpe_energy_letter","sale","url","quarter_name","kind","approximate_location","tracked_url","getElementsByClassName","arrow","classList","add","insertAdjacentHTML","remove","onclick","preventDefault","ondblclick","formatAddress","zipCode","slice","city_info","Carousel","showStatus","showIndicators","showThumbs","infiniteLoop","emulateTouch","picture","src","alt","Math","round","expert","photo","carrez_area","loading","displayArrondissementParis","premium","logoHosmanPremiumSVG","width","fill","stroke","advert_label_sold","displayFloor","price","toString","formattedNumber","advert_square_amount","Loader","isLoading","BuyerAlertLink","displayMap","PropertiesList","propertiesCollection","propertiesCollectionLength","propertiesRef","observerIsVisible","fetchObserverRef","useVisibility","root","rootMargin","threshold","assign","scrollTo","top","behavior","displayPropertyList","propertiesAndEstimationCards","propertyElement","leave","leaveFrom","leaveTo","appear","AdvertsList","mapOptions","disableDefaultUI","clickableIcons","fullscreenControl","gestureHandling","zoomControl","mapTypeControl","streetViewControl","styles","featureType","elementType","stylers","color","visibility","weight","saturation","lightness","hue","MapControl","zoomIn","zoomOut","OnGoogleApiLoadedMarker","handleClick","num","toFixed","SaleCardMap","onMouseDown","onTouchStart","Map","onGoogleApiLoadedMap","setOnGoogleApiLoadedMap","onGoogleApiLoadedMaps","setOnGoogleApiLoadedMaps","handleApiLoaded","Marker","points","cluster","propertyId","geometry","displayApproximateLocation","minPoints","mapZoom","clusters","supercluster","useSupercluster","radius","maxZoom","maps","recenterMap","google","console","bounds_map","LatLngBounds","i","extend","LatLng","fitBounds","getZoom","GoogleMapReact","bootstrapURLKeys","process","defaultCenter","defaultZoom","yesIWantToUseGoogleMapApiInternals","onGoogleApiLoaded","nw","se","longitude","latitude","isCluster","point_count","pointCount","expansionZoom","max","getClusterExpansionZoom","panTo","resizeWindowSlice","largeDesktopDevice","setDesktopDevice","ListingAds","handleResize","removeEventListener","filtersReducer","mapSettingsReducer","propertiesReducer","viewportSliceReducer","middlewares","listingAds","store","configureStore","middleware","getDefaultMiddleware","immutableCheck","env","NODE","serializableCheck","warnAfter","reducer","preloadedState","createRoot","render","ErrorsBoundary","Provider","BrowserRouter"],"sourceRoot":""}