1(self.webpackChunkRealtyCoreApp=self.webpackChunkRealtyCoreApp||[]).push([[30620],{8309:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});const n={title:"Real estate boards require you to be signed in to access price history.",subTitle:"Explore years of sold & rented listings, data & photos."}},17111:(e,t,i)=>{"use strict";i.d(t,{YF:()=>l,Z_:()=>s,lf:()=>c,xg:()=>a});var n=i(882),o=i(70524),r=i(80156);const a=n.default.div.withConfig({displayName:"styles___TabsContainer",componentId:"sc-cbh5bk-0"})(["padding:4px;display:flex;flex-direction:row;margin-right:0 !important;overflow:hidden;border:none;background:",";border-radius:10px;width:fit-content;"],r.f46),s=n.default.button.withConfig({displayName:"styles___Tab",componentId:"sc-cbh5bk-1"})(["height:36px;border:none;background-color:transparent;position:relative;display:flex;justify-content:center;align-items:center;&:hover{cursor:pointer;}padding:0 12px;",""],(function(e){let{isPrint:t}=e;return t?"\n @media print {\n display: none;\n }\n ":""})),l=n.default.div.withConfig({displayName:"styles___Label",componentId:"sc-cbh5bk-2"})(["position:relative;white-space:nowrap;font-size:",";color:",";&:hover{color:",";}&:active{color:",";}"],(function(e){let{isActive:t}=e;return t?"14px":"inherit"}),(function(e){let{isActive:t,dropdown:i}=e;return t?i?"white":r.lLt:r.Ulj}),r.lLt,r.N$),c=(0,n.default)(o.P.span).withConfig({displayName:"styles___Slider",componentId:"sc-cbh5bk-3"})(["background:white;position:absolute;left:0;top:0;width:100%;height:100%;border-radius:10px;box-shadow:0px 4px 8px 0px #00000026;"])},20181:(e,t,i)=>{var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=l||c||Function("return this")(),u=Object.prototype.toString,p=Math.max,f=Math.min,h=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=r.test(e);return i||a.test(e)?s(e.slice(2),i?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,i){var n,o,r,a,s,l,c=0,d=!1,u=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var i=n,r=o;return n=o=void 0,c=t,a=e.apply(r,i)}function w(e){var i=e-l;return void 0===l||i>=t||i<0||u&&e-c>=r}function x(){var e=h();if(w(e))return v(e);s=setTimeout(x,function(e){var i=t-(e-l);return u?f(i,r-(e-c)):i}(e))}function v(e){return s=void 0,y&&n?b(e):(n=o=void 0,a)}function C(){var e=h(),i=w(e);if(n=arguments,o=this,l=e,i){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),d?b(e):a}(l);if(u)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,m(i)&&(d=!!i.leading,r=(u="maxWait"in i)?p(g(i.maxWait)||0,t):r,y="trailing"in i?!!i.trailing:y),C.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},C.flush=function(){return void 0===s?a:v(h())},C}},26872:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,x:()=>r});var n=i(96540);const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";const i=function(t,i){const n=document.querySelector(t);n&&n.classList&&(!i&&e?n.classList.add("bodyOverflowHidden"):n.classList.remove("bodyOverflowHidden"))},o=function(){t&&Array.isArray(t)?t.map((function(e){return i(e)})):i(t)};(0,n.useEffect)((function(){return o(),function(){o()}}),[e])},r=function(e){let{haveBodyOverflowHidden:t}=e;return o(t),null},a=o},27768:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(80045),o=i(96540);const r=i(882).default.div.withConfig({displayName:"styles___Flex",componentId:"sc-1lfxfux-0"})(["display:flex;flex:0 1 auto;flex-direction:row;align-items:flex-start;flex-wrap:nowrap;justify-content:flex-start;"," "," "," "," "," "," ",""],(function(e){let{center:t}=e;return t?"\n justify-content: center;\n align-items: center;\n ":""}),(function(e){let{justify:t}=e;return t?`justify-content: ${"start"===t?"flex-start":"end"===t?"flex-end":"between"===t?"space-between":"around"===t?"space-around":"center"===t?"center":""};\n `:""}),(function(e){let{align:t}=e;return t?`align-items: ${"start"===t?"flex-start":"end"===t?"flex-end":"center"===t?"center":""};\n `:""}),(function(e){let{noWrap:t}=e;return t?"flex-wrap: nowrap;":""}),(function(e){let{direction:t}=e;return t?`flex-direction: ${"col"===t?"column":""};\n `:""}),(function(e){let{wrap:t}=e;return t?"flex-wrap: wrap;":"flex-wrap: nowrap;"}),(function(e){let{gap:t}=e;return`gap: ${t}`||0})),a=["justify","align","direction","center","className","noWrap","wrap","gap","children","onClick","onFocus","onHover","onBlur","onMouseLeave","dataTestId","tabIndex"],s=function(e){let{justify:t,align:i,direction:s,center:l,className:c,noWrap:d=!1,wrap:u=!1,gap:p=0,children:f,onClick:h=function(){},onFocus:m=function(){},onHover:g=function(){},onBlur:y=function(){},onMouseLeave:b=function(){},dataTestId:w=null,tabIndex:x=null}=e,v=(0,n.A)(e,a);const C={},A={justify:t,align:i,center:l,noWrap:d,direction:s,wrap:u?1:void 0,gap:p};return w&&(C["data-test-id"]=w),"number"==typeof x&&(C.tabIndex=x),o.createElement(r,Object.assign({},v,C,A,{className:c,onClick:h,onFocus:m,onBlur:y,onMouseEnter:g,onMouseLeave:b}),f)}},28969:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(96540),o=i(86634);const r=i(882).default.div.withConfig({displayName:"styles___FadeInOnMount",componentId:"sc-1fbdmz3-0"})(["width:100%;.fade-top-appear{opacity:0;transform:translateY(-5%);backface-visibility:hidden;}.fade-top-enter-done{opacity:1;transform:translateY(0%);transition:opacity 0.5s 0.2s,transform 0.5s 0.2s;backface-visibility:hidden;}.fade-top-done-exit{opacity:0;transition:opacity 0.5s;backface-visibility:hidden;}.fade-appear{opacity:0;backface-visibility:hidden;}.fade-enter-done{opacity:1;transition:opacity 0.5s 0s;backface-visibility:hidden;transform:translateZ(0);}.fade-left-appear{opacity:1;transform:translateX(-100%);backface-visibility:hidden;}.fade-left-enter-done{opacity:1;transform:translateX(0);
1transition:opacity 0.5s 0.2s,transform 120ms 50ms ease-in;backface-visibility:hidden;}.fade-in-bottom-enter{opacity:0;transform:translateY(100%);transition:all 0ms;}.fade-in-bottom-enter-appear{opacity:0;transform:translateY(100%);backface-visibility:hidden;}.fade-in-bottom-enter-done{opacity:1;transform:translateY(0%);backface-visibility:hidden;transition:opacity 250ms,transform 250ms ease-out;}"]),a=function(e){let{timeout:t=0,type:i,children:a}=e;const[s,l]=(0,n.useState)(!1);return(0,n.useEffect)((function(){return l(!0),function(){return l(!1)}}),[]),n.createElement(r,null,n.createElement(o.A,{unmountOnExit:!0,appear:!0,exit:!0,in:s,timeout:t,classNames:i},n.createElement("div",null,a)))}},32961:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(61225),o=i(87756),r=i(97909);const a={googleAnalyticsEvent:o.K},s=(0,n.Ng)((function(e){return{mobileBrowser:e.app.mobileBrowser}}),a)(r.A)},33091:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(96540),o=i(10225);const r=function(e){let{enableExitOnEsc:t,onEsc:i}=e;(0,n.useEffect)((function(){const e=function(e){e.keyCode===o.n9.ESC&&t&&i()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}}),[t])}},76845:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(96540),o=i(97825),r=i(61225),a=i(58423);const s=(0,o.A)({loader:function(){return i.e(7760).then(i.bind(i,35808))},loading:function(){return n.createElement("div",null)},chunkName:"WithLoginBlurBox"}),l={openModal:a.qf},c=(0,r.Ng)((function(e){return{userEmailVerified:e.userData.user.emailVerified,userIsAuthentificated:e.userData.userIsAuthentificated}}),l)(s)},89103:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(96540),o=i(10225);const r=function(e){let{parentClassName:t,enableKeyboardInteraction:i,childClassName:r,onFocusOut:a,onSelect:s=function(){},updateOpenState:l,isDropdownOpen:c=!1}=e;
1const[d,u]=(0,n.useState)(-1);return(0,n.useEffect)((function(){i||u(-1);const e=function(e){if(!i)return null;let t=d;const n=document.querySelectorAll(r)||[];switch(e.keyCode){case o.n9.ENTER:s(d);break;case o.n9.ARROW_UP:d>0?t=d-1:d<1&&(t=n.length-1);break;case o.n9.ARROW_DOWN:d<n.length-1?t=d+1:d===n.length-1&&(t=0),!c&&l&&l(!0);break;case o.n9.HOME:t=0;break;case o.n9.END:t=n.length-1;break;case o.n9.TAB:l&&(l(!1),a());break;case o.n9.ESC:a&&a()}const p=n[t];d!==t&&t>-1?(u(t),p&&(p.setAttribute("aria-selected",!0),p.focus())):p&&n&&p.setAttribute("aria-selected",!1),e.keyCode===o.n9.TAB&&t===n.length-1&&a&&a()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[i,d]),(0,n.useEffect)((function(){if(i&&t){const e=document.querySelector(t);e&&-1===d&&e.focus()}}),[i,d]),{activeIndex:d,updateActiveIndex:u}}},93979:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ArchiveList:()=>ae,FilterBar:()=>se,default:()=>de});var n=i(64467),o=i(96540),r=i(97825),a=i(13927),s=i(32703),l=i(57527),c=i(79130),d=i(28969),u=i(76845),p=i(72479),f=i(35831),h=i(11828),m=i(7684),g=i(61225),y=i(882),b=i(80156);const w=y.default.div.withConfig({displayName:"styles___NoPriceHistory",componentId:"sc-k625qq-0"})(["padding:10px 0 0;background:white;"]),x=y.default.div.withConfig({displayName:"styles___ViewHistoryContainer",componentId:"sc-k625qq-1"})([""]),v=y.default.div.withConfig({displayName:"styles___TextWrapper",componentId:"sc-k625qq-2"})(["display:flex;padding:5px 0;line-height:16px;font-size:12px;color:",";margin-bottom:16px;"],b.sdp),C=y.default.div.withConfig({displayName:"styles___ViewAllHistory",componentId:"sc-k625qq-3"})(["display:flex;justify-content:center;align-items:center;width:100%;border:1px solid ",";border-radius:10px;height:44px;"],b.VIG),A=y.default.div.withConfig({displayName:"styles___ViewAllHistoryText",componentId:"sc-k625qq-4"})(["line-height:22px;color:",";text-decoration-line:none;font-size:14px;@media (hover:hover){&:hover{color:",";}}&:active{color:",";}"],b.Ulj,b.lLt,b.kb7),N=function(e){const{showHistoryForAddress:t,propertyClass:i,pageFrom:n,priceHistoryAtText:r,linkTo:a,googleAnalyticsEvent:s,suiteNumber:l,addressId:c,buildingId:d,bedTypeNum:u,offer:f}=e,m=(0,g.d4)((function(e){return e.app.mobileBrowser})),y="Condo"===i;return o.createElement(w,null,y?o.createElement(x,null,o.createElement(v,null,t?"No price history found for ":"No price histories are available at ",`${l} -`||""," ",r,"."),y&&t&&o.createElement(C,null,o.createElement(p.A,{openNewTab:!m,alt:"View full history",to:a,onClick:function(){s({category:n,action:`[Click][Price history from ${n}][View all history]`})},mobileModalChildren:function(e){let{closeModalPage:t}=e;return o.createElement(h.ny,{closeModalPage:t,archiveMobileModalPageData:{addressId:c,suiteNumber:l,buildingId:d,bedTypeNum:u,offer:f}})},mobileModalKey:`archivedListingsModal-${d||c}`},o.createElement(A,null,"View price history of units in this building")))):`No matched listing history available ${r?"at "+r:""} `)};var k=i(8309),_=i(27768),I=i(47752);const E=(0,y.default)(_.A).withConfig({displayName:"styles___Container",componentId:"sc-1knfx8-0"})(["background:#E7F3F4;border-radius:10px;border:1px solid #037888;width:100%;margin-bottom:16px;height:47px;padding:12px;justify-content:start;@media screen and (max-width:","){height:120px;top:45px;}"],I.zq),T=y.default.div.withConfig({displayName:"styles___CTAContainer",componentId:"sc-1knfx8-1"})(["display:inline-flex;flex-direction:row;> span{font-size:14px;line-height:22px;font-weight:500;}@media screen and (max-width:","){display:flex;flex-direction:row;align-items:center;margin:16px 0 6px 0;span{margin:0 12px 0 12px;}}"],I.zq),S=y.default.button.withConfig({displayName:"styles___LoginLink",componentId:"sc-1knfx8-2"})(["border:none;padding:0;text-decoration-line:underline;line-height:22px;white-space:nowrap;color:",";&:hover,&:focus{cursor:pointer;color:",";}"],b.q5P,b.lLt),P=y.default.button.withConfig({displayName:"styles___SignupButton",componentId:"sc-1knfx8-3"})(["color:",";text-decoration:underline;white-space:nowrap;cursor:pointer;border:none;padding:0;@media screen and (max-width:","){background:",";color:white;height:44px;border-radius:10px;width:166px;text-decoration:none;}"],b.q5P,I.zq,b.q5P),L=y.default.div.withConfig({displayName:"styles___Title",componentId:"sc-1knfx8-4"})(["line-height:22px;display:inline-flex;white-space:nowrap;@media screen and (max-width:","){white-space:normal;line-height:20px;}"],I.zq),M=y.default.div.withConfig({displayName:"styles___TitleSubTextContainer",componentId:"sc-1knfx8-5"})(["display:inline-flex;@media screen and (max-width:","){display:flex;flex-direction:column;}"],I.zq),O=function(e){let{showRegisterModal:t,showLoginModal:i,isArchiveListingsPage:n}=e;return o.createElement(E,{center:!0,direction:"row",isArchiveListingsPage:n},o.createElement(M,null,o.createElement(L,{IS_PROPERTY:l.IS_PROPERTY},k.a.title," "),o.createElement(T,null,o.createElement(P,{onClick:t},"Sign up"),o.createElement("span",null," or "),o.createElement(S,{onClick:i},"Log in"))))};O.defaultProps={showRegisterModal:function(){},showLoginModal:function(){}};const F=O;var j=i(53185),B=i(32961);const H=y.default.div.withConfig({displayName:"styles___TabsContainer",componentId:"sc-lfn25-0"})(["padding:4px;display:flex;flex-direction:row;width:fit-content;margin-right:0 !important;overflow:hidden;background:",";border-radius:10px;align-items:center;"],b.f46),D=y.default.div.withConfig({displayName:"styles___Label",componentId:"sc-lfn25-2"})(["line-height:22px;white-space:nowrap;font-size:",";color:",";"],(function(e){let{isActive:t}=e;return t?"14px":"inherit"}),(function(e){let{isActive:t}=e;return t?b.lLt:b.Ulj})),q=y.default.div.withConfig({displayName:"styles___DropDownContainer",componentId:"sc-lfn25-3"})(["position:relative;border:1px solid ",";border-radius:10px;height:54px;width:167px;
1display:flex;flex-direction:row;font-size:14px;line-height:22px;@media screen and (max-width:","){position:absolute;top:64px;right:-10px;}@media screen and (max-width:","){right:0;width:35%;margin-right:0 !important;}.dropdownContainer{display:flex;align-items:center;justify-content:flex-start;border:none;height:initial;svg{opacity:0.7;top:50%;}}.dropdownVisible{display:flex;align-items:center;justify-content:flex-start;padding:11px 18px;border-radius:10px;}.dropdown{width:100%;display:table;padding:11px 18px;top:54px;border:none;cursor:default;box-shadow:0px 4px 8px rgba(0,0,0,0.15);right:0;left:auto;}"],b.VIG,I.zq,I.mV),$=(0,y.default)(B.A).withConfig({displayName:"styles___DropdownMenu",componentId:"sc-lfn25-4"})([""]),R=y.default.button.withConfig({displayName:"styles___TabDropDown",componentId:"sc-lfn25-5"})(["border:none;width:100%;color:",";padding:9px 0 11px 0;cursor:pointer;background-color:",";",";"],b.Ulj,(function(e){let{isActive:t}=e;return t?b.Cfu:"white"}),(function(e){let{isActive:t}=e;return t&&`\n border-radius: 10px;\n ${D} {\n color: white;\n border: none;\n }\n `}));var V=i(17111);const z=function(e){let{id:t,tab:i,label:n,isActive:r,onClick:a=function(){},isPrint:s,layoutId:l}=e;return o.createElement(V.Z_,{"aria-label":n,isActive:r,hideRightBorder:0===t,isPrint:s,onClick:function(){return a(i)},tabName:n},r&&o.createElement(V.lf,{layoutId:l||"sliding"}),o.createElement(V.YF,{isActive:r},n))},U=function(e){let{id:t,tab:i,label:n,isActive:r,onClick:a=function(){},isPrint:s}=e;return o.createElement(R,{"aria-label":n,isActive:r,hideRightBorder:0===t,isPrint:s,onClick:function(){return a(i)},tabName:n},o.createElement(V.YF,{isActive:r,dropdown:!0},n))},W=(0,o.memo)((0,j.A)((function(e){let{className:t,defaultTab:i="Sale",handleClick:n,isPrint:r,tabs:a={Sale:"Sold",Rent:"Rented",All:"All"},winWidth:s,layoutId:l}=e;const{currentTab:c,setCurrentTab:d}=function(e){let{defaultTab:t,handleClick:i}=e;const[n,r]=(0,o.useState)(t);return{currentTab:n,setCurrentTab:function(e){r(e),i&&i(e)}}}({defaultTab:i,handleClick:n});return s>768?o.createElement(H,{className:t},Object.entries(a).map((function(e,t){let[i,n]=e;return o.createElement(z,{key:i+"offerTab",label:n,onClick:d,isActive:c===i,isPrint:r,id:t,tab:i,layoutId:l})}))):o.createElement(q,{className:t},o.createElement($,{title:a[c],blurBackground:!1,gaFromComponent:"Price history"},Object.entries(a).map((function(e,t){let[i,n]=e;return o.createElement(U,{key:i+"offerTab",label:n,onClick:d,isActive:c===i,isPrint:r,id:t,tab:i})}))))}))),Y=y.default.div.withConfig({displayName:"styles___Container",componentId:"sc-10d3w03-0"})(["position:relative;"]),G=y.default.div.withConfig({displayName:"styles___TopBar",componentId:"sc-10d3w03-1"})(["display:flex;@media screen and (max-width:","){flex-wrap:wrap;}@media screen and (max-width:","){display:block;}"],I.zq,I.mV),K=(0,y.default)(W).withConfig({displayName:"styles___OfferTab",componentId:"sc-10d3w03-2"})(["flex-shrink:0;margin-right:32px;height:44px;",";"],(function(e){let{hidden:t}=e;return t&&"display: none;"})),X=y.default.div.withConfig({displayName:"styles___HistoryCardContainer",componentId:"sc-10d3w03-3"})(["position:relative;min-height:50px;"]),Z=y.default.div.withConfig({displayName:"styles___SpinnerContainer",componentId:"sc-10d3w03-4"})(["width:100%;height:250px;display:flex;justify-content:center;align-items:center;"]),J=y.default.div.withConfig({displayName:"styles___ViewAllHistory",componentId:"sc-10d3w03-5"})(["display:flex;justify-content:center;align-items:center;width:100%;border:1px solid ",";border-radius:10px;height:44px;cursor:pointer;@media (hover:hover){&:hover{div{color:",";}}}&:active{div{color:",";}}@media screen and (max-width:","){margin-top:20px;margin-left:0;}"],b.VIG,b.lLt,b.kb7,I.zq),Q=y.default.div.withConfig({displayName:"styles___ViewAllHistoryText",componentId:"sc-10d3w03-6"})(["line-height:22px;color:",";text-decoration-line:none;"],b.Ulj),ee=y.default.div.withConfig({displayName:"styles___LoadMore",componentId:"sc-10d3w03-7"})(["margin-top:20px;display:flex;justify-content:center;align-items:center;position:relative;
1left:50%;transform:translate(-50%,-50%);> span{margin-right:20px;font-size:18px;line-height:22px;font-weight:600;}@media screen and (min-width:","){transform:translate(-50%,-20%);}"],I.$O),te=y.default.div.withConfig({displayName:"styles___RelativeWrapper",componentId:"sc-10d3w03-9"})(["position:relative;"]),ie=(0,y.default)(s.A).withConfig({displayName:"styles___PriceHistoryFloatingBtn",componentId:"sc-10d3w03-10"})(["width:100%;background:",";color:white;border-radius:10px;height:44px;line-height:22px;box-shadow:0px 2px 6px rgba(0,0,0,0.25);margin-top:48px;",";@media screen and (min-width:","){display:none;}"],b.q5P,(function(e){let{isMobileApp:t}=e;return t&&"\n position: fixed;\n bottom: 16px;\n left: 16px;\n width: calc(100% - 32px);\n "}),I.mV);function ne(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function oe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(i),!0).forEach((function(t){(0,n.A)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ne(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}const re=function(){return o.createElement("div",{style:{height:"200px"}})},ae=(0,r.A)({loader:function(){return i.e(3075).then(i.bind(i,10591))},loading:re,chunkName:"ArchiveList"}),se=(0,r.A)({loader:function(){return Promise.all([i.e(78707),i.e(12608),i.e(39908),i.e(61448)]).then(i.bind(i,84923))},loading:re,chunkName:"FilterBar"}),le=function(e){const t={offer:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sale"};return e.buildingId&&(t.buildingId=e.buildingId),e.addressId&&(t.addressId=e.addressId),`/pricehistory?${new URLSearchParams(t).toString()}`};class ce extends o.Component{constructor(e){super(e);const t=!e.buildingId&&!e.suiteNumber&&!e.addressId;this.state={offer:e.offer||"Sale",bedTypeNum:e.bedTypeNum||"-1",bedTypeList:[{label:"All Bedrooms",value:"-1"}],search:"",offset:0,suiteNumber:e.suiteNumber,noPriceHistoryPage:t,reFetchingForAuthUpdate:null,userIsAuthentificatedState:e.userIsAuthentificated},this.handleBedTypeChange=this.handleBedTypeClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.fetchHistory=this.fetchHistory.bind(this,!e.suiteNumber),this.handleOfferChange=this.handleOfferChange.bind(this),this.handleSelectChange=this.handleSelectChange.bind(this),this.onLoadMoreClick=this.onLoadMoreClick.bind(this),this.showPastSaleOnClick=this.showPastSaleOnClick.bind(this),this.showLoginModal=this.showLoginModal.bind(this),this.showRegisterModal=this.showRegisterModal.bind(this),this.onFilterBarSubmit=this.onFilterBarSubmit.bind(this),this.onSuiteNumberTagClick=this.onSuiteNumberTagClick.bind(this),this.getPriceHistoryPageUrl=this.getPriceHistoryPageUrl.bind(this),this.handleContactAgentClick=this.handleContactAgentClick.bind(this)}static getDerivedStateFromProps(e,t){return e.userIsAuthentificated!==t.userIsAuthentificatedState?{userIsAuthentificatedState:e.userIsAuthentificated,reFetchingForAuthUpdate:!0}:!e.isFetching&&e.archiveListingsData&&e.archiveListingsData.bed_types?{bedTypeList:[{label:"All bedrooms",value:"-1"},...e.archiveListingsData.bed_types]}:null}componentDidMount(){this.props.userIsAuthentificated&&this.props.isPrint&&this.fetchHistory({offset:this.state.offset,offer:this.props.offer})}componentDidUpdate(e){var t=this;this.props.userIsAuthentificated!==e.userIsAuthentificated&&this.fetchHistory({offset:this.state.offset,offer:this.state.offer}),!this.props.isFetching&&e.isFetching&&this.state.reFetchingForAuthUpdate&&(this.timeOut=setTimeout((function(){t.setState({reFetchingForAuthUpdate:!1})}),200))}componentWillUnmount(){this.timeOut&&clearTimeout(this.timeOut)}onSuiteNumberTagClick(){this.setState({search:"",suiteNumber:""}),this.fetchHistory({suiteNumber:"",offset:0,offer:this.state.offer}),this.props.pageFrom===m.p&&(0,f.n8)({suiteNumber:[]}),this.props.googleAnalyticsEvent({category:this.props.pageFrom,action:"[price history suite number remove clicked]"})}onLoadMoreClick(){if(!this.props.userIsAuthentificated)return this.props.openLoginModal({modalData:{gate:a.Sk.PAST_LISTING}});const e=this.state.offset+this.props.perPage;this.setState({offset:e}),this.fetchHistory({loadMore:!0,offset:e,bedTypeNum:this.state.bedTypeNum,offer:this.state.offer})}onFilterBarSubmit(e){e.preventDefault();const t=this.state.search;this.setState({suiteNumber:t}),this.fetchHistory({suiteNumber:t,offset:0,offer:this.state.offer}),this.props.pageFrom===m.p&&(0,f.n8)({suiteNumber:t?[t]:[]}),this.props.googleAnalyticsEvent({category:this.props.pageFrom,action:"[price history input submit]"})}getPriceHistoryPageUrl(){const{suiteNumber:e,bedTypeNum:t}=this.state;let i=le(this.props,this.state.offer);return e&&(i+=`&suiteNumber=${e}`),t&&(i+=`&bedTypeNum=${t}`),i+=`&offer=${this.state.offer}`,i}handleContactAgentClick(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.preventDefault(),e.stopPropagation();const{agent:n,openModal:o,pageFrom:r,userIsAuthentificated:s}=this.props;s?o({modalType:a.lX.CONTACT_AGENT,modalData:{listing:t,agent:n,pageType:r},modalSource:i?"Price history listing removal text":"ArchiveListing"}):this.props.openLoginModal({modalData:{gate:a.Sk.CONTACT_AGENT},nextModalType:a.lX.CONTACT_AGENT,nextModalData:{agent:n,listing:t,pageType:r,modalSource:i?"Price history listing removal text":"ArchiveListing"}})}handleBedTypeClick(e){this.state.bedTypeNum!==e&&(this.setState({bedTypeNum:e}),this.fetchHistory({bedTypeNum:"-1"!==e&&e,offset:0,offer:this.state.offer}),this.props.pageFrom===m.p&&(0,f.n8)({bedTypeNum:"-1"!==e?[e]:[]}))}handleSelectChange(e){e.target.value!==this.state.bedTypeNum&&this.handleBedTypeClick(e.target.value)}handleInputChange(e){this.state.search!==e.value&&this.setState({search:e.value})}showLoginModal(){this.props.openLoginModal({modalSource:(this.props.pageFrom||"listing")+" History",modalData:{gate:a.Sk.PAST_LISTING}})}
1showRegisterModal(){this.props.openRegisterModal({modalSource:(this.props.pageFrom||"listing")+" History",modalData:{gate:a.Sk.PAST_LISTING}})}showPastSaleOnClick(){const e=`[${this.props.pageFrom||"listing"} Click]`;this.props.googleAnalyticsEvent({category:"Archive Listing Click",action:e})}fetchHistory(e,t){const i=oe({offer:t.offer,bedTypeNum:this.state.bedTypeNum,suiteNumber:this.state.suiteNumber},t);this.payload=function(e,t,i){const n=t.suiteNumber,o={};return e.buildingId&&(o.buildingId=e.buildingId),e.addressId&&(o.addressId=e.addressId),i?oe(oe({},t),o):oe(oe(oe({},t),o),{},{suiteNumber:n,pageType:e.pageType})}(this.props,i,e),this.props.loadArchiveListings(this.payload)}handleOfferChange(e){"All"===e?(this.setState({offer:e}),this.fetchHistory({offer:"",offset:0,bedTypeCategory:1}),this.props.pageFrom===m.p&&(0,f.n8)({offer:[]})):(this.setState({offer:e}),this.fetchHistory({offer:e,offset:0,bedTypeCategory:1}),this.props.pageFrom===m.p&&(0,f.n8)({offer:[e]})),this.props.googleAnalyticsEvent({category:this.props.pageFrom,action:"[price history offer tap changed]",label:e}),this.props.googleAnalyticsEvent({category:this.props.pageFrom,action:`[price history offer tap changed][${e}]`,label:e})}renderLoadMoreButton(){const{isFetching:e,total:t,userIsAuthentificated:i,perPage:n}=this.props,{offset:r}=this.state,a=t-(r+n);if(i&&(!e&&t>n)){const e=a>n?n:a;return e<=0?null:o.createElement(ee,null,o.createElement(s.A,{medium:!0,secondary:!0,onClick:this.onLoadMoreClick},o.createElement("div",null,"Load ",e," more listing")))}}render(){const{search:e,offer:t,suiteNumber:i,bedTypeNum:n}=this.state,{mobileBrowser:r,isListing:a=!1,isBuilding:s=!1,isArchiveListingsPage:f=!1,archiveListingsData:g,userIsAuthentificated:y,isFetching:b,enableLoadMore:w=!1,showLinkToHistoryPage:x=!1,enableFilterBar:v=!1,total:C,priceHistoryAtText:A,propertyClass:k,isPrint:_,pageFrom:I,googleAnalyticsEvent:E,hasArchiveListings:T,isIE:S,agent:P,isUserAgentAdminSupport:L,addressId:M,buildingId:O,isMobileApp:j,userEmailVerified:B}=this.props,H=!b&&g&&0===g.total,D=(s||a||f||v)&&y,q=Boolean(!y&&g&&g.date_groups?.length),$=x,R=le(this.props,this.state.offer),V=I===m.p,z=!b&&!C,U=g?.url,W=g?.title,ee=S||window&&window.navigator.userAgent.
1search(/MSIE|Trident/)>=0,ne=ee&&y||!ee;return o.createElement(u.A,{emailVerificationRequired:!0,priceHistoryTable:!0},q?o.createElement(F,{showRegisterModal:this.showRegisterModal,showLoginModal:this.showLoginModal,showSmaller:C<2,isArchiveListingsPage:f}):null,o.createElement(Y,null,"listing"===I?null:o.createElement(G,null,D&&o.createElement(se,{handleBedTypeClick:this.handleBedTypeChange,bedTypeList:this.state.bedTypeList,bedTypeNum:n,search:e,handleInputChange:this.handleInputChange,handleSelectChange:this.handleSelectChange,isMobile:r,isPrint:_,onSubmit:this.onFilterBarSubmit,suiteNumber:this.state.suiteNumber,onSuiteNumberTagClick:this.onSuiteNumberTagClick,pageFrom:I,googleAnalyticsEvent:E,isIE:ee}),o.createElement(K,{isPrint:_,defaultTab:this.state.offer,handleClick:this.handleOfferChange,hidden:!y,layoutId:"priceHistory"})),o.createElement(te,null,o.createElement(X,{key:"PriceHistoryBlur"+this.props.total+this.props.userIsAuthentificated,blur:T&&(this.state.reFetchingForAuthUpdate||!y)},b&&o.createElement(Z,null,o.createElement(c.A,null)),H&&o.createElement(N,{showHistoryForAddress:z,propertyClass:k,priceHistoryAtText:A,linkTo:R,pageFrom:I,googleAnalyticsEvent:E,suiteNumber:i,addressId:M,buildingId:O,bedTypeNum:n,offer:t}),T&&ne&&!b&&o.createElement(d.A,{type:"fade",timeout:0},o.createElement(ae,{agent:P,isPrint:_,pageFrom:I,isUserAgentAdminSupport:L,archiveListingsData:g,showPastSaleOnClick:this.showPastSaleOnClick,userIsAuthentificated:y,handleContactAgentClick:this.handleContactAgentClick,handleInnerCollapsibleOnClick:function(e){const t=I||"listing";E({category:t,action:"[Collapsible Click]"}),E({category:t,action:"[Collapsible Click][Price history inner]"}),E({category:t,action:`[Collapsible Click][Price history inner][${e?"Close":"Open"}]`})},userEmailVerified:B,showLoginModal:this.showLoginModal},T&&!this.state.noPriceHistoryPage&&$&&!H&&o.createElement(J,null,o.createElement(p.A,{openNewTab:!0,alt:"View full listing history",to:R+`${i?`&suiteNumber=${i}`:""}&${n?`bedTypeNum=${n}`:""}`,onClick:function(){E({category:I,action:`[Click][Price history from ${I}][View all history]`})},mobileModalChildren:function(e){let{closeModalPage:r}=e;return o.createElement(h.ny,{closeModalPage:r,archiveMobileModalPageData:{addressId:M,suiteNumber:i,buildingId:O,bedTypeNum:n,offer:t}})},mobileModalKey:`archivedListingsModal-${O||M}`},o.createElement(Q,null,"View full listing history")))))))),g&&w&&this.renderLoadMoreButton(),!l.IS_PROPERTY&&V&&U&&o.createElement(ie,{primary:!0,isMobileApp:j},o.createElement(p.A,{to:U||"",alt:W,onClick:function(){E({category:I,action:"[Navigate to building]"})},mobileModalChildren:function(e){let{closeModalPage:t}=e;return o.createElement(h.b7,{buildingId:O,closeModalPage:t})},mobileModalKey:`buildingModal-${O}`},"View building info & available listings")))}}const de=ce},97812:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(96540);const o=function(e,t){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,n.useEffect)((function(){const n=function(n){e.current&&!e.current.contains(n.target)&&i&&t(n)};return document.addEventListener("mouseup",n),document.addEventListener("touchend",n),function(){document.removeEventListener("mouseup",n),document.removeEventListener("touchend",n)}}),[e,t])}},97909:(e,t,i)=>{"use strict";i.d(t,{A:()=>C});var n=i(96540),o=i(20181),r=i.n(o),a=i(76955),s=i(97812),l=i(26872),c=i(89103),d=i(33091),u=i(882),p=i(80156);const f=(0,u.css)(["justify-content:flex-start;padding-right:24px;"]),h={medium:36,large:48},m=u.default.button.withConfig({displayName:"styles___Container",componentId:"sc-ieppqd-0"})(["padding:15px;position:static;height:","px;width:100%;border:1px solid ",";display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:10px;> svg{position:absolute;top:25px;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:10px;}background:",";"," &:hover{cursor:pointer;}"],(function(e){let{size:t}=e;return h[t]||36}),p.VIG,(function(e){let{showDropdown:t}=e;return t?p.f46:"inherit"}),(function(e){return e&&f})),g=u.default.div.withConfig({displayName:"styles___DropdownBox",componentId:"sc-ieppqd-1"})(["position:absolute;top:48px;z-index:10000;left:0;width:100%;background:white;padding:15px;border:1px solid ",";border-top:none;border-radius:10px;"],p.VIG),y=u.default.div.withConfig({displayName:"styles___TitleBox",componentId:"sc-ieppqd-2"})(["display:flex;align-items:center;"]),b=u.default.div.withConfig({displayName:"styles___BlurBg",componentId:"sc-ieppqd-3"})(["width:100%;height:500px;position:absolute;background:white;opacity:0.9;
1left:0;top:100%;z-index:2000;"]),w=u.default.div.withConfig({displayName:"styles___TitleLeftIcon",componentId:"sc-ieppqd-4"})(["padding-right:16px;"]),x=u.default.button.withConfig({displayName:"styles___MenuBtn",componentId:"sc-ieppqd-5"})(["&:hover{cursor:pointer;}border:none;font-size:14px;line-height:22px;font-weight:600;"]),v=u.default.div.withConfig({displayName:"styles___BtnContainer",componentId:"sc-ieppqd-6"})(["justify-content:space-between;display:flex;flex-direction:row;padding:0px 40px !important;margin-bottom:20px !important;button:last-child{color:",";&:active{color:",";}}"],p.q5P,p.kb7),C=function(e){let{className:t="",dropdownClass:i="",titleContainerClass:o="",children:u,title:p,blurBackground:f=!0,titleLeftIconName:h="",gaFromPage:C="",gaFromComponent:A="",googleAnalyticsEvent:N,closeOnSelect:k=!0,scrollableParentClass:_,childClassName:I,onKeyboardSelect:E=function(){},size:T="medium",onResetBtnClick:S,additionalBtns:P}=e;const L=(0,n.useRef)(null),M=(0,n.useRef)(null),[O,F]=(0,n.useState)(!1),[j,B]=(0,n.useState)(!1);_&&(0,l.A)(O,_),I&&(0,l.A)(O);const H=r()((function(){return F(!1)}),50);(0,s.A)(L,r()((function(){return F(!1)}),100)),(0,d.A)({enableExitOnEsc:O,onEsc:function(){return F(!1)}}),I&&(0,c.A)({enableKeyboardInteraction:O||j,childClassName:I||`.${g.styledComponentId} > *`,isDropdownOpen:O,updateOpenState:function(e){return F(e)},onFocusOut:function(){F(!1),B(!1)},onSelect:function(e){E(e),F(!1)}});return n.createElement(m,{showDropdown:O,className:`${t} dropdownContainer ${O?"dropdownVisible":""}`,hasLeftIcon:h,size:T,onClick:function(e){e.preventDefault(),!O&&C&&A&&N({category:C,action:`[click][${A} from ${C}]`}),O&&!M.current.contains(e.target)?F(!1):O||r()((function(){return F(!0)}),50)()},onFocus:function(){return B(!0)},onBlur:function(){return B(!1)}},n.createElement(y,{className:`${o} dropdownTitle`},h&&n.createElement(w,null,n.createElement(a.A,{name:h,width:"16",height:"16"})),p&&n.createElement("div",{htmlFor:"title"},p)),n.createElement(a.A,{name:"#icon-dropdown-arrow",width:"12",height:"12"}),n.createElement("div",{ref:M,onClick:k?H:null,className:"dropdownCont"},O&&n.createElement(g,{ref:L,role:"listbox","aria-haspopup":!0,"aria-expanded":!0,className:`${i} dropdown`},u,P?n.createElement(v,null,n.createElement(x,{onClick:S},"Cancel"),n.createElement(x,{onClick:function(){return F(!1)}},"Apply")):null)),f&&O&&n.createElement(b,null))}}}]); 2//# sourceMappingURL=ArchiveListings.js.map?v=ed3e979fc87a
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.