PageSourceSearch

https://biddeed.ai/_next/static/chunks/7466.57c3697db57462be.js

js biddeed.ai collected 2026-10-05 14:24:25 UTC 14,638 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7466],{18531:(e,t,r)=>{"use strict";r.d(t,{D:()=>l,ThemeProvider:()=>s});var o=r(95155),n=r(12115);let a=(0,n.createContext)({theme:"light",toggleTheme:()=>{}});function s({children:e}){let[t,r]=(0,n.useState)("light");return(0,n.useEffect)(()=>{document.documentElement.dataset.theme=t,document.documentElement.classList.toggle("dark","dark"===t)},[t]),(0,o.jsx)(a.Provider,{value:{theme:t,toggleTheme:()=>r(e=>"dark"===e?"light":"dark")},children:e})}let l=()=>(0,n.useContext)(a)},35085:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var o=r(95155),n=r(12115),a=r(38849),s=r.n(a);r(75173);var l=r(18531),d=r(71581),c=r(46059),i=r(22356),u=r(58219);function p(e){return null==e?"—":"$"+e.toLocaleString("en-US",{maximumFractionDigits:0})}let m="mapbox://styles/mapbox/streets-v12",g="mapbox://styles/mapbox/satellite-streets-v12";function x({county:e,saleType:t,dayFilter:r,onSelectAuction:a,focusPoint:f,fillParent:b}){let h=(0,n.useRef)(null),y=(0,n.useRef)(null),k=(0,n.useRef)(null),[v,_]=(0,n.useState)(!1),[w,j]=(0,n.useState)(null),[N,L]=(0,n.useState)(!1),[T,$]=(0,n.useState)(!0),[S,E]=(0,n.useState)("type"),C=(0,n.useRef)(new Map),{theme:z}=(0,l.D)(),[M,F]=(0,n.useState)(null),[B,P]=(0,n.useState)(!0),[R,Z]=(0,n.useState)(null),D=(0,n.useRef)(0),V="pk.eyJ1IjoiZXZlcmVzdDE4IiwiYSI6ImNtanB5cDQ5ZzF1eWgzaHB2cGVhZXdqbjMifQ.4RPrkTf84GL1-clmhmCnTw",q=(0,n.useCallback)(()=>{L(e=>!e)},[]),H=(0,n.useCallback)(()=>{$(e=>!e)},[]);function I(){return{type:"FeatureCollection",features:(M?.data||[]).map(e=>{let t=e.market_value??e.assessed_value;return C.current.set(e.id,e),{type:"Feature",geometry:{type:"Point",coordinates:[e.longitude,e.latitude]},properties:{id:e.id,address:e.property_address||"No address",county:e.county,sale_type:e.sale_type,just_value:t,opening_bid:e.opening_bid,auction_date:e.auction_date,type_code:"foreclosure"===e.sale_type?0:"tax_deed"===e.sale_type?1:2}}})}}function W(){return"zoning"===S?{"circle-color":`${u.T.border}`,"circle-radius":7,"circle-stroke-width":2,"circle-stroke-color":`${u.T.background}`}:{"circle-color":["match",["get","type_code"],0,`${u.T.brand}`,1,`${u.T.ink}`,`${u.T.border}`],"circle-radius":7,"circle-stroke-width":2,"circle-stroke-color":`${u.T.background}`}}function O(){let e,t=k.current;if(!t)return;let r=(e=t.getStyle?.()?.layers??[],e.find(e=>"symbol"===e.type&&e.layout?.["text-field"])?.id);["clusters","cluster-count","unclustered-point"].forEach(e=>{t.getLayer(e)&&t.removeLayer(e)}),t.getSource("auctions")&&t.removeSource("auctions");let o=I();t.addSource("auctions",{type:"geojson",data:o,cluster:!0,clusterMaxZoom:14,clusterRadius:50}),t.addLayer({id:"clusters",type:"circle",source:"auctions",filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],`${u.T.brand}`,10,`${u.T.brandHover}`,50,`${u.T.navy}`],"circle-radius":["step",["get","point_count"],18,10,24,50,32],"circle-stroke-width":2,"circle-stroke-color":`${u.T.background}`}},r),t.addLayer({id:"cluster-count",type:"symbol",source:"auctions",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Pro Bold","Arial Unicode MS Bold"],"text-size":["step",["get","point_count"],13,10,15,50,17],"text-allow-overlap":!0,"text-ignore-placement":!0},paint:{"text-color":`${u.T.background}`,"text-halo-color":`${u.T.navy}`,"text-halo-width":1}},r),t.addLayer({id:"unclustered-point",type:"circle",source:"auctions",filter:["!",["has","point_count"]],paint:W()},r),t.on("click","clusters",e=>{let r=t.queryRenderedFeatures(e.point,{layers:["clusters"]}),o=r[0].properties.cluster_id;t.getSource("auctions").getClusterExpansionZoom(o,(e,o)=>{e||t.easeTo({center:r[0].geometry.coordinates,zoom:o})})}),t.on("click","unclustered-point",e=>{let r=e.features[0].geometry.coordinates.slice(),o=e.features[0].properties,n=C.current.get(o.id),l="foreclosure"===o.sale_type?"Foreclosure":"Tax Deed";new(s()).Popup({offset:15,maxWidth:"280px"}).setLngLat(r).setHTML(`
2          <div style="font-family:system-ui;font-size:12px;">
3            <p style="font-weight:600;margin:0 0 4px 0;">${o.address}</p>
4            <p style="color:${u.T.navy};margin:0 0 2px 0;">${o.county} — ${l}</p>
5            ${o.just_value?`<p style="color:${u.T.navy};margin:0 0 2px 0;">Value: ${p(o.just_value)}</p>`:""}
6            ${o.opening_bid?`<p style="color:${u.T.navy};margin:0 0 2px 0;">Opening Bid: ${p(o.opening_bid)}</p>`:""}
7            ${o.auction_date?`<p style="color:${u.T.navy};margin:0;">Date: ${o.auction_date}</p>`:""}
8          </div>
9        `).addTo(t),n&&a((0,c.qf)(n))}),t.on("mouseenter","clusters",()=>{t.getCanvas().style.cursor="pointer"}),t.on("mouseleave","clusters",()=>{t.getCanvas().style.cursor=""}),t.on("mouseenter","unclustered-point",()=>{t.getCanvas().style.cursor="pointer"}),t.on("mouseleave","unclustered-point",()=>{t.getCanvas().style.cursor=""});let n=M?.data||[];if(n.length>1){let e=new(s()).LngLatBounds;
9n.forEach(t=>e.extend([t.longitude,t.latitude])),t.fitBounds(e,{padding:50,maxZoom:12})}else 1===n.length&&t.flyTo({center:[n[0].longitude,n[0].latitude],zoom:10})}if((0,n.useEffect)(()=>{let o=++D.current;P(!0),Z(null);let n=new URLSearchParams;e&&n.set("county",e),t&&n.set("sale_type",t),r?(n.set("from",r.date),n.set("to",r.date),r.saleType&&n.set("sale_type",r.saleType)):n.set("upcoming","true"),fetch((0,i.y)(`/api/auctions/map?${n}`)).then(e=>{if(!e.ok)throw Error(`map request failed (${e.status})`);return e.json()}).then(e=>{o===D.current&&F(e)}).catch(e=>{o===D.current&&(console.error("Failed to fetch map pins:",e),Z("Could not load auction pins for this view."),F(null))}).finally(()=>{o===D.current&&P(!1)})},[e,t,r?.date,r?.saleType]),(0,n.useEffect)(()=>{if(!N)return;let e=e=>{"Escape"===e.key&&L(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[N]),(0,n.useEffect)(()=>(N?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[N]),(0,n.useEffect)(()=>{k.current&&v&&setTimeout(()=>k.current?.resize(),50)},[N,v]),(0,n.useEffect)(()=>{if(!h.current||"u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{k.current?.resize()});return e.observe(h.current),()=>e.disconnect()},[v]),(0,n.useEffect)(()=>{f&&k.current&&v&&k.current.flyTo({center:[f.lng,f.lat],zoom:Math.max(k.current.getZoom?.()??0,14),duration:900})},[f,v]),(0,n.useEffect)(()=>{if(h.current&&!k.current)return V?(s().accessToken=V,k.current=new(s()).Map({container:h.current,style:T?g:m,center:[-81.5,27.6],zoom:6}),k.current.on("load",()=>{_(!0),k.current?.addControl(new(s()).NavigationControl,"top-right")}),()=>{k.current?.remove(),k.current=null}):void j("Mapbox token not configured")},[]),(0,n.useEffect)(()=>{k.current&&v&&(k.current.setStyle(T?g:m),k.current.once("style.load",()=>{O()}))},[T]),(0,n.useEffect)(()=>{if(k.current&&v)if(C.current.clear(),k.current.getSource("auctions")){let e=I();if(k.current.getSource("auctions").setData(e),k.current.getLayer("unclustered-point")){let e=W();k.current.setPaintProperty("unclustered-point","circle-color",e["circle-color"])}let t=M?.data||[];if(t.length>1){let e=new(s()).LngLatBounds;t.forEach(t=>e.extend([t.longitude,t.latitude])),k.current.fitBounds(e,{padding:50,maxZoom:12})}else 1===t.length&&k.current.flyTo({center:[t[0].longitude,t[0].latitude],zoom:10})}else O()},[M,v,S]),w)return(0,o.jsx)("div",{className:"bg-card dark:bg-card border border-border dark:border-border rounded-lg p-8 text-center",children:(0,o.jsx)("p",{className:"text-muted-foreground dark:text-muted-foreground",children:w})});let U=!!M&&M.returned<M.total_matching,G=M?M.total_matching-M.total_mappable:0,Q=M?M.total_mappable-M.returned:0;return(0,o.jsxs)("div",{className:b?"h-full flex flex-col min-h-0":void 0,children:[R&&(0,o.jsx)("div",{"data-testid":"map-fetch-error",className:"mb-3 px-3 py-2 rounded-md bg-secondary dark:bg-primary/15/20 text-xs text-primary dark:text-primary",children:R}),U&&(0,o.jsxs)("div",{"data-testid":"map-truncation-banner",className:"mb-3 px-3 py-2 rounded-md bg-secondary dark:bg-foreground
9/15/20 text-xs text-foreground dark:text-foreground",children:["Showing ",M.returned.toLocaleString()," of ",M.total_matching.toLocaleString()," matching auctions on the map.",G>0&&` ${G.toLocaleString()} have no coordinates and cannot be plotted.`,Q>0&&` ${Q.toLocaleString()} more exceed the display cap.`]}),(0,o.jsxs)("div",{ref:y,className:N?"fixed inset-0 z-50 bg-card dark:bg-background":`bg-card dark:bg-card border border-border dark:border-border rounded-lg overflow-hidden relative${b?" flex-1 min-h-0":""}`,children:[B&&(0,o.jsx)("div",{className:"absolute inset-0 bg-card/80 dark:bg-card/80 z-10 flex items-center justify-center",children:(0,o.jsx)("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})}),(0,o.jsx)("div",{ref:h,className:N||b?"w-full h-full":"w-full h-[600px]"}),(0,o.jsxs)("div",{className:"absolute top-3 left-3 z-20 flex flex-col gap-2",children:[(0,o.jsx)("button",{onClick:q,className:"min-h-11 bg-card/90 dark:bg-card/90 backdrop-blur-sm border border-input dark:border-input rounded-md px-3 py-2 text-sm font-medium text-foreground dark:text-foreground hover:bg-card dark:hover:bg-card transition-colors shadow-sm flex items-center gap-1.5",title:N?"Exit fullscreen (Esc)":"Fullscreen map",children:N?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})}),"Exit"]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M2
90.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),"Fullscreen"]})}),(0,o.jsxs)("button",{onClick:H,className:"min-h-11 bg-card/90 dark:bg-card/90 backdrop-blur-sm border border-input dark:border-input rounded-md px-3 py-2 text-sm font-medium text-foreground dark:text-foreground hover:bg-card dark:hover:bg-card transition-colors shadow-sm flex items-center gap-1.5",title:T?"Switch to streets":"Switch to satellite",children:[(0,o.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 6.75V15m6-6v8.25m.503 3.498l4.875-2.437c.381-.19.622-.58.622-1.006V4.82c0-.836-.88-1.38-1.628-1.006l-3.869 1.934c-.317.159-.69.159-1.006 0L9.503 3.252a1.125 1.125 0 00-1.006 0L3.622 5.689C3.24 5.88 3 6.27 3 6.695V19.18c0 .836.88 1.38 1.628 1.006l3.869-1.934c.317-.159.69-.159 1.006 0l4.994 2.497c.317.158.69.158 1.006 0z"})}),T?"Streets":"Satellite"]}),(0,o.jsxs)("div",{className:"bg-card/90 dark:bg-card/90 backdrop-blur-sm border border-border dark:border-border rounded-md overflow-hidden shadow-sm",children:[(0,o.jsx)("button",{onClick:()=>E("type"),className:`min-h-11 px-3 py-2 text-sm font-medium transition-colors ${"type"===S?"bg-primary text-primary-foreground":"text-muted-foreground dark:text-muted-foreground hover:text-foreground dark:hover:text-foreground"}`,children:"Type"}),(0,o.jsx)("button",{onClick:()=>E("zoning"),className:`min-h-11 px-3 py-2 text-sm font-medium transition-colors ${"zoning"===S?"bg-primary text-primary-foreground":"text-muted-foreground dark:text-muted-foreground hover:text-foreground dark:hover:text-foreground"}`,children:"Zoning"})]})]}),(0,o.jsx)("div",{className:`absolute ${N?"bottom-6 left-6":"bottom-3 left-3"} max-w-[calc(100%-1.5rem)] bg-card/90 dark:bg-card/90 backdrop-blur-sm rounded-md px-3 py-2 text-xs text-muted-foreground dark:text-muted-foreground border border-border dark:border-border z-20`,children:"type"===S?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,o.jsx)("span",{className:"uppercase tracking-wide text-xs opacity-70 w-[68px] shrink-0",children:"Pin type"}),(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-primary mr-1"})," Foreclosure"]}),(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-foreground mr-1"})," Tax Deed"]})]}),(0,o.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 mt-1 pt-1 border-t border-border dark:border-border",children:[(0,o.jsx)("span",{className:"uppercase tracking-wide text-xs opacity-70 w-[68px] shrink-0",children:"Cluster size"}),(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"inline-block w-3 h-3 rounded-full bg-primary mr-1 text-xs text-primary-foreground text-center leading-3",children:"n"})," <10"]}),(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"inline-block w-3 h-3 rounded-full bg-primary-hover mr-1 text-xs text-primary-foreground text-center leading-3",children:"n"})," 10-49"]}),(0,o.jsxs)("span",{children:[(0,o.jsx)("span",{className:"inline-block w-3 h-3 rounded-full bg-muted-foreground mr-1 text-xs text-primary-foreground text-center leading-3",children:"n"})," 50+"]})]})]}):(0,o.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:Object.entries(d.eZ).map(([e,t])=>(0,o.jsxs)("span",{className:"flex items-center gap-1",children:[(0,o.jsx)("span",{className:"inline-block w-2 h-2 rounded-full",style:{backgroundColor:t.hex}}),e]},e))})}),N&&(0,o.jsxs)("div",{className:"absolute top-3 right-16 z-20 bg-foreground
9/90 backdrop-blur-sm rounded-md px-3 py-2 text-sm text-background",children:["Press ",(0,o.jsx)("kbd",{className:"bg-card/20 px-1 py-0.5 rounded text-background font-mono",children:"Esc"})," to exit"]})]})]})}},46059:(e,t,r)=>{"use strict";function o(e){return{id:e.id,county:e.county,case_number:e.case_number??"",property_address:e.property_address,auction_type:e.sale_type||"",auction_date:e.auction_date,plaintiff:e.plaintiff,assessed_value:e.assessed_value,market_value:e.market_value,opening_bid:e.opening_bid,parcel_id:e.parcel_id,source_url:null,scraped_at:null,created_at:null,year_built:e.year_built,owner_name:e.owner_name,latitude:e.latitude,longitude:e.longitude,photo_url:null,is_vacant_land:null,sale_type:e.sale_type,living_area_sqft:e.living_area_sqft,cert_number:e.cert_number}}r.d(t,{qf:()=>o})},75173:()=>{}}]);

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.