PageSourceSearch

https://immokaepsele.de/_next/static/chunks/0or977388u6qu.js

js immokaepsele.de collected 2026-10-04 21:20:30 UTC 26,350 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let t=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],55436)},3505,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(93479),i=e.i(31278),n=e.i(55436),u=e.i(37727),l=e.i(18566);let a=({onSearchChange:e,isSearching:a,isReady:o})=>{let c=(0,r.useRef)(null),h=(0,l.useSearchParams)(),[d,g]=(0,r.useState)("");(0,r.useEffect)(()=>{h.has("search")&&(g(h.get("search")??""),e(h.get("search")??""))},[h,o]);let f=t=>{e(t),g(t);let r=new URL(window.location.href);t?r.searchParams.set("search",t):r.searchParams.delete("search"),window.history.replaceState({},"",r.toString())};return(0,t.jsx)("div",{className:"mb-6 w-full",children:(0,t.jsxs)("div",{className:"relative w-full max-w-lg",children:[(0,t.jsx)(n.Search,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none"}),(0,t.jsx)(s.Input,{ref:c,type:"text","aria-label":"Immobilien suchen nach Ort, Straße oder PLZ",placeholder:"Ort, Straße oder PLZ...",value:d,onChange:e=>f(e.target.value),className:"h-11 pl-10 pr-10 rounded-lg"}),a?(0,t.jsx)(i.Loader2,{className:"absolute right-3.5 top-1/2 -translate-y-1/2 w-4 h-4 animate-spin text-muted-foreground"}):d?(0,t.jsx)("button",{onClick:()=>f(""),"aria-label":"Suche zurücksetzen",className:"absolute right-2.5 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-muted transition-colors",children:(0,t.jsx)(u.X,{className:"w-3.5 h-3.5 text-muted-foreground"})}):null]})})};var o=e.i(73375),c=e.i(63059),h=e.i(75157);let d=({currentPage:e,totalPages:r,onPageChange:s})=>{if(r<=1)return null;let i=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);let r=new Set([1,t,e]);e>1&&r.add(e-1),e<t&&r.add(e+1),e<=3&&[2,3,4].forEach(e=>r.add(e)),e>=t-2&&[t-1,t-2,t-3].forEach(e=>r.add(e));let s=[...r].filter(e=>e>=1&&e<=t).sort((e,t)=>e-t),i=[];return s.forEach((e,t)=>{t>0&&e-s[t-1]>1&&i.push("gap"),i.push(e)}),i}(e,r),n="inline-flex h-10 min-w-10 items-center justify-center rounded-lg px-1.5 text-sm transition-colors sm:px-2";return(0,t.jsxs)("nav",{"aria-label":"Seitennavigation",className:"mt-8 mb-4 flex items-center justify-center gap-0.5 sm:gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:()=>s(e-1),disabled:1===e,"aria-label":"Vorherige Seite",className:(0,h.cn)(n,"text-foreground hover:bg-secondary disabled:pointer-events-none disabled:opacity-35"),children:(0,t.jsx)(o.ChevronLeft,{className:"h-4 w-4"})}),i.map((r,i)=>"gap"===r?(0,t.jsx)("span",{"aria-hidden":"true",className:(0,h.cn)(n,"min-w-6 px-0 text-muted-foreground"),children:"…"},`gap-${i}`):(0,t.jsx)("button",{type:"button",onClick:()=>s(r),"aria-label":`Seite ${r}`,"aria-current":r===e?"page":void 0,className:(0,h.cn)(n,r===e?"bg-ink font-semibold text-white":"text-foreground hover:bg-secondary"),children:r},r)),(0,t.jsx)("button",{type:"button",onClick:()=>s(e+1),disabled:e===r,"aria-label":"Nächste Seite",className:(0,h.cn)(n,"text-foreground hover:bg-secondary disabled:pointer-events-none disabled:opacity-35"),children:(0,t.jsx)(c.ChevronRight,{className:"h-4 w-4"})})]})};var g=e.i(19455),f=e.i(42920),p=e.i(94351),m=e.i(22614),x=e.i(23945);let A=[{id:"all",label:"Alle",icon:(0,t.jsx)(f.Building,{className:"h-4 w-4"})},{id:"residential",label:"Wohnimmobilien",icon:(0,t.jsx)(p.Home,{className:"h-4 w-4"}),categories:["RESIDENTIAL"]},{id:"commercial",label:"Gewerbeimmobilien",icon:(0,t.jsx)(x.Store,{className:"h-4 w-4"}),categories:["COMMERCIAL"]},{id:"land",label:"Grundstücke",icon:(0,t.jsx)(m.MapIcon,{className:"h-4 w-4"}),categories:["LAND"]}],y=(0,e.i(75254).default)("Euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);function b({onFilterChange:e}){let[s,i]=(0,r.useState)(["all"]),[n,u]=(0,r.useState)(!1),l=(t,r=n)=>{i(t),u(r),e?.(t,r)};return(0,t.jsxs)("div",{className:"w-full pb-8 ",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground font-medium mb-2",children:"Immobilientyp"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-1 flex-nowrap md:flex-wrap [&::-webkit-scrollbar]:hidden",style:{scrollbarWidth:"none"},children:[A.map(e=>(0,t.jsxs)(g.Button,{variant:s.includes(e.id)?"default":"outline",className:s.includes(e.id)?"bg-ink hover:bg-ink/85 text-white shrink-0":"border-border text-foreground hover:bg-secondary shrink-0",onClick:()=>(e=>{if(u(!1),"all"===e.id)l(["all"],!1);else{let t=s.filter(e=>"all"!==e);0===(t=t.includes(e.id)?t.filter(t=>t!==e.id):[...t,e.id]).length&&(t=["all"]),l(t,!1)}})(e),size:"sm",children:[e.icon,e.label]},e.id)),(0,t.jsxs)(g.Button,{variant:n?"default":"outline",className:n?"bg-gold-accessible hover:bg-gold-accessible/90 text-white shrink-0":"border-gold-accessible text-gold-accessible hover:bg-gold/10 shrink-0",onClick:()=>{l([],!0)},size:"sm",children:[(0,t.jsx)(y,{className:"h-4 w-4"}),"Verkaufte Immobilien"]})]}),(0,t.jsx)("div",{className:"md:hidden pointer-events-none absolute inset-y-0 right-0 w-10 bg-gradient-to-r from-transparent to-page"})]})]})}var C=e.i(99374);function E(e){return Array.isArray?Array.isArray(e):"[object Array]"===w(e)}let B=1/0;function F(e){return"string"==typeof e}function v(e){return"number"==typeof e}function D(e){return"object"==typeof e}function k(e){return null!=e}function S(e){return!e.trim().length}
1function w(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let M=Object.prototype.hasOwnProperty;class j{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=N(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function N(e){let t=null,r=null,s=null,i=1,n=null;if(F(e)||E(e))s=e,t=I(e),r=_(e);else{if(!M.call(e,"name"))throw Error("Missing name property in key");let u=e.name;if(s=u,M.call(e,"weight")&&(i=e.weight)<=0)throw Error(`Property 'weight' in key '${u}' must be a positive integer`);t=I(u),r=_(u),n=e.getFn}return{path:t,id:r,weight:i,src:s,getFn:n}}function I(e){return E(e)?e:e.split(".")}function _(e){return E(e)?e.join("."):e}var L={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],s=!1,i=(e,t,n)=>{if(k(e))if(t[n]){var u,l;let a=e[t[n]];if(!k(a))return;if(n===t.length-1&&(F(a)||v(a)||!0===(u=a)||!1===u||D(l=u)&&null!==l&&"[object Boolean]"==w(u)))r.push(null==a?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-B?"-0":t}(a));else if(E(a)){s=!0;for(let e=0,r=a.length;e<r;e+=1)i(a[e],t,n+1)}else t.length&&i(a,t,n+1)}else r.push(e)};return i(e,F(t)?t.split("."):t,0),s?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let $=/[^ ]+/g;class R{constructor({getFn:e=L.getFn,fieldNormWeight:t=L.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,s=Math.pow(10,t);return{get(t){let i=t.match($).length;if(r.has(i))return r.get(i);let n=parseFloat(Math.round(1/Math.pow(i,.5*e)*s)/s);return r.set(i,n),n},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,F(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();F(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!k(e)||S(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,s)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(k(i)){if(E(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:r,value:s}=t.pop();if(k(s))if(F(s)&&!S(s)){let t={v:s,i:r,n:this.norm.get(s)};e.push(t)}else E(s)&&s.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[s]=e}else if(F(i)&&!S(i)){let e={v:i,n:this.norm.get(i)};r.$[s]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function O(e,t,{getFn:r=L.getFn,fieldNormWeight:s=L.fieldNormWeight}={}){let i=new R({getFn:r,fieldNormWeight:s});return i.setKeys(e.map(N)),i.setSources(t),i.create(),i}function P(e,{errors:t=0,currentLocation:r=0,expectedLocation:s=0,distance:i=L.distance,ignoreLocation:n=L.ignoreLocation}={}){let u=t/e.length;if(n)return u;let l=Math.abs(s-r);return i?u+l/i:l?1:u}let z=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A7
15\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class W{constructor(e,{location:t=L.location,threshold:r=L.threshold,distance:s=L.distance,includeMatches:i=L.includeMatches,findAllMatches:n=L.findAllMatches,minMatchCharLength:u=L.minMatchCharLength,isCaseSensitive:l=L.isCaseSensitive,ignoreDiacritics:a=L.ignoreDiacritics,ignoreLocation:o=L.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:s,includeMatches:i,findAllMatches:n,minMatchCharLength:u,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:o},e=l?e:e.toLowerCase(),e=a?z(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,s=e.length;r<s;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<s-r-1}return t}(e),startIndex:t})},h=this.pattern.length;if(h>32){let e=0;const t=h%32,r=h-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){const e=h-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:s}=this.options;if(e=t?e:e.toLowerCase(),e=r?z(e):e,this.pattern===e){let t={isMatch:!0,score:0};return s&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:n,threshold:u,findAllMatches:l,minMatchCharLength:a,ignoreLocation:o}=this.options,c=[],h=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:g})=>{let{isMatch:f,score:p,indices:m}=function(e,t,r,{location:s=L.location,distance:i=L.distance,threshold:n=L.threshold,findAllMatches:u=L.findAllMatches,minMatchCharLength:l=L.minMatchCharLength,includeMatches:a=L.includeMatches,ignoreLocation:o=L.ignoreLocation}={}){let c;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,d=e.length,g=Math.max(0,Math.min(s,d)),f=n,p=g,m=l>1||a,x=m?Array(d):[];for(;(c=e.indexOf(t,p))>-1;)if(f=Math.min(P(t,{currentLocation:c,expectedLocation:g,distance:i,ignoreLocation:o}),f),p=c+h,m){let e=0;for(;e<h;)x[c+e]=1,e+=1}p=-1;let A=[],y=1,b=h+d,C=1<<h-1;for(let s=0;s<h;s+=1){let n=0,l=b;for(;n<l;)P(t,{errors:s,currentLocation:g+l,expectedLocation:g,distance:i,ignoreLocation:o})<=f?n=l:b=l,l=Math.floor((b-n)/2+n);b=l;let a=Math.max(1,g-l+1),c=u?d:Math.min(g+l,d)+h,E=Array(c+2);E[c+1]=(1<<s)-1;for(let n=c;n>=a;n-=1){let u=n-1,l=r[e.charAt(u)];if(m&&(x[u]=+!!l),E[n]=(E[n+1]<<1|1)&l,s&&(E[n]|=(A[n+1]|A[n])<<1|1|A[n+1]),E[n]&C&&(y=P(t,{errors:s,currentLocation:u,expectedLocation:g,distance:i,ignoreLocation:o}))<=f){if(f=y,(p=u)<=g)break;a=Math.max(1,2*g-p)}}if(P(t,{errors:s+1,currentLocation:g,expectedLocation:g,distance:i,ignoreLocation:o})>f)break;A=E}let E={isMatch:p>=0,score:Math.max(.001,y)};if(m){let e=function(e=[],t=L.minMatchCharLength){let r=[],s=-1,i=-1,n=0;for(let u=e.length;n<u;n+=1){let u=e[n];u&&-1===s?s=n:u||-1===s||((i=n-1)-s+1>=t&&r.push([s,i]),s=-1)}return e[n-1]&&n-s>=t&&r.push([s,n-1]),r}(x,l);e.length?a&&(E.indices=e):E.isMatch=!1}return E}(e,t,r,{location:i+g,distance:n,threshold:u,findAllMatches:l,minMatchCharLength:a,includeMatches:s,ignoreLocation:o});f&&(d=!0),h+=p,f&&m&&(c=[...c,...m])});let g={isMatch:d,score:d?h/this.chunks.length:1};return d&&s&&(g.indices=c),g}}class K{constructor(e){this.pattern=e}static isMultiMatch(e){return V(e,this.multiRegex)}static isSingleMatch(e){return V(e,this.singleRegex)}search(){}}function V(e,t){let r=e.match(t);return r?r[1]:null}class q extends K{constructor(e,{location:t=L.location,threshold:r=L.threshold,distance:s=L.distance,includeMatches:i=L.includeMatches,findAllMatches:n=L.findAllMatches,minMatchCharLength:u=L.minMatchCharLength,isCaseSensitive:l=L.isCaseSensitive,ignoreDiacritics:a=L.ignoreDiacritics,ignoreLocation:o=L.ignoreLocation}={}){super(e),this._bitapSearch=new W(e,{location:t,threshold:r,distance:s,includeMatches:i,findAllMatches:n,minMatchCharLength:u,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class T extends K{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,s=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,s.push([t,r-1]);let n=!!s.length;return{isMatch:n,score:+!n,indices:s}}}let U=[class extends K{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
1search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},T,class extends K{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},class extends K{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends K{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},class extends K{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},class extends K{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},q],J=U.length,G=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,H=new Set([q.type,T.type]),Z=[];function Q(e,t){for(let r=0,s=Z.length;r<s;r+=1){let s=Z[r];if(s.condition(e,t))return new s(e,t)}return new W(e,t)}let X="$and",Y="$path",ee=e=>!!(e[X]||e.$or),et=e=>({[X]:Object.keys(e).map(t=>({[t]:e[t]}))});function er(e,t,{auto:r=!0}={}){let s=e=>{let i=Object.keys(e),n=!!e[Y];if(!n&&i.length>1&&!ee(e))return s(et(e));if(!E(e)&&D(e)&&!ee(e)){let s=n?e[Y]:i[0],u=n?e.$val:e[s];if(!F(u))throw Error(`Invalid value for key ${s}`);let l={keyId:_(s),pattern:u};return r&&(l.searcher=Q(u,t)),l}let u={children:[],operator:i[0]};return i.forEach(t=>{let r=e[t];E(r)&&r.forEach(e=>{u.children.push(s(e))})}),u};return ee(e)||(e=et(e)),s(e)}function es(e,t){let r=e.matches;t.matches=[],k(r)&&r.forEach(e=>{if(!k(e.indices)||!e.indices.length)return;let{indices:r,value:s}=e,i={indices:r,value:s};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function ei(e,t){t.score=e.score}class en{constructor(e,t={},r){this.options={...L,...t},this.options.useExtendedSearch,this._keyStore=new j(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof R))throw Error("Incorrect 'index' type");this._myIndex=t||O(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,s=this._docs.length;r<s;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,s-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:s,shouldSort:i,sortFn:n,ignoreFieldNorm:u}=this.options,l=F(e)?F(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=L.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:s,score:i})=>{let n=e?e.weight:null;r*=Math.pow(0===i&&n?Number.EPSILON:i,(n||1)*(t?1:s))}),e.score=r})}(l,{ignoreFieldNorm:u}),i&&l.sort(n),v(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:r=L.includeMatches,includeScore:s=L.includeScore}={}){let i=[];return r&&i.push(es),s&&i.push(ei),e.map(e=>{let{idx:r}=e,s={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,s)}),s})}(l,this._docs,{includeMatches:r,includeScore:s})}_searchStringList(e){let t=Q(e,this.options),{records:r}=this._myIndex,s=[];return r.forEach(({v:e,i:r,n:i})=>{if(!k(e))return;let{isMatch:n,score:u,indices:l}=t.searchIn(e);n&&s.push({item:e,idx:r,matches:[{score:u,value:e,norm:i,indices:l}]})}),s}_searchLogical(e){let t=er(e,this.options),r=(e,t,s)=>{if(!e.children){let{keyId:r,searcher:i}=e,n=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return n&&n.length?[{idx:s,item:t,matches:n}]:[]}let i=[];for(let n=0,u=e.children.length;n<u;n+=1){let u=r(e.children[n],t,s);if(u.length)i.push(...u);else if(e.operator===X)return[]}return i},s=this._myIndex.records,i={},n=[];
1return s.forEach(({$:e,i:s})=>{if(k(e)){let u=r(t,e,s);u.length&&(i[s]||(i[s]={idx:s,item:e,matches:[]},n.push(i[s])),u.forEach(({matches:e})=>{i[s].matches.push(...e)}))}}),n}_searchObjectList(e){let t=Q(e,this.options),{keys:r,records:s}=this._myIndex,i=[];return s.forEach(({$:e,i:s})=>{if(!k(e))return;let n=[];r.forEach((r,s)=>{n.push(...this._findMatches({key:r,value:e[s],searcher:t}))}),n.length&&i.push({idx:s,item:e,matches:n})}),i}_findMatches({key:e,value:t,searcher:r}){if(!k(t))return[];let s=[];if(E(t))t.forEach(({v:t,i:i,n:n})=>{if(!k(t))return;let{isMatch:u,score:l,indices:a}=r.searchIn(t);u&&s.push({score:l,key:e,value:t,idx:i,norm:n,indices:a})});else{let{v:i,n:n}=t,{isMatch:u,score:l,indices:a}=r.searchIn(i);u&&s.push({score:l,key:e,value:i,norm:n,indices:a})}return s}}en.version="7.1.0",en.createIndex=O,en.parseIndex=function(e,{getFn:t=L.getFn,fieldNormWeight:r=L.fieldNormWeight}={}){let{keys:s,records:i}=e,n=new R({getFn:t,fieldNormWeight:r});return n.setKeys(s),n.setIndexRecords(i),n},en.config=L,en.parseQuery=er,function(...e){Z.push(...e)}(class{constructor(e,{isCaseSensitive:t=L.isCaseSensitive,ignoreDiacritics:r=L.ignoreDiacritics,includeMatches:s=L.includeMatches,minMatchCharLength:i=L.minMatchCharLength,ignoreLocation:n=L.ignoreLocation,findAllMatches:u=L.findAllMatches,location:l=L.location,threshold:a=L.threshold,distance:o=L.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:s,minMatchCharLength:i,findAllMatches:u,ignoreLocation:n,location:l,threshold:a,distance:o},e=t?e:e.toLowerCase(),e=r?z(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(G).filter(e=>e&&!!e.trim()),s=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],n=!1,u=-1;for(;!n&&++u<J;){let e=U[u],r=e.isMultiMatch(i);r&&(s.push(new e(r,t)),n=!0)}if(!n)for(u=-1;++u<J;){let e=U[u],r=e.isSingleMatch(i);if(r){s.push(new e(r,t));break}}}return s})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:s,ignoreDiacritics:i}=this.options;e=s?e:e.toLowerCase(),e=i?z(e):e;let n=0,u=[],l=0;for(let s=0,i=t.length;s<i;s+=1){let i=t[s];u.length=0,n=0;for(let t=0,s=i.length;t<s;t+=1){let s=i[t],{isMatch:a,indices:o,score:c}=s.search(e);if(a){if(n+=1,l+=c,r){let e=s.constructor.type;H.has(e)?u=[...u,...o]:u.push(o)}}else{l=0,n=0,u.length=0;break}}if(n){let e={isMatch:!0,score:l/n};return r&&(e.indices=u),e}}return{isMatch:!1,score:1}}});var eu=e.i(4712);e.s(["PropertiesListPage",0,({initialProperties:e})=>{let s=(0,r.useRef)(null),i=(0,eu.usePlausible)(),[n,u]=(0,r.useState)(!1),[l]=(0,r.useState)(e),[o,c]=(0,r.useState)(""),[g,f]=(0,r.useState)(["all"]),[p,m]=(0,r.useState)(!1),[x,y]=(0,r.useState)(1),E=(0,r.useMemo)(()=>(function(e,{types:t,showSold:r,query:s}){let i=e.filter(e=>{var s;return s=e.category,(!!(0===t.length||t.includes("all"))||t.some(e=>A.find(t=>t.id===e)?.categories?.includes(s)))&&(r?e.isSold:!e.isSold)});return s.trim()?new en(i,{keys:["address.zipCode","address.city","address.street"],includeScore:!1,threshold:.3}).search(s).map(e=>e.item):i})(l,{types:g,showSold:p,query:o}),[l,g,p,o]),B=Math.max(1,Math.ceil(E.length/6)),F=(0,r.useCallback)((0,h.debounce)(e=>{c(e),u(!1),e.trim()&&i("Property Search Used")},300),[]),v=(0,r.useMemo)(()=>E.slice((x-1)*6,6*x),[E,x]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.Suspense,{children:[(0,t.jsx)(a,{isSearching:n,onSearchChange:e=>{u(!0),y(1),F(e)},isReady:l.length>0}),(0,t.jsx)(b,{onFilterChange:(e,t=!1)=>{e.length>0&&!e.includes("all")?i("Property Filter Applied",{props:{filter_type:e.join(",")}}):t&&i("Property Filter Applied",{props:{filter_type:"sold"}}),f(e),m(t),y(1)}})]}),(0,t.jsxs)("p",{className:"mb-4 text-sm font-medium text-muted-foreground",style:{opacity:+!n},children:[E.length," ",1===E.length?"Immobilie":"Immobilien"," ",p?"verkauft":"gefunden"]}),E?.length===0&&!n&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[(0,t.jsx)("p",{className:"text-lg font-semibold text-foreground mb-2",children:p&&!o.trim()?"Noch keine verkauften Immobilien":"Keine Immobilien gefunden"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm mb-5",children:p&&!o.trim()?"Hier zeigen wir unsere erfolgreich vermittelten Objekte, sobald der Verkauf abgeschlossen ist.":"Versuchen Sie einen anderen Suchbegriff oder passen Sie die Filter an."}),(0,t.jsx)("a",{href:"/contact",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-gold-accessible hover:text-gold-accessible/70 transition-colors",children:"Kein passendes Angebot? Sprechen Sie uns an →"})]}),(0,t.jsx)("h2",{className:"sr-only",children:"Immobilienangebote"}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",style:{scrollMarginBlockStart:"4rem"},ref:s,children:v.map(e=>(0,t.jsx)("div",{className:"contents",children:(0,t.jsx)(C.PropertyCard,{property:e})},e.id))}),(0,t.jsx)(d,{currentPage:x,onPageChange:e=>{y(e),s.current?.scrollIntoView({behavior:"smooth"})},totalPages:B})]})}],3505)},93479,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(75157);let i=r.forwardRef(({className:e,type:r,...i},n)=>(0,t.jsx)("input",{type:r,className:(0,s.cn)("flex h-10 w-full transition-all rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...i}));i.displayName="Input",e.s(["Input",0,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.