PageSourceSearch

https://wdp.eu/dist/assets/locations-85e78b3d.js

js wdp.eu collected 2026-10-01 12:38:24 UTC 53,184 bytes, 2 lines download raw bytes

1import{d as T,b as o,c as f,e as t,i as b,n as x,f as y,u as l,m as fe,h as M,w as O,g as U,t as m,F as D,p as G,j as N,k as _,z as q,o as me,a as xe,P as he,s as Re,y as Be,q as Ue,N as ke,l as ee,v as We,Q as Ke,R as Ge,T as Ze}from"./vue.esm-bundler-a64ed439.js";import{u as Ye,a as Xe,c as Je,b as qe,_ as Ne,p as He}from"./TextH5.vue_vue_type_script_setup_true_lang-7417bc7f.js";import{_ as $e,b as je,a as Ie,c as Oe}from"./colors-31da86b2.js";import{_ as et}from"./ConsentHidden.vue_vue_type_script_setup_true_lang-bb411844.js";import{d as tt,s as Z}from"./pinia-8108687a.js";import{u as E,a as Me,c as B,b as at}from"./query-parameters-f01e5bc5.js";import{a as k,g as A}from"./translations-cdaccf3a.js";import{m as ne}from"./mapbox-gl-6e3ee6b7.js";import{_ as lt}from"./MarkerButton.vue_vue_type_script_setup_true_lang-9b78297c.js";import{a as ve,g as ge}from"./icons-c4e500c1.js";import{_ as st}from"./TextCardCategory.vue_vue_type_script_setup_true_lang-98c6cea9.js";import{_ as ae}from"./ButtonPrimary.vue_vue_type_script_setup_true_lang-d53c4ca1.js";import{g as pe}from"./classes-4f51ab21.js";import{_ as nt}from"./CardLocation.vue_vue_type_script_setup_true_lang-af09bfac.js";import{_ as it}from"./CardUnit.vue_vue_type_script_setup_true_lang-6961712f.js";import{_ as Ve}from"./ButtonSecondary.vue_vue_type_script_setup_true_lang-6f0d1529.js";import{_ as ie}from"./TextH3.vue_vue_type_script_setup_true_lang-a1422522.js";import{_ as oe}from"./TextBody.vue_vue_type_script_setup_true_lang-a7e33986.js";import{_ as te}from"./SvgLoader.vue_vue_type_script_setup_true_lang-cd9c96b1.js";import{d as ot}from"./debounce-5e3d3311.js";import"./typesense-d5cc3d93.js";import"./_commonjsHelpers-de833af9.js";import"./sanitize-html-19a4c684.js";import"./cookie-script-6ecc5ea3.js";import"./preload-helper-33d3da02.js";const rt=[10,25,50,100],Ae=50,ct=()=>{const e="pk.eyJ1IjoiYW52aWxhdG9yIiwiYSI6ImNtczdmcGd6czAzOGQyd3F5bTY2MTh6MWoifQ.80sRD9xqAzKoeXMvbZwm2A";return{searchPlaces:async a=>{if(!a.trim()||!e)return[];const r=new URL(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(a)}.json`);r.searchParams.set("access_token",e),r.searchParams.set("types","place,locality,region,district,country"),r.searchParams.set("limit","5");const s=await fetch(r.toString());return s.ok?(await s.json()).features??[]:[]}}},ut=e=>e<=10?11:e<=25?10:e<=50?9:8,j=0,V=1e5,H=500,ue=(e,i)=>e>j||i<V,de=e=>{const i=Math.round(e/H)*H;return Math.min(V,Math.max(j,i))},be=(e,i)=>{const a=de(e),r=de(i);return{min:Math.min(a,r),max:Math.max(a,r)}},re=e=>{if(typeof e=="number"&&!Number.isNaN(e))return e;if(typeof e!="string")return 0;const i=e.replace(/\s/g,"").replace(/m\^?2/gi,"").replace(/,/g,""),a=parseFloat(i);return Number.isNaN(a)?0:a},dt=e=>{if(!e)return 0;const i=re(e.area);if(i>0)return i;const a=(e.units??[]).reduce((s,h)=>{const u=re(h.area),c=(h.buildingPartTypes??[]).reduce((d,n)=>d+re(n.area),0);return Math.max(s,u||c)},0),r=(e.buildingPartTypes??[]).reduce((s,h)=>s+re(h.area),0);return Math.max(a,r)},ft=(e,i,a)=>{if(!ue(i,a))return!0;const r=dt(e);return!(i>j&&r<i||a<V&&r>a)},Y=tt("locations",{state:()=>({loading:!1,facets:[],filters:{searchQuery:"",filterQuery:"",area:{min:j,max:V},countries:{field:"country",values:[],combination:"&&"},buildingParts:{field:"buildingParts",values:[],combination:"&&"},availableNow:{field:"availableNow",value:!0,combination:"&&"},availableSoon:{field:"availableSoon",value:!0,combination:"&&"},project:{field:null,value:!0,combination:null},building:{field:null,value:!0,combination:null},type:{field:"type",values:["project","building"],combination:"&&",includeInUrl:!1}},pagination:{current:0,totalPages:null,totalResults:null,foundResults:null,itemsPerPage:250},sorting:[{type:"title",order:"asc"}],sortMode:"alphabetical",index:{}.VITE_LOCATIONS_INDEX??"wdp_production_locations",locations:null,view:"map",searchPlace:null,radiusKm:null}),actions:{async fetch(e=!1,i){this.loading=!0,i&&this.setQueryFilters(i);const a=Ye(),r=Xe(this.filters,this.sorting);!e&&this.pagination.current?this.pagination.current+=1:(this.pagination.current=1,this.pagination.totalPages=0,this.pagination.totalResults=null);const s={searches:[{highlight_full_fields:"title,country,availableNow,availableSoon",collection:this.index,facet_by:"c
1ountry,availableNow,availableSoon",page:this.pagination.current,per_page:this.pagination.itemsPerPage,...r},{highlight_full_fields:"title,country,availableNow,availableSoon",collection:this.index,facet_by:"country,availableNow,availableSoon",q:"*",page:1,per_page:1,filter_by:`site:${window.language}`}]};await a.multiSearch.perform(s).then(h=>{const u=h.results[0],c=h.results[1].facet_counts;if(this.facets=c,this.pagination.current=u.page,this.pagination.totalResults=u.out_of,u.hits){let d=u.hits;const n=ue(this.filters.area.min,this.filters.area.max);n&&(d=d.filter(g=>ft(g.document,this.filters.area.min,this.filters.area.max))),this.pagination.foundResults=n?d.length:u.found,this.pagination.totalPages=this.pagination.itemsPerPage?Math.ceil(this.pagination.foundResults/this.pagination.itemsPerPage):0,e?this.locations=d:this.locations=[...this.locations||[],...d]}else this.pagination.foundResults=u.found,this.pagination.totalPages=this.pagination.itemsPerPage?Math.ceil(u.found/this.pagination.itemsPerPage):0;this.loading=!1})},clearFilters(){this.filters.area.min=j,this.filters.area.max=V,this.filters.countries.values=[],this.filters.buildingParts.values=[],this.filters.availableNow.value=!0,this.filters.availableSoon.value=!0,this.filters.project.value=!0,this.filters.building.value=!0,this.filters.type.values=["building","project"],this.searchPlace=null,this.radiusKm=null;const e=new URL(window.location.href);["countries","availableNow","availableSoon","project","building","place","lat","lng","radius","areaMin","areaMax","buildingParts"].forEach(i=>{e.searchParams.delete(i)}),window.history.replaceState({},"",e.toString()),this.setFiltersQuery(),this.fetch(!0)},setCountryFilter(e){for(const i of[...this.filters.countries.values])E("countries",i);this.filters.countries.values=e?[e]:[],e?Me("countries",e):E("countries"),this.setFiltersQuery(),this.fetch(!0)},setSearchPlace(e){this.searchPlace=e,e?(this.radiusKm||(this.radiusKm=Ae),B("place",e.label),B("lat",String(e.latitude)),B("lng",String(e.longitude)),B("radius",String(this.radiusKm))):(this.radiusKm=null,E("place"),E("lat"),E("lng"),E("radius")),this.setFiltersQuery(),this.fetch(!0)},setRadius(e){this.radiusKm=e,this.searchPlace&&(B("radius",String(e)),this.setFiltersQuery(),this.fetch(!0))},setAreaRange(e,i){const{min:a,max:r}=be(e,i);this.filters.area.min=a,this.filters.area.max=r,ue(a,r)?(a>j?B("areaMin",String(a)):E("areaMin"),r<V?B("areaMax",String(r)):E("areaMax")):(E("areaMin"),E("areaMax")),this.setFiltersQuery(),this.fetch(!0)},applyAreaPreset(e){this.setAreaRange(e,V)},setFilter(e,i){const a=this.filters[e]??null;typeof a!="string"&&(!a?.includeInUrl||a?.includeInUrl)&&(a.hasOwnProperty("values")&&e!=="type"&&(a.values.indexOf(i)<0?(a.values.push(i),Me(e,i)):(a.values=a.values.filter(r=>r!==i),E(e,i))),a.hasOwnProperty("value")&&(a.value=i,B(e,i)),e=="type"&&(a.values.indexOf(i)<0?a.values.push(i):a.values=a.values.filter(r=>r!==i),this.filters.building.value=!!a.values.find(r=>r==="building"),this.filters.project.value=!!a.values.find(r=>r==="project"),this.setProjectBuilding(),B("building",this.filters.building.value),B("project",this.filters.project.value))),this.setFiltersQuery(),this.fetch(!0)},setFiltersQuery(){this.filters.filterQuery="";const e=window.language;this.searchPlace&&this.radiusKm&&(this.filters.filterQuery+=`location:(${this.searchPlace.latitude}, ${this.searchPlace.longitude}, ${this.radiusKm} km) && `),this.filters.countries.values.length>0&&(this.filters.filterQuery+=this.filters.countries.field+":["+this.filters.countries.values.toString()+"] "+this.filters.countries.combination+" "),this.filters.filterQuery+=this.filters.type.field+":["+this.filters.type.values.toString()+"] "+this.filters.type.combination+" ",this.filters.availableNow.value===!0&&this.filters.availableSoon.value===!1?this.filters.filterQuery+="("+this.filters.availableNow.field+":["+this.filters.availableNow.value+"])"+this.filters.availableNow.combination+" ":this.filters.availableNow.value===!1&&this.filters.availableSoon.value===!0?this.filters.filterQuery+="("+this.filters.availableSoon.field+":["+this.filters.availableSoon.value+"]) "+this.filters.availableSoon.combination+" ":this.filters.availableNow.value===!1&&this.filters.availableSoon.value===!1?this.filters.filterQuery+="("+this.filters.availableNow.field+":[false] && "+this.filters.availableSoon.field+":[false])"+this.filters.availableSoon.combination+" ":(this.filters.filterQuery+="("+this.filters.availableNow.field+":["+this.filters.availableNow.value+"] || ",this.filters.filterQuery+=this.filters.availableSoon.field+":["+this.filters.availableSoon.value+"]) "+this.filters.availableSoon.combination+" "),this.filters.filterQuery+=`site:${e} `},setQueryFilters(e){const i=e.find(c=>c.type==="place"),a=e.find(c=>c.type==="lat"),r=e.find(c=>c.type==="lng"),s=e.find(c=>c.type==="radius"),h=e.find(c=>c.type==="areaMin"),u=e.find(c=>c.type==="areaMax");if(h?.value||u?.value){const c=h?.value?parseInt(h.value,10):j,d=u?.value?parseInt(u.value,10):V;if(!Number.isNaN(c)&&!Number.isNaN(d)){const{min:n,max:g}=be(c,d);this.filters.area.min=n,this.filters.area.max=g}}if(a?.value&&r?.value){const c=parseFloat(a.value),d=parseFloat(r.value);!Number.isNaN(c)&&!Number.isNaN(d)&&(this.searchPlace={label:i?.value??"",latitude:c,longitude:d},this.radiusKm=s?.value?parseInt(s.value,10):Ae)}for(const c in e){const d=e[c].values,n=e[c].type;if(n==="view"){const g=d[0]?.name?d[0]?.name:"map";this.toggleView(g)}if(n==="sortBy"){const g=d[0]?.name==="recent"?"recent":"alphabetical";this.applySorting(g)}if(d){const g=this.filters[n];g&&(g.field==="availableNow"&&(e.find(v=>v.type==="availableSoon")||B("availableSoon",this.filters.availableSoon.value)),g.field==="availableSoon"&&(e.find(v=>v.type==="availableNow")||B("availableNow",this.filters.availableNow.value)),n==="building"&&(this.filters.building.value=d[0].name==="true"),n==="project"&&(this.filters.project.value=d[0].name==="true"),this.setProjectBuilding(),g.hasOwnProperty("values")&&(this.filters[n].values=d.map(p=>p.name)),g.hasOwnProperty("value")&&(typeof this.filters[n].value=="boolean"?this.filters[n].value=d.map(p=>p.name)[0]==="true":this.filters[n].value=d.map(p=>p.name)[0]))}}this.setFiltersQuery()},toggleView(e){this.view=e,B("view",this.view)},applySorting(e){this.sortMode=e,e==="recent"?this.sorting=[{type:"post_date_timestamp",order:"desc"}]:this.sorting=[{type:"title",order:"asc"}]},setSorting(e){this.applySorting(e),B("sortBy",e),this.fetch(!0)},setProjectBuilding(){this.filters.type.values=[],this.filters.building.value&&this.filters.type.values.push("building"),this.filters.project.value&&this.filters.type.values.push("project")}}}),mt={key:0,class:"mb-2 flex justify-end"},ht={class:"relative overflow-hidden rounded-2xl bg-gray-200"},vt={class:"mb-4"},gt={class:"grid grid-cols-2 gap-x-6 gap-y-4 border-b border-concrete-200 pb-4"},pt={class:"font-bold"},bt={key:0},yt={key:0},wt={class:"font-bold"},xt={class:"font-bold"},kt={key:0},$t={key:1},_t={key:2,class:"block"},St={key:3,class:"block"},Pt={class:"mt-4 flex justify-end"},ye=T({__name:"CardLocationSidebar",props:{location:{},translations:{default:null},utilities:{default:""},hasClose:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:i}){const a=e,r=i,s=N(Oe()),h=_(()=>a.location.availableNow?"available":"soon"),u=_(()=>(a.location.units?.length??0)>0),c=_(()=>a.location.buildingPartTypes??[]),d=v=>String(v??"").replace(/\s*m\^?2\s*/gi,"").replace(/\^2/g,"").trim(),n=_(()=>a.stacked?"aspect-video w-full":"aspect-video w-full sm:aspect-[4/3]"),g=_(()=>a.stacked?"mt-4 grid grid-cols-2 gap-x-4 gap-y-3":"mt-4 grid grid-cols-2 gap-x-4 gap-y-3 lg:grid-cols-3"),p=_(()=>a.stacked?"rounded-2xl border border-concrete-200 bg-white p-3":"rounded-3xl bg-white p-4");return(v,z)=>(o(),f("article",{class:x([p.value,e.utilities])},[e.hasClose?(o(),f("div",mt,[t("button",{"aria-label":"close",class:"flex h-10 w-10 items-center justify-center rounded-full border border-viridian-500 bg-white text-2xl text-viridian-500 focus:outline-none focus:ring-4 focus:ring-celestial-500",onClick:z[0]||(z[0]=()=>r("close"))},[...z[1]||(z[1]=[t("i",{class:"far fa-times"},null,-1)])])])):b("",!0),t("div",{class:x(a.stacked?"flex flex-col gap-3":"flex flex-col gap-3 sm:flex-row sm:gap-4")}
1,[t("div",{class:x(a.stacked?"w-full order-1":"w-full order-1 sm:order-2 sm:w-40 sm:shrink-0 lg:w-[260px]")},[t("div",ht,[y($e,{content:l(k)(e.translations,e.location.availableNow?"Available now":"Available soon"),style:fe(s.value[h.value].badge),utilities:"absolute left-2 top-2 z-10 !bg-white !text-viridian-500",size:"small"},null,8,["content","style"]),e.location.teaser?(o(),M(je,{key:0,image:e.location.teaser,ratio:n.value,sizes:["(max-width: 639px) 100vw","260px"]},null,8,["image","ratio"])):b("",!0)])],2),t("div",{class:x(a.stacked?"min-w-0 grow order-2":"min-w-0 grow order-2 sm:order-1")},[y(st,{content:e.location.type,icon:l(ve)(e.location.type),utilities:"mb-2 block"},null,8,["content","icon"]),t("h2",vt,[y(Ie,null,{default:O(()=>[U(m(e.location.title),1)]),_:1})]),t("div",gt,[t("div",null,[t("div",pt,m(l(k)(e.translations,"Rentable surface")),1),e.location.area?(o(),f("div",bt,m(d(e.location.area))+" m² ",1)):b("",!0)]),u.value?(o(),f("div",yt,[t("div",wt,m(l(k)(e.translations,"Available units")),1),t("div",null,m(e.location.units.length),1)])):b("",!0)]),t("div",{class:x(g.value)},[(o(!0),f(D,null,G(c.value,w=>(o(),f("article",{key:w.slug,class:"min-w-0 text-sm"},[t("h3",xt,m(w.title),1),w.area?(o(),f("span",kt,m(d(w.area))+" m² ",1)):w.spaces?(o(),f("span",$t,m(w.spaces),1)):b("",!0),w.price&&w.area?(o(),f("span",_t,m(w.price)+" / m² / "+m(l(k)(e.translations,"y.")),1)):w.price&&w.spaces?(o(),f("span",St,m(w.price)+" / "+m(l(k)(e.translations,"spot"))+" / "+m(l(k)(e.translations,"y.")),1)):b("",!0)]))),128))],2)],2)],2),t("div",Pt,[y(ae,{size:"small",icon:"arrow-right",type:"a","icon-position":"after",href:e.location.url,content:l(k)(e.translations,e.location.type==="building"?"View building":"View project")},null,8,["href","content"])])],2))}}),zt={key:0},Ct={key:1},Nt=2/3,Mt=288,At=T({__name:"MapLocations",props:{translations:{},utilities:{default:""},hasToggle:{type:Boolean,default:!0},sidebarOpen:{type:Boolean,default:!1},isDesktop:{type:Boolean,default:!1},desktopSidebarRatio:{default:Nt}},emits:["bounds-change"],setup(e,{emit:i}){const a=e,r=i,s=Y(),{locations:h,searchPlace:u,radiusKm:c}=Z(s),d=N(null);let n=null;const g=N(null),p=N([]),v=N([]),z=$=>{g.value=$,r("popup-change",!!$)},w=()=>a.isDesktop?!a.sidebarOpen||typeof window>"u"?0:{left:Math.round(window.innerWidth*a.desktopSidebarRatio),right:0,top:0,bottom:0}:{left:0,right:0,top:Mt,bottom:0},F=_(()=>h.value?{type:"FeatureCollection",features:h.value.map($=>({type:"Feature",geometry:{type:"Point",coordinates:[Number($.document.longitude),Number($.document.latitude)]},properties:$.document??{}}))}:{type:"FeatureCollection",features:[]}),X=_(()=>"pk.eyJ1IjoiYW52aWxhdG9yIiwiYSI6ImNtczdmcGd6czAzOGQyd3F5bTY2MTh6MWoifQ.80sRD9xqAzKoeXMvbZwm2A"),I=$=>{const P=h.value.find(Q=>Q.document.id===$);P&&z(P.document)},J=async $=>{await Be(),n&&n.easeTo({center:$,zoom:Math.max(n.getZoom(),14),padding:w()})},W=()=>{if(!n||!n.getSource("locations"))return;const $=n.querySourceFeatures("locations",{filter:["!",["has","point_count"]]});p.value=$},K=()=>
1{if(!n)return;const $=n.getBounds();r("bounds-change",{_ne:$.getNorthEast(),_sw:$.getSouthWest()})};q(p,$=>{v.value.forEach(P=>P.remove()),v.value=[];for(const P of $){const Q=document.createElement("div");Re(lt,{type:P.properties.type,status:P.properties.availableNow?"available":"soon",title:P.properties.title}).mount(Q);const S=new ne.Marker(Q).setLngLat(P.geometry.coordinates).addTo(n);Q.addEventListener("click",C=>{C.stopPropagation(),I(P.properties.id),J(P.geometry.coordinates)}),v.value.push(S)}}),q(F,$=>{if(n){const P=n.getSource("locations");P&&P.setData($)}});const L=()=>{!n||!u.value||n.flyTo({center:[u.value.longitude,u.value.latitude],zoom:ut(c.value??50),padding:w()})};return q(u,()=>{L()}),q(c,()=>{L()}),me(()=>{if(!d.value)return;ne.accessToken=X.value;const $=[[2.308490704275215,48.47604854348788],[6.877044457833449,53.57970665931481]],P=[[-.1437664080393688,50.301969365999355],[7.8884511669152175,52.4699634262669]],Q=a.isDesktop?P:$,le=w();n=new ne.Map({container:d.value,style:"mapbox://styles/mapbox/light-v11",bounds:Q,fitBoundsOptions:{padding:le},projection:{name:"mercator"},dragRotate:!1,pitchWithRotate:!1}),n.touchZoomRotate.disableRotation();const S=new ne.NavigationControl({showCompass:!1}),C=a.isDesktop?"bottom-left":"top-right";n.addControl(S,C),n.on("load",()=>{K(),n.on("moveend",K),L(),n?.addSource("locations",{type:"geojson",data:F.value,cluster:!0,clusterMaxZoom:14,clusterRadius:50}),n?.addLayer({id:"clusters",type:"circle",source:"locations",filter:["has","point_count"],paint:{"circle-color":"#1a1a1a","circle-radius":["step",["get","point_count"],20,100,30,750,40]}}),n?.addLayer({id:"cluster-count",type:"symbol",source:"locations",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14},paint:{"text-color":"#ffffff"}});const R=()=>setTimeout(W,0);n?.on("data",se=>{se.dataType==="source"&&se.sourceId==="locations"&&R()}),n?.on("moveend",R),W(),n?.on("click","clusters",se=>{z(null);const _e=se.features?.[0],Se=n?.getSource("locations"),Pe=Number(_e?.properties?.cluster_id),ze=_e?.geometry?.coordinates;!Se||!Number.isFinite(Pe)||!ze||Se.getClusterExpansionZoom(Pe,(De,Ce)=>{De||!n||!Number.isFinite(Ce)||(n.stop(),n.easeTo({center:ze,zoom:Math.max(Ce,n.getZoom()+1),padding:w()}))})}),n?.on("click",()=>{z(null)})})}),xe(()=>{v.value.forEach($=>$.remove()),n&&(n.remove(),n=null)}),($,P)=>(o(),f("div",{class:x(["map-locations rounded-bl-80 rounded-br-80 relative flex h-full w-full grow flex-col overflow-hidden",[e.utilities,e.sidebarOpen?"sidebar-is-open":"",g.value?"popup-is-open":""]])},[t("div",{ref_key:"mapContainer",ref:d,class:"h-full w-full grow"},null,512),e.hasToggle?(o(),M(ae,{key:0,size:"small",icon:"list",type:"button","icon-position":"after",content:l(k)(e.translations,"View list"),utilities:"fixed left-1/2 -translate-x-1/2 bottom-13 z-[500]",ga:{category:"location-view-toggle",action:"click",label:"View list"},onClick:P[0]||(P[0]=()=>l(s).toggleView("list"))},null,8,["content"])):b("",!0),(o(),M(he,{to:"body"},[g.value&&e.isDesktop?(o(),f("div",zt,[y(ye,{location:g.value,translations:e.translations,utilities:"absolute right-6 top-32 z-[900] w-[24rem] max-w-[calc(100vw-3rem)] shadow-2xl xl:w-[26rem]","has-close":!0,stacked:!0,onClose:P[1]||(P[1]=Q=>z(null))},null,8,["location","translations"])])):b("",!0),g.value&&!e.isDesktop?(o(),f("div",Ct,[y(ye,{location:g.value,translations:e.translations,utilities:"fixed left-4 right-4 top-1/2 z-[1200] -translate-y-1/2 shadow-2xl","has-close":!0,stacked:!0,onClose:P[2]||(P[2]=Q=>z(null))},null,8,["location","translations"])])):b("",!0)]))],2))}}),Ft={class:"flex flex-wrap items-start justify-between gap-3"},Lt={class:"min-w-0 pr-2 shrink-0"},Tt={class:"w-40 shrink-0 md:w-[260px]"},Rt={class:"relative overflow-hidden rounded-2xl bg-gray-200"},Bt={class:"mt-4 grid grid-cols-2 gap-x-3 gap-y-3 sm:grid-cols-3"},jt={class:"font-bold"},It={key:0},Ot={key:1},Vt={key:2,class:"block"},Qt={key:3,class:"block"},Et={class:"mt-4 flex justify-end"},Dt=T({__name:"CardUnitSidebar",props:{location:{},translations:{default:null},utilities:{default:""}}
1,setup(e){const i=e,a=N(Oe()),r=_(()=>i.location.availableNow?"available":"soon"),s=_(()=>{const u=["warehouse","office","mezzanine"];return i.location.buildingPartTypes.filter(c=>u.includes(c.type))}),h=u=>String(u??"").replace(/\s*m\^?2\s*/gi,"").replace(/\^2/g,"").trim();return(u,c)=>(o(),f("article",{class:x(["overflow-hidden rounded-3xl bg-white p-4",e.utilities])},[t("div",Ft,[t("h3",Lt,[y(Ie,null,{default:O(()=>[U(m(e.location.title),1)]),_:1})]),t("div",Tt,[t("div",Rt,[y($e,{content:l(k)(e.translations,e.location.availableNow?"Available now":"Available soon"),style:fe(a.value[r.value].badge),utilities:"absolute left-2 top-2 z-10 !bg-white !text-viridian-500",size:"small"},null,8,["content","style"]),e.location.teaser?(o(),M(je,{key:0,image:e.location.teaser,ratio:"aspect-[12/5] w-full sm:aspect-[4/3]",sizes:["(max-width: 639px) 100vw","260px"]},null,8,["image"])):b("",!0)])])]),t("div",Bt,[(o(!0),f(D,null,G(s.value,d=>(o(),f("article",{key:d.slug,class:"min-w-0 text-sm"},[t("h4",jt,m(d.title),1),d.area?(o(),f("span",It,m(h(d.area))+" m² ",1)):d.spaces?(o(),f("span",Ot,m(d.spaces),1)):b("",!0),d.price&&d.area?(o(),f("span",Vt,m(d.price)+" / m² / "+m(l(k)(e.translations,"y.")),1)):d.price&&d.spaces?(o(),f("span",Qt,m(d.price)+" / "+m(l(k)(e.translations,"spot"))+" / "+m(l(k)(e.translations,"y.")),1)):b("",!0)]))),128))]),t("div",Et,[y(Ve,{size:"small",icon:"arrow-right",type:"a","icon-position":"after",href:e.location.url,content:l(k)(e.translations,"View unit")},null,8,["href","content"])])],2))}}),Fe=T({__name:"GridLocations",props:{locations:{},translations:{default:null},utilities:{default:""},isSidebar:{type:Boolean,default:!1}},setup(e){const i=e,a=Y(),{filters:r}=Z(a),s=_(()=>({wrapper:{grid:"grid grid-cols-1 sm:grid-cols-2",spacing:i.isSidebar?"gap-2":"gap-6 mb-20",utilities:i.utilities},unitWrapper:{grid:i.isSidebar?"grid grid-cols-1 sm:grid-cols-2 px-2 lg:px-4 sm:col-span-2 w-full ml-2 pl-4":"grid grid-cols-1 sm:grid-cols-2 px-2 lg:px-4 sm:col-span-2 w-full",spacing:i.isSidebar?"gap-2":"gap-6",utilities:i.utilities}})),h=c=>c.document?.units?c.document.units.filter(d=>d.availableNow===r.value.availableNow.value||d.availableSoon===r.value.availableSoon.value):[],u=(c,d)=>i.isSidebar?d%2===1&&c===d-1?"col-span-2":"col-span-1":"col-span-2 xl:col-auto";return(c,d)=>(o(),f("section",null,[(o(!0),f(D,null,G(e.locations,n=>(o(),f("div",{key:n.document.id,class:x(l(pe)(s.value,"wrapper"))},[(n.document.type=="building"||n.document.type=="project")&&!e.isSidebar?(o(),M(nt,{key:0,location:n.document,translations:e.translations,utilities:"col-span-2",featured:!0},null,8,["location","translations"])):b("",!0),(n.document.type=="building"||n.document.type=="project")&&e.isSidebar?(o(),M(ye,{key:1,location:n.document,translations:e.translations,utilities:"col-span-2"},null,8,["location","translations"])):b("",!0),n.document?.units?(o(),f("div",{key:2,class:x(l(pe)(s.value,"unitWrapper"))},[(o(!0),f(D,null,G(h(n),(g,p)=>(o(),f(D,{key:g.slug},[e.isSidebar?b("",!0):(o(),M(it,{key:0,location:g,translations:e.translations,utilities:u(p,h(n).length)},null,8,["location","translations","utilities"])),e.isSidebar?(o(),M(Dt,{key:1,location:g,translations:e.translations,utilities:u(p,h(n).length)},null,8,["location","translations","utilities"])):b("",!0)],64))),128))],2)):b("",!0)],2))),128))]))}}),Ut={class:"order-2"},Qe=T({__name:"ButtonQuarternary",props:{ga:{default:null},content:{default:""},size:{default:"default"},icon:{default:null},iconPosition:{default:"before"},type:{default:"button"}},setup(e){const i=e,a=N({default:"inline-flex justify-center items-center rounded-full whitespace-nowrap",position:i.iconPosition=="after"?"flex-row-reverse":"flex-row",animation:"transition-colors duration-200 ease-in-out",color:"text-black",focus:"focus:ring-4 focus:ring-celestial-500 focus:outline-none",font:"font-primary leading-8 font-medium tracking-wider",hover:"hover:bg-viridian-200",disabled:"disabled:text-concrete-700",padding:i.size=="default"?"px-6 py-4":"px-4 py-1",text:i.size=="default"?"text-lg-":"text-base"});return(r,s)=>(o(),M(Ue(e.type),{class:x(l(pe)(a.value)),"data-tag-category":e.type=="button"?e.ga?.category??"":!1,"data-tag-action":e.type=="button"?e.ga?.action??"":!1,"data-tag-label":e.type=="button"?e.ga?.label??"":!1},{default:O(()=>[t("span",Ut,m(e.content),1),e.icon?(o(),f("i",{key:0,class:x([l(ge)(e.icon),e.iconPosition=="after"?"ml-2":"mr-2"])},null,2)):b("",!0)]),_:1},8,["class","data-tag-category","data-tag-action","data-tag-label"]))}}),Wt=(...e)=>e.filter(i=>i===!0).length,Kt=[{count:e=>Wt(e.availableNow?.value,e.availableSoon?.value)},{count:e=>e.type.values.length},{count:e=>ue(e.area.min,e.area.max)?1:0}],Gt=e=>Kt.reduce((i,a)=>i+a.count(e),0),Zt={class:"flex flex-col lg:flex-row lg:items-center"},Yt={class:"sr-only"},Xt={class:"relative flex-1"},Jt=["placeholder"],qt={key:1,class:"scrollbar-hide absolute left-0 right-0 top-full z-[2700] mt-2 max-h-60 overflow-y-auto rounded-lg border border-concrete-300 bg-white py-1 shadow-xl"},Ht=["onClick"],ea=T({__name:"FilterLocationSearch",props:{label:{},loading:{type:Boolean},utilities:{default:""},embedded:{type:Boolean,default:!1}},setup(e){const i=Y(),{searchPlace:a}=Z(i),{searchPlaces:r}=ct(),s=N(""),h=N([]),u=N(!1),c=N(!1),d=()=>{s.value=a.value?.label??""};me(d),q(a,()=>{d()},{deep:!0});const n=ot(async w=>{if(!w.trim()){h.value=[],c.value=!1;return}c.value=!0,h.value=await r(w),c.value=!1,u.value=h.value.length>0}),g=()=>{u.value=!1,n(s.value)},p=w=>
1{s.value=w.place_name,h.value=[],u.value=!1,i.setSearchPlace({label:w.place_name,latitude:w.center[1],longitude:w.center[0],placeId:w.id})},v=()=>{s.value="",h.value=[],u.value=!1,i.setSearchPlace(null)},z=()=>{u.value=!1};return(w,F)=>{const X=ke("click-away");return ee((o(),f("fieldset",{class:x(["relative min-w-0",u.value?"z-[2600]":"",e.utilities])},[t("div",Zt,[t("legend",Yt,m(e.label),1),t("div",Xt,[ee(t("input",{"onUpdate:modelValue":F[0]||(F[0]=I=>s.value=I),type:"search",autocomplete:"off",class:x(["inline-flex w-full items-center py-2 print:hidden",e.embedded?"rounded-full border border-concrete-500 bg-white pl-4 pr-10 shadow-sm":"rounded-full border border-concrete-500 bg-white pl-3 pr-10 shadow-sm","font-primary text-sm text-black","focus:outline-none focus:ring-4 focus:ring-celestial-500"]),placeholder:e.label,onInput:g,onFocus:F[1]||(F[1]=I=>u.value=h.value.length>0)},null,42,Jt),[[We,s.value]]),t("span",{class:x([s.value.length===0&&!e.loading&&!c.value?"opacity-100":"opacity-0","pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-black"])},[...F[2]||(F[2]=[t("i",{class:"fas fa-magnifying-glass"},null,-1)])],2),t("span",{class:x([e.loading||c.value?"opacity-100":"opacity-0","pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-viridian-500"])},[y(te)],2),s.value.length>0&&!e.loading&&!c.value?(o(),f("button",{key:0,type:"button",class:"absolute right-4 top-1/2 -translate-y-1/2 text-viridian-500",onClick:v},[...F[3]||(F[3]=[t("i",{class:"far fa-times"},null,-1)])])):b("",!0),u.value&&h.value.length>0?(o(),f("ul",qt,[(o(!0),f(D,null,G(h.value,I=>(o(),f("li",{key:I.id},[t("button",{type:"button",class:"inline-flex w-full px-4 py-2 text-left font-primary text-sm text-black hover:bg-concrete-200",onClick:J=>p(I)},m(I.place_name),9,Ht)]))),128))])):b("",!0)])])],2)),[[X,z]])}}});const Ee=(e,i)=>{const a=e.__vccOpts||e;for(const[r,s]of i)a[r]=s;return a},ta=Ee(ea,[["__scopeId","data-v-067186d5"]]),aa={class:"sr-only"},la=["aria-expanded"],sa={class:"mr-auto min-w-0 flex-1 truncate whitespace-nowrap text-left"},na={key:0},ia={key:0,class:"scrollbar-hide absolute left-0 top-full z-[2700] mt-2 max-h-60 min-w-[14rem] overflow-y-auto rounded-lg border border-concrete-300 bg-white py-1 shadow-xl"},oa=["onClick"],ra=T({__name:"FilterLocationCountry",props:{label:{},loading:{type:Boolean},options:{},selected:{},utilities:{default:""}},emits:["select"],setup(e,{emit:i}){const a=e,r=i,s=N(!1),h=_(()=>a.selected?a.options.find(g=>g.highlighted===a.selected)?.value??a.label:a.label),u=()=>{s.value=!s.value},c=()=>{s.value=!1},d=n=>{r("select",n),s.value=!1};return(n,g)=>{const p=ke("click-away");return ee((o(),f("fieldset",{class:x(["relative shrink-0",s.value?"z-[2600]":"",e.utilities])},[t("legend",aa,m(e.label),1),t("button",{class:x(["inline-flex min-w-0 items-center px-4 py-2 print:hidden","w-full rounded-full border border-concrete-500 bg-white","font-primary text-sm text-black shadow-sm","focus:outline-none focus:ring-4 focus:ring-celestial-500"]),type:"button","aria-expanded":s.value,onClick:u},[t("span",sa,m(h.value),1),t("span",{class:x(["inline-flex shrink-0 transform-gpu items-center justify-end transition-transform duration-200 ease-in-out",s.value?"rotate-180":"rotate-0"])},[e.loading?b("",!0):(o(),f("span",na,[...g[1]||(g[1]=[t("i",{class:"far fa-chevron-down"},null,-1)])])),t("span",{class:x([e.loading?"block":"hidden","text-viridian-500"])},[y(te)],2)],2)],8,la),s.value?(o(),f("div",ia,[t("button",{type:"button",class:"inline-flex w-full px-4 py-2 text-left font-primary text-sm text-black hover:bg-concrete-200",onClick:g[0]||(g[0]=v=>d(""))},m(e.label),1),(o(!0),f(D,null,G(e.options,v=>(o(),f("button",{key:v.highlighted,type:"button",class:x(["inline-flex w-full px-4 py-2 text-left font-primary text-sm text-black",e.selected===v.highlighted?"bg-concrete-200 font-semibold":"hover:bg-concrete-200"]),onClick:z=>d(v.highlighted)},m(v.value),11,oa))),128))])):b("",!0)],2)),[[p,c]])}}}),ca={class:"sr-only"},ua=["aria-expanded","disabled"],da={class:"mr-auto min-w-0 flex-1 truncate whitespace-nowrap text-left"},fa={key:0},ma={key:0,class:"top-dropdown scrollbar-hide absolute right-0 z-[2700] mt-2 min-w-[8rem] overflow-y-auto rounded-lg border border-concrete-300 bg-white py-1 shadow-xl"},ha=["onClick"],va=T({__name:"FilterLocationDistance",props:{label:{},loading:{type:Boolean},utilities:{default:""},embedded:{type:Boolean,default:!1}},setup(e){const i=e,a=Y(),{searchPlace:r,radiusKm:s}=Z(a),h=N(!1),u=_(()=>!r.value),c=_(()=>s.value?`+${s.value} km`:i.label),d=p=>{a.setRadius(p),h.value=!1},n=()=>{u.value||(h.value=!h.value)},g=()=>{h.value=!1};return(p,v)=>{const z=ke("click-away");return ee((o(),f("fieldset",{class:x(["relative shrink-0",h.value?"z-[2600]":"",e.utilities])},[t("legend",ca,m(e.label),1),t("button",{class:x(["inline-flex min-w-0 items-center px-4 py-2 print:hidden",e.embedded?"w-[7.5rem] max-w-[7.5rem] rounded-full border border-concrete-500 bg-white":"min-w-[7rem] rounded-full border border-gray-300 bg-white","font-primary text-sm text-black","focus:outline-none focus:ring-4 focus:ring-celestial-500",u.value?"curs
1or-not-allowed opacity-50":""]),type:"button","aria-expanded":h.value,disabled:u.value,onClick:n},[t("span",da,m(c.value),1),t("span",{class:x(["inline-flex shrink-0 transform-gpu items-center justify-end transition-transform duration-200 ease-in-out",h.value?"rotate-180":"rotate-0"])},[e.loading?b("",!0):(o(),f("span",fa,[...v[0]||(v[0]=[t("i",{class:"far fa-chevron-down"},null,-1)])])),t("span",{class:x([e.loading?"block":"hidden","text-viridian-500"])},[y(te)],2)],2)],10,ua),h.value?(o(),f("div",ma,[(o(!0),f(D,null,G(l(rt),w=>(o(),f("button",{key:w,type:"button",class:x(["inline-flex w-full items-center px-4 py-2","text-left font-primary text-sm text-black",l(s)===w?"bg-concrete-200 font-semibold":"hover:bg-concrete-200"]),onClick:F=>d(w)}," +"+m(w)+" km ",11,ha))),128))])):b("",!0)],2)),[[z,g]])}}}),ga={class:"relative mb-4 h-8 pt-2"},pa=["min","max","step","value"],ba=["min","max","step","value"],ya={class:"flex items-center gap-2"},wa=["min","max","step","value"],xa=["min","max","step","value"],ka=T({__name:"FilterLocationAreaRange",props:{utilities:{default:""}},setup(e){const i=Y(),{filters:a}=Z(i),r=N(a.value.area.min),s=N(a.value.area.max);q(()=>[a.value.area.min,a.value.area.max],([p,v])=>{r.value=p,s.value=v});const h=_(()=>{const p=V-j,v=(r.value-j)/p*100,z=100-(s.value-j)/p*100;return{left:`${v}%`,right:`${z}%`}}),u=()=>{const{min:p,max:v}=be(r.value,s.value);r.value=p,s.value=v,i.setAreaRange(p,v)},c=p=>{const v=Number(p.target.value);r.value=Math.min(v,s.value)},d=p=>{const v=Number(p.target.value);s.value=Math.max(v,r.value)},n=p=>{const v=de(Number(p.target.value));r.value=Math.min(v,s.value),p.target.value=String(r.value),u()},g=p=>{const v=de(Number(p.target.value));s.value=Math.max(v,r.value),p.target.value=String(s.value),u()};return(p,v)=>(o(),f("div",{class:x(e.utilities)},[t("div",ga,[v[0]||(v[0]=t("div",{class:"absolute top-1/2 h-1 w-full -translate-y-1/2 rounded-full bg-concrete-200"},null,-1)),t("div",{class:"absolute top-1/2 h-1 -translate-y-1/2 rounded-full bg-viridian-500",style:fe(h.value)},null,4),t("input",{class:"range-thumb pointer-events-none absolute inset-x-0 top-1/2 z-10 h-0 w-full -translate-y-1/2 appearance-none bg-transparent [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-orange-500 [&::-moz-range-thumb]:bg-viridian-500 [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-orange-500 [&::-webkit-slider-thumb]:bg-viridian-500",type:"range",min:l(j),max:l(V),step:l(H),value:r.value,"aria-label":"Minimum rentable surface",onInput:c,onChange:u},null,40,pa),t("input",{class:"range-thumb pointer-events-none absolute inset-x-0 top-1/2 z-20 h-0 w-full -translate-y-1/2 appearance-none bg-transparent [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-orange-500 [&::-moz-range-thumb]:bg-viridian-500 [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-orange-500 [&::-webkit-slider-thumb]:bg-viridian-500",type:"range",min:l(j),max:l(V),step:l(H),value:s.value,"aria-label":"Maximum rentable surface",onInput:d,onChange:u},null,40,ba)]),t("div",ya,[v[1]||(v[1]=t("label",{class:"sr-only",for:"location-area-min"},"Minimum rentable surface (m²)",-1)),t("input",{id:"location-area-min",class:"w-full rounded-full border border-concrete-300 px-3 py-2 font-primary text-sm text-black focus:outline-none focus:ring-4 focus:ring-celestial-500",type:"number",min:l(j),max:l(V),step:l(H),value:r.value,onBlur:n},null,40,wa),v[2]||(v[2]=t("span",{class:"shrink-0 font-primary text-sm text-concrete-700"},"–",-1)),v[3]||(v[3]=t("label",{class:"sr-only",for:"location-area-max"},"Maximum rentable surface (m²)",-1)),t("input",{id:"location-area-max",class:"w-full rounded-full border border-concrete-300 px-3 py-2 font-primary text-sm text-black focus:outline-none focus:ring-4 focus:ring-celestial-500",type:"number",min:l(j),max:l(V),step:l(H),value:s.value,onBlur:g},null,40,xa),v[4]||(v[4]=t("span",{class:"shrink-0 font-primary text-sm text-concrete-700"},"m²",-1))])],2))}}),$a={class:"text-concrete-700 shrink-0 text-base"},_a={key:0},Sa={key:1},Pa={class:"min-w-0 flex-1 break-words"},za={key:0,class:"shrink-0 tabular-nums text-concrete-700"},ce=T({__name:"FilterLocationOption",props:{label:{},checked:{type:Boolean},count:{default:null},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["toggle"],setup(e,{emit:i}){const a=i;return(r,s)=>(o(),f("button",{type:"button",class:x(["inline-flex w-full min-w-0 items-center gap-2 py-2 text-left","font-primary text-sm text-black","focus:outline-none focus:ring-4 focus:ring-celestial-500",e.disabled||e.loading?"pointer-events-none opacity-40":"hover:opacity-80"]),onClick:s[0]||(s[0]=h=>a("toggle"))},[t("span",$a,[e.checked?(o(),f("span",_a,[...s[1]||(s[1]=[t("i",{class:"fa-solid fa-square-check"},null,-1)])])):(o(),f("span",Sa,[...s[2]||(s[2]=[t("i",{class:"fa-regular fa-square"},null,-1)])]))]),t("span",Pa,m(e.label),1),e.count!==null?(o(),f("span",za,m(e.count),1)):b("",!0)],2))}}),Ca={class:"flex h-full min-h-0 flex-col"},Na={class:"-mx-6 mb-4 flex items-center justify-between border-b border-concrete-200 px-6 pb-6"},Ma={class:"flex items-center gap-2"},Aa={class:"scrollbar-hide min-h-0 flex-1 space-y-6 overflow-y-auto px-1 pb-2"},Fa={class:"mb-3 font-primary text-base font-bold text-orange-600"},La={class:"mb-3 font-primary text-base font-bold text-orange-600"},Ta={class:"mb-3 flex items-center gap-1.5 font-primary text-base font-bold text-orange-600"},Ra={class:"group relative inline-flex"},Ba={class:"pointer-events-none absolute bottom-full left-0 z-10 mb-2 hidden w-56 rounded-lg border border-concrete-300 bg-white p-3 text-xs font-normal text-black shadow-lg group-hover:block"},ja={class:"mb-2 block font-bold"},Ia={class:"mb-3 block"},Oa={class:"mb-2 block font-bold"},Va={class:"block"},Qa={class:"grid grid-cols-2 gap-x-4"},Ea={class:"mb-3 flex items-center gap-1.5 font-primary text-base font-bold text-orange-600"},Da={class:"group relative inline-flex"},Ua={class:"pointer-events-none absolute bottom-full left-0 z-10 mb-2 hidden w-56 rounded-lg border border-concrete-300 bg-white p-3 text-xs font-normal text-black shadow-lg group-hover:block"},Wa={class:"mb-2 flex items-center gap-1 font-bold"},Ka={class:"mb-3 block"},Ga={class:"mb-2 flex items-center gap-1 font-bold"},Za={class:"block"},Ya={class:"grid grid-cols-2 gap-x-4"},Le=T({__name:"FilterLocationsPanel",props:{translations:{default:null},loading:{type:Boolean},distanceLabel:{},checkedValue:{},checkTypeValue:{}},emits:["close","clearAll","setFacet"],setup(e,{emit:i}){const a=e,r=i,s=h=>k(a.translations??{},h);
1return(h,u)=>(o(),f("div",Ca,[t("header",Na,[y(Je,null,{default:O(()=>[U(m(l(A)("Filters")),1)]),_:1}),t("div",Ma,[y(Qe,{content:l(A)("Clear filters"),size:"small",onClick:u[0]||(u[0]=c=>r("clearAll"))},null,8,["content"]),y(Ve,{icon:"times",size:"small",class:"lg:hidden",onClick:u[1]||(u[1]=c=>r("close"))})])]),t("div",Aa,[t("section",null,[t("h3",Fa,m(e.distanceLabel),1),y(va,{label:e.distanceLabel,loading:e.loading},null,8,["label","loading"])]),t("section",null,[t("h3",La,m(l(A)("Rentable surface")),1),y(ka)]),t("section",null,[t("h3",Ta,[t("span",null,m(s("Availability")),1),t("span",Ra,[u[6]||(u[6]=t("i",{class:"fas fa-question-circle text-sm text-concrete-700","aria-hidden":"true"},null,-1)),t("span",Ba,[t("span",ja,m(l(A)("Available now")),1),t("span",Ia,m(l(A)("Available within 6 months.")),1),t("span",Oa,m(l(A)("Available soon")),1),t("span",Va,m(l(A)("Available starting from 6 months from now.")),1)])])]),t("div",Qa,[y(ce,{label:s("Available now"),checked:e.checkedValue("availableNow"),loading:e.loading,onToggle:u[2]||(u[2]=c=>r("setFacet",{field:"availableNow",value:!e.checkedValue("availableNow")}))},null,8,["label","checked","loading"]),y(ce,{label:s("Available soon"),checked:e.checkedValue("availableSoon"),loading:e.loading,onToggle:u[3]||(u[3]=c=>r("setFacet",{field:"availableSoon",value:!e.checkedValue("availableSoon")}))},null,8,["label","checked","loading"])])]),t("section",null,[t("h3",Ea,[t("span",null,m(l(A)("Type")),1),t("span",Da,[u[7]||(u[7]=t("i",{class:"fas fa-question-circle text-sm text-concrete-700","aria-hidden":"true"},null,-1)),t("span",Ua,[t("span",Wa,[t("i",{class:x(`${l(ge)(l(ve)("project"))}`)},null,2),U(" "+m(l(A)("Project")),1)]),t("span",Ka,m(l(A)("Build the perfect distribution centre.")),1),t("span",Ga,[t("i",{class:x(`${l(ge)(l(ve)("building"))}`)},null,2),U(" "+m(l(A)("Building")),1)]),t("span",Za,m(l(A)("Existing warehouses that match your operational requirements.")),1)])])]),t("div",Ya,[y(ce,{label:l(A)("Project"),checked:e.checkTypeValue("type","project"),loading:e.loading,onToggle:u[4]||(u[4]=c=>r("setFacet",{field:"type",value:"project"}))},null,8,["label","checked","loading"]),y(ce,{label:l(A)("Building"),checked:e.checkTypeValue("type","building"),loading:e.loading,onToggle:u[5]||(u[5]=c=>r("setFacet",{field:"type",value:"building"}))},null,8,["label","checked","loading"])])])])]))}}),Xa={class:"whitespace-nowrap"},Ja=T({__name:"ButtonFilterLocations",props:{label:{},loading:{type:Boolean},selected:{default:0},utilities:{default:""}},setup(e){return(i,a)=>(o(),f("button",{class:x(["relative inline-flex items-center gap-2 rounded-full border-2 border-viridian-500","bg-white px-4 py-2 font-primary text-sm font-medium text-viridian-500","focus:outline-none focus:ring-4 focus:ring-celestial-500","hover:bg-viridian-500 hover:text-white","print:hidden",e.utilities]),type:"button"},[t("span",{class:x([e.loading?"opacity-0":"opacity-100"])},[...a[0]||(a[0]=[t("i",{class:"fa-solid fa-sliders","aria-hidden":"true"},null,-1)])],2),t("span",Xa,m(e.label),1),e.selected>0?(o(),M(qe,{key:0,label:e.selected},null,8,["label"])):b("",!0),t("span",{class:x([e.loading?"opacity-100":"opacity-0","absolute right-3 top-1/2 -translate-y-1/2 text-viridian-500"])},[y(te)],2)],2))}}),qa={class:"relative flex items-center gap-2"},Ha={class:"shrink-0 text-sm font-bold"},el={class:"relative"},tl=["value"],al=T({__name:"SortLocations",props:{translations:{default:null}},setup(e){const i=e,a=Y(),{sortMode:r}=Z(a),s=_({get:()=>r.value,set:u=>a.setSorting(u)}),h=_(()=>[{value:"alphabetical",label:k(i.translations,"Alphabetical")},{value:"recent",label:k(i.translations,"Recently added")}]);return(u,c)=>(o(),f("div",qa,[t("span",Ha,m(l(k)(e.translations,"Sort by")),1),t("div",el,[ee(t("select",{"onUpdate:modelValue":c[0]||(c[0]=d=>s.value=d),class:"w-28 appearance-none truncate rounded-full border border-concrete-500 bg-white py-2 pl-3 pr-9 text-sm font-medium text-black md:min-w-36 md:pl-4 md:pr-10"},[(o(!0),f(D,null,G(h.value,d=>(o(),f("option",{key:d.value,value:d.value},m(d.label),9,tl))),128))],512),[[Ke,s.value]]),c[1]||(c[1]=t("span",{class:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-black","aria-hidden":"true"},[t("i",{class:"far fa-chevron-down text-sm"})],-1))])]))}});const we=Ee(al,[["__scopeId","data-v-20826d48"]]),ll={key:0,class:"flex w-full min-w-0 flex-col gap-3 rounded-2xl bg-white p-3 shadow-lg lg:inline-flex lg:w-fit lg:max-w-[calc(100vw-3rem)] lg:flex-row lg:items-center lg:gap-2 lg:rounded-full"},sl={key:0},nl=["x-trap"],il={key:0},ol=["x-trap"],Te=T({__name:"FilterLocations",props:{translations:{default:null},variant:{default:"mobile"}},emits:["expanded-change"],setup(e,{emit:i}){const a=e,r=i,s=Y(),{facets:h,loading:u,filters:c}=Z(s),d=N(!1),n=N(typeof window<"u"?window.innerWidth>=1024:!1),g=N(null),p=N({}),v=()=>{typeof window>"u"||(n.value=window.innerWidth>=1024,z())},z=()=>{if(!g.value||typeof window>"u")return;const S=g.value.getBoundingClientRect();p.value={left:`${Math.round(S.left)}px`,top:`${Math.round(S.bottom+12)}px`}};me(()=>
1{v(),typeof window<"u"&&(window.addEventListener("resize",v),window.addEventListener("scroll",z,!0))}),xe(()=>{typeof window<"u"&&(window.removeEventListener("resize",v),window.removeEventListener("scroll",z,!0))});const w=()=>{d.value=!d.value,r("expanded-change",d.value),d.value&&Be(()=>{z()})},F=S=>{w()},X=S=>{S.stopPropagation()},I=S=>c.value[S]?.value??null?c.value[S].value:!1,J=(S,C)=>c.value[S]?.values??null?c.value[S].values.indexOf(C)>-1:!1,W=S=>{const C=h.value.find(R=>R.field_name===S);return C&&S==="country"&&C.counts.forEach(R=>{R.value=k(a.translations,R.highlighted)}),C},K=_(()=>W("country")),L=_(()=>K.value?[...K.value.counts].sort((S,C)=>S.highlighted<C.highlighted?-1:C.highlighted<S.highlighted?1:0):[]),$=_(()=>c.value?Gt(c.value):0),P=_({get:()=>c.value.countries.values[0]??"",set:S=>{s.setCountryFilter(S||null)}}),Q=S=>{s.setFilter(S.field,S.value)},le=_(()=>k(a.translations,"Search locations"));return(S,C)=>(o(),f(D,null,[e.variant==="search-bar"?(o(),f("div",ll,[y(ta,{label:le.value,loading:l(u),utilities:"w-full lg:shrink-0 lg:w-[15rem] xl:w-[17rem]"},null,8,["label","loading"]),t("div",{ref_key:"headerRootRef",ref:g,class:"flex w-full min-w-0 flex-row gap-2 lg:w-auto lg:justify-start"},[y(ra,{label:l(k)(e.translations,"Country"),loading:l(u),options:L.value,selected:P.value,utilities:"min-w-0 flex-1 lg:flex-none lg:w-[10rem] xl:w-[12rem]",onSelect:C[0]||(C[0]=R=>P.value=R)},null,8,["label","loading","options","selected"]),y(Ja,{label:l(A)("Filters"),selected:$.value,loading:l(u),utilities:"w-auto flex-none lg:w-auto",onClick:w},null,8,["label","selected","loading"])],512)])):b("",!0),(o(),M(he,{to:"body"},[d.value&&n.value?(o(),f("div",sl,[t("div",{class:"fixed inset-0 z-[2490]",onClick:w}),t("div",{style:fe(p.value),class:"fixed z-[2500] flex max-h-[min(34rem,calc(100vh-14rem))] w-[22rem] flex-col overflow-hidden rounded-2xl bg-white p-6 shadow-xl","x-trap":d.value},[y(Le,{translations:e.translations,loading:l(u),"distance-label":l(k)(e.translations,"Distance"),"checked-value":I,"check-type-value":J,onClose:w,onClearAll:C[1]||(C[1]=R=>l(s).clearFilters()),onSetFacet:C[2]||(C[2]=R=>Q(R))},null,8,["translations","loading","distance-label"])],12,nl)])):b("",!0)])),(o(),M(he,{to:"body"},[d.value&&!n.value?(o(),f("div",il,[t("div",{class:"fixed inset-0 z-[2100] bg-black/40",onClick:F}),t("div",{"x-trap":d.value,class:"fixed bottom-0 left-0 z-[2200] h-[85vh] max-h-[85vh] w-full overflow-hidden rounded-t-3xl bg-white p-6 shadow-2xl",onClick:X},[y(Le,{translations:e.translations,loading:l(u),"distance-label":l(k)(e.translations,"Distance"),"checked-value":I,"check-type-value":J,onClose:w,onClearAll:C[3]||(C[3]=R=>l(s).clearFilters()),onSetFacet:C[4]||(C[4]=R=>Q(R))},null,8,["translations","loading","distance-label"])],8,ol)])):b("",!0)])),e.variant==="header"?(o(),f("div",{key:1,ref_key:"headerRootRef",ref:g,class:"relative shrink-0"},[y(we,{translations:e.translations},null,8,["translations"])],512)):b("",!0)],64))}}),rl={class:"absolute inset-0 z-0 h-full w-full"},cl={class:"pointer-events-auto z-[1600] mb-4 ml-4 mr-4 lg:mb-6 lg:ml-6 lg:mr-0"},ul={class:"pointer-events-auto relative z-[1000] flex h-full flex-col rounded-tr-[40px] border-r border-gray-200 bg-white pt-8"},dl={class:"relative flex shrink-0 flex-col border-b border-gray-100 px-6 pb-6"},fl={class:"flex items-end justify-between gap-4"},ml={class:"flex items-end gap-2"},hl={key:0,class:"pb-[0.9rem]"},vl={class:"flex shrink-0 items-center gap-4"},gl={class:"scrollbar-hide grow overflow-y-auto bg-gray-50 p-6 pb-28 lg:pb-32"},pl={key:0},bl={key:1,class:"mt-8 flex flex-col items-center justify-center space-y-4 text-center"},yl={key:1,class:"mt-32"},wl={class:"px-4"},xl={class:"relative flex w-full flex-col gap-3 px-4 pb-4"},kl={class:"flex items-end gap-2"},$l={class:"flex items-end gap-2"},_l={key:0},Sl={class:"flex items-center justify-between gap-2"},Pl={class:"scrollbar-hide grow overflow-y-auto rounded-t-2xl bg-gray-50 p-4 pb-36"},zl={key:0},Cl={key:1,class:"mt-8 flex grow flex-col items-center justify-center space-y-4 text-center"},Nl={class:"flex items-center space-x-2"},Ml=T({__name:"ViewLocations",props:{translations:{default:null},contactUrl:{default:null}},setup(e){const i=e,a=Y(),{locations:r,loading:s,pagination:h,view:u}=Z(a),c=N(typeof window<"u"?window.innerWidth>=1024:!1),d=N(typeof window<"u"?window.innerWidth>=640&&window.innerWidth<1024:!1),n=N(!0),g=N(!1),p=()=>{a.clearFilters()},v=_(()=>r.value?r.value:[]),z=()=>{if(c.value){n.value=!n.value;return}const K=u.value==="list"?"map":"list";a.toggleView(K)},w=_(()=>c.value?n.value?k(i.translations,"Show map"):k(i.translations,"Show list"):u.value==="list"?k(i.translations,"Show map"):k(i.translations,"Show list")),F=_(()=>c.value?n.value?"map":"list":u.value==="list"?"map":"list"),X=_(()=>["w-full relative bg-gray-100 flex flex-col grow h-screen min-h-[600px] overflow-hidden",g.value?"popup-is-open":""].join(" ")),I=_(()=>g.value?"w-[58%]":"w-2/3"),J=_(()=>g.value?"left-[calc(58%+21%)]":"left-[calc(66.666667%+16.666667%)]"),W=()=>{typeof window<"u"&&(c.value=window.innerWidth>=1024,d.value=window.innerWidth>=640&&window.innerWidth<1024,c.value&&u.value==="list"&&a.toggleView("map"))};return me(async()=>{W(),typeof window<"u"&&window.addEventListener("resize",W),c.value&&(
1a.toggleView("map"),n.value=!0),await a.fetch(!0,at())}),xe(()=>{typeof window<"u"&&window.removeEventListener("resize",W)}),(K,L)=>(o(),f("div",{class:x(`${X.value} isolate`)},[c.value||l(u)==="map"?(o(),f(D,{key:0},[t("div",rl,[t("div",{class:x(["pointer-events-none absolute left-0 z-[1000] transition-all duration-300 ease-in-out",c.value?["top-32 bottom-14",I.value]:"top-32 w-full"])},[t("div",cl,[y(Te,{variant:"search-bar",translations:e.translations},null,8,["translations"])]),y(Ze,{name:"slide"},{default:O(()=>[ee(t("section",ul,[t("div",dl,[t("div",fl,[t("div",ml,[t("h1",null,[y(ie,null,{default:O(()=>[U(m(l(k)(e.translations,"Locations")),1)]),_:1})]),y(oe,{utilities:"self-end leading-none text-concrete-700"},{default:O(()=>[!l(s)&&l(r)?(o(),f("span",hl,m(v.value.length),1)):b("",!0),l(s)?(o(),M(te,{key:1,utilities:"mb-2"})):b("",!0)]),_:1})]),t("div",vl,[y(we,{translations:e.translations},null,8,["translations"])])])]),t("div",gl,[l(r)?(o(),f("div",pl,[l(s)?(o(),M(Ne,{key:0,size:l(h).itemsPerPage},null,8,["size"])):b("",!0),l(r)&&!l(s)?(o(),M(Fe,{key:1,locations:v.value,translations:e.translations,class:"!grid-cols-1 space-y-2","is-sidebar":c.value},null,8,["locations","translations","is-sidebar"])):b("",!0)])):b("",!0),!l(s)&&v.value.length===0?(o(),f("div",bl,[y(ie,{utilities:"inline-flex items-center space-x-4"},{default:O(()=>[L[3]||(L[3]=t("span",{class:"text-lg"},[t("i",{class:"fas fa-warehouse"})],-1)),t("span",null,m(l(A)("No results")),1)]),_:1}),y(oe,{utilities:"text-center max-w-md text-sm"},{default:O(()=>[U(m(l(k)(e.translations,"We haven't found any locations in this area.")),1)]),_:1})])):b("",!0)])],512),[[Ge,c.value&&n.value]])]),_:1})],2),y(At,{locations:l(r),translations:e.translations,utilities:"h-full w-full","has-toggle":!c.value,"sidebar-open":c.value&&n.value,"desktop-sidebar-ratio":g.value?.58:2/3,"is-desktop":c.value,onPopupChange:L[0]||(L[0]=$=>g.value=$)},null,8,["locations","translations","has-toggle","sidebar-open","desktop-sidebar-ratio","is-desktop"])]),c.value?(o(),f("div",{key:0,class:x(["absolute bottom-13 -translate-x-1/2 transition-all duration-500 ease-in-out",[n.value?J.value:"left-1/2","z-10"]])},[(o(),M(ae,{key:`desktop-${String(n.value)}`,size:"small",icon:F.value,type:"button","icon-position":"after",content:w.value,utilities:"shadow-lg",onClick:z},null,8,["icon","content"]))],2)):b("",!0)],64)):b("",!0),!c.value&&l(u)==="list"?(o(),f("div",yl,[t("div",wl,[y(Te,{variant:"search-bar",translations:e.translations},null,8,["translations"])]),t("section",{class:x(["mx-4 mb-0 mt-4 flex h-[calc(100vh-11rem)] flex-col overflow-hidden rounded-t-3xl bg-white pt-4",d.value?"w-auto max-w-none":""])},[t("div",xl,[t("div",kl,[t("div",$l,[t("h1",null,[y(ie,null,{default:O(()=>[U(m(l(k)(e.translations,"Locations")),1)]),_:1})]),y(oe,{utilities:"pb-0.5 text-concrete-700"},{default:O(()=>[!l(s)&&l(r)?(o(),f("span",_l,m(l(r).length),1)):b("",!0),l(s)?(o(),M(te,{key:1,utilities:"mb-2"})):b("",!0)]),_:1})])]),t("div",Sl,[y(we,{class:"min-w-0 justify-start",translations:e.translations},null,8,["translations"])])]),t("div",Pl,[l(r)?(o(),f("div",zl,[l(s)?(o(),M(Ne,{key:0,size:l(h).itemsPerPage},null,8,["size"])):b("",!0),l(r)&&!l(s)?(o(),M(Fe,{key:1,locations:v.value,translations:e.translations,"is-sidebar":!0,class:"!grid-cols-1 space-y-2"},null,8,["locations","translations"])):b("",!0)])):b("",!0),l(r)&&l(r).length===0&&!l(s)?(o(),f("div",Cl,[t("div",null,[y(ie,{utilities:"inline-flex items-center space-x-4"},{default:O(()=>[L[4]||(L[4]=t("span",{class:"text-lg"},[t("i",{class:"fas fa-warehouse"})],-1)),t("span",null,m(l(A)("No results")),1)]),_:1})]),y(oe,{utilities:"text-center max-w-md"},{default:O(()=>[U(m(l(k)(e.translations,"We haven't found any locations with this combination. If you have questions about our available locations, you can contact us. Clear the filters to see all our available locations")),1)]),_:1}),t("div",Nl,[e.contactUrl?(o(),M(ae,{key:0,content:l(A)("Contact us"),size:"small",url:e.contactUrl,type:"a"},null,8,["content","url"])):b("",!0),y(Qe,{content:l(A)("Clear filters"),size:"small",onClick:L[1]||(L[1]=$=>p())},null,8,["content"])])])):b("",!0)]),y(ae,{size:"small",icon:"map",type:"button","icon-position":"after",content:l(k)(e.translations,"View map"),utilities:"fixed left-1/2 -translate-x-1/2 bottom-13 z-10 shadow-lg",onClick:L[2]||(L[2]=()=>l(a).toggleView("map"))},null,8,["content"])],2)])):b("",!0)],2))}}),Al=T({components:{"badge--primary":$e,"consent--hidden":et,"view--locations":Ml}}),Fl=async()=>{const e=Re(Al);return e.use(He),e.use(window.pinia),e.mount("#locations")};Fl().then(()=>{console.log()});
2//# sourceMappingURL=locations-85e78b3d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.