PageSourceSearch

https://immo-france-omnicasa.vercel.app/_next/static/chunks/listing-filter.b083640b4f836440.js

js immo-france-omnicasa.vercel.app collected 2026-10-03 07:09:09 UTC 44,543 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="73f4631b-6303-4b4b-84e6-faa8588b9a0f",e._sentryDebugIdIdentifier="sentry-dbid-73f4631b-6303-4b4b-84e6-faa8588b9a0f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5824],{6952:()=>{},16038:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>b});var a=r(95155),t=r(12115),i=r(82762),s=r(10412),n=r(5514),o=r(66226),d=r(4948),u=r(98630),c=r(83711);let p=e=>{var l,r;let{module:p,filterOptionsQuery:m,labels:b,priceRanges:f,chrome:h}=e,v=p.filter??{},{Zips:g,WebIDs:x}=(null==p?void 0:p.apiParams)||{},y=p.configuredWebIDs,{loading:j,citiesSale:w,citiesRent:N,typesSale:S,typesRent:M}=(0,u.e)(m),I=Number((null==(r=p.params)||null==(l=r.params)?void 0:l.Goal)??0),P=v.instantSearch||!1,D=v.showType||!1,_=(0,c.X)(h),$="€ ",A="";(null==h?void 0:h.priceNotation)==="after"&&($="",A=" €");let k=f[I]||f[0]||[],C=1==I?M:S,G=(0,d.Bn)({cities:(1==I?N:w)||[]}),T=y||x,Z=T?(C||[]).filter(e=>{var l;return T.toString().split(",").map(e=>e.trim()).includes(null==(l=e.WebID)?void 0:l.toString())}):C||[],W=(0,t.useMemo)(()=>{if(!g)return[];let e=g.toString().split(",").map(e=>e.trim()),l=null==G?void 0:G.find(l=>{if(!l.value)return!1;let[,r]=l.value.split("|");if(!r)return!1;let a=r.split("-");return a.length===e.length&&e.every(e=>a.includes(e))});return l||(l=null==G?void 0:G.find(l=>{if(!l.value)return!1;let[,r]=l.value.split("|");return!!r&&e.some(e=>r.split("-").includes(e))})),l?[l.value]:[]},[g,G]),R=y&&x?x.toString().split(",").map(e=>e.trim()).filter(e=>Z.some(l=>{var r;return(null==(r=l.WebID)?void 0:r.toString())===e})):[],F=k.map(e=>({label:`${(0,d.vv)(e.Min,$,A)}`,value:e.Min})),V=k.map(e=>({label:`${(0,d.vv)(e.Max,$,A)}`,value:e.Max}));return k.length>0&&V.push({label:`> ${(0,d.vv)(k[k.length-1].Max,$,A)}`,value:""}),(0,a.jsxs)("div",{className:"xl:flex gap-8 relative z-20",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 xl:w-2/3 gap-2 mb-6 xl:mb-0",children:[(0,a.jsx)("div",{className:"md:col-span-4",children:(0,a.jsx)("div",{className:"",children:(0,a.jsx)(o.default,{name:"region",options:[{label:b.allCities,value:""},...G],placeholder:b.city,addAsParam:P,defaultValue:W,view:_,loading:j})})}),D&&(0,a.jsx)("div",{className:"",children:(0,a.jsx)(o.default,{name:"type",options:Z?Z.map(e=>({label:`${e.Name}`,value:e.ID})):[],placeholder:b.typeOfProperty,addAsParam:P,defaultValue:R,view:_,loading:j})}),(0,a.jsx)("div",{children:(0,a.jsx)(o.default,{options:F,name:"pricemin",placeholder:b.budgetMin,addAsParam:P,view:_})}),(0,a.jsx)("div",{children:(0,a.jsx)(o.default,{options:V,placeholder:b.budgetMax,name:"pricemax",addAsParam:P,view:_})}),(0,a.jsx)("div",{children:(0,a.jsx)(o.default,{options:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4 of meer",value:"4"}],placeholder:b.bedrooms,name:"bedrooms",addAsParam:P,view:_})})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-6 mb-6 lg:mb-0",children:[(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.A,{name:"garden",checked:!1,id:"IsGarden",labelText:b.garden,className:"flex flex-row-reverse items-center justify-end gap-3 cursor-pointer",emptyValue:"",view:_})}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.A,{name:"terrace",checked:!1,id:"IsTerrace",labelText:b.terrace,className:"flex flex-row-reverse items-center justify-end gap-3 cursor-pointer",emptyValue:"",view:_})}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.A,{name:"garage",checked:!1,id:"IsGarage",labelText:b.garage,className:"flex flex-row-reverse items-center justify-end gap-3 cursor-pointer",emptyValue:"",view:_})}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.A,{name:"lift",checked:!1,id:"IsLift",labelText:b.hasLift,className:"flex flex-row-reverse items-center justify-end gap-3 cursor-pointer",emptyValue:"",view:_})}),(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.A,{name:"noconstruction",checked:!1,id:"IsConstruction",labelText:b.hideProjectImmo,className:"flex flex-row-reverse items-center justify-end gap-3 cursor-pointer",emptyValue:"",view:_})})]}),(0,a.jsx)("div",{className:P?"lg:hidden":"",children:(0,a.jsx)(s.default,{type:"secondary",className:"w-full h-full flex-1 rounded-r-lg",label:b.search,buttonType:"submit",children:(0,a.jsx)("span",{className:"flex flex-col gap-2 items-center justify-center",children:(0,a.jsx)(n.A,{icon:"FaMagnifyingGlass",width:20,height:20,className:"text-2xl"})})})})]})};var m=r(89925);let b=e=>{let{lang:l,pageSlug:r,module:i,filterOptionsQuery:s,labels:n,priceRanges:o,chrome:d}=e;return(0,a.jsx)(m.A,{lang:l,pageSlug:r,filterOptionsQuery:s,children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(p,{module:i,filterOptionsQuery:s,labels:n,priceRanges:o,chrome:d})})})}},18957:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>v});var a=r(95155),t=r(12115),i=r(2136),s=r(73321),n=r(37206),o=r(10412),d=r(5514),u=r(66226),c=r(78285),p=r(4948),m=r(98630),b=r(46061);let f=(0,n.default)(()=>r.e(2044).then(r.bind(r,52044)),{loadableGenerated:{webpack:()=>[52044]}}),h=e=>{let{filter:l,labels:r,apiParams:n,configuredWebIDs:h,filterOptionsQuery:v,neighbourhoods:g,countries:x,priceRanges:y,chrome:j,pageSlug:w,lang:N="nl"}
1=e,S=(0,s.useRouter)(),M=Object.fromEntries((0,s.useSearchParams)().entries()),I=l.showParentCities||!1,P=l.groupZipcodes??!0,{loading:D,citiesSale:_,citiesRent:$,typesSale:A,typesRent:k}=(0,m.e)(v),[C,G]=(0,t.useState)(Number((null==M?void 0:M.goal)??(null==n?void 0:n.Goal)??0)),[T,Z]=(0,t.useState)(""),W=(1==C?$:_).filter(e=>!T||e.CountryID==T),R=[...A||[],...k||[]],F=(0,t.useMemo)(()=>(0,p.Bn)({cities:W,grouped:I,combinedZipCodes:P}),[W,I,P]),V=(0,t.useMemo)(()=>{if(!(null==n?void 0:n.Zips))return[];let e=n.Zips.toString().split(",").map(e=>e.trim()),l=r=>{for(let a of r)if(a.options){let e=l(a.options);if(e)return e}else if(a.value){let[,l]=a.value.split("|");if(l){let r=l.split("-");if(r.length===e.length&&e.every(e=>r.includes(e)))return a.value}}return null},r=l=>{for(let a of l)if(a.options){let e=r(a.options);if(e)return e}else if(a.value){let[,l]=a.value.split("|");if(l){let r=l.split("-");if(e.some(e=>r.includes(e)))return a.value}}return null},a=l(F||[])||r(F||[]);return a?[a]:[]},[null==n?void 0:n.Zips,F]),L=h||(null==n?void 0:n.WebIDs),O=(0,t.useMemo)(()=>{if(!L)return A;let e=L.toString().split(",").map(e=>e.trim());return(null==A?void 0:A.filter(l=>{var r;return e.includes(null==(r=l.WebID)?void 0:r.toString())}))||[]},[L,A]),B=(0,t.useMemo)(()=>{if(!L)return k;let e=L.toString().split(",").map(e=>e.trim());return(null==k?void 0:k.filter(l=>{var r;return e.includes(null==(r=l.WebID)?void 0:r.toString())}))||[]},[L,k]),Q=(0,t.useMemo)(()=>{var e;if(!h||!(null==n?void 0:n.WebIDs))return[];let l=n.WebIDs.toString().split(",").map(e=>e.trim()),r=(null==(e=0==C?O:B)?void 0:e.map(e=>{var l;return null==(l=e.WebID)?void 0:l.toString()}))||[];return l.filter(e=>r.includes(e))},[h,null==n?void 0:n.WebIDs,C,O,B]),E=(0,t.useCallback)(e=>{var a,t,i;e.preventDefault();let s=new FormData(e.currentTarget),n=(null==(a=s.get("region"))?void 0:a.toString())||"",o=(null==(t=s.get("type"))?void 0:t.toString())||"",d=(null==(i=s.get("goal"))?void 0:i.toString())??"",u=n&&!n.includes(","),c=o&&!o.includes(","),m="";if(""!==d&&l.showGoal){let e="1"===d?r.forRent:r.forSale;e&&(m=(0,p.Yv)(e))}let b="";if(u&&n.includes("|")){let[e,l]=n.split("|");if(e)if(!P&&l){let r=l.split("-")[0];b=(0,p.Yv)(`${e}-${r}`)}else b=(0,p.Yv)(e)}let f="";if(c){let e=R.find(e=>{var l;return(null==(l=e.WebID)?void 0:l.toString())===o});(null==e?void 0:e.Name)&&(f=(0,p.Yv)(e.Name))}if(w&&(m||b||f)){let e=new URLSearchParams,l=["region","type","goal"];s.forEach((r,a)=>{l.includes(a)||""===r||null===r||e.set(a,r.toString())});let r=`/${N}/${w}/`;m&&(r+=`${m}/`),b&&(r+=`${b}/`),f&&(r+=`${f}/`);let a=e.toString();a&&(r+=`?${a}`),S.push(r);return}let h=new URLSearchParams;s.forEach((e,l)=>{("goal"===l?""!==e:e)&&h.set(l,e.toString())});let v=w?`/${N}/${w}/`:window.location.pathname;S.push(`${v}?${h.toString()}`)},[R,w,N,S,P,l.showGoal,r]),U=l.instantSearch||!1,Y=l.showGoal||!1,z=l.showCity||!1,X=l.showType||!1,K=l.showExtra||!1,q=l.showPrice||!1,H=l.showStreet||!1,J=l.showRadius||!1,ee=l.showNeighbourHoods||!1,el=l.showFurnished||!1,er=l.showGarden||!1,ea=l.showTerrace||!1,et=l.showCountry||!1,ei=l.showSort??!0,es={min:0,max:2e6,step:1e3};1==C&&(es={min:0,max:3e3,step:100}),l.priceMax&&(es.max=l.priceMax),l.priceMin&&(es.min=l.priceMin),l.priceStep&&(es.step=l.priceStep);let en="€ ",eo="";(null==j?void 0:j.priceNotation)==="after"&&(en="",eo=" €");let ed=(y[C]||y[0]||[]).map(e=>({label:`${(0,p.vv)(e.Min,en,eo)}`,value:e.Min})),eu=(y[C]||y[0]||[]).map(e=>({label:`${(0,p.vv)(e.Max,en,eo)}`,value:e.Max})),ec=[{label:r.bedrooms,value:"bedrooms",search:0,public:!0},{label:r.bathRooms,value:"bathrooms",search:0,public:!0},{label:r.garages,value:"garages",search:0,public:!0}];return(el&&ec.push({label:r.hasFurnished,value:"furnished",search:0,public:!0,type:"boolean"}),er&&ec.push({label:r.hasGarden,value:"garden",search:0,public:!0,type:"boolean"}),ea&&ec.push({label:r.hasTerrace,value:"terrace",search:0,public:!0,type:"boolean"}),0==[Y,z,X,K,q,H,J,ee,et].filter(Boolean).length)?null:([Y,z,X,q,H,et,ee].filter(Boolean).length,[K,ei].filter(Boolean).length,(0,a.jsxs)("form",{onSubmit:E,"data-mobile-staged-search":"true",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mb-6",children:[Y&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.goal}),(0,a.jsx)(u.default,{name:"goal",className:"w-full border-solid border-b-[1px] border-gray-300",placeholder:r.goal,options:[{label:r.forSale,value:0},{label:r.forRent,value:1}],onChange:e=>{G(Number(e[0]??0))},addAsParam:U,view:"2"})]}),H&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.street}),(0,a.jsx)(c.A,{name:"streetname",className:"w-full border-solid border-b-[1px] border-gray-300",placeholder:r.street,value:M.streetname,view:"2"})]}),et&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.country}),(0,a.jsx)(u.default,{name:"country",className:"w-full border-solid border-b-[1px] border-gray-300",options:(0,p.AQ)(x),placeholder:r.country,addAsParam:U,onChange:e=>{Z(e)},view:"2"})]}),ee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.region}),(0,a.jsx)(u.default,{multiSelect:!1,name:"neighbourhood",className:"w-full border-solid border-b-[1px] border-gray-300",options:(0,p.IF)((null==g?void 0:g.Items)||[]),placeholder:r.region,addAsParam:U,view:"2"})]}),z&&(0,a.jsxs)("div",{className:`${J?"flex lg:col-span-2":""}`,children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.cityLabel}),(0,a.jsx)(u.default,{className:"w-full border-solid border-b-[1px] border-gray-300",multiSelect:!J,name:"region",options:(0,p.Bn)({cities:W,grouped:I,combinedZipCodes:P}),placeholder:r.chooseCity,addAsParam:U,groupSelectionMode:I,view:"2",defaultValue:V,loading:D})]}),J&&(0,a.jsx)("div",{className:"ml-2 mt-9",children:(0,a.jsxs)("div",{className:"px-2 py-2 border border-gray-300 border-solid cursor-pointer focus:outline-none bg-gray-100 rounded-md w-24 flex items-center",children:[(0,a.jsx)("span",{children:"+"}),(0,a.jsx)("input",{className:"h-full w-full text-center bg-transparent",type:"number",name:"radius",defaultValue:"0",min:10,step:5}),(0,a.jsx)("span",{children:"km"})]})})]}),X&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.typeLabel}),(0,a.jsx)(u.default,{name:"type",className:"w-full border-solid border-b-[1px] border-gray-300",multiSelect:!0,options:0==C?(0,p.ZD)(O||[]):(0,p.ZD)(B||[]),placeholder:r.chooseTypes,addAsParam:U,view:"2",defaultValue:Q,loading:D})]}),q&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"hidden lg:block",children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.priceLabel}),(0,a.jsx)(i.RangeSlider,{min:es.min,max:es.max,step:es.step?es.step:100,value:[],addAsParam:U,currencyPrefix:en,currencySuffix:eo})]}),(0,a.jsxs)("div",{className:"lg:hidden",children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.budgetMin}),(0,a.jsx)(u.default,{className:"w-full border-solid border-b-[1px] border-gray-300",options:ed,name:"pricemin",placeholder:r.budgetMin,addAsParam:U,view:"2"})]}),(0,a.jsxs)("div",{className:"lg:hidden",children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.budgetMax}),(0,a.jsx)(u.default,{className:"w-full border-solid border-b-[1px] border-gray-300",options:eu,placeholder:r.budgetMax,name:"pricemax",addAsParam:U,view:"2"})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 items-end justify-between mb-12",children:[K&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.moreSearchOptions}),(0,a.jsx)(f,{options:ec,placeholder:r.moreSearchOptions,dictionary:(0,b.UK)(r),addAsParam:U,view:"2"})]}),ei&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block mb-3 font-medium",children:r.sortBy}),(0,a.jsx)(u.default,{className:"w-full border-solid border-b-[1px] border-gray-300",name:"order",options:[{label:r.mostRecent,value:"StartCommercialisation desc"},{label:r.priceAsc,value:"Price asc"},{label:r.priceDesc,value:"Price desc"}],placeholder:r.sortBy,view:"2"})]}),(0,a.jsx)("div",{className:`flex items-end justify-center ${U?"lg:hidden":""}`,children:(0,a.jsxs)(o.default,{type:"primary",buttonType:"submit",className:"w-full md:w-auto px-8",children:[(0,a.jsx)(d.A,{icon:"FaMagnifyingGlass",className:"inline-block mr-2",width:16,height:16}),r.search]})}),(0,a.jsxs)("div",{className:"flex justify-end items-end gap-4",children:[(0,a.jsxs)("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 hover:bg-gray-100 rounded transition-colors","aria-label":r.listView,children:[(0,a.jsx)(d.A,{icon:"FaListUl",width:20,height:20}),(0,a.jsx)("span",{className:"hidden sm:inline",children:r.listView})]}),(0,a.jsxs)("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 hover:bg-gray-100 rounded transition-colors","aria-label":r.mapsView,children:[(0,a.jsx)(d.A,{icon:"FaMapLocation",width:20,height:20}),(0,a.jsx)("span",{className:"hidden sm:inline",children:r.mapsView})]})]})]})]}))},v=e=>{let{chrome:l,labels:r,filter:i,apiParams:s,configuredWebIDs:n,filterOptionsQuery:o,countries:d,neighbourhoods:u,priceRanges:c,pageSlug:p,lang:m}=e;return(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(h,{chrome:l,labels:r,filter:i,apiParams:s,configuredWebIDs:n,filterOptionsQuery:o,countries:d,neighbourhoods:u,priceRanges:c,pageSlug:p,lang:m})})})}},41394:()=>{},55554:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>h});var a=r(95155),t=r(12115),i=r(89925),s=r(47650),n=r(73321),o=r(66226),d=r(10412),u=r(45332),c=r(4948),p=r(98630),m=r(83711);function b(e){let{labels:l}=e,{pending:r}=(0,s.useFormStatus)();return(0,a.jsx)(d.default,{type:"secondary",className:`w-full xl:w-auto px-8 !px-24 py-4 h-full !rou
1nded-none inline-flex items-center justify-center gap-2 ${r?"cursor-wait":""}`,style:{borderRadius:0},label:l.sortBy,buttonType:"submit",disabled:r,"aria-busy":r,children:(0,a.jsx)(u.A,{active:r,children:l.search})})}let f=e=>{var l,r;let{lang:i,labels:s,filterOptionsQuery:d,groupZipcodes:u=!0,priceranges:f,chrome:h,showParentCities:v=!1,apiParams:g={},webIDsForOptions:x,preselectTypeFromApiParams:y=!1,showGoalSwitch:j=!1,showGoal:w=!1,showCity:N=!1,showType:S=!1,showPrice:M=!1}=e,I=(0,n.useSearchParams)(),{loading:P,citiesSale:D,citiesRent:_,typesSale:$,typesRent:A}=(0,p.e)(d),k=e=>{if(!x)return e;let l=x.toString().split(",").map(e=>e.trim());return e.filter(e=>{var r;return l.includes(null==(r=e.WebID)?void 0:r.toString())})},C=(0,c.Bn)({cities:D||[],grouped:v,combinedZipCodes:u}),G=(0,c.Bn)({cities:_||[],grouped:v,combinedZipCodes:u}),T=(0,c.ZD)(k($||[])),Z=(0,c.ZD)(k(A||[])),W=(0,t.useRef)(null),R=(0,t.useMemo)(()=>{if((null==g?void 0:g.Goal)!==void 0)return Number(g.Goal);let e=I.get("goal");return null!==e?Number(e):0},[null==g?void 0:g.Goal,I]),F=(0,t.useMemo)(()=>{if(!w)return R;if((null==g?void 0:g.Goal)!==void 0)return Number(g.Goal);let e=I.get("goal");return null!==e?Number(e):j?0:null},[null==g?void 0:g.Goal,I,j,w,R]),[V,L]=(0,t.useState)(F),O=w?V:R,B=(0,m.X)(h),Q=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e.length>0?Number(e[0]):null),l&&setTimeout(()=>{var e;return null==(e=W.current)?void 0:e.requestSubmit()},0)},E=1===O?G:C,U=1===O?Z:T,Y=(0,t.useMemo)(()=>{if(!(null==g?void 0:g.Zips))return[];let e=g.Zips.toString().split(",").map(e=>e.trim()),l=[...C,...G],r=l=>{for(let a of l)if(a.options){let e=r(a.options);if(e)return e}else if(a.value){let[,l]=a.value.split("|");if(l){let r=l.split("-");if(r.length===e.length&&e.every(e=>r.includes(e)))return a.value}}return null},a=l=>{for(let r of l)if(r.options){let e=a(r.options);if(e)return e}else if(r.value){let[,l]=r.value.split("|");if(l){let a=l.split("-");if(e.some(e=>a.includes(e)))return r.value}}return null},t=r(l)||a(l);return t?[t]:[]},[null==g?void 0:g.Zips,C,G]),z=(0,t.useMemo)(()=>{if(!y||!(null==g?void 0:g.WebIDs))return[];let e=g.WebIDs.toString().split(",").map(e=>e.trim()),l=(1===O?Z:T).map(e=>{var l;return null==(l=e.value)?void 0:l.toString()});return e.filter(e=>l.includes(e))},[y,null==g?void 0:g.WebIDs,O,T,Z]),X=null!=O&&(null==f||null==(l=f.Items)?void 0:l.filter(e=>e.Goal==O).map(e=>({label:(0,c.vv)(e.Min),value:e.Min})))||[],K=null!=O&&(null==f||null==(r=f.Items)?void 0:r.filter(e=>e.Goal==O).map(e=>({label:(0,c.vv)(e.Max),value:e.Max})))||[],q=[{label:s.forSale||s.forSaleAlt,value:0},{label:s.forRent,value:1}],H=w&&j;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"lang",value:i,ref:e=>{W.current=(null==e?void 0:e.closest("form"))??null}}),!w&&(0,a.jsx)("input",{type:"hidden",name:"goal",value:R}),H&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("div",{className:"inline-flex rounded-lg border border-secondary overflow-hidden",children:q.map((e,l)=>(0,a.jsx)("button",{type:"button",onClick:()=>Q([e.value],!0),className:`px-8 py-4 text-sm tracking-wide uppercase transition-colors duration-200 ${l>0?"border-l border-gray-200":""} ${V===e.value?"bg-primary text-white":"bg-white"}`,children:e.label},e.value))}),(0,a.jsx)("input",{type:"hidden",name:"goal",value:V??""})]}),(0,a.jsxs)("div",{className:"flex flex-col xl:flex-row items-stretch bg-background !rounded-lg shadow-lg text-primary",children:[N&&(0,a.jsx)("div",{className:`flex-1 min-w-0 border-b xl:border-b-0 xl:border-r border-gray-200 ${!j?"rounded-t-lg xl:rounded-t-none xl:rounded-l-lg":""}`,children:(0,a.jsx)(o.default,{name:"region",options:E,placeholder:s.city,className:"w-full h-full bg-transparent px-2",multiSelect:!0,collapseTags:!0,groupSelectionMode:v,border:!1,rounded:"none",view:B,defaultValue:Y,loading:P})}),S&&(0,a.jsx)("div",{className:"flex-1 min-w-0 border-b xl:border-b-0 xl:border-r border-gray-200",children:(0,a.jsx)(o.default,{name:"type",options:U,placeholder:s.typeLabel,className:"w-full h-full bg-background px-2",multiSelect:!1,border:!1,rounded:"none",view:B,defaultValue:z,loading:P})}),M&&(0,a.jsx)("div",{className:"flex-1 min-w-0 border-b xl:border-b-0 xl:border-r border-gray-200",children:(0,a.jsx)(o.default,{name:"pricemin",options:X,placeholder:s.budgetMin,className:"w-full h-full bg-background px-2",multiSelect:!1,border:!1,rounded:"none",view:B})}),M&&(0,a.jsx)("div",{className:"flex-1 min-w-0 border-b xl:border-b-0 xl:border-r border-gray-200",children:(0,a.jsx)(o.default,{name:"pricemax",options:K,placeholder:s.budgetMax,className:"w-full h-full bg-background px-2",multiSelect:!1,border:!1,rounded:"none",view:B})}),(0,a.jsx)("div",{className:"flex-shrink-0 rounded-b-lg xl:rounded-b-none xl:rounded-r-lg overflow-hidden",children:(0,a.jsx)(b,{labels:s})})]})]})},h=e=>{let{lang:l,pageSlug:r,labels:s,filterOptionsQuery:n,groupZipcodes:o,showGoalFilter:d,goalLabels:u,priceranges:c,chrome:p,showParentCities:m,apiParams:b,webIDsForOptions:h,preselectTypeFromApiParams:v,showGoalSwitch:g,showGoal:x,showCity:y,showType:j,showPrice:w}=e;return x||y||j||w?(0,a.jsx)(i.A,{lang:l,pageSlug:r,filterOptionsQuery:n,groupZipcodes:o,showGoal:d,goalLabels:u,children:(0,a.jsx)("div",{className:"property-filter-v6 w-full",children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(f,{lang:l,labels:s,filterOptionsQuery:n,groupZipcodes:o,priceranges:c,chrome:p,showParentCities:m,apiParams:b,webIDsForOptions:h,preselectTypeFromApiParams:v,showGoalSwitch:g,showGoal:x,showCity:y,showType:j,showPrice:w})})})}):null}},65111:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>g});var a=r(95155),t=r(12115),i=r(2136),s=r(73321),n=r(37206),o=r(10412),d=r(45332),u=r(66226),c=r(78285),p=r(4948),m=r(98630),b=r(83711),f=r(46061);let h=(0,n.default)(()=>r.e(2044).then(r.bind(r,52044)),{loadableGenerated:{webpack:()=>[52044]}}),v=e=>{let{filter:l,labels:r,apiParams:n,configuredWebIDs:v,filterOptionsQuery:g,neighbourhoods:x,countries:y,priceRanges:j,chrome:w,pageSlug:N,lang:S="nl"}=e,M=(0,s.useRouter)(),[I,P]=(0,t.useTransition)(),D=Object.fromEntries((0,s.use
1SearchParams)().entries()),_=l.showParentCities||!1,$=l.groupZipcodes??!0,{loading:A,citiesSale:k,citiesRent:C,typesSale:G,typesRent:T}=(0,m.e)(g),[Z,W]=(0,t.useState)(Number((null==D?void 0:D.goal)??(null==n?void 0:n.Goal)??0)),[R,F]=(0,t.useState)(""),V=(1==Z?C:k).filter(e=>!R||e.CountryID==R),L=[...G||[],...T||[]],O=(0,t.useMemo)(()=>(0,p.Bn)({cities:V,grouped:_,combinedZipCodes:$}),[V,_,$]),B=(0,t.useMemo)(()=>{if(!(null==n?void 0:n.Zips))return[];let e=n.Zips.toString().split(",").map(e=>e.trim()),l=r=>{for(let a of r)if(a.options){let e=l(a.options);if(e)return e}else if(a.value){let[,l]=a.value.split("|");if(l){let r=l.split("-");if(r.length===e.length&&e.every(e=>r.includes(e)))return a.value}}return null},r=l=>{for(let a of l)if(a.options){let e=r(a.options);if(e)return e}else if(a.value){let[,l]=a.value.split("|");if(l){let r=l.split("-");if(e.some(e=>r.includes(e)))return a.value}}return null},a=l(O||[])||r(O||[]);return a?[a]:[]},[null==n?void 0:n.Zips,O]),Q=v||(null==n?void 0:n.WebIDs),E=(0,t.useMemo)(()=>{if(!Q)return G;let e=Q.toString().split(",").map(e=>e.trim());return(null==G?void 0:G.filter(l=>{var r;return e.includes(null==(r=l.WebID)?void 0:r.toString())}))||[]},[Q,G]),U=(0,t.useMemo)(()=>{if(!Q)return T;let e=Q.toString().split(",").map(e=>e.trim());return(null==T?void 0:T.filter(l=>{var r;return e.includes(null==(r=l.WebID)?void 0:r.toString())}))||[]},[Q,T]),Y=(0,t.useMemo)(()=>{var e;if(!v||!(null==n?void 0:n.WebIDs))return[];let l=n.WebIDs.toString().split(",").map(e=>e.trim()),r=(null==(e=0==Z?E:U)?void 0:e.map(e=>{var l;return null==(l=e.WebID)?void 0:l.toString()}))||[];return l.filter(e=>r.includes(e))},[null==n?void 0:n.WebIDs,Z,E,U]),z=(0,t.useCallback)(e=>{var a,t,i;e.preventDefault();let s=new FormData(e.currentTarget),n=(null==(a=s.get("region"))?void 0:a.toString())||"",o=(null==(t=s.get("type"))?void 0:t.toString())||"",d=(null==(i=s.get("goal"))?void 0:i.toString())??"",u=n&&!n.includes(","),c=o&&!o.includes(","),m="";if(""!==d&&l.showGoal){let e="1"===d?r.forRent:r.forSale;e&&(m=(0,p.Yv)(e))}let b="";if(u&&n.includes("|")){let[e,l]=n.split("|");if(e)if(!$&&l){let r=l.split("-")[0];b=(0,p.Yv)(`${e}-${r}`)}else b=(0,p.Yv)(e)}let f="";if(c){let e=L.find(e=>{var l;return(null==(l=e.WebID)?void 0:l.toString())===o});(null==e?void 0:e.Name)&&(f=(0,p.Yv)(e.Name))}if(N&&(m||b||f)){let e=new URLSearchParams,l=["region","type","goal"];s.forEach((r,a)=>{l.includes(a)||""===r||null===r||e.set(a,r.toString())});let r=`/${S}/${N}/`;m&&(r+=`${m}/`),b&&(r+=`${b}/`),f&&(r+=`${f}/`);let a=e.toString();a&&(r+=`?${a}`),P(()=>{M.push(r)});return}let h=new URLSearchParams;s.forEach((e,l)=>{("goal"===l?""!==e:e)&&h.set(l,e.toString())});let v=N?`/${S}/${N}/`:window.location.pathname;P(()=>{M.push(`${v}?${h.toString()}`)})},[L,N,S,M,l.showGoal,r,P,$]),X=(0,b.X)(w),K=l.instantSearch||!1,q=l.showGoal||!1,H=l.showCity||!1,J=l.showType||!1,ee=l.showExtra||!1,el=l.showPrice||!1,er=l.showStreet||!1,ea=l.showRadius||!1,et=l.showNeighbourHoods||!1,ei=l.showFurnished||!1,es=l.showGarden||!1,en=l.showTerrace||!1,eo=l.showCountry||!1,ed="",eu={min:0,max:2e6,step:1e3};1==Z&&(eu={min:0,max:3e3,step:100}),l.priceMax&&(eu.max=l.priceMax),l.priceMin&&(eu.min=l.priceMin),l.priceStep&&(eu.step=l.priceStep);let ec="€ ",ep="";(null==w?void 0:w.priceNotation)==="after"&&(ec="",ep=" €");let em=(j[Z]||j[0]||[]).map(e=>({label:`${(0,p.vv)(e.Min,ec,ep)}`,value:e.Min})),eb=(j[Z]||j[0]||[]).map(e=>({label:`${(0,p.vv)(e.Max,ec,ep)}`,value:e.Max})),ef=[{label:r.bedrooms,value:"bedrooms",search:0,public:!0},{label:r.bathRooms,value:"bathrooms",search:0,public:!0},{label:r.garages,value:"garages",search:0,public:!0}];ei&&ef.push({label:r.hasFurnished,value:"furnished",search:0,public:!0,type:"boolean"}),es&&ef.push({label:r.hasGarden,value:"garden",search:0,public:!0,type:"boolean"}),en&&ef.push({label:r.hasTerrace,value:"terrace",search:0,public:!0,type:"boolean"});let eh=[q,H,J,ee,el,er,ea,et,eo].filter(Boolean).length;return 0==eh?null:(K||(eh+=1),1==eh&&(ed="lg:max-w-2xl mx-auto"),2==eh&&(ed="lg:max-w-6xl mx-auto"),(0,a.jsx)("form",{onSubmit:z,"data-mobile-staged-search":"true",className:` lg:block ${ed}`,children:(0,a.jsxs)("div",{className:`grid grid-cols-1 ${{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"md:grid-cols-3 lg:grid-cols-4",5:"md:grid-cols-3 xl:grid-cols-5",6:"md:grid-cols-3 xl:grid-cols-6",7:"md:grid-cols-3 xl:grid-cols-7"}[eh]} gap-8 items-center`,children:[q&&(0,a.jsx)("div",{children:(0,a.jsx)(u.default,{name:"goal",placeholder:r.goal,options:[{label:r.forSale,value:0},{label:r.forRent,value:1}],onChange:e=>{W(Number(e[0]??0))},addAsParam:K,view:X})}),er&&(0,a.jsx)("div",{children:(0,a.jsx)(c.A,{name:"streetname",placeholder:r.street,defaultValue:D.streetname,view:X})}),eo&&(0,a.jsx)("div",{children:(0,a.jsx)(u.default,{name:"country",options:(0,p.AQ)(y),placeholder:r.country,addAsParam:K,onChange:e=>{F(e)},view:X})}),et&&(0,a.jsx)("div",{children:(0,a.jsx)(u.default,{multiSelect:!1,name:"neighbourhood",options:(0,p.IF)((null==x?void 0:x.Items)||[]),placeholder:r.region,addAsParam:K,view:X})}),H&&(0,a.jsxs)("div",{className:`${ea?"flex lg:col-span-2":""}`,children:[(0,a.jsx)(u.default,{className:"flex-1",multiSelect:!ea,name:"region",options:(0,p.Bn)({cities:V,grouped:_,combinedZipCodes:$}),placeholder:r.city,addAsParam:K,groupSelectionMode:_,view:X,defaultValue:B,loading:A}),ea&&(0,a.jsxs)("div",{className:"px-2 py-2 ml-2 border border-gray-300 border-solid cursor-pointer focus:outline-none bg-gray-100 rounded-md w-24 flex items-center",children:[(0,a.jsx)("span",{children:"+"}),(0,a.jsx)("input",{className:"h-full w-full text-center",type:"number",name:"radius",defaultValue:"0",min:10,step:5}),(0,a.jsx)("span",{children:"km"})]})]}),J&&(0,a.jsx)("div",{className:"",children:(0,a.jsx)(u.default,{name:"type",multiSelect:!0,options:0==Z?(0,p.ZD)(E||[]):(0,p.ZD)(U||[]),placeholder:r.typeLabel,addAsParam:K,view:X,defaultValue:Y,loading:A})}),ee&&(0,a.jsx)("div",{className:"",children:(0,a.jsx)(h,{options:ef,placeholder:r.moreSearchOptions,dictionary:(0,f.UK)(r),addAsParam:K,view:X})}),el&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(i.RangeSlider,{min:eu.min,max:eu.max,step:eu.step?eu.step:100,value:[],addAsParam:K,
1currencyPrefix:ec,currencySuffix:ep})}),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(u.default,{options:em,name:"pricemin",placeholder:r.budgetMin,addAsParam:K,view:X})}),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(u.default,{options:eb,placeholder:r.budgetMax,name:"pricemax",addAsParam:K,view:X})})]}),(0,a.jsx)("div",{className:`flex items-center ${K?"lg:hidden":""}`,children:(0,a.jsx)(o.default,{type:"secondary",className:`w-full flex-1 rounded-r-lg inline-flex items-center justify-center gap-2 ${I?"cursor-wait":""}`,label:r.search,buttonType:"submit",disabled:I,"aria-busy":I,children:(0,a.jsx)(d.A,{active:I,children:r.search})})})]})}))},g=e=>{let{chrome:l,labels:r,filter:i,apiParams:s,configuredWebIDs:n,filterOptionsQuery:o,countries:d,neighbourhoods:u,priceRanges:c,pageSlug:p,lang:m}=e;return(0,a.jsx)("div",{className:"property-filter",children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(v,{chrome:l,labels:r,filter:i,apiParams:s,configuredWebIDs:n,filterOptionsQuery:o,countries:d,neighbourhoods:u,priceRanges:c,pageSlug:p,lang:m})})})}},77582:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>p});var a=r(95155),t=r(12115),i=r(89925),s=r(66226),n=r(10412),o=r(4948),d=r(98630);let u="relative after:hidden lg:after:block after:w-[1px] after:bg-white after:absolute after:opacity-50 after:-right-6 after:top-0 after:bottom-0";function c(e){let{labels:l,goal:r,configuredWebIDs:t,webIDs:i,zips:c,priceRangeItems:p=[],filterOptionsQuery:m,showCity:b=!1,showType:f=!1,showPrice:h=!1}=e,{loading:v,citiesSale:g,citiesRent:x,typesSale:y,typesRent:j}=(0,d.e)(m),w=1===Number(r)?x:g,N=1===Number(r)?j:y,S=(0,o.Bn)({cities:w||[]}),M=t||i,I=M?(N||[]).filter(e=>{var l;return M.toString().split(",").map(e=>e.trim()).includes(null==(l=e.WebID)?void 0:l.toString())}):N||[],P=[];if(c){let e=c.toString().split(",").map(e=>e.trim()),l=null==S?void 0:S.find(l=>{if(!l.value)return!1;let[,r]=l.value.split("|");if(!r)return!1;let a=r.split("-");return a.length===e.length&&e.every(e=>a.includes(e))});l||(l=null==S?void 0:S.find(l=>{if(!l.value)return!1;let[,r]=l.value.split("|");return!!r&&e.some(e=>r.split("-").includes(e))})),l&&(P=[l.value])}let D=[];if(t&&i){let e=i.toString().split(",").map(e=>e.trim()),l=(null==I?void 0:I.map(e=>{var l;return null==(l=e.WebID)?void 0:l.toString()}))||[];D=e.filter(e=>l.includes(e))}let _=[b,f,h].filter(Boolean).length+2;return(0,a.jsxs)("div",{className:`grid md:grid-cols-2 ${{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5"}[_]} gap-3 md:gap-12`,children:[b&&(0,a.jsxs)("div",{className:u,children:[(0,a.jsx)("label",{className:"block text-xs opacity-50 mb-1",children:l.cityLabel}),(0,a.jsx)(s.default,{options:S,name:"region",border:!1,className:"w-full bg-transparent border-b border-b-[var(--color-primary-text)]",multiSelect:!0,placeholder:l.chooseCity,specialPlaceholder:!1,defaultValue:P,loading:v})]}),f&&(0,a.jsxs)("div",{className:u,children:[(0,a.jsx)("label",{className:"block text-xs opacity-50 mb-1",children:l.typeLabel}),(0,a.jsx)(s.default,{options:I?I.map(e=>({label:`${e.Name}`,value:e.WebID})):[],name:"type",border:!1,className:"w-full bg-transparent border-b border-b-[var(--color-primary-text)]",multiSelect:!0,placeholder:l.chooseTypes,specialPlaceholder:!1,defaultValue:D,loading:v})]}),h&&(0,a.jsxs)("div",{className:u,children:[(0,a.jsx)("label",{className:"block text-xs opacity-50 mb-1",children:l.priceLabel}),(0,a.jsx)(s.default,{border:!1,options:p.map(e=>({label:`€ ${e.Min.toLocaleString("nl-BE")} - € ${e.Max.toLocaleString("nl-BE")}`,value:`${e.Min}-${e.Max}`})),name:"budget",placeholder:l.choosePrice,className:"w-full bg-transparent border-b border-b-[var(--color-primary-text)]",specialPlaceholder:!1})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs opacity-50 mb-1",children:l.bedrooms}),(0,a.jsx)(s.default,{border:!1,options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"3+",value:0}],name:"bedrooms",className:"w-full bg-transparent border-b border-b-[var(--color-primary-text)]",placeholder:l.numberOfBedrooms,specialPlaceholder:!1})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-xs opacity-0 mb-1",children:l.search}),(0,a.jsx)(n.default,{className:"w-full",type:"secondary",buttonType:"submit",children:l.search})]})]})}r(41394);let p=e=>{let{lang:l,pageSlug:r,labels:s,goal:n,configuredWebIDs:o,webIDs:d,zips:u,priceRangeItems:p=[],filterOptionsQuery:m,showCity:b,showType:f,showPrice:h}=e;return(0,a.jsx)("div",{className:"property-filter-5",children:(0,a.jsx)(i.A,{lang:l,pageSlug:r,filterOptionsQuery:m,children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(c,{labels:s,goal:Number(n),configuredWebIDs:o,webIDs:d,zips:u,priceRangeItems:p,filterOptionsQuery:m,showCity:b,showType:f,showPrice:h})})})})}},81654:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>g});var a=r(95155),t=r(12115),i=r(89925),s=r(2136),n=r(37206),o=r(10412),d=r(5514),u=r(66226),c=r(4948),p=r(98630);function m(e){let{query:l,goal:r,labels:t,showParentCities:i,groupZipcodes:s,zips:n,webIDs:o,configuredWebIDs:d,showCityFilter:m,showTypeFilter:b}=e,{citiesSale:f,citiesRent:h,typesSale:v,typesRent:g,loading:x}=(0,p.e)(l),y=(0,c.Bn)({cities:(0==r?f:h)||[],grouped:i,combinedZipCodes:s}),j=[];if(n){var w;let e,l,r,a=n.toString().split(",").map(e=>e.trim()),t=(w=y||[],e=l=>{for(let r of l)if(r.options){let l=e(r.options);if(l)return l}else if(r.value){let[,e]=r.value.split("|");if(e){let l=e.split("-");if(l.length===a.length&&a.every(e=>l.includes(e)))return r}}return null},l=e=>{for(let r of e)if(r.options){let e=l(r.options);if(e)return e}else if(r.value){let[,e]=r.value.split("|");if(e){let l=e.split("-");if(a.some(e=>l.includes(e)))return r}}return null},(null==(r=e(w)||l(w))?void 0:r.value)??null);t&&(j=[t])}let N=d||o,S=e=>{if(!N)return e;let l=N.toString().split(",").map(e=>e.trim());return(null==e?void 0:e.filter(e=>{var r;return l.includes(null==(r=e.WebID)?void 0:r.toString())}))||[]},M=S(v||[]),I=S(g||[]),P=[];if(d&&o){let e=o.toString().split(",").map(e=>e.trim()),l=0==r?M:I,a=(null==l?void 0:l.map(e=>{var l;return null==(l=e.WebID)?void 0:l.toString()}))||[];P=e.filter(e=>a.includes(e))}return(0,a.jsxs)(a.Fragment,{children:[m&&(0,a.jsx)("div",{children:(0,a.jsx)(u.default,{multiSelect:!0,name:"region",options:y,placeholder:t.city||"City",groupSelectionMode:i,defaultValue:j,loading:x})}),b&&(0,a.jsx)("div",{children:(0,a.jsx)(u.default,{name:"type",multiSelect:!0,options:0==r?(0,c.ZD)(M):(0,c.ZD)(I),placeholder:t.typeLabel,defaultValue:P,loading:x})})]})}var b=r(46061);let f=(0,n.default)(()=>r.e(2044).then(r.bind(r,52044)),{loadableGenerated:{webpack:()=>[52044]}}),h={1:"grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7"},v=e=>{let{filterOptionsQuery:l,goal:r,labels:i,showParentCities:n,groupZipcodes:u,zips:c,webIDs:p,configuredWebIDs:v,showCityFilter:g,showTypeFilter:x,showRoomFilter:y,showPriceFilter:j,roomsSearchOptions:w,priceRange:N,numberOfFilters:S}=e;return(0,a.jsx)("div",{className:"property-filter relative bg-white z-10 shadow-lg",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,a.jsxs)("div",{className:`flex-1 grid ${h[S]} gap-6 items-center p-6`,children:[(0,a.jsx)(m,{query:l,goal:r,labels:i,showParentCities:n,groupZipcodes:u,...null!=c?{zips:String(c)}:{},...null!=p?{webIDs:String(p)}:{},...null!=v?{configuredWebIDs:String(v)}:{},showCityFilter:g,showTypeFilter:x}),y&&(0,a.jsx)("div",{children:(0,a.jsx)(f,{options:w,placeholder:i.moreSearchOptions,dictionary:(0,b.UK)(i)})}),j&&(0,a.jsx)("div",{children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(s.RangeSlider,{min:N.min,max:N.max,step:N.step?N.step:100,value:[]})})})]}),(0,a.jsx)("div",{className:"w-full shrink-0 max-md:border-t max-md:border-neutral-200 md:w-auto md:self-stretch",children:(0,a.jsx)(o.default,{type:"secondary",className:"flex w-full min-h-14 items-center justify-center md:h-full md:w-16 md:min-
1h-0 rounded-none",label:i.search,buttonType:"submit",children:(0,a.jsx)(d.A,{icon:"FaMagnifyingGlass",className:"inline-block text-xl",width:20,height:20})})})]})})},g=e=>{let{lang:l,pageSlug:r,filterOptionsQuery:s,groupZipcodes:n,showGoalFilter:o,goalLabels:d,goal:u,labels:c,showParentCities:p,zips:m,webIDs:b,configuredWebIDs:f,showCityFilter:h,showTypeFilter:g,showRoomFilter:x,showPriceFilter:y,roomsSearchOptions:j,priceRange:w,numberOfFilters:N}=e;return(0,a.jsx)(i.A,{lang:l,pageSlug:r,filterOptionsQuery:s,groupZipcodes:n,showGoal:o,goalLabels:d,children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(v,{filterOptionsQuery:s,goal:u,labels:c,showParentCities:p,groupZipcodes:n,zips:m,webIDs:b,configuredWebIDs:f,showCityFilter:h,showTypeFilter:g,showRoomFilter:x,showPriceFilter:y,roomsSearchOptions:j,priceRange:w,numberOfFilters:N})})})}},95001:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>v});var a=r(95155),t=r(12115),i=r(89925),s=r(73321),n=r(66226),o=r(78285),d=r(10412),u=r(5514),c=r(4948),p=r(98630),m=r(83711);function b(e){let{label:l,children:r}=e;return(0,a.jsxs)("div",{className:"property-filter-v7__filter-field",children:[(0,a.jsx)("span",{className:"property-filter-v7__filter-label",children:l}),r]})}function f(e){let{name:l,options:r,value:t,onChange:i}=e;return(0,a.jsxs)("div",{className:"property-filter-v7__pills",role:"group",children:[r.map(e=>{let l=t===e.value;return(0,a.jsx)("button",{type:"button",className:`property-filter-v7__pill ${l?"property-filter-v7__pill--active":""}`,"aria-pressed":l,onClick:()=>i(e.value),children:e.label},String(e.value))}),(0,a.jsx)("input",{type:"hidden",name:l,value:t})]})}let h=e=>{let{lang:l,pageSlug:r,labels:i,filterOptionsQuery:h,groupZipcodes:v=!0,chrome:g,showParentCities:x=!1,apiParams:y={},webIDsForOptions:j,preselectTypeFromApiParams:w=!1,showGoal:N=!1,showCity:S=!1,showType:M=!1,showPrice:I=!1,showRooms:P=!1}=e,D=(0,s.useRouter)(),_=(0,s.useSearchParams)(),$=(0,t.useRef)(null),{loading:A,citiesSale:k,citiesRent:C,typesSale:G,typesRent:T}=(0,p.e)(h),Z=e=>{if(!j)return e;let l=j.toString().split(",").map(e=>e.trim());return e.filter(e=>{var r;return l.includes(null==(r=e.WebID)?void 0:r.toString())})},W=(0,c.Bn)({cities:k||[],grouped:x,combinedZipCodes:v}),R=(0,c.Bn)({cities:C||[],grouped:x,combinedZipCodes:v}),F=(0,c.ZD)(Z(G||[])),V=(0,c.ZD)(Z(T||[])),L=(0,t.useMemo)(()=>{if((null==y?void 0:y.Goal)!==void 0)return Number(y.Goal);let e=_.get("goal");return null!==e&&""!==e?Number(e):0},[null==y?void 0:y.Goal,_]),O=(0,t.useMemo)(()=>{if(!N)return L;if((null==y?void 0:y.Goal)!==void 0)return Number(y.Goal);let e=_.get("goal");return""===e?"":null!==e?Number(e):0},[null==y?void 0:y.Goal,_,N,L]),[B,Q]=(0,t.useState)(N?O:L),[E,U]=(0,t.useState)(!1),[Y,z]=(0,t.useState)(_.get("bedrooms")||""),[X,K]=(0,t.useState)(_.get("bathrooms")||""),[q,H]=(0,t.useState)(_.get("pricemin")||""),[J,ee]=(0,t.useState)(_.get("pricemax")||""),[el,er]=(0,t.useState)(0),ea=N?B:L,et=null==g?void 0:g.customIcons,ei=(0,m.X)(g),es="3"===ei,en="2"===ei?"property-filter-v7--input-v2":"3"===ei?"property-filter-v7--input-v3":"4"===ei?"property-filter-v7--input-v4":"property-filter-v7--input-v1",eo=es?{rounded:"full"}:{},ed=I||P,eu=1===ea?R:W,ec=1===ea?V:F,ep=(0,t.useMemo)(()=>[{label:i.allTypes||i.showAllProperties,value:""},...ec],[i,ec]),em=(0,t.useMemo)(()=>{let e=_.get("region");if(e)return e.includes(",")?e.split(","):[e];if(!(null==y?void 0:y.Zips))return[];let l=y.Zips.toString().split(",").map(e=>e.trim()),r=[...W,...R],a=(e,r)=>{for(let t of e)if(t.options){let e=a(t.options,r);if(e)return e}else if(t.value){let[,e]=String(t.value).split("|");if(e){let a=e.split("-");if(r?a.length===l.length&&l.every(e=>a.includes(e)):l.some(e=>a.includes(e)))return String(t.value)}}return null},t=a(r,!0)||a(r,!1);return t?[t]:[]},[null==y?void 0:y.Zips,W,R,_]),eb=(0,t.useMemo)(()=>{let e=_.get("type");if(e)return e.includes(",")?e.split(","):[e];if(!w||!(null==y?void 0:y.WebIDs))return[];let l=y.WebIDs.toString().split(",").map(e=>e.trim()),r=(1===ea?V:F).map(e=>{var l;return null==(l=e.value)?void 0:l.toString()});return l.filter(e=>r.includes(e))},[_,w,null==y?void 0:y.WebIDs,ea,F,V]),ef=[{label:i.all,value:""},{label:i.forSale,value:0},{label:i.forRent,value:1}],eh=[{label:i.any,value:""},{label:"1+",value:1},{label:"2+",value:2},{label:"3+",value:3},{label:"4+",value:4}],ev=[{label:i.any,value:""},{label:"1+",value:1},{label:"2+",value:2},{label:"3+",value:3}],eg=i.searchLocationPlaceholder,ex=i.moreFilters,ey=i.resetFilters,ej=i.apply,ew=i.priceLabel,eN=i.bedrooms,eS=i.bathrooms;return(0,a.jsxs)("div",{className:`property-filter-v7__card property-filter text-primary ${en}`,ref:e=>{$.current=(null==e?void 0:e.closest("form"))??null},children:[!N&&(0,a.jsx)("input",{type:"hidden",name:"goal",value:L}),N&&(0,a.jsx)("input",{type:"hidden",name:"goal",value:B}),(0,a.jsxs)("div",{className:"property-filter-v7__bar",children:[N&&(0,a.jsx)("div",{className:`property-filter-v7__goal-toggle${es?" property-filter-v7__goal-toggle--pill":""}`,role:"group","aria-label":i.goal,children:ef.map(e=>{let l=B===e.value;return(0,a.jsx)("button",{type:"button",className:`property-filter-v7__goal-btn ${l?"property-filter-v7__goal-btn--active":""}`,"aria-pressed":l,onClick:()=>Q(e.value),children:e.label},String(e.value))})}),(0,a.jsxs)("div",{className:"property-filter-v7__inputs",children:[S&&(0,a.jsxs)("div",{className:"property-filter-v7__search",children:[(0,a.jsx)(u.A,{icon:"FaMagnifyingGlass",width:18,height:18,className:"property-filter-v7__search-icon",customIcons:et}),(0,a.jsx)(n.default,{name:"region",options:eu,placeholder:eg,className:"property-filter-v7__region-select w-full h-full",multiSelect:!0,collapseTags:!0,groupSelectionMode:x,view:ei,...eo,specialPlaceholder:!1,defaultValue:em,customIcons:et,loading:A})]},`region-${el}-${ea}`),M&&(0,a.jsx)("div",{className:"property-filter-v7__type",children:(0,a.jsx)(n.default,{name:"type",options:ep,placeholder:i.allTypes||i.showAllProperties,className:"w-full h-full",multiSelect:!1,view:ei,...eo,specialPlaceholder:!1,defaultValue:eb,customIcons:et,loading:A})},`type-${el}-${ea}`),(0,a.jsxs)("div",{className:"property-filter-v7__actions",children:[ed&&(0,a.jsxs)(d.default,{type:"outline",buttonType:"button",className:`property-filter-v7__more-btn inline-flex items-center justify-center gap-2 h-full ${E?"property-filter-v7__more-btn--active":""}`,"aria-expanded":E,onClick:()=>U(e=>!e),label:ex,children:[(0,a.jsx)(u.A,{icon:"FaSliders",width:18,height:18,className:"text-current",customIcons:et}),(0,a.jsx)("span",{children:ex})]}),(0,a.jsx)(d.default,{type:"secondary",className:"property-filter-v7__submit h-full",label:ej,buttonType:"submit",children:ej})]})]})]}),ed&&E&&(0,a.jsxs)("div",{className:"property-filter-v7__panel",children:[(0,a.jsxs)("div",{className:"property-filter-v7__panel-grid",children:[I&&(0,a.jsx)(b,{label:ew,children:(0,a.jsxs)("div",{className:"property-filter-v7__price-range",children:[(0,a.jsx)(o.A,{name:"pricemin",type:"number",placeholder:"Min €",value:q,onChange:e=>H(e.target.value),className:"property-filter-v7__price-input w-full",view:ei}),(0,a.jsx)("span",{className:"property-filter-v7__price-separator",children:"–"}),(0,a.jsx)(o.A,{name:"pricemax",type:"number",placeholder:"Max €",value:J,onChange:e=>ee(e.target.value),className:"property-filter-v7__price-input w-full",view:ei})]})}),P&&(0,a.jsx)(b,{label:eN,children:(0,a.jsx)(f,{name:"bedrooms",o
1ptions:eh,value:Y,onChange:z})}),P&&(0,a.jsx)(b,{label:eS,children:(0,a.jsx)(f,{name:"bathrooms",options:ev,value:X,onChange:K})})]}),(0,a.jsxs)("div",{className:"property-filter-v7__panel-actions",children:[(0,a.jsx)("button",{type:"button",className:"property-filter-v7__reset",onClick:()=>{D.push(`/${l}/${r}/`)},children:ey}),(0,a.jsx)(d.default,{type:"secondary",label:ej,buttonType:"submit",children:ej})]})]})]})};r(6952);let v=e=>{let{lang:l,pageSlug:r,labels:s,filterOptionsQuery:n,groupZipcodes:o,showGoalFilter:d,goalLabels:u,chrome:c,showParentCities:p,apiParams:m,webIDsForOptions:b,preselectTypeFromApiParams:f,showGoal:v,showCity:g,showType:x,showPrice:y,showRooms:j}=e;return(0,a.jsx)(i.A,{lang:l,pageSlug:r,filterOptionsQuery:n,groupZipcodes:o,showGoal:d,goalLabels:u,children:(0,a.jsx)("div",{className:"property-filter property-filter-v7 w-full",children:(0,a.jsx)(t.Suspense,{children:(0,a.jsx)(h,{lang:l,pageSlug:r,labels:s,filterOptionsQuery:n,groupZipcodes:o,chrome:c,showParentCities:p,apiParams:m,webIDsForOptions:b,preselectTypeFromApiParams:f,showGoal:v,showCity:g,showType:x,showPrice:y,showRooms:j})})})})}}}]);

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.