1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[794],{1279:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...search]",function(){return e(9877)}])},2573:function(t,n,e){"use strict";e.d(n,{U:function(){return b},t:function(){return y}});var o=e(2729),i=e(5893),r=(e(7294),e(2015)),a=e(5675),s=e.n(a),c=e(1664),l=e.n(c),d=e(4294),u=e(7598);function f(){const t=(0,o._)(["\n\tdisplay: grid;\n\tgap: 20px;\n\tborder-radius: 6px;\n\n\t@media "," {\n\t\tmargin: 0 0 56px 0;\n\t}\n"]);return f=function(){return t},t}function p(){const t=(0,o._)(["\n\tdisplay: grid;\n\tpadding: 0;\n\tgap: 33px;\n"]);return p=function(){return t},t}function h(){const t=(0,o._)(["\n\twidth: 120px;\n\theight: 96px;\n\tborder-radius: 6px;\n\tflex-shrink: 0;\n\toverflow: hidden;\n\tposition: relative;\n\n\t@media "," {\n\t\twidth: 90px;\n\t\theight: 90px;\n\t}\n"]);return h=function(){return t},t}function m(){const t=(0,o._)(["\n\tdisplay: grid;\n\tgap: 8px;\n"]);return m=function(){return t},t}function g(){const t=(0,o._)(["\n\theight: 70px;\n\tobject-fit: cover;\n\tobject-position: center;\n"]);return g=function(){return t},t}function x(){const t=(0,o._)(["\n\tfont-size: 14px;\n\tfont-style: normal;\n\tfont-weight: ",";\n\tline-height: 160%;\n\tletter-spacing: 0.168px;\n\tcolor: ",";\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 2;\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\n\t@media "," {\n\t\t-webkit-line-clamp: 2;\n\t}\n"]);return x=function(){return t},t}function v(){const t=(0,o._)(["\n\tfont-size: 12px;\n\tfont-style: normal;\n\tfont-weight: 400;\n\tline-height: 150%;\n\tletter-spacing: 0.96px;\n\ttext-transform: uppercase;\n\tcolor: ",";\n"]);return v=function(){return t},t}function w(){const t=(0,o._)(["\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 15px;\n\n\t&:hover {\n\t\t"," {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n"]);return w=function(){return t},t}const y=t=>{let{articles:n}=t;var e;const o=null!==(e=null===n||void 0===n?void 0:n.slice(0,3))&&void 0!==e?e:[];return(0,i.jsx)(j,{children:(0,i.jsx)(I,{children:o.map((t=>(0,i.jsx)(b,{article:t},t.slug)))})})},b=t=>{let{article:n,titleFontWeight:e,...o}=t;var r,a;const s="/resources/".concat(n.slug);var c;const l=null!==(c=null===(r=n.child_category[0])||void 0===r?void 0:r.name)&&void 0!==c?c:null===(a=n.parent_category[0])||void 0===a?void 0:a.name;return(0,i.jsxs)(T,{href:s,...o,children:[(0,i.jsx)(_,{children:(0,i.jsx)(k,{src:n.featured_media.src,alt:n.featured_media.alt,fill:!0,sizes:"(max-width: ".concat(u.BP.sm,"px) 90px, 120px")})}),(0,i.jsxs)(C,{children:[l?(0,i.jsx)($,{children:"in ".concat(l)}):null,(0,i.jsx)(S,{fontWeight:e,children:n.title})]})]})},j=r.default.div.withConfig({componentId:"sc-6fcdcb6d-0"})(f(),u.i.sm),I=r.default.ul.withConfig({componentId:"sc-6fcdcb6d-1"})(p()),_=r.default.div.withConfig({componentId:"sc-6fcdcb6d-2"})(h(),u.i.sm),C=r.default.div.withConfig({componentId:"sc-6fcdcb6d-3"})(m()),k=(0,r.default)(s()).withConfig({componentId:"sc-6fcdcb6d-4"})(g()),S=r.default.div.withConfig({componentId:"sc-6fcdcb6d-5"})(x(),(t=>{let{fontWeight:n}=t;return null!==n&&void 0!==n?n:700}),d.yx,u.i.sm),$=r.default.div.withConfig({componentId:"sc-6fcdcb6d-6"})(v(),d.p4),T=(0,r.default)(l()).withConfig({componentId:"sc-6fcdcb6d-7"})(w(),S)},6715:function(t,n,e){"use strict";e.d(n,{ZP:function(){return Z}});var o=e(2729),i=e(5893),r=(e(7294),e(6383)),a=e(7364),s=e(4294),c=e(7598),l=e(5675),d=e.n(l),u=e(1664),f=e.n(u),p=e(2015);function h(){const t=(0,o._)(["\n\twidth: 100%;\n\theight: 218px;\n\tborder-radius: 6px;\n\tflex-shrink: 0;\n\toverflow: hidden;\n\tposition: relative;\n\n\t@media "," {\n\t\theight: 260px;\n\t}\n"]);return h=function(){return t},t}function m(){const t=(0,o._)(["\n\theight: 70px;\n\tobject-fit: cover;\n\tobject-position: center;\n"]);return m=function(){return t},t}function g(){const t=(0,o._)(["\n\tfont-size: 18px;\n\tfont-weight: 700;\n\tline-height: 150%;\n\tletter-spacing: 0.252px;\n"]);return g=function(){return t},t}function x(){const t=(0,o._)(["\n\tfont-size: 12px;\n\tline-height: 140%;\n\tletter-spacing: 0.144px;\n\tcolor: ",";\n\n\tp {\n\t\tmargin: 0;\n\t\tfont-size: 12px;\n\t\tline-height: 140%;\n\t\tletter-spacing: 0.144px;\n\t\tcolor: ",";\n\t}\n"]);return x=function(){return t},t}function v(){const t=(0,o._)(["\n\theight: 32px;\n\tdisplay: flex;\n\tgap: 10px;\n\talign-items: center;\n\n\t@media "," {\n\t\tfont-size: 10px;\n\t}\n"]);return v=function(){return t},t}function w(){const t=(0,o._)(["\n\tborder-radius: 50%;\n"]);return w=function(){return t},t}function y(){const t=(0,o._)(["\n\tfont-size: 12px;\n\tletter-spacing: 0.012em;\n\tcolor: ",";\n"]);return y=function(){return t},t}function b(){const t=(0,o._)(["\n\tfont-size: 12px;\n\tletter-spacing: 0.012em;\n\tcolor: ",";\n"]);return b=function(){return t},t}function j(){const t=(0,o._)(["\n\tdisplay: grid;\n\tgap: 8px;\n\tmargin-bottom: 8px;\n\tborder-radius: 6px;\n\n\t&:hover {\n\t\t"," {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n"]);return j=function(){return t},t}var I=t=>{let{article:n,showAuthor:e=!0}=t;var o,r,s;const c="/resources/".concat(n.slug);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(M,{href:c,children:[(0,i.jsx)(_,{children:(0,i.jsx)(C,{src:n.featured_media.src,alt:n.featured_media.alt,fill:!0,sizes:"30vw"})}),(0,i.jsx)(k,{children:n.title}),n.excerpt?(0,i.jsx)(S,{children:(0,i.jsx)(a.VY,{contents:n.excerpt})}):null]}),e?(0,i.jsxs)($,{children:[(0,i.jsx)(T,{src:n["author-image"],alt:"author",width:32,height:32}),(0,i.jsxs)("div",{children:[(0,i.jsx)(z,{children:"by ".concat(n.author," in ")}),(0,i.jsx)(P,{href:"/resources/".concat((null===(r=n.child_category[0])||void 0===r||null===(o=r.slug)||void 0===o?void 0:o.replaceAll("_","/"))||""),children:null===(s=n.child_category[0])||void 0===s?void 0:s.name})]})]}):null]})};const _=p.default.div.withConfig({componentId:"sc-73b38570-0"})(h(),c.i.sm),C=(0,p.default)(d()).withConfig({componentId:"sc-73b38570-1"})(m()),k=p.default.div.withConfig({componentId:"sc-73b38570-2"})(g()),S=p.default.div.withConfig({componentId:"sc-73b38570-3"})(x(),s.X4,s.X4),$=p.default.div.withConfig({componentId:"sc-73b38570-4"})(v(),c.i.sm),T=(0,p.default)(d()).withConfig({componentId:"sc-73b38570-5"})(w()),z=p.default.span.withConfig({componentId:"sc-73b38570-6"})(y(),s.Gi),P=(0,p.default)(f()).withConfig({componentId:"sc-73b38570-7"})(b(),s.p4),M=(0,p.default)(f()).withConfig({componentId:"sc-73b38570-8"})(j(),k);var q=e(2573),L=e(3244);function F(){const t=(0,o._)(["\n\tdisplay: grid;\n\tmax-width: 788px;\n\tgrid-template-columns: 1fr 1fr;\n\t@media "," {\n\t\tgrid-template-columns: 1fr;\n\t}\n\tgap: 38px;\n\n\t@media "," {\n\t\tgrid-template-columns: 1fr;\n\t\tmargin-bottom: 0;\n\t\tgap: 40px;\n\t}\n"]);return F=function(){return t},t}function N(){const t=(0,o._)([""]);return N=function(){return t},t}function D(){const t=(0,o._)(["\n\tcolor: ",";\n\tfont-size: 28px;\n\tmargin: 23px 0;\n\t/* height: 39px; */\n\tfont-style: normal;\n\tfont-weight: 700;\n\tline-height: 140%;\n\tletter-spacing: 0.392px;\n\t@media (max-width: ","px) {\n\t\t","\n\t}\n\t@media "," {\n\t\tfont-size: 24px;\n\t\tline-height: 130%;\n\t\tletter-spacing: 0.288px;\n\t}\n"]);return D=function(){return t},t}var Z=t=>{let{articles:n,title:e}=t;const o=n[0],a=n.slice(1,4);return(0,i.jsxs)(O,{children:[!!e&&(0,i.jsx)(Y,{children:e}),(0,i.jsxs)(V,{children:[(0,i.jsx)(r.b6,{children:(0,i.jsx)(I,{article:o})}),(0,i.jsx)(r.Ep,{children:(0,i.jsx)(q.t,{articles:a})})]})]})};const V=p.default.div.withConfig({componentId:"sc-f54251d9-0"})(F(),c.i.llg,c.i.sm),O=p.default.div.withConfig({componentId:"sc-f54251d9-1"})(N()),Y=p.default.h2.withConfig({componentId:"sc-f54251d9-2"})(D(),s.Jt,c.BP.xl,L.Mg,c.i.sm)}
1,9877:function(t,n,e){"use strict";e.r(n),e.d(n,{__N_SSG:function(){return he},default:function(){return me}});var o=e(5893),i=e(3363),r=e(4349),a=e(5735),s=e(1163),c=e(7294),l=e(3729),d=e(665),u=e(2729),f=e(4294),p=e(3244),h=e(7598),m=e(2015);function g(){const t=(0,u._)(["\n\tmin-height: 500px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tp {\n\t\tcolor: ",";\n\t\tmargin-top: 0;\n\t\ttext-align: center;\n\t}\n\thr {\n\t\tborder: 0;\n\t\tmargin-top: 30px;\n\t\tborder-top: solid 1px #f2f2f2;\n\t\twidth: 100%;\n\t}\n"]);return g=function(){return t},t}function x(){const t=(0,u._)(["\n\tcolor: ",";\n\tfont-size: 2em;\n\tfont-weight: 700;\n\tmargin-bottom: 10px;\n\t@media "," {\n\t\tfont-size: 24px;\n\t}\n"]);return x=function(){return t},t}function v(){const t=(0,u._)(["\n\tcolor: ",";\n\t@media "," {\n\t\tfont-size: 12px;\n\t}\n"]);return v=function(){return t},t}function w(){const t=(0,u._)(["\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\tz-index: 1000;\n\twidth: 100%;\n\tpadding-bottom: 10px;\n\ttext-align: center;\n\tbackground: linear-gradient(#eee0, #7a7a7a);\n\tbutton {\n\t\tmargin: 10px;\n\t\tborder: 0;\n\t\tpadding: 10px;\n\t\tborder-radius: 25px;\n\t\t",";\n\t\tfont-weight: 500;\n\t\tfont-size: 14px;\n\t\tcolor: ",";\n\t\tline-height: 18px;\n\t\tletter-spacing: 1.4%;\n\t\tmin-width: 160px;\n\t\theight: 50px;\n\t\tbackground-color: #fff;\n\t\tdiv {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tgap: 10px;\n\t\t}\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n"]);return w=function(){return t},t}function y(){const t=(0,u._)(["\n\tdisplay: grid;\n\t@media (max-width: ","px) {\n\t\tgrid-template-columns: 1fr 420px;\n\t}\n\t@media "," {\n\t\tgrid-template-columns: 1fr;\n\t}\n\tgrid-template-columns: 1fr 830px;\n\tgrid-template-rows: 1fr;\n\tposition: relative;\n"]);return y=function(){return t},t}function b(){const t=(0,u._)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\twidth: 100%;\n\tposition: relative;\n\tmargin-top: 140px;\n\t@media (max-width: ","px) {\n\t\t/* padding: 1rem; */\n\t\t/* padding-right: 1rem; */\n\t}\n"]);return b=function(){return t},t}function j(){const t=(0,u._)(["\n\tdisplay: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 999;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: rgba(255, 255, 255, 0.7);\n"]);return j=function(){return t},t}function I(){const t=(0,u._)(["\n\twidth: 100%;\n\tdisplay: grid;\n\talign-content: baseline;\n\t// According to RT2-467 specs 382px is the max width of a card\n\t@media (max-width: ","px) {\n\t\tgrid-template-columns: minmax(300px, 382px);\n\t\tjustify-content: right;\n\t}\n\t@media "," {\n\t\tgrid-template-columns: minmax(300px, 382px);\n\t\tjustify-content: right;\n\t}\n\t@media "," {\n\t\tmargin: 20px 0;\n\t\tjustify-content: center;\n\t}\n\tgrid-template-columns: repeat(2, minmax(330px, 382px));\n\tgap: 20px;\n\tjustify-content: center;\n\talign-content: baseline;\n"]);return I=function(){return t},t}function _(){const t=(0,u._)(["\n\tpadding: 60px 0;\n"]);return _=function(){return t},t}function C(){const t=(0,u._)(["\n\tjustify-content: center;\n\tdisplay: flex;\n\tpadding: 36px 0;\n"]);return C=function(){return t},t}function k(){const t=(0,u._)(["\n\t@media "," {\n\t\tposition: relative;\n\t}\n\tposition: sticky;\n\tmargin-top: 2px;\n\t/* height: calc(100vh - 50px); */\n\tmin-width: 50%;\n\tbackground-color: #f1f1f1;\n\tborder-radius: 7px;\n"]);return k=function(){return t},t}function S(){const t=(0,u._)(["\n\toverflow-y: scroll;\n\t> div {\n\t\tpadding: 20px;\n\t}\n\n\t.no-match {\n\t\tmargin: 0;\n\t\tfont-weight: 500;\n\t\tfont-size: 1.5em;\n\t}\n\tp {\n\t\tmargin-bottom: 30px;\n\t}\n\t.see-more {\n\t\tmargin: -5px 0 30px;\n\t}\n\thr {\n\t\tborder-bottom: 0;\n\t\tborder-top: solid 1px #ddd;\n\t}\n\th4 {\n\t\tmargin-top: 20px;\n\t}\n"]);return S=function(){return t},t}function T(){const t=(0,u._)(["\n\tcolumn-width: 15em;\n\tcolumn-gap: 1em;\n\ta {\n\t\tmargin: 15px 0;\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\t:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"]);return T=function(){return t},t}function z(){const t=(0,u._)(["\n\tposition: fixed;\n\ttop: 0;\n\twidth: 100%;\n\theight: 140px;\n\tz-index: 10;\n"]);return z=function(){return t},t}function P(){const t=(0,u._)(["\n\tdisplay: ",";\n\theight: calc(100vh - 140px);
1\n\toverflow-y: scroll;\n\tbox-shadow: -13px 9px 10px 3px rgb(0 0 0 / 15%);\n\tz-index: 0;\n\t.actual-content {\n\t\tpadding: 20px;\n\t\tposition: relative;\n\t}\n\th2 {\n\t\tdisplay: block;\n\t\tmargin-block-start: 0.83em;\n\t\tmargin-block-end: 0.83em;\n\t}\n"]);return P=function(){return t},t}function M(){const t=(0,u._)(["\n\tpadding: 0 40px;\n"]);return M=function(){return t},t}const q=m.default.div.withConfig({componentId:"sc-742ff4b4-0"})(g(),f.Gi),L=m.default.h1.withConfig({componentId:"sc-742ff4b4-1"})(x(),f.Jt,h.i.sm),F=m.default.p.withConfig({componentId:"sc-742ff4b4-2"})(v(),f.Gi,h.i.sm),N=(0,m.default)(p.vp).withConfig({componentId:"sc-742ff4b4-3"})(w(),p.Wn,f.Jt),D=m.default.div.withConfig({componentId:"sc-742ff4b4-4"})(y(),h.BP.xl,h.i.sm),Z=m.default.div.withConfig({componentId:"sc-742ff4b4-5"})(b(),h.BP.sm),V=m.default.div.withConfig({componentId:"sc-742ff4b4-6"})(j(),(t=>t.isLoading?"block":"none"));h.i;const O=m.default.div.withConfig({componentId:"sc-742ff4b4-7"})(I(),h.BP.xl,h.i.md,h.i.sm),Y={NoMatchProperties:q,Header:L,SubText:F,SRPsmallScreen:N,SRPcontainer:D,InternalLinksSection:m.default.div.withConfig({componentId:"sc-742ff4b4-8"})(_()),BreadcrumbsContainer:m.default.div.withConfig({componentId:"sc-742ff4b4-9"})(C()),NoMapPlaceholder:m.default.div.withConfig({componentId:"sc-742ff4b4-10"})(k(),h.i.sm),NoPropertiesContainer:m.default.div.withConfig({componentId:"sc-742ff4b4-11"})(S()),InternalLinksColumn:m.default.div.withConfig({componentId:"sc-742ff4b4-12"})(T(),f.p4),Wrapper:Z,Grid:O,LoadWrapper:V,HeaderWrapper:m.default.div.withConfig({componentId:"sc-742ff4b4-13"})(z()),SRPscrollContainer:m.default.div.withConfig({componentId:"sc-742ff4b4-14"})(P(),(t=>t.hide?"none":"block")),NoMatchLinkContainer:m.default.div.withConfig({componentId:"sc-742ff4b4-15"})(M())};var B=e(44),H=e(9245),R=e(6715),E=e(697),W=e(1552),A=e(4190),G=e(7484),U=e.n(G),J=e(1664),X=e.n(J);const K="Foreclosure Market Insights for $[display-name]",Q="Obtain market insights and discover investment opportunities in foreclosed homes in $[display-name] by reviewing the latest foreclosure trends.\n Our comprehensive data tables and trend graphs offer valuable insights into the current $[display-name] foreclosure market,\n providing you with the information required to recognize potential investment opportunities or to purchase a new home in the area.",tt="The zip code that offers the most investment opportunities is $[highest-foreclosure-zip],\n boasting a total of $[foreclosure-count] foreclosed homes currently available for sale.",nt="",et="At present, $[auction-count] properties in $[display-name] are on auction.\n These auction homes make up $[auction-percentage] of all homes for sale in the area.\n The average estimated market price for these properties is $$[average-auction-value].",ot="",it="In $[display-name], the current number of homes for sale is $[for-sale-count], with an average estimated sale price of $[average-sale-price].\n Over the last 12 months, $[sold-12mo] homes were sold at a median value of $[median-value-12mo].",rt="Currently, $[display-name] has $[for-sale-count] homes listed for sale, out of which $[foreclosure-count] are foreclosed properties.",at="The average price of homes in $[display-name] stands at $[average-price], representing a $[yoy-percentage]%\n $[increase-decrease] from the average price of $[year-before-average-price] recorded in $[previous-year].",st="As of $[current-year], the average price per square foot of homes in $[display-name] is $[average-price-per-sqft].";var ct=e(958);function lt(){const t=(0,u._)(["\n\twidth: inherit;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 24px;\n"]);return lt=function(){return t},t}function dt(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 28px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\tcolor: #0d2a40;\n\tflex: none;\n\torder: 0;\n\tflex-grow: 0;\n\tmargin-top: 24px;\n\t@media (max-width: ","px) {\n\t\t","\n\t}\n"]);return dt=function(){return t},t}function ut(){const t=(0,u._)(["\n\tdisplay: flex;\n\tgap: 16px;\n\twidth: 100%;\n\tflex-direction: column;\n\talign-items: flex-start;\n\tpadding: 32px;\n\tbackground: #ffffff;\n\tbox-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);\n\tborder-radius: 6px;\n\tflex: none;\n\torder: 1;\n\tflex-grow: 0;\n"]);return ut=function(){return t},t}function ft(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 20px;\n\tline-height: 140%;\n\tletter-spacing: 0.02em;\n\tcolor: #0d2a40;\n\tflex: none;\n\torder: 0;\n\tflex-grow: 0;\n\tmargin: 0;\n"]);return ft=function(){return t},t}function pt(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-weight: 400;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.015em;\n\tcolor: #333d47;\n\tflex: none;\n\torder: 0;\n\tflex-grow: 0;\n"]);return pt=function(){return t},t}function ht(){const t=(0,u._)(["\n\tborder-collapse: collapse;\n\twidth: 100%;\n"]);return ht=function(){return t},t}function mt(){const t=(0,u._)(["\n\tbox-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);\n"]);return mt=function(){return t},t}function gt(){const t=(0,u._)(["\n\tpadding: 1rem 0;\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\ttext-align: left;\n"]);return gt=function(){return t},t}
1function xt(){const t=(0,u._)([""]);return xt=function(){return t},t}function vt(){const t=(0,u._)(["\n\tbox-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);\n"]);return vt=function(){return t},t}function wt(){const t=(0,u._)(["\n\tpadding: 1rem 0;\n\ttext-align: left;\n\tfont-style: normal;\n\tfont-weight: ",";\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\tcolor: ",";\n\tvertical-align: top;\n"]);return wt=function(){return t},t}function yt(){const t=(0,u._)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 20px;\n\tmargin-top: 32px;\n\twidth: 100%;\n"]);return yt=function(){return t},t}function bt(){const t=(0,u._)(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n"]);return bt=function(){return t},t}function jt(){const t=(0,u._)(["\n\tdisplay: flex;\n\talign-items: center;\n\tfont-style: normal;\n\tfont-weight: 500;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\tcolor: ",';\n\n\t&::before {\n\t\tcontent: "";\n\t\tdisplay: inline-block;\n\t\twidth: 10px;\n\t\theight: 10px;\n\t\tbackground: ',";\n\t\tborder-radius: 50%;\n\t\tmargin-right: 8px;\n\t}\n"]);return jt=function(){return t},t}function It(){const t=(0,u._)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\trow-gap: 20px;\n\twidth: 100%;\n\tpadding-left: 32px;\n"]);return It=function(){return t},t}function _t(){const t=(0,u._)(["\n\tdisplay: flex;\n\twidth: 50%;\n\tjustify-content: flex-end;\n\talign-items: center;\n"]);return _t=function(){return t},t}function Ct(){const t=(0,u._)(["\n\twidth: ","%;\n\tborder-radius: 6px;\n\theight: 8px;\n\tbackground: ",";\n\tmargin-right: 24px;\n"]);return Ct=function(){return t},t}function kt(){const t=(0,u._)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 52px;\n\twidth: 100%;\n"]);return kt=function(){return t},t}function St(){const t=(0,u._)(["\n\tmargin-top: 16px;\n\twidth: inherit;\n"]);return St=function(){return t},t}function $t(){const t=(0,u._)(["\n\tdisplay: block;\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\tcolor: ",";\n\tcursor: pointer;\n\tmargin-top: 16px;\n"]);return $t=function(){return t},t}const Tt=c.lazy((()=>Promise.all([e.e(104),e.e(987)]).then(e.bind(e,987)))),zt=()=>(0,o.jsx)("div",{children:"Loading..."}),Pt={fcAllSaleCount:{text:"Foreclosures",color:f.by},forSaleCount:{text:"For Sale",color:f.mv},recentlySoldCount:{text:"Recently Sold",color:f.$A}},Mt={preFCSaleCount:{text:"Pre-Foreclosures",color:"#F4CD00"},reoFCSaleCount:{text:"Bank Owned",color:f.bm},aucSaleCount:{text:"Auctions",color:f.YP}},qt={oneBed:{text:"1 Bedroom",url:"/1_beds/"},twoBed:{text:"2 Bedrooms",url:"/2_beds"},threeBed:{text:"3 Bedrooms",url:"/3_beds"},fourBed:{text:"4 Bedrooms",url:"/4_beds"}};const Lt=t=>{const[n,e]=(0,c.useState)(),[i,r]=(0,c.useState)(),[a,s]=(0,c.useState)(),[l,d]=(0,c.useState)(),[u,p]=(0,c.useState)(!0),[h,m]=(0,c.useState)(!0),{currentListings:g}=t,{propertyCountByFilter:x,monthlyTrendData:v}=t.forSaleData||{},w=(null===v||void 0===v?void 0:v.map((t=>{const n=u?"MMM YYYY":"MMMM YYYY";return{label:U()(t.month).format(n),value:t.avgValue}})))||[],y=(null===v||void 0===v?void 0:v.map((t=>{const n=h?"MMM YYYY":"MMMM YYYY";return{label:U()(t.month).format(n),value:t.perSqftVal}})))||[],b=g?Object.keys(g).reduce(((t,n)=>t+g[n]),0):0,j=(null===v||void 0===v?void 0:v.reduce(((t,n)=>t+n.propSoldCount),0))||0,I=U()().format("YYYY"),_=+I-1,C=(null===g||void 0===g?void 0:g.forSaleCount)||0,k=(null===g||void 0===g?void 0:g.fcAllSaleCount)||0;let S=0,$=0,T=0,z=0;v&&v.length>0&&(S=v[0].avgValue,$=v.reduce(((t,n)=>t+n.perSqftVal),0)/v.length,z=v[0].avgSoldPrice,T=v[v.length-1].avgValue);const P=(S-T)/S*100,M=P?P.toFixed(2):"0",q=P>0?"increase":"decrease",L=(null===v||void 0===v?void 0:v.map((t=>t.avgValue)))||[],F="$".concat(parseFloat(function(t){const n=Array.from(t).sort(((t,n)=>t-n)),e=Math.floor(n.length/2);return n.length%2===0?(n[e-1]+n[e])/2:n[e]}(L).toFixed(0)).toLocaleString()),N=(0,c.useMemo)((()=>({"display-name":t.displayName,"sold-12mo":j.toLocaleString(),"average-price":"$".concat(parseFloat(S.toFixed()).toLocaleStr
1ing()),"for-sale-count":C.toLocaleString(),"foreclosure-count":k.toLocaleString(),"year-before-average-price":"$".concat(T.toLocaleString()),"current-year":I,"previous-year":_.toString(),"average-price-per-sqft":"$".concat($.toLocaleString()),"average-sale-price":"$".concat(parseFloat(null===z||void 0===z?void 0:z.toFixed()).toLocaleString()),"median-value-12mo":F,"yoy-percentage":M,"increase-decrease":q,"average-mos":"[average-mos]","average-weeks":"[average-weeks]"})),[S,$,z,I,C,k,q,F,_,t.displayName,j,T,M]);(0,c.useEffect)((()=>{const t=(0,ct.y3)(it,N),n=(0,ct.y3)(rt,N),o=(0,ct.y3)(at,N),i=(0,ct.y3)(st,N);e(t),r(n),s(o),d(i)}),[N]);const D=t=>Object.keys(t).map(((n,e)=>{const i=t[n],r=g?g[n]:0;let a=r/b*100;return(0,o.jsxs)(c.Fragment,{children:[(0,o.jsxs)(At,{children:[(0,o.jsx)(Gt,{color:i.color,children:"".concat(i.text," (").concat(null===r||void 0===r?void 0:r.toLocaleString(),")")}),(0,o.jsxs)(Jt,{children:[(0,o.jsx)(Xt,{width:a>1?a:1,color:i.color}),a.toFixed(1),"%"]})]},"".concat(n).concat(e)),"fcAllSaleCount"===n&&(0,o.jsx)(Ut,{children:D(Mt)},"fc-".concat(e))]},e)})),Z=()=>(0,o.jsxs)(Dt,{children:[(0,o.jsx)(Zt,{id:"auto-forsale-marketing-insight-sub-heading-property-listing",children:"Property listings by type in ".concat(t.displayName)}),(0,o.jsx)(Vt,{children:i}),(0,o.jsx)(Wt,{children:D(Pt)})]}),V=()=>(0,o.jsxs)(Dt,{children:[(0,o.jsx)(Vt,{id:"auto-forsale-marketing-insight-sub-heading-bedroom",children:n}),(0,o.jsxs)(Ot,{children:[(0,o.jsx)(Yt,{children:(0,o.jsxs)(Rt,{children:[(0,o.jsx)(Bt,{children:"Bedrooms"}),(0,o.jsx)(Bt,{children:"Listings"})]})}),(0,o.jsx)(Ht,{children:Object.keys(x).map(((n,e)=>{const i=qt[n],r=i.text,a=x?x[n]:0;return(0,o.jsxs)(Rt,{children:[(0,o.jsx)(Et,{bold:!0,color:f.p4,children:(0,o.jsx)(X(),{href:"/".concat(t.locationUrl,"/for-sale").concat(i.url),shallow:!1,children:r})}),(0,o.jsx)(Et,{children:a})]},e)}))})]})]}),O=()=>(0,o.jsxs)("div",{children:[(0,o.jsx)(Vt,{id:"auto-value-trends-ave-price-homes-sub-heading",children:a}),u?(0,o.jsx)(c.Suspense,{fallback:(0,o.jsx)(zt,{}),children:(0,o.jsx)(Tt,{dataSets:[{data:w.reverse(),color:f.mv}],ySymbol:"$",position:"left"})}):(0,o.jsx)(Qt,{id:"auto-value-trends-ave-price-homes-chart",children:(0,o.jsxs)(Ot,{children:[(0,o.jsx)(Yt,{}),(0,o.jsx)(Ht,{children:null===w||void 0===w?void 0:w.map(((t,n)=>(0,o.jsxs)(Rt,{children:[(0,o.jsx)(Et,{bold:!0,children:t.label}),(0,o.jsx)(Et,{children:"$".concat(t.value.toLocaleString())})]},n)))})]})}),(0,o.jsx)(tn,{id:"auto-value-trends-ave-price-homes-link",onClick:()=>p(!u),children:u?"View as Table":"View as Graph"})]}),Y=()=>(0,o.jsxs)("div",{children:[(0,o.jsx)(Vt,{id:"auto-value-trends-ave-price-per-sqft-sub-heading",children:l}),h?(0,o.jsx)(c.Suspense,{fallback:(0,o.jsx)(zt,{}),children:(0,o.jsx)(Tt,{dataSets:[{data:y.reverse(),color:f.mv}],ySymbol:"$",position:"left"})}):(0,o.jsx)(Qt,{id:"auto-value-trends-ave-price-per-sqft-chart",children:(0,o.jsxs)(Ot,{children:[(0,o.jsx)(Yt,{}),(0,o.jsx)(Ht,{children:null===y||void 0===y?void 0:y.map(((t,n)=>(0,o.jsxs)(Rt,{children:[(0,o.jsx)(Et,{bold:!0,children:t.label}),(0,o.jsx)(Et,{children:"$".concat(Math.floor(t.value).toLocaleString())})]},n)))})]})}),(0,o.jsx)(tn,{id:"auto-value-trends-ave-price-per-sqft-link",onClick:()=>m(!h),children:h?"View as Table":"View as Graph"})]}),B=()=>(0,o.jsxs)(Dt,{children:[(0,o.jsx)(Zt,{id:"auto-value-trends-heading",children:"".concat(t.displayName," Home Value Trends")}),(0,o.jsxs)(Kt,{children:[(0,o.jsx)(O,{}),(0,o.jsx)(Y,{})]})]});return(0,o.jsxs)(Ft,{children:[(0,o.jsx)(Nt,{id:"auto-forsale-marketing-insight-heading",children:"Real Estate Insights for ".concat(t.displayName)}),(0,o.jsx)(V,{}),(0,o.jsx)(Z,{}),(0,o.jsx)(B,{})]})},Ft=m.default.div.withConfig({componentId:"sc-cadcf9af-0"})(lt()),Nt=m.default.div.withConfig({componentId:"sc-cadcf9af-1"})(dt(),h.BP.xl,p.Mg),Dt=m.default.div.withConfig({componentId:"sc-cadcf9af-2"})(ut()),Zt=m.default.h6.withConfig({componentId:"sc-cadcf9af-3"})(ft()),Vt=m.default.div.withConfig({componentId:"sc-cadcf9af-4"})(pt()),Ot=m.default.table.withConfig({componentId:"sc-cadcf9af-5"})(ht()),Yt=m.default.thead.withConfig({componentId:"sc-cadcf9af-6"})(mt()),Bt=m.default.th.withConfig({componentId:"sc-cadcf9af-7"})(gt()),Ht=m.default.tbody.withConfig({componentId:"sc-cadcf9af-8"})(xt()),Rt=m.default.tr.withConfig({componentId:"sc-cadcf9af-9"})(vt()),Et=m.default.td.withConfig({componentId:"sc-cadcf9af-10"})(wt(),(t=>t.bold?"500":"400"),(t=>
1t.color||f.yx)),Wt=m.default.div.withConfig({componentId:"sc-cadcf9af-11"})(yt()),At=m.default.div.withConfig({componentId:"sc-cadcf9af-12"})(bt()),Gt=m.default.span.withConfig({componentId:"sc-cadcf9af-13"})(jt(),f.yx,(t=>t.color)),Ut=m.default.div.withConfig({componentId:"sc-cadcf9af-14"})(It()),Jt=m.default.div.withConfig({componentId:"sc-cadcf9af-15"})(_t()),Xt=m.default.div.withConfig({componentId:"sc-cadcf9af-16"})(Ct(),(t=>t.width),(t=>t.color)),Kt=m.default.div.withConfig({componentId:"sc-cadcf9af-17"})(kt()),Qt=m.default.div.withConfig({componentId:"sc-cadcf9af-18"})(St()),tn=m.default.span.withConfig({componentId:"sc-cadcf9af-19"})($t(),f.p4);function nn(){const t=(0,u._)(["\n\twidth: 100%;\n"]);return nn=function(){return t},t}function en(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-weight: 400;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.015em;\n\tcolor: ",";\n\tflex: none;\n\torder: 0;\n\tflex-grow: 0;\n\tpadding-bottom: 32px;\n"]);return en=function(){return t},t}function on(){const t=(0,u._)(["\n\tborder-collapse: collapse;\n\twidth: 100%;\n"]);return on=function(){return t},t}function rn(){const t=(0,u._)(["\n\tbox-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);\n"]);return rn=function(){return t},t}function an(){const t=(0,u._)(["\n\tpadding-bottom: 1rem;\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\ttext-align: left;\n"]);return an=function(){return t},t}function sn(){const t=(0,u._)([""]);return sn=function(){return t},t}function cn(){const t=(0,u._)(["\n\t:not(:last-child) {\n\t\tbox-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);\n\t}\n"]);return cn=function(){return t},t}function ln(){const t=(0,u._)(["\n\tpadding: 1rem 0;\n\ttext-align: left;\n\tfont-style: normal;\n\tfont-weight: 400;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\tcolor: ",";\n\tvertical-align: top;\n"]);return ln=function(){return t},t}function dn(){const t=(0,u._)(["\n\ttext-align: left;\n\tfont-style: normal;\n\tfont-weight: 500;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n"]);return dn=function(){return t},t}const un={foreclosure:"Foreclosed Homes",preforeclosure:"Pre-foreclosure",auction:"Auctions",bankOwned:"Bank Owned"},fn=t=>{const n=(0,c.useMemo)((()=>({zip:"Zip Code",count:un[t.listingType],avgValue:"Avg. Est. Value"})),[t.listingType]),e=Object.keys(t.tableData.reduce(((t,n)=>Object.assign(t,n)),{}));return(0,o.jsxs)(pn,{children:[t.headingText&&(0,o.jsx)(hn,{children:t.headingText}),(0,o.jsxs)(mn,{children:[(0,o.jsx)(gn,{children:(0,o.jsx)(wn,{children:e.map(((t,e)=>(0,o.jsx)(xn,{children:n[t]},e)))})}),(0,o.jsx)(vn,{children:t.tableData.map(((t,n)=>(0,o.jsx)(wn,{children:e.map(((n,e)=>{let i=t[n];return"avgValue"===n&&(i="$".concat("number"===typeof i?(new Intl.NumberFormat).format(parseInt(i.toString(),10)):i||"-")),(0,o.jsx)(yn,{children:i},e)}))},n)))})]})]})},pn=m.default.div.withConfig({componentId:"sc-fa0e604c-0"})(nn()),hn=m.default.div.withConfig({componentId:"sc-fa0e604c-1"})(en(),f.yx),mn=m.default.table.withConfig({componentId:"sc-fa0e604c-2"})(on()),gn=m.default.thead.withConfig({componentId:"sc-fa0e604c-3"})(rn()),xn=m.default.th.withConfig({componentId:"sc-fa0e604c-4"})(an()),vn=m.default.tbody.withConfig({componentId:"sc-fa0e604c-5"})(sn()),wn=m.default.tr.withConfig({componentId:"sc-fa0e604c-6"})(cn()),yn=m.default.td.withConfig({componentId:"sc-fa0e604c-7"})(ln(),f.yx);(0,m.default)(yn).withConfig({componentId:"sc-fa0e604c-8"})(dn());function bn(){const t=(0,u._)(["\n\twidth: inherit;\n"]);return bn=function(){return t},t}function jn(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 28px;\n\tline-height: 140%;\n\tletter-spacing: 0.014em;\n\tcolor: ",";\n\tflex: none;\n\torder: 0;\n\tflex-grow: 0;\n"]);return jn=function(){return t},t}function In(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-weight: 400;\n\tfont-size: 16px;\n\tline-height: 140%;\n\tletter-spacing: 0.015em;\n\tcolor: ",";\n\tflex: none;\n\tflex-grow: 0;\n"]);return In=function(){return t},t}function _n(){const t=(0,u._)(["\n\tfont-style: normal;\n\tfont-weight: 700;\n\tfont-size: 20px;\n\tline-height: 140%;\n\tletter-spacing: 0.02em;\n\tcolor: ",";\n\tflex: none;\n\torder: 0;\n\tflex-grow: 0;\n\tmargin: 0;\n"]);return _n=function(){return t},t}function Cn(){const t=(0,u._)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: flex-start;\n\tpadding: 32px;\n\tgap: 32px;\n\tbackground: #ffffff;\n\tbox-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);\n\tborder-radius: 6px;\n\tflex: none;\n\torder: 1;\n\tflex-grow: 0;\n\tmargin: 24px 0;\n"]);return Cn=function(){return t},t}const kn=t=>{const{foreclosureTableData:n,auctionTableData:e}=t.foreclosureData,i=(0,c.useMemo)((()=>{let t="",o=0,i=0,r=0;return n.map((n=>{n.count>o&&(t=n.zip,o=n.count),i+=n.count})),r=e.reduce(((t,n)=>t+n.avgValue),0)/e.length,{highestForeclosureZip:t,count:i.toString(),avgValue:(new Intl.NumberFormat).format(r).toString()}}),[n]),r=(0,c.useMemo)((()=>{let t=0;return e.map((n=>{t+=n.count})),{count:t.toString()}}),[e]),a=(0,c.useMemo)((()=>{var n;const e=(Number(r.count)/Number(null===(n=t.currentListings)||void 0===n?void 0:n.aucSaleCount)*100).toFixed(2);return{"display-name":t.displayName,"highest-foreclosure-zip":i.highestForeclosureZip,"foreclosure-count":i.count,"auction-count":r.count,"average-starting-bid":"[average-starting-bid]","average-auction-value":i.avgValue,"average-bank-owned-value":"[average-bank-owned-value]","auction-percentage":"".concat(e,"%"),"bank-owned-percentage":"[bank-owned-percentage]"}}
1),[r.count,i.count,i.highestForeclosureZip,t.displayName]),s=(0,ct.y3)(K,{"display-name":t.displayName}),l=(0,ct.y3)(Q,{"display-name":t.displayName}),d=(0,ct.y3)(tt,{"highest-foreclosure-zip":i.highestForeclosureZip,"foreclosure-count":i.count}),u=(0,ct.y3)(et,{"display-name":t.displayName,"auction-count":r.count,"average-auction-value":i.avgValue,"auction-percentage":a["auction-percentage"]}),f=(0,ct.y3)(nt,a),p=(0,ct.y3)(ot,a);return 0===n.length&&0===e.length?null:(0,o.jsxs)(Sn,{children:[(0,o.jsx)($n,{id:"auto-foreclosure-marketing-insight-heading",children:s}),(0,o.jsx)(Tn,{id:"auto-foreclosure-marketing-insight-sub-heading",children:l}),(0,o.jsxs)(zn,{id:"auto-foreclosure-marketing-insight-details-wrapper",children:[t.foreclosureData.foreclosureTableData.length>0&&(0,o.jsx)(fn,{id:"auto-foreclosure-table-marketing-insight",tableData:t.foreclosureData.foreclosureTableData,headingText:d,listingType:"foreclosure"}),t.foreclosureData.bankOwnedTableData.length>0&&(0,o.jsx)(fn,{id:"auto-foreclosure-table-marketing-insight-bank-owned",tableData:t.foreclosureData.bankOwnedTableData,headingText:f,listingType:"bankOwned"}),t.foreclosureData.auctionTableData.length>0&&(0,o.jsx)(fn,{id:"auto-foreclosure-table-marketing-insight-auction",headingText:u,tableData:t.foreclosureData.auctionTableData,listingType:"auction"}),t.foreclosureData.preForeclosureTableData.length>0&&(0,o.jsx)(fn,{id:"auto-foreclosure-table-marketing-insight-pre-foreclosure",headingText:p,tableData:t.foreclosureData.preForeclosureTableData,listingType:"preforeclosure"})]})]})},Sn=m.default.div.withConfig({componentId:"sc-847a9184-0"})(bn()),$n=m.default.h4.withConfig({componentId:"sc-847a9184-1"})(jn(),f.Jt),Tn=m.default.div.withConfig({componentId:"sc-847a9184-2"})(In(),f.yx),zn=(m.default.h6.withConfig({componentId:"sc-847a9184-3"})(_n(),f.Jt),m.default.div.withConfig({componentId:"sc-847a9184-4"})(Cn()));var Pn=e(7202),Mn=e(9018),qn=e(7848);const Ln=[{question:"In $[display-name], how many homes are currently on the market?",answer:"$[current-for-sale-count] homes are currently for sale in $[display-name]."},{question:"How much did the typical home in $[display-name] sell for in terms of price per square foot last month, and how did that change from the previous month?",answer:"In $[display-name], the average price per square foot last month was $[prev-mo-avg-price-per-sqft], showing a change of $[prev-mo-percentage-change] from the previous month."},{question:"What is the total number of homes sold in $[display-name] in the last month and year and how does it compare to the previous period?",answer:"The total number of homes sold in $[display-name] in the last month and year was $[prev-mo-sold], which $[increase-decrease] from the previous period."}],Fn=[{question:"How many properties are currently available to buy in $[display-name]?",answer:"The number of properties currently for sale in $[display-name] is $[current-for-sale-count]."},{question:"What was the average cost per square foot for homes in $[display-name] last month and how much has it changed since the previous month?",answer:"The average price per square foot in $[display-name] experienced a change of $[prev-mo-percentage-change] from the previous month, with a value of $[prev-mo-avg-price-per-sqft] last month."},{question:"In the past month and year, how many homes have been sold in $[display-name]? How does this compare to the prior period?",answer:"$[prev-mo-sold] homes were sold in $[display-name] in the past month and year, $[same-period-sold-diff] $[higher-fewer] than the prior period."}],Nn=[{question:"How many homes are currently for sale in $[display-name]?",answer:"The number of homes currently of sale in $[display-name] is $[current-for-sale-count]."},{question:"What was the average price per square foot in $[display-name] last month? What is the change from the previous month?",answer:"The average price per square foot in $[display-name] last month was $[prev-mo-avg-price-per-sqft], which is a change of $[prev-mo-percentage-change] from the previous month."},{question:"How many homes were sold in the past month and year in $[display-name] and how does that compare to the previous period?",answer:"The number of homes sold in $[display-name] in the past month and year was $[prev-mo-sold], which is $[same-period-sold-diff] $[higher-fewer] than the number of homes sold in the previous period."}],Dn=[{question:"How long does it usually take for a home to sell in [Zip]?",answer:"It usually takes [days_on_market] days to sell a home in [Zip]."},{question:"In [Zip], what's the current median home value?",answer:"The median value of homes in [Zip] currently stands at [median_avm]."},{question:"What is the current inventory of homes for sale in [Zip]?",answer:"$[current-for-sale-count] homes are currently listed for sale in [Zip]."},{question:"In [Zip], what was the average price per square foot for homes last month and how does that compare to the previous month?",answer:"[Zip] had an average price per square foot of [avg_price_per_sqft] last month, which changed by [change_last_month] from the previous month."},{question:"How many homes were sold in [Zip] in the last month and year? How does this compare to the previous period?",answer:"The number of homes sold in [Zip] in the last month and year was $[prev-mo-sold], which [increased/decreased/ remained the same] from the previous period."}];var Zn=e(3571);const{NoPropertiesContainer:Vn,SRPscrollContainer:On}=Y;var Yn=t=>{let{internalLinks:n,children:e}=t;return(0,o.jsxs)(On,{children:[(0,o.jsx)(Vn,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"no-match",children:"No matching results"}),(0,o.jsx)("p",{children:"Try changing your search"}),(0,o.jsx)("hr",{}),e]})}),(0,o.jsx)(i.$_,{})]})},Bn=e(3496),Hn=e(7494),Rn=e(8453);const{SRPscrollContainer:En,LoadWrapper:Wn,Header:An,SubText:Gn,Grid:Un,BreadcrumbsContainer:Jn,InternalLinksSection:Xn}=Y,Kn=["foreclosure/","foreclosure/pre-foreclosure/","foreclosure/bank-owned/","foreclosure/auction/","for-sale/"],Qn=["for-sale/"];var te=t=>{let{gridProperties:n,totalResults:e,offsetN:a,config:l,locationType:d,marketInsights:u,displayName:f,routePath:p,breadcrumbItems:h,location:m,internalLinks:g,articles:x,articleTitle:v,listingType:w}=t;var y;const b=(0,s.useRouter)(),j=(0,r.wI)(),I=(0,Mn.q)((t=>t.searchLoading)),[_,C,...k]=b.asPath.split("/"),S=[...k].join("/").split("?")[0],{data:$}=(0,Pn.aF)(),[T,z]=(0,c.useState)([]),P=null===$||void 0===$?void 0:$.user,M=0===n.length,q=null===(y=b.asPath.split("/").find((t=>
1t.includes("sort_"))))||void 0===y?void 0:y.split("_")[1],L=(0,Bn.r)((t=>t.srpObject)),F=(0,Mn.q)((t=>t.srpViewType)),N=()=>{(0,Rn.n)({data:L,page:"srp"})};(0,Hn.Yp)({timeout:9e5,onIdle:N,debounce:500}),(0,c.useEffect)((()=>(window.addEventListener("blur",N),()=>{window.removeEventListener("blur",N)})),[]);const{data:D}=(0,qn.a)(["saved-homes",null===P||void 0===P?void 0:P.customerID,T.join(",")],(async()=>{if(!(null===P||void 0===P?void 0:P.customerID))return null;const t=[],n=await B.Ug.get("/savedHomes/".concat(null===P||void 0===P?void 0:P.customerID));return n.data.forEach((n=>{t.push(n.propertyId)})),z(t),n||null})),{faqValues:Z}=(0,Zn.h)(u,f),V=(0,c.useMemo)((()=>{let t=[];return"state"===d&&(t=Ln),"county"===d&&(t=Fn),"city"===d&&(t=Nn),"zip"===d&&(t=Dn),t}),[d]),O=(0,c.useMemo)((()=>V.map((t=>({question:(0,ct.y3)(t.question,Z),answer:(0,ct.y3)(t.answer,Z)})))),[V,Z]),Y=(0,c.useMemo)((()=>null===n||void 0===n?void 0:n.map(((t,n)=>{var e;return(0,o.jsx)(i.Jj,{listingType:w,setSavedHomeIds:z,savedHomeIds:T,savedHomes:null===D||void 0===D?void 0:D.data,saved:T.includes("".concat(t.id))||D&&(null===(e=D.data)||void 0===e?void 0:e.map((t=>t.propertyId)).includes(t.id||"")),property:t,index:n},t.id)}))),[n,P,T]);if(M)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Yn,{internalLinks:g,children:[(0,o.jsx)(Jn,{children:(0,o.jsx)(i.Oo,{items:h,align:"center",linkColor:!0})}),(0,o.jsx)(i.St,{}),"zip"!==d&&Kn.includes(S)&&u&&(0,o.jsx)(o.Fragment,{children:Object.keys(u.forSaleMarketInsights).length>0?(0,o.jsx)(Lt,{forSaleData:u.forSaleMarketInsights,currentListings:u.currentListingData,displayName:f,locationUrl:m}):(0,o.jsx)(kn,{foreclosureData:u.foreclosureMarketInsights,currentListings:u.currentListingData,displayName:f})}),"zip"!==d&&Qn.includes(S)&&(0,o.jsx)(i.Z0,{items:O}),!!(null===x||void 0===x?void 0:x.length)&&(0,o.jsx)(R.ZP,{articles:x,title:v}),(0,o.jsx)(Xn,{children:(0,o.jsx)(i.Hb,{cities:g.cities,zipCodes:g.zipCodes})})]}),";"]});let G=b.query.search||p;return"object"===typeof G&&(G=G.filter((t=>!t.includes("sort_"))).join("/")),(0,o.jsxs)(En,{hide:j&&"map"===F,children:[(0,o.jsxs)("div",{className:"actual-content",children:[(0,o.jsx)(Wn,{isLoading:I}),(0,o.jsx)(An,{id:"auto-hero-heading",children:null===l||void 0===l?void 0:l["hero.header"]}),(0,o.jsxs)(E.k,{justify:"space-between",padding:"0 1rem 2rem 0",children:[(0,o.jsxs)(Gn,{id:"auto-total-results",children:[a+1," -"," ",Math.min(a+H.FK,e)," of"," ",e," ",null===l||void 0===l?void 0:l.textUnderHeading]}),(0,o.jsx)(W.Z,{})]}),(0,o.jsx)(Un,{children:Y}),e>0&&(0,o.jsx)(A.Z,{totalProperties:e,currentOffset:a,currentLocation:G,handlePageClick:t=>{window.scrollTo(0,0)},query:q?"/sort_".concat(q,"/"):""}),(0,o.jsx)(Jn,{children:(0,o.jsx)(i.Oo,{items:h,align:"center",linkColor:!0})}),(0,o.jsx)(i.St,{}),"zip"!==d&&Kn.includes(S)&&u&&(0,o.jsx)(o.Fragment,{children:Object.keys(u.forSaleMarketInsights).length>0?(0,o.jsx)(Lt,{forSaleData:u.forSaleMarketInsights,currentListings:u.currentListingData,displayName:f,locationUrl:m}):(0,o.jsx)(kn,{foreclosureData:u.foreclosureMarketInsights,currentListings:u.currentListingData,displayName:f})}),"zip"!==d&&Qn.includes(S)&&(0,o.jsx)(i.Z0,{items:O}),!!(null===x||void 0===x?void 0:x.length)&&(0,o.jsx)(R.ZP,{articles:x,title:v}),(0,o.jsx)(Xn,{children:(0,o.jsx)(i.Hb,{cities:g.cities,zipCodes:g.zipCodes})})]}),(0,o.jsx)(i.$_,{})]})},ne=e(5675),ee=e.n(ne);const{SRPsmallScreen:oe}=Y;var ie=t=>{let{srpViewType:n,setSrpViewType:e}=t;return(0,o.jsx)(oe,{children:(0,o.jsx)("button",{onClick:()=>{e("list"===n?"map":"list")},children:(0,o.jsxs)("div",{children:[(0,o.jsx)(ee(),{src:"/icons/icon-view-list.svg",height:24,width:24,alt:"toggle map-list"}),(0,o.jsxs)("span",{children:["View ","list"===n?"Map":"List"]})]})})})},re=e(7827),ae=e(3811);const{NoMapPlaceholder:se}=Y;var ce=t=>{let{mapIsReady:n,mapCenter:e,mapMarkers:i,isMobileScreen:r,hideMap:a,handleSetGridProperties:s,boundaries:c,firstZip:l}=t;return n||a?(0,o.jsx)(re.Z,{msg:"",children:(0,o.jsx)("div",{style:a&&r?{visibility:"hidden",height:0}:{},children:(0,o.jsx)(ae.Z,{markers:i,center:{lat:null===e||void 0===e?void 0:e.lat,lng:null===e||void 0===e?void 0:e.lng},zoom:null===e||void 0===e?void 0:e.zoom,handleSetGridProperties:s,boundaries:c,firstZip:l})})}):r?(0,o.jsx)("div",{}):(0,o.jsx)(se,{})},le=e(5982),de=e(461);const{SRPcontainer:ue,Wrapper:fe,HeaderWrapper:pe}=Y;var he=!0,me=t=>{var n,e,u;const f=(0,s.useRouter)(),[p,h]=(0,c.useState)((0,Zn.Qm)(t.properties)),{signup:m}=f.query,[g,x]=(0,c.useState)(!1),{srpViewType:v,setSrpViewType:w}=(0,Mn.q)((t=>({srpViewType:t.srpViewType,setSrpViewType:t.setSrpViewType}))),y=(0,r.wI)(),b=(0,c.useMemo)((()=>{const t=parseFloat((0,a.s6)(f.asPath,"lat")),n=parseFloat((0,a.s6)(f.asPath,"lng")),e=parseFloat((0,a.s6)(f.asPath,"zoom"));return t&&n&&e?{lat:t,lng:n,zoom:e}:void 0}),[f]),j=void 0!==y&&("map"===v||!y),[I]=f.asPath.split("/"),[_]=(0,de.Z)(["jluvr"]),C=(0,le.ZP)((t=>t.setCurrentLocationUrl)),k=(0,le.ZP)((t=>t.currentLocationUrl)),S=(0,le.ZP)((t=>t.setLocationType)),T=(0,le.ZP)((t=>t.reset)),z=(0,Bn.r)((t=>t.setCurrentPage)),P=(0,Bn.r)((t=>t.trackValue)),M=null===p||void 0===p||null===(n=p[0])||void 0===n?void 0:n.zip,q=(0,c.useMemo)((()=>t.properties.map((t=>{var n,e;return{addr:t.addr||"",location:{lat:(null===(n=t.coord)||void 0===n?void 0:n.lat)||0,lng:(null===(e=t.coord)||void 0===e?void 0:e.lon)||0},val:(0,ct.ZK)(t.value,0,1),...t}})).filter((t=>{var n,e;return void 0!==(null===(n=t.coord)||void 0===n?void 0:n.lat)||void 0!==(null===(e=t.coord)||void 0===e?void 0:e.lon)}))),[t.properties]);(0,c.useEffect)((()=>{h((0,Zn.Qm)(t.properties))}),[t.properties]),(0,c.useEffect)((()=>{"true"===m&&"true"===localStorage.getItem("fbFlowJustRegistered")&&(x(!0),setTimeout((()=>{localStorage.removeItem("fbFlowJustRegistered")}),2e3))}),[m]),(0,c.useEffect)((()=>{z("srp"),P("jluvr",_.jluvr),P("searchBy",t.displayName)}),[_.jluvr,t.displayName]),(0,c.useEffect)((()=>{var n;z("srp"),S(t.locationType),C((0,a.WA)(t.routePath)),window.localStorage.setItem("previousRoute","srp");const e=document.getElementById("fbFlowModal");return e&&"block"===e.style.display&&$("#fbFlowModal").modal("hide"),(null===(n=window)||void 0===n?void 0:n.fbFlowInit)&&window.fbFlowInit.hide(),()=>{T({persistUrl:k}),localStorage.removeItem("redirectToPDP")}}),[]);const L=()=>(0,o.jsx)(te,{totalResults:t.totalResults,routePath:t.routePath,offsetN:t.offsetN,breadcrumbItems:t.breadcrumbItems,marketInsights:t.marketInsights,location:t.location,internalLinks:t.internalLinks,locationType:t.locationType,gridProperties:p,config:t.config,displayName:t.displayName,articles:t.articles,articleTitle:t.articleTitle,listingType:t.listingType});return(0,o.jsxs)(d.Z,{title:null===(e=t.config)||void 0===e?void 0:e["hero.page_title"],description:null===(u=t.config)||void 0===u?void 0:u["hero.meta_description"],canonicalUrl:t.canonical,children:[(0,o.jsx)(l.ZP,{defaultOpen:"true"===m&&g,defaultVariant:"register",trigger:(0,o.jsx)("div",{})}),(0,o.jsxs)(pe,{children:[(0,o.jsx)(i.h4,{}),(0,o.jsx)(i.E1,{})]}),(0,o.jsxs)(fe,{children:[(0,o.jsxs)(ue,{children:[(0,o.jsx)(ce,{mapIsReady:j,mapCenter:b,mapMarkers:q,isMobileScreen:y,hideMap:"list"==v,handleSetGridProperties:t=>{h(t)},boundaries:t.boundaries,firstZip:M}),(0,o.jsx)(L,{})]}),(0,o.jsx)(ie,{srpViewType:v,setSrpViewType:w})]})]})}}},function(t){t.O(0,[196,442,476,494,363,711,289,774,888,179],(function(){return n=1279,t(t.s=n);var n}));var n=t.O();_N_E=n}]);
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.