{% trans_default_domain 'app' %}
<script>
var features = []
if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
features.push('es2015')
}
if (!('forEach' in NodeList.prototype)) {
features.push('NodeList.prototype.forEach')
}
var dependencies = ['IntersectionObserver', 'Promise', 'fetch', 'Event']
dependencies.forEach(function (el) {
if (!(el in window)) {
features.push(el)
}
})
if (features.length > 0) {
document.write('<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=' + features.join('%2C') + '"><\/script>')
}
window.captchaKey = '{{googleCaptchaKey}}'
window.googleApisKey = '{{googleApisKey}}'
window.publicPath = '{{asset("")}}'
window.paths = {
buy: '{{path("buy")}}',
rent: '{{path("rent")}}',
searchJson: '{{path("offers_search_json")}}',
searchCardsPaginated: '{{path("offers_search_cards_paginated")}}'
}
window.localization = {
topCities: "{{app.request.locale == 'fr' ? 'top villes':'top cities'}}",
noResult: "{{'aucun resultat'|trans|capitalize}}",
newProject: "{{'projet neuf'|trans|capitalize}}",
priceUponRequest: "{{'Prix sur demande'|trans|capitalize}}",
rentUponRequest: "{{'loyer sur demande'|trans|capitalize}}",
enterLocation: "{{app.request.locale == 'fr' ? 'Entrer un emplacement':'Enter a location'}}",
perMonth: "{{'/ mois'|trans}}",
perSqmPerMonth: "{{'par m² /an'|trans}}",
listIsEmpty: "{{'la liste est vide'|trans|capitalize}}",
}
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/OverlappingMarkerSpiderfier/1.0.3/oms.min.js'></script>
<script
src="{% if useWds %}http://localhost:9000/common.js{% else %}{{ asset('frontend/search/dist/common.js?v=2') }}{% endif %}"></script>
</body>
</html>