PageSourceSearch

https://www.highrises.com/_next/static/chunks/srp.SaveSearchWarningModal.d80efbf2ce8b43a0.js

js highrises.com collected 2026-10-02 06:52:44 UTC 3,443 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2019],{53750:function(e,a,n){"use strict";n.r(a),n.d(a,{SaveSearchWarningModal:function(){return p}});var r=n(47568),t=n(14924),s=n(97582),i=n(85893),o=n(67294),l=n(93967),c=n.n(l),u=n(5152),d=n.n(u),h=n(67486),v=n(43286),f=Object.freeze({INITIAL:{value:"initial",modalHeading:"Uh oh! Too many notifications"},LOADING:{value:"loading",modalHeading:"Saving your search..."},CONFIRM:{value:"confirm",modalHeading:"Search saved"},ERROR:{value:"error",modalHeading:"Oops!"}}),g=n(52395),C=n(5261),y=n.n(C),m=function(e){var a=e.handleSaveButtonClick,n=e.handleModalClose;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Your saved search will create over 500 notifications a day. To keep things simple, we recommend you edit your search criteria to receive fewer notifications."}),(0,i.jsxs)("div",{className:y().buttonsContainer,children:[(0,i.jsx)(g.z,{"data-testid":"save-search-consent",styleType:"Inline",gutter:{right:"12px"},onClick:a,children:"I\u2019m good, save it"}),(0,i.jsx)(g.z,{"data-testid":"edit-save-search",styleType:"PrimaryDefault",onClick:n,children:"Ok, edit my search"})]})]})},S=n(65665),I=function(){return(0,i.jsx)(S.$,{style:{position:"static"},title:"Saving..."})},k=function(e){var a=e.handleModalClose;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"You can update your saved searches anytime from your account profile."}),(0,i.jsx)("div",{className:y().buttonsContainer,children:(0,i.jsx)(g.z,{"data-testid":"okay-save-search-button",styleType:"PrimaryDefault",onClick:a,children:"Okay"})})]})},x=function(e){var a=e.handleSaveButtonClick;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Error occurred while saving your search. You can try saving it again."}),(0,i.jsx)("div",{className:y().buttonsContainer,children:(0,i.jsx)(g.z,{styleType:"PrimaryDefault",onClick:a,children:"Try again"})})]})},j=d()((function(){return n.e(41330).then(n.bind(n,30970)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[30970]}},ssr:!1}),p=function(){var e=(0,h.s)().createSaveSearch,a=(0,v.B)(),n=a.showSaveSearchWarningModal,l=a.setShowSaveSearchWarningModal,u=(0,o.useState)(f.INITIAL),d=u[0],g=u[1];(0,o.useEffect)((function(){n&&g(f.INITIAL)}),[n]);var C,S=(0,o.useCallback)((0,r.Z)((function(){return(0,s.__generator)(this,(function(a){switch(a.label){case 0:g(f.LOADING),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,e()];case 2:return a.sent(),g(f.CONFIRM),[3,4];case 3:return a.sent(),g(f.ERROR),[3,4];case 4:return[2]}}
1))})),[e]),p=(0,o.useCallback)((function(){l(!1)}),[l]),b=(0,o.useCallback)((function(){g(f.INITIAL)}),[]),N=(C={},(0,t.Z)(C,f.INITIAL.value,(0,i.jsx)(m,{handleSaveButtonClick:S,handleModalClose:p})),(0,t.Z)(C,f.LOADING.value,(0,i.jsx)(I,{})),(0,t.Z)(C,f.CONFIRM.value,(0,i.jsx)(k,{handleModalClose:p})),(0,t.Z)(C,f.ERROR.value,(0,i.jsx)(x,{handleSaveButtonClick:S})),C),M=(0,o.useCallback)((function(){return N[d.value]}),[d.value]);return(0,i.jsx)(j,{"data-testid":"save-search-warning-modal",headline:d.modalHeading,show:n,onClose:p,onAfterClose:b,className:c()(y().saveSearchWarningModal),children:M()})}},5261:function(e){e.exports={buttonsContainer:"SaveSearchWarningModal_buttonsContainer__2vqs9",saveSearchWarningModal:"SaveSearchWarningModal_saveSearchWarningModal__WJLok"}}}]);
2//# sourceMappingURL=srp.SaveSearchWarningModal.d80efbf2ce8b43a0.js.map

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.