PageSourceSearch

https://www.lomberg.de/wp-content/plugins/sw-immosuite-apps/build/459.e856628b16294d86bea5.js

js lomberg.de collected 2026-10-08 03:22:50 UTC 30,528 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksw_immosuite_apps=globalThis.webpackChunksw_immosuite_apps||[]).push([[459],{3211:(e,t,a)=>{a.d(t,{j:()=>s});var n=a(6989),l=a.n(n),r=a(8767);function s(){}s.fetch=function(e){return(0,r.useQuery)("exposeSearch"+e,(()=>l()({path:"/sw-immosuite/v1/expose/search/"+e})),{enabled:!!e,staleTime:1/0})},s.mapResults=function(e){return(0,r.useQuery)("exposeSearchMapResults",(()=>l()({path:"/sw-immosuite/v1/expose/search-map?"+(e?e.toString():"")})),{enabled:!!e,staleTime:1/0})}},2459:(e,t,a)=>{a.r(t),a.d(t,{ListingApp:()=>J,default:()=>X});var n=a(9196),l=a(9307),r=a(5736);const s=e=>!e.firstChild||e.firstChild.offsetParent===e,i=(e,t)=>{let a=e,n=0;s(t)||(n+=e.offsetTop-t.offsetTop,t=e.offsetParent,n+=-e.offsetTop);do{n+=a.offsetTop,a=a.offsetParent}while(a&&a!==t);return n};let o=null;"undefined"!=typeof CSS&&CSS.supports&&(CSS.supports("position","sticky")?o="sticky":CSS.supports("position","-webkit-sticky")&&(o="-webkit-sticky"));let c=!1;try{const e=Object.defineProperty({},"passive",{get(){c={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch(e){}const m=e=>{const{el:t,onChange:a,unsubs:n,measure:l}=e;if(t===window){const e=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),t=l(e()),r=()=>{Object.assign(t,l(e())),a()};return window.addEventListener("resize",r,c),n.push((()=>window.addEventListener("resize",r,c))),t}{const e=l(t.getBoundingClientRect()),r=new ResizeObserver((()=>{Object.assign(e,l(t.getBoundingClientRect())),a()}));return r.observe(t),n.push((()=>r.disconnect())),e}};var u=function(e){return e[e.stickyTop=0]="stickyTop",e[e.stickyBottom=1]="stickyBottom",e[e.relative=2]="relative",e[e.small=3]="small",e}(u||{});const p=({offsetTop:e=0,offsetBottom:t=0,bottom:a=!1}={})=>{const[n,r]=(0,l.useState)(null);return(0,l.useEffect)((()=>{if(!n||!o)return;const l=[];return((e,t,a)=>{const{bottom:n,offsetBottom:l,offsetTop:r}=a,p=(e=>{let t=e;for(;t=t.parentElement;){const e=getComputedStyle(t,null).getPropertyValue("overflow-y");if(t===document.body)return window;if("auto"===e||"scroll"===e)return t}return window})(e);let d=!1;const f=()=>{d||requestAnimationFrame((()=>{const e=y();e!==_&&I(e),d=!1})),d=!0};let g=p===window?window.scrollY:p.scrollTop;const h=e=>{const{offsetTop:t,height:a}=E,{naturalTop:n}=v,{height:r}=k;return e+t+a>=n+r+T+l},y=()=>{const{height:e}=E,{height:t}=k;return t+r+l<=e?u.small:h(g)?u.stickyBottom:u.relative},w=p!==window&&s(p),E=m({el:p,onChange:f,unsubs:t,measure:({height:e,top:t})=>({height:e,offsetTop:w?t:0})}),b=(e=>{let t=e.parentElement;for(;t&&"contents"===getComputedStyle(t,null).getPropertyValue("display");)t=t.parentElement;return t||window})(e),x=b===window?{top:0,bottom:0}:(e=>{const t=getComputedStyle(e,null);return{top:parseInt(t.getPropertyValue("padding-top"),10),bottom:parseInt(t.getPropertyValue("padding-bottom"),10)}})(b),v=m({el:b,onChange:f,unsubs:t,measure:({height:e})=>({height:e-x.top-x.bottom,naturalTop:b===window?0:i(b,p)+x.top+E.offsetTop})}),k=m({el:e,onChange:f,unsubs:t,measure:({height:e})=>({height:e})});let T=0,_=y();const I=t=>{const a=_;if(_=t,a===u.relative&&(T=-1),t===u.small)return e.style.position=o,void(n?e.style.bottom=`${l}px`:e.style.top=`${r}px`);const{height:s,offsetTop:i}=E,{height:c,naturalTop:m}=v,{height:p}=k;if(t===u.relative)if(e.style.position="relative",T=a===u.stickyTop?Math.max(0,i+g-m+r):Math.max(0,i+g+s-(m+p+l)),n){const t=Math.max(0,c-p-T);e.style.bottom=`${t}px`}else e.style.top=`${T}px`;else e.style.position=o,t===u.stickyBottom?n?e.style.bottom=`${l}px`:e.style.top=s-p-l+"px":n?e.style.bottom=s-p-l+"px":e.style.top=`${r}px`};I(_);const C=e=>{if(e===g)return;const t=e-g;if(g=e,_===u.small)return;const{offsetTop:a,height:n}=E,{naturalTop:s,height:i}=v,{height:o}=k;if(t>0)_===u.stickyTop?e+a+r>s&&(e+a+n<=s+o+Math.max(0,a+g-s+r)+l||I(u.stickyBottom)):_===u.relative&&h(e)&&I(u.stickyBottom);else if(_===u.stickyBottom){if(a+e+n<s+i+l){const t=Math.max(0,a+g+n-(s+o+l));a+e+r>=s+t||I(u.stickyTop)}}else _===u.relative&&a+e+r<s+T&&I(u.stickyTop)},S=p===window?()=>C(window.scrollY):()=>C(p.scrollTop);p.addEventListener("scroll",S,c),p.addEventListener("mousewheel",S,c),t.push((()=>p.removeEventListener("scroll",S)),(()=>p.removeEventListener("mousewheel",S)))})(n,l,{offsetBottom:t,offsetTop:e,bottom:a}),()=>{l.forEach((e=>e()))}}),[n,t,e,a]),r};var d=a(2694);function f(e){const[t,a]=(0,l.useState)((0,d.applyFilters)("mainnavigation_fixed_get_height",0)),r=p({offsetTop:t}),s=(0,l.useRef)(),i=()=>{s.current.style.height=window.innerHeight-t+"px"};return(0,n.useEffect)((()=>{i()}),[t]),(0,n.useEffect)((()=>(s.current&&(r(s.current),(0,d.addFilter)("mainnavigation_fixed_height","swt",(e=>{e&&a(e)}))),()=>{(0,d.removeFilter)("mainnavigation_fixed_height","swt")})),[s]),(0,n.useEffect)((()=>{const e=()=>{i()};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{ref:s},e.children))}var g=a(4168),h=a(5079),y=a(4184),w=a.n(y),E=a(448),b=a(1938),x=a(456),v=a(4372),k=a(3415),T=a(1389),_=a(5157),I=a(5918),C=a(2691),S=a(3211);const M="16rem";function L(e){const t=(0,E.Rx)(),[a,r]=(0,l.useState)(),[s,i]=(0,l.useState)(),[o,c]=(0,l.useState)(),m=S.j.mapResults(o);return(0,l.useEffect)((()=>{r((0,d.applyFilters)("maps_settings","immo"))}),[]),(0,l.useEffect)((()=>
1{if(t&&a){const e=t.buildSearchParams(t.formValues);c(e),i(t.formValues.location)}}),[t,a]),(0,n.createElement)(n.Fragment,null,a&&(0,n.createElement)(g.Leaflet,null,(({Map:t})=>(0,n.createElement)(t,{className:w()((e.fullscreen,"")),zoom:a.zoom,center:a.center},(({map:t})=>(0,n.createElement)(n.Fragment,null,m.data&&(0,n.createElement)(g.LeafletMarkerCluster,null,(0,n.createElement)(N,{leaflet:t,fullscreen:e.fullscreen,searchResult:m.data,searchLocation:s}))))))))}function N(e){const[t,a]=(0,l.useState)(),[r,s]=(0,l.useState)(),[i,o]=(0,l.useState)([]),[c,m]=(0,l.useState)([]);(0,l.useEffect)((()=>{const t=window.L.markerClusterGroup({showCoverageOnHover:!1,removeOutsideVisibleBounds:!1});a(t),t.addTo(e.leaflet);const n=window.L.featureGroup();s(n),n.addTo(e.leaflet)}),[]),(0,l.useEffect)((()=>{e.leaflet.invalidateSize(),e.fullscreen?e.leaflet.scrollWheelZoom.enable():e.leaflet.scrollWheelZoom.disable()}),[e.fullscreen]);const u=e=>{let t;return t="active"==e.status?"fill-ui-primary":"fill-red-600",`\n\t\t\t<svg class="w-8 h-8 animate-bouncedown" viewBox="0 0 150 150" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t<circle cx="75" cy="75" r="75" fill="white"/>\n\t\t\t\t<path class="${t}" fill-rule="evenodd" clip-rule="evenodd" d="M75 138C109.794 138 138 109.794 138 75C138 40.2061 109.794 12 75 12C40.2061 12 12 40.2061 12 75C12 109.794 40.2061 138 75 138ZM75 150C116.421 150 150 116.421 150 75C150 33.5786 116.421 0 75 0C33.5786 0 0 33.5786 0 75C0 116.421 33.5786 150 75 150Z"/>\n\t\t\t\t<path class="${t}" d="M119.969 72.9219C119.969 75.7344 117.625 77.9375 114.969 77.9375H109.969L110.078 102.969C110.078 103.391 110.047 103.812 110 104.234V106.75C110 110.203 107.203 113 103.75 113H101.25C101.078 113 100.906 113 100.734 112.984C100.516 113 100.297 113 100.078 113H95H91.25C87.7969 113 85 110.203 85 106.75V103V93C85 90.2344 82.7656 88 80 88H70C67.2344 88 65 90.2344 65 93V103V106.75C65 110.203 62.2031 113 58.75 113H55H50.0156C49.7813 113 49.5469 112.984 49.3125 112.969C49.125 112.984 48.9375 113 48.75 113H46.25C42.7969 113 40 110.203 40 106.75V89.25C40 89.1094 40 88.9531 40.0156 88.8125V77.9375H35C32.1875 77.9375 30 75.75 30 72.9219C30 71.5156 30.4688 70.2656 31.5625 69.1719L71.625 34.25C72.7187 33.1562 73.9687 33 75.0625 33C76.1562 33 77.4062 33.3125 78.3437 34.0938L118.25 69.1719C119.5 70.2656 120.125 71.5156 119.969 72.9219Z"/>\n\t\t\t</svg>\n\t\t`},p=e=>{let t;return t="active"==e.status?"fill-ui-primary":"fill-red-600",`\n\t\t\t<div class="h-24 w-24 bg-white/25 rounded-full flex items-center justify-center">\n\t\t\t\t<div class="bg-white rounded-full h-12 w-12 text-white text-center flex items-center justify-center">\n\t\t\t\t\t<svg class="w-7 h-7 ${t}" xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512">\x3c!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--\x3e<path d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`};return(0,l.useEffect)((()=>{if(e.searchResult&&window.L.markerClusterGroup){const t=[];e.searchResult.list.map((a=>{if(0==a.lat&&0==a.lng)return;const n=window.L.divIcon({className:"leaflet-data-marker",html:u(a),iconAnchor:[24,24]}),l=window.L.divIcon({className:"leaflet-data-marker",html:p(a),iconAnchor:[48,48]}),r=window.L.marker([a.lat,a.lng],{icon:n});r.icon="pointer",e.leaflet.on("zoomend",(t=>{e.leaflet.getZoom()>=15?"zoomed"!=r.icon&&(r.icon="zoomed",r.setIcon(l)):"pointer"!=r.icon&&(r.setIcon(n),r.icon="pointer")})),t.push([r,a])})),o(t),m(t)}}),[e.searchResult,window.L.markerClusterGroup]),(0,l.useEffect)((()=>
1{if(t&&r){t.clearLayers(),r.clearLayers(),i.forEach((e=>{const a=e[0];e[1].status,t.addLayer(a)}));const a=t.getBounds();a&&a.isValid()&&e.leaflet.fitBounds(a)}}),[t,r,i]),(0,l.useEffect)((()=>{if(e.searchResult&&window.L.markerClusterGroup&&e.searchResult.geojson){const t=window.L.geoJSON(e.searchResult?.geojson,{style:()=>({className:"bg-black stroke-primary-300 fill-primary-500",weight:1,color:"",fillColor:"",fillOpacity:.3})});t.addTo(e.leaflet);const a=t.getBounds();a&&a.isValid()&&e.leaflet.fitBounds(a)}}),[e.searchResult,window.L.markerClusterGroup]),(0,n.createElement)(n.Fragment,null,i.map(((t,a)=>(0,n.createElement)(j,{key:a,leaflet:e.leaflet,marker:t[0],item:t[1]}))))}function j(e){const[t,a]=(0,l.useState)(),[r,s]=(0,l.useState)();return(0,l.useEffect)((()=>{if(e.marker){const t=document.createElement("div");t.style.width=M,e.marker.bindPopup(t),e.marker.on("click",(e=>{s(t)})),a(e.marker)}}),[e.marker]),(0,n.createElement)(n.Fragment,null,r&&(0,l.createPortal)((0,n.createElement)(z,{objectId:e.item.id,onLoad:()=>{var a=e.leaflet.project(e.marker._latlng);a.y-=e.marker._popup._container.clientHeight/2,e.leaflet.panTo(e.leaflet.unproject(a),{animate:!0}),t.update()}}),r))}function z(e){const t=S.j.fetch(e.objectId);return(0,l.useEffect)((()=>{e.onLoad()}),[t.data]),(0,n.createElement)(b.x,{pb:"md"},t.isLoading&&(0,n.createElement)(b.x,{bg:"white",mih:"300px",p:"lg"},(0,n.createElement)(x.O,{height:"12rem",mt:6}),(0,n.createElement)(x.O,{height:8,mt:12}),(0,n.createElement)(x.O,{height:8,mt:6})),t.data&&(0,n.createElement)(v.Z,{w:"100%",shadow:"sm",padding:"lg",radius:"md"},(0,n.createElement)(v.Z.Section,{component:"a",href:t.data.link},t.data.picture?(0,n.createElement)(b.x,{h:"12rem",pos:"relative",dangerouslySetInnerHTML:{__html:t.data.picture}}):(0,n.createElement)(k.Z,{position:"center"},(0,n.createElement)(T.E,{width:"100%",height:"12rem",withPlaceholder:!0}))),(0,n.createElement)(_.K,null,(0,n.createElement)(I.x,{mt:"md"},t.data.category.label),(0,n.createElement)(C.z,{fullWidth:!0,component:"a",href:t.data.link,styles:{root:{color:"#fff!important"}}},(0,h.__)("View Exposé","swia")))))}var F=a(6172),H=a(3515),A=a(7532),R=a(4065),V=a(1521),B=a(47),O=a(8404),W=a(2160),P=a(7526),Z=a(9391);function $(e){const[t,a]=(0,l.useState)(null);(0,l.useEffect)((()=>{t&&window.setTimeout((()=>{t.reInit()}),25)}),[t]);const r=(0,B.k)((()=>({controls:{ref:(0,O.A)("controls"),transition:"opacity 300ms ease",opacity:0},root:{"&:hover":{[`& .${(0,O.A)("controls")}`]:{opacity:1}}}}))),{classes:s}=r();return(0,n.createElement)(n.Fragment,null,1==e.images.length?(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{dangerouslySetInnerHTML:{__html:e.images[0].picture}}),(0,n.createElement)("a",{href:e.link,title:e.title,className:"absolute inset-y-0 cursor-pointer inset-x-10"})):(0,n.createElement)(P.l,{getEmblaApi:a,height:"100%",sx:{flex:1},speed:7,classNames:s},e.images?.map((t=>
1(0,n.createElement)(P.l.Slide,{gap:"xs",key:t.imageId},(0,n.createElement)("div",{dangerouslySetInnerHTML:{__html:t.picture}}),(0,n.createElement)("a",{href:e.link,title:e.title,className:"absolute inset-y-0 cursor-pointer inset-x-10"}))))))}function G(e){const t="reference"==e.status,a=function(e){return(0,l.useMemo)((()=>{const t=[];e.price&&e.price.value?t.push({value:e.price.value,group:"price"}):t.push({value:e.category?.labelType,group:"price"});for(let a=0;a<e.metaFields.length&&t.length<3;a++){let n;"area.numberRooms"==e.metaFields[a].name?n=(0,r.__)("Rm.","swia"):"property[anzahl_schlafzimmer]"==e.metaFields[a].name&&(n=(0,r.__)("BR","swia")),t.push({icon:e.metaFields[a].icon,label:n,value:e.metaFields[a].value})}return t}),[e.metaFields])}(e);return(0,n.createElement)("article",{className:"flex flex-col w-full h-full mx-auto"},(0,n.createElement)("div",{className:"relative flex h-64 overflow-hidden shrink-0"},e.picture?(0,n.createElement)($,{...e}):(0,n.createElement)("div",{className:"absolute inset-0 flex items-center justify-center h-full bg-ui-50 text-ui-300"},(0,n.createElement)("i",{className:"fa-regular fa-images text-9xl"})),t&&(0,n.createElement)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none"},(0,n.createElement)("div",{className:"flex flex-col items-center p-6 text-white backdrop-blur-md bg-black/50"},(0,n.createElement)("span",null,e.category?.name),(0,n.createElement)("span",{className:"swt-text-display-2"},e.category?.labelType))),!t&&e.category.label&&(0,n.createElement)("div",{className:"absolute bottom-0 left-0 pointer-events-none right-6 text-ui-50"},(0,n.createElement)("span",{className:"relative inline-flex px-4 py-2 bg-ui-primary swt-text-caption line-clamp-2"},e.category.label)),(0,n.createElement)(Z.WatchlistItemAction,{objectId:e.objectId},(({watched:e,setWatched:t})=>(0,n.createElement)("div",{className:"absolute flex items-center justify-center w-8 h-8 bg-white top-2 right-2"},(0,n.createElement)(W.A,{size:"sm",w:"100%",h:"100%",p:"4px",onClick:()=>t(!e),variant:"transparent",color:"brand"},e?(0,n.createElement)(V.RYZ,{size:"1rem"}):(0,n.createElement)(V.Snp,{size:"1rem"})))))),(0,n.createElement)("a",{href:e.link,title:e.title,className:"flex flex-col h-full bg-ui-50"},(0,n.createElement)("div",{className:"flex flex-col h-full px-6 py-4 text-ui-500"},(0,n.createElement)("div",{className:"flex flex-wrap gap-1.5 gap-x-4 items-center"},a&&a.map(((e,t)=>(0,n.createElement)("div",{key:t,className:w()("flex 2xl:flex-col max-2xl:reverse-order gap-x-2 max-2xl:items-center",0==t?"max-2xl:order-last":"items-center")},(0,n.createElement)("span",{className:"inline-flex items-center gap-2 text-ui-700"},(0,n.createElement)("span",{className:w()("swt-text-body-1","price"==e.group?"font-bold":"font-normal")},e.value,e.label&&` ${e.label}`)))))),(0,n.createElement)("div",{className:"flex flex-col h-full"},(0,n.createElement)("p",{className:"flex swt-text-caption items-center gap-1.5 mt-2 text-ui-500"},(0,n.createElement)("i",{className:"fa-light fa-location-dot"}),e.location),(0,n.createElement)("p",{className:"my-2 swt-text-caption line-clamp-6 text-ui-500 font-bold"},e.title)))))}var Y=a(9724),K=a(4331);function D(){return(0,n.createElement)(Y.W,{size:"xl",py:"xl"},(0,n.createElement)(K.D,{order:2,align:"center",mb:"md"},(0,h.__)("No matching result for your search.","swia")),(0,n.createElement)(I.x,{align:"center"},(0,h.__)("We currently have no public real estate listings for your search criteria.","swia"),(0,n.createElement)("br",null),(0,h.__)("Create a search profile and automatically receive the latest offers.","swia")))}function U(e){const t=function(){const[e,t]=(0,l.useState)(!1),a=(0,F.rZ)(),n=(0,R.a)(`(min-width: ${a.breakpoints.sm})`),r=(0,R.a)(`(min-width: ${a.breakpoints.md})`),s=(0,R.a)(`(min-width: ${a.breakpoints.xl})`),i=(0,R.a)("(min-width: 1872px)");if(void 0===n)return;let o,c,m=12,u=!1;return n?(o=i?a.breakpoints.lg:s?"70%":r?"58%":"40%",e&&(o="1px"),m=s?4:r?6:12,u=!0,c={order:1,minHeight:"auto",maxHeight:"100%",flexBasis:"auto",marginBottom:"0"}):c={order:-1,flexBasis:"100%",marginBottom:"2rem",height:e?"60vh":"6rem"},{isDesktop:n,leftColumnMaxWidth:o,cols:m,isSticky:u,rightColumnStyle:c,fullscreenMap:e,setFullscreenMap:t}}(),a=(0,R.a)("(min-width: 570px)");return t?(!t.isDesktop&&e.data.length>2&&a&&(t.cols=6),(0,n.createElement)(H.k,{w:"100%",wrap:"wrap",justify:t.isDesktop?"center":""},(0,n.createElement)(H.k,{w:t.leftColumnMaxWidth,direction:"column"},(0,n.createElement)(b.x,{mx:24},e.data.length>0?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(A.r,{gutter:24},e.data.map(((e,a)=>(0,n.createElement)(A.r.Col,{span:t.cols,key:a},(0,n.createElement)(G,{...e}))))),e.paginationHtml&&(0,n.createElement)("div",{dangerouslySetInnerHTML:{__html:e.paginationHtml}})):(0,n.createElement)(D,null))),(0,n.createElement)(b.x,{sx:{flexGrow:1},pos:"relative",style:t.rightColumnStyle},t.isSticky?(0,n.createElement)(f,null,(0,n.createElement)(Q,{fullscreenMap:t.fullscreenMap,setFullscreenMap:t.setFullscreenMap}),(0,n.createElement)(L,{fullscreen:t.fullscreenMap})):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(q,{fullscreenMap:t.fullscreenMap,setFullscreenMap:t.setFullscreenMap}),(0,n.createElement)(L,{fullscreen:t.fullscreenMap}))))):(0,n.createElement)(n.Fragment,null)}function Q(e){return(0,n.createElement)(b.x,{sx:{position:"absolute",bottom:"1rem",left:"1rem",zIndex:7}},e.fullscreenMap?(0,n.createElement)(C.z,{mx:"auto",rightIcon:(0,n.createElement)(V.xZ0,null),onClick:()=>e.setFullscreenMap(!e.fullscreenMap)},(0,r.__)("Show list","swia")):(0,n.createElement)(C.z,{mx:"auto",leftIcon:(0,n.createElement)(V.L9m,null),onClick:()=>e.setFullscreenMap(!e.fullscreenMap)},(0,r.__)("Show map","swia")))}function q(e){return(0,n.createElement)(b.x,{sx:{position:"absolute",bottom:"1.5rem",left:"50%",transform:"translate(-50%)",zIndex:7}},e.fullscreenMap?(0,n.createElement)(C.z,{mx:"auto",onClick:()=>e.setFullscreenMap(!e.fullscreenMap)},(0,r.__)("Minimize Map","swia")):(0,n.createElement)(C.z,{mx:"auto",onClick:()=>e.setFullscreenMap(!e.fullscreenMap)},(0,r.__)("Enlarge Map","swia")))}function J(e){return(0,n.createElement)(U,{data:e.data,paginationHtml:e.paginationHtml})}const X=J},448:(e,t,a)=>{a.d(t,{Gc:()=>m,M0:()=>d,Rx:()=>h,ol:()=>y});var n=a(9196),l=a(9307),r=a(9672),s=a(303),i=a(1013),o=a(3685);const[c,m,u]=(0,s.W)();function p(e){let t;if(e.indexOf(".")>-1){const a=e.split(".");t=a[0].charAt(0)+a[1].charAt(0)}else if(e.indexOf("[")>-1){const a=e.substring(0,e.length-1).split("[");t=a[0].charAt(0)+a[1].charAt(0)}return t}function d(e){const t=new URLSearchParams;if("sort"in e&&e.sort&&t.set("sort",""+e.sort),"status"in e&&e.status&&t.set("st",""+e.status),"categoryIds"in e&&e.categoryIds&&Array.isArray(e.categoryIds)&&e.categoryIds.forEach((e=>{t.append("ct[]",""+e)}
1)),"usageType"in e&&e.usageType&&t.set("ut",e.usageType),"marketingType"in e&&e.marketingType&&t.set("mt",e.marketingType),"realtorId"in e&&e.realtorId&&t.set("rid",""+e.realtorId),"customObjectId"in e&&e.customObjectId&&t.set("cid",""+e.customObjectId),"location"in e&&e.location){const a=e.location;"radius"==a.type?t.append("l[]",a.text+";"+a.lat+";"+a.lng+";"+a.radius):"geometry"==a.type?t.append("l[]",a.text+";geometry;"+a.id):"postcode"==a.type&&t.append("l[]",a.text+";postcode;"+a.postcode)}return"fields"in e&&e.fields&&Object.keys(e.fields).forEach((a=>{let n=p(a);"min"in e.fields[a]&&null!=e.fields[a].min&&t.set(n+"i",""+e.fields[a].min),"max"in e.fields[a]&&null!=e.fields[a].max&&t.set(n+"a",""+e.fields[a].max)})),t}function f(e){const t=d(e);let a=window.location.pathname;-1!=a.indexOf("/page")&&(a=a.replace(/\/page\/[0-9]+(\/|$)/,"")),window.location.href=a+"?"+t.toString()}function g(e){e.setValues({location:void 0,marketingType:void 0,usageType:void 0,status:void 0,customObjectId:void 0,categoryIds:[],fields:{}})}function h(){const{listingSearchHandler:e}=(0,i.o)();return e}function y(e){!function(e){const{listingSearchHandler:t,setListingSearchHandler:a}=(0,i.o)();(0,l.useEffect)((()=>{let t=0;const n={sort:"rank"};if("sort"in e&&(n.sort=e.sort),"realtor_id"in e&&(n.realtorId=e.realtor_id),"custom_object_id"in e&&(n.customObjectId=e.custom_object_id,t++),"status"in e&&"active"==e.status&&(n.status="active",t++),"marketing_type"in e&&("rent"==e.marketing_type?n.marketingType=r.Kl.RENT:n.marketingType=r.Kl.BUY,t++),"usage_type"in e&&("living"==e.usage_type?n.usageType=r.aB.LIVING:"commercial"==e.usage_type?n.usageType=r.aB.COMMERCIAL:"investment"==e.usage_type&&(n.usageType=r.aB.INVESTMENT)),"category_ids"in e&&Array.isArray(e.category_ids)&&(t++,n.categoryIds=[],e.category_ids.forEach((e=>{n.categoryIds.push(e)}))),"fields"in e&&e.fields&&(n.fields={},Object.keys(e.fields).forEach((a=>{r.Iv.fields.forEach((l=>{let r=p(l.name);a.substring(0,2)==r&&(l.name in n.fields||(n.fields[l.name]={field:l,min:void 0,max:void 0}),null!=e.fields[a]&&(a==r+"i"?(t++,n.fields[l.name].min=e.fields[a]):a==r+"a"&&(t++,n.fields[l.name].max=e.fields[a])))}))}))),"locations"in e&&(t++,e.locations&&Array.isArray(e.locations)&&e.locations.length>0)){const t=e.locations[0];t&&(n.location=t)}a({buildSearchParams:d,numberParams:t,formValues:n,submit:f,reset:g}),(0,o.Y)({...n,page:e.page,total:e.total})}),[e])}(e.params);const t=h();return(0,n.createElement)(n.Fragment,null,t&&(0,n.createElement)(w,{search:t},(a=>(0,n.createElement)(n.Fragment,null,e.children(t,a)))))}function w(e){const t=u({initialValues:e.search.formValues});return(0,n.createElement)(c,{form:t},(0,n.createElement)("form",{onSubmit:t.onSubmit(e.search.submit)},e.children(t)))}},9672:(e,t,a)=>{a.d(t,{Iv:()=>d,Kl:()=>m,Z7:()=>f,aB:()=>c,zn:()=>u});var n=a(5736),l=a(6989),r=a.n(l),s=a(9307),i=a(5079),o=a(8767);let c=function(e){return e.LIVING="living",e.COMMERCIAL="commercial",e.INVESTMENT="investment",e}({}),m=function(e){return e.BUY="buy",e.RENT="rent",e}({});const u={living:(0,n.__)("Residential","swia"),commercial:(0,n.__)("Commercial","swia"),investment:(0,n.__)("Investing","swia")}
1;let p,d;function f(e){const t=(a=!(!e||!e.hideEmpty),(0,o.useQuery)("taxonomyConfig-"+a,(()=>r()({path:"/sw-immosuite/v1/taxonomy/config?"+(a?"":"select=all")})),{staleTime:1/0}));var a;const[n,l]=(0,s.useState)();return(0,s.useEffect)((()=>{t.data&&p.factory(t.data).then((e=>{l(e)}))}),[t.data]),n}(p||(p={})).factory=async function(e){const t=t=>{const a={living:{label:u.living,usageType:c.LIVING,terms:[]},commercial:{label:u.commercial,usageType:c.COMMERCIAL,terms:[]},investment:{label:u.investment,usageType:c.INVESTMENT,terms:[]}};return e.categories.forEach((e=>{e.taxonomies.forEach((n=>{t&&n.marketingType!=t||("usageType"in n&&n.usageType&&n.usageType.length>0?n.usageType.forEach((t=>{a[t].terms.push({slug:n.slug,label:n.label,marketingType:n.marketingType,category:e})})):[c.LIVING,c.COMMERCIAL,c.INVESTMENT].forEach((t=>{a[t].terms.push({slug:n.slug,label:n.label,marketingType:n.marketingType,category:e})})))}))})),a};return{taxonomyList(t){const a=[];return e.taxonomies.forEach((e=>{t.marketingType?"marketingType"
1in e&&e.marketingType==t.marketingType&&a.push({slug:e.slug,label:e.label,marketingType:e.marketingType,usageType:Array.isArray(e.usageType)?e.usageType[0]:e.usageType}):t.usageType?"usageType"in e&&e.usageType==t.usageType&&a.push({slug:e.slug,label:e.label,marketingType:e.marketingType,usageType:Array.isArray(e.usageType)?e.usageType[0]:e.usageType}):a.push({slug:e.slug,label:e.label,marketingType:e.marketingType,usageType:Array.isArray(e.usageType)?e.usageType[0]:e.usageType})})),a},taxonomyMenu(a){const n=t(a),l=[];return e.taxonomies.forEach((e=>{e.marketingType==a&&l.push({slug:e.slug,label:e.label})})),Object.keys(n).forEach((e=>{if(n[e].terms.length>0){const t=[];n[e].terms.forEach((a=>{t.push({slug:a.slug,label:a.label,category:{categoryId:a.category.categoryId,label:a.category.label},usageType:e})})),l.push({label:n[e].label,usageType:e,children:t})}})),l},usageTypeCategories(e){const a=t(e),n=[];return Object.keys(a).forEach((e=>{const t=[];a[e].terms.forEach((e=>{t.find((t=>t.categoryId==e.category.categoryId))||t.push(e.category)})),t.length>0&&n.push({usageType:e,label:a[e].label,categories:t})})),n}}},function(e){const t=e.fields=[{name:"price.price",type:"currency",unit:"€",labels:{default:(0,n.__)("Purchase price","swia"),seller:(0,n.__)("Estimated price","swia")}},{name:"price.rent",type:"currency",unit:"€",label:(0,n.__)("Cold rent","swia")},{name:"area.livingSpace",type:"decimal",unit:"m²",label:(0,n.__)("Living space","swia"),search:"min"},{name:"area.plotArea",type:"decimal",unit:"m²",label:(0,n.__)("Property area","swia"),search:"min"},{name:"area.numberRooms",type:"int",label:(0,n.__)("Rooms","swia"),search:"stepper"},{name:"property[baujahr]",type:"int",label:(0,n.__)("Year built","swia"),maxlength:4}];e.get=function(e,a){const n=t.find((t=>t.name==e));if(n){let e;return e="labels"in n&&n.labels?n.labels[a&&"lead"==a?"seller":"default"]:n.label,{name:n.name,type:n.type,unit:n.unit,label:e,maxlength:n.maxlength,search:n.search}}},e.useFieldNumberFormat=function(e){const t=(0,i.hr)();return"int"==e.type&&(t.decimalScale=0),e.maxlength&&e.maxlength<=4&&(t.thousandSeparator=""),t}}(d||(d={}))},5079:(e,t,a)=>{a.d(t,{__:()=>l.__,bU:()=>r,hr:()=>s});var n=a(9307),l=a(5736);function r(){const[e,t]=(0,n.useState)();return(0,n.useEffect)((()=>{if(!e){const e=document.documentElement.getAttribute("lang");t(e?.replace("-","_"))}}),[]),e}function s(){const e={decimalScale:2,decimalSeparator:".",thousandSeparator:","};return"de_DE"==r()&&(e.decimalSeparator=",",e.thousandSeparator="."),e}},3685:(e,t,a)=>{let n;function l(e){n&&clearTimeout(n),n=setTimeout((()=>{"plausible"in window&&window.plausible("Immosuite: Search",{props:e})}),1e3)}function r(e){"plausible"in window&&window.plausible("Immosuite: Watchlist",{props:{objectId:e}})}a.d(t,{Y:()=>l,x:()=>r})},1013:(e,t,a)=>{a.d(t,{o:()=>r});var n=a(270),l=a(782);const r=(0,n.Ue)((0,l.tJ)((e=>({watchlist:[],setWatchlist:t=>e((e=>({...e,watchlist:t}))),listingSearchHandler:void 0,setListingSearchHandler:t=>e((e=>({...e,listingSearchHandler:t}))),realtorId:void 0,setRealtorId:t=>e((e=>({...e,realtorId:t})))})),{name:"sw-immosuite-apps",partialize:e=>({watchlist:e.watchlist})}))},9391:(e,t,a)=>{a.r(t),a.d(t,{WatchlistApp:()=>I,WatchlistAppItem:()=>S,WatchlistItemAction:()=>_,default:()=>M});var n=a(9196),l=a(9307),r=a(6172),s=a(9452),i=a(5157),o=a(5687),c=a(6621),m=a(2691),u=a(456),p=a(3415),d=a(6485),f=a(1938),g=a(5918),h=a(3515),y=a(4308),w=a(1759),E=a(4065),b=a(1013),x=a(5079),v=a(1521),k=a(3211),T=a(3685);function _(e){const{watchlist:t,setWatchlist:a}=(0,b.o)(),[r,s]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{-1==t.indexOf(e.objectId)?s(!1):s(!0)}),[t,e.objectId]),(0,n.createElement)(n.Fragment,null,e.children({watched:r,setWatched:n=>{n?((0,T.x)(e.objectId),a([...t,e.objectId])):a([...t.filter((t=>t!=e.objectId))])}}))}function I(e){const{watchlist:t,setWatchlist:a}=(0,b.o)(),[l,{open:u,close:p}]=(0,w.q)(!1),d=(0,r.rZ)(),f=(0,E.a)(`(max-width: ${d.breakpoints.sm})`);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.u,{fullScreen:f,withinPortal:!0,size:"xl",opened:l,onClose:p,title:t.length>0?(0,x.__)("Watchlist (%s)","swia").replace("%s",""+t.length):(0,x.__)("Watchlist","swia"),styles:{body:{minHeight:"500px",display:"grid"},content:{maxHeight:f?"85vh":void 0,boxShadow:f?"none":void 0},overlay:{backgroundColor:f?"white":void 0}}},(0,n.createElement)(i.K,{spacing:"md"},0==t.length&&(0,n.createElement)(o.b,{color:"green"},(0,x.__)("Your list is currently empty. Start adding items to your list for future reference and easy access!","
1swia")),t.map(((e,l)=>(0,n.createElement)(C,{key:l,objectId:e,onRemove:()=>{return n=e,void a([...t.filter((e=>e!=n))]);var n}}))))),e.opener?e.opener(u):(0,n.createElement)(c.z,{label:t.length>0?t.length:void 0,size:28,withBorder:!0,disabled:0==t.length,zIndex:10,display:{base:"block",md:"inline-block"}},(0,n.createElement)(m.z,{size:"md",leftIcon:(0,n.createElement)(v.Snp,null),w:{base:"100%",md:"auto"},onClick:()=>u()},(0,x.__)("Watchlist","swia"))))}function C(e){const t=k.j.fetch(e.objectId),a=(0,r.rZ)(),l=(0,E.a)(`(min-width: ${a.breakpoints.sm})`);return(0,n.createElement)("div",null,t.isLoading&&(0,n.createElement)(u.O,{height:8,mt:6,radius:"xl"}),t.data&&(0,n.createElement)(p.Z,{noWrap:l},(0,n.createElement)(d.X,{w:"16rem",h:"12rem",pos:"relative",sx:{flexShrink:0,overflow:"hidden"},dangerouslySetInnerHTML:{__html:t.data.picture}}),(0,n.createElement)(f.x,{w:"100%"},t.data.category&&t.data.category.label&&(0,n.createElement)(g.x,{fz:"xs",tt:"uppercase",fw:700,c:"dimmed"},t.data.category.label),(0,n.createElement)(g.x,{fz:"lg",fw:500},t.data.title),(0,n.createElement)(i.K,null,(0,n.createElement)(p.Z,{dir:"row"},(0,n.createElement)(p.Z,{noWrap:!0,spacing:10,mt:5},(0,n.createElement)(v.WP$,{size:"1rem"}),(0,n.createElement)(g.x,{fz:"xs",c:"dimmed"},t.data.location)),(0,n.createElement)(p.Z,{noWrap:!0,spacing:10,mt:5},(0,n.createElement)(v.SbY,{size:"1rem"}),(0,n.createElement)(g.x,{fz:"xs",c:"dimmed"},t.data.customObjectId))),(0,n.createElement)(h.k,{gap:"xs",direction:"row",align:"center"},(0,n.createElement)(m.z,{component:"a",href:t.data.link,styles:{label:{color:"white"}}},(0,x.__)("View Exposé","swia")),(0,n.createElement)(m.z,{variant:"outline",onClick:e.onRemove,styles:e=>({root:{"&:hover":{color:"#fff!important",backgroundColor:e.colors.brand[6]}}})},(0,x.__)("Remove","swia")))))))}function S(e){const{watchlist:t,setWatchlist:a}=(0,b.o)(),l=-1!==t.indexOf(e.objectId);return(0,n.createElement)(I,{opener:r=>(0,n.createElement)(y.k,{onClick:()=>(n=>{l||((0,T.x)(e.objectId),a([...t,e.objectId])),n()})(r),px:"xs",title:(0,x.__)("Watchlist","swia")},l?(0,n.createElement)("div",{className:"w-8 h-8 bg-center bg-no-repeat bg-contain hc-icon-star-filled"}):(0,n.createElement)("div",{className:"w-8 h-8 bg-center bg-no-repeat bg-contain hc-icon-star-outline"}))})}const M=I}}]);

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.