1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7516],{14445:function(e,t,n){n.d(t,{t:function(){return h}});var a=n(50029),r=n(87794),o=n.n(r),i=n(36532),u=n(2612),c=n(37842),l=n(91184),s="Your Browser doesn't support location service !",p="We couldn't fetch your location right now. Please try again.",d={enableHighAccuracy:!1,timeout:6e3,maximumAge:18e5},v=function(e){var t=e.latitude,n=e.longitude,a=e.cityData;return{place:"Your location",placeType:"OSM",osmPlaceType:"your location",placeId:null,latitude:t,longitude:n,cityId:null===a||void 0===a?void 0:a.cityId,name:"your location",citySlug:null===a||void 0===a?void 0:a.citySlug,micromarketSlug:null===a||void 0===a?void 0:a.micromarketSlug}},f=function(){var e=(0,a.Z)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"===typeof fetch){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,fetch("https://ipapi.co/json/");case 4:if((t=e.sent).ok){e.next=7;break}return e.abrupt("return",null);case 7:return e.next=9,t.json();case 9:if("number"===typeof(null===(n=e.sent)||void 0===n?void 0:n.latitude)&&"number"===typeof(null===n||void 0===n?void 0:n.longitude)){e.next=12;break}return e.abrupt("return",null);case 12:return e.abrupt("return",{coords:{latitude:n.latitude,longitude:n.longitude}});case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pathname,n=e.onLoadingChange,r=void 0===n?function(){}:n,h=e.onSuccess,y=void 0===h?function(){}:h,m=e.onNoServiceArea,g=void 0===m?function(){}:m,S=e.onDenied,k=void 0===S?function(){}:S,b=e.onUnsupported,w=void 0===b?function(){}:b,I=e.onError,x=void 0===I?function(){}
1:I,P=e.alertHandler,_=e.navigatorRef,T=e.geolocationOptions,E=void 0===T?d:T,A=P||function(e){"function"===typeof window.alert&&window.alert(e)},N=_||window.navigator;return N&&"geolocation"in N?(r(!0),(0,u.Du)(t),new Promise((function(e){var n=function(){var n=(0,a.Z)(o().mark((function n(a){var c,s,d,f;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,c=a.coords.latitude,s=a.coords.longitude,n.next=5,(0,i.p$)({latitude:c,longitude:s});case 5:if(d=n.sent,r(!1),d){n.next=11;break}return g({latitude:c,longitude:s,position:a}),e({status:"no_service_area"}),n.abrupt("return");case 11:f=v({latitude:c,longitude:s,cityData:d}),(0,l.Yw)("isLocateMe","true"),(0,u.Ge)(t,null===d||void 0===d?void 0:d.city,null===d||void 0===d?void 0:d.micromarketSlug),y({place:f,cityData:d,position:a}),e({status:"success",place:f,cityData:d}),n.next=24;break;case 18:n.prev=18,n.t0=n.catch(0),r(!1),A(p),x({error:n.t0,position:a}),e({status:"error",error:n.t0});case 24:case"end":return n.stop()}}),n,null,[[0,18]])})));return function(e){return n.apply(this,arguments)}}(),s=function(){var t=(0,a.Z)(o().mark((function t(a){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,f();case 3:if(!(i=t.sent)){t.next=8;break}return t.next=7,n(i);case 7:return t.abrupt("return",!0);case 8:t.next=17;break;case 10:return t.prev=10,t.t0=t.catch(0),r(!1),A(p),x({error:t.t0,originalError:a}),e({status:"error",error:t.t0}),t.abrupt("return",!0);case 17:return t.abrupt("return",!1);case 18:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}();N.geolocation.getCurrentPosition(n,function(){var n=(0,a.Z)(o().mark((function n(a){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a.code!==a.TIMEOUT&&a.code!==a.POSITION_UNAVAILABLE){n.next=6;break}return n.next=3,s(a);case 3:if(!n.sent){n.next=6;break}return n.abrupt("return");case 6:r(!1),(0,u.t7)(t),A(c.gV),k(a),e({status:"denied",error:a});case 11:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),E)}))):(A(s),w(),Promise.resolve({status:"unsupported"}))}},3628:function(e,t,n){var a;n.d(t,{Q:function(){return b},g:function(){return w}});var r=n(50029),o=n(59499),i=n(87794),u=n.n(i),c=n(41609),l=n.n(c),s=n(2347),p=n(87755),d=n(91184),v=n(78063),f=n(95481),h=n(97327),y=n(73893),m=n(30621),g=n(30231);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){var t=e.place,n=e.propertyType,a=e.placeIndexDto,r=e.router,o=e.dispatch,i=e.setOpenExplorePlaceModal,u=void 0===i?function(){}:i,c=e.setStatus,l=void 0===c?function(){}:c,s=e.isScholar,p=void 0!==s&&s;if(u(!1),"Locality"===t.placeType){if(n.value===g.p[0].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),null!==t.micromarketSlug?(r.push({pathname:"/".concat(t.citySlug,"/").concat(t.micromarketSlug),query:p?{profession:"scholar"}:""},void 0,{shallow:!1}),void(0,h.NQ)("search")):(r.push({pathname:"/".concat(null===t||void 0===t?void 0:t.citySlug),query:{placeId:"".concat(t.placeId)}},void 0,{shallow:!1}),void(0,h.NQ)("search"));if(n.value===g.p[1].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),null!==t.micromarketSlug?(r.push({pathname:"/".concat(t.citySlug,"/").concat(t.micromarketSlug),query:{profession:"suit"}},void 0,{shallow:!1}),void(0,h.NQ)("search")):(r.push({pathname:"/".concat(t.citySlug),query:{placeId:"".concat(t.placeId),profession:"suit"}},void 0,{shallow:!1}),void(0,h.NQ)("search"));if(n.value===g.p[2].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),null!==(null===a||void 0===a?void 0:a.apartmentMMSlug)?(r.push({pathname:"/apartments/".concat(null===a||void 0===a?void 0:a.apartmentCitySlug,"/").concat(null===a||void 0===a?void 0:a.apartmentMMSlug)}
1),void(0,h.NQ)("search")):(r.push({pathname:"/apartments/".concat(null===a||void 0===a?void 0:a.apartmentCitySlug),query:{placeId:"".concat(t.placeId)}},void 0,{shallow:!1}),void(0,h.NQ)("search"))}if("Apartment"===t.placeType)return o((0,f.M)(v.k.DETAILS_PAGE)),l({status:!1}),void r.push({pathname:"/apartments/".concat(t.citySlug,"/").concat(t.micromarketSlug,"/").concat(t.placeSlug)});if("Residence"===t.placeType){var y=t.gender.toLowerCase();return"unisex"==y&&(y="co_ed"),o((0,f.M)(v.k.DETAILS_PAGE)),l({status:!1}),n.value===g.p[1].value?void r.push({pathname:"/".concat(t.citySlug,"/").concat(t.micromarketSlug,"/").concat(y,"/").concat(t.placeSlug),query:{profession:"suit"}},void 0,{shallow:!1}):(r.push({pathname:"/".concat(t.citySlug,"/").concat(t.micromarketSlug,"/").concat(y,"/").concat(t.placeSlug)},void 0,{shallow:!1}),void(0,h.NQ)("search"))}if("City"===t.placeType){if(n.value===g.p[0].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),void r.push({pathname:"/".concat(t.citySlug),query:p?{profession:"scholar"}:""},void 0,{shallow:!1});if(n.value===g.p[1].value)return o((0,f.M)(v.k.LISTING_PAGE)),void r.push({pathname:"/".concat(t.citySlug),query:{profession:"suit"}},void 0,{shallow:!1});if(n.value===g.p[2].value&&null!==a&&void 0!==a&&a.apartmentCitySlug)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),void r.push({pathname:"/apartments/".concat(null===a||void 0===a?void 0:a.apartmentCitySlug)},void 0,{shallow:!1})}if("Society"==t.placeType||"Building"==t.placeType){if(n.value===g.p[0].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/".concat(null===a||void 0===a?void 0:a.citySlug),query:p?{profession:"scholar"}:""},void 0,{shallow:!1}),void(0,h.NQ)("search");if(n.value===g.p[1].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/".concat(null===a||void 0===a?void 0:a.citySlug),query:{placeId:"".concat(a.placeId),profession:"suit"}},void 0,{shallow:!1}),void(0,h.NQ)("search");if(n.value===g.p[2].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/apartments/".concat(null===a||void 0===a?void 0:a.apartmentCitySlug),query:{placeId:"".concat(a.placeId)}},void 0,{shallow:!1}),void(0,h.NQ)("search")}var m={};if(m=t.placeId||null!==t.placeId?{placeId:"".concat(t.placeId),profession:p?"scholar":""}:{latitude:"".concat(t.latitude),longitude:"".concat(t.longitude),meta:(0,d.b4)({placeName:null===t||void 0===t?void 0:t.name}),profession:p?"scholar":""},"College"===t.placeType||"Corporate Park"===t.placeType||"OSM"===t.placeType){if(n.value===g.p[0].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/".concat(t.citySlug),query:m},void 0,{shallow:!1}),void(0,h.NQ)("search");if(n.value===g.p[1].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/".concat(t.citySlug),query:k(k({},m),{},{profession:"suit"})},void 0,{shallow:!1}),void(0,h.NQ)("search");if(n.value===g.p[2].value)return o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/apartments/".concat(a.apartmentCitySlug),query:m},void 0,{shallow:!1}),void(0,h.NQ)("search")}o((0,f.M)(v.k.LISTING_PAGE)),l({status:!1}),r.push({pathname:"/".concat(null===t||void 0===t?void 0:t.citySlug),query:m},void 0,{shallow:!1}),(0,h.NQ)("search")},w=function(){var e=(0,r.Z)(u().mark((function e(t){var r,o,i,c,v,f,h,S,k,w,I,x,P,_,T,E,A,N,M,C,L,G,O,D,j,q,Q,V,R,W,Z,z,B,Y,H,U,F,J,K,$,X,ee,te,ne,ae,re,oe,ie,ue,ce,le,se,pe,de;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S=t.places,k=t.propertyType,w=t.selectedCity,I=t.searchPlaceKey,x=void 0===I?[]:I,P=t.placesSearchList,_=void 0===P?[]:P,T=t.router,E=t.dispatch,A=t.handlePlacesNearby,N=t.setWBCResponse,M=void 0===N?function(){}:N,C=t.setPreferredPlace,L=void 0===C?function(){}:C,G=t.setPlaceError,O=void 0===G?function(){}:G,D=t.setError,j=void 0===D?function(){}:D,q=t.setShowContinue,Q=void 0===q?function(){}:q,V=t.setOpenExplorePlaceModal,R=void 0===V?function(){}:V,W=t.setSelectedPropertyTypeError,Z=void 0===W?function(){}:W,z=t.setSearchPropertyType,B=void 0===z?function(){}:z,Y=t.setSelectedPlace,H=void 0===Y?function(){}:Y,U=t.setStatus,F=void 0===U?function(){}:U,J=t.isScholar,K=void 0!==J&&J,$=S,(!S||l()(S))&&(null===x||void 0===x?void 0:x.length)>0&&($=_[0]),(0,d.BZ)(!1),(0,d.J9)($),L($),(0,y.W)(null===T||void 0===T?void 0:T.pathname,"Find_Property",{location:null===(r=$)||void 0===r?void 0:r.place,listing_type:sessionStorage.getItem("listingType")||"",listing_entity:sessionStorage.getItem("listingEntity")||"",property_type:"Co-living for Professionals"==k.value?"Suit":"Modern Student Housing"==k.value?"Scholar":""}),w||0!==x.length||!l()($)){e.next=10;break}return O(!0),e.abrupt("return",{status:"place_error"});case 10:if(k.value){e.next=13;break}return j(!0),e.abrupt("return",{status:"property_error"});case 13:if((0,m.qY)({searchText:null===(o=$)||void 0===o?void 0:o.place,searchType:"OSM"===(null===(i=$)||void 0===i?void 0:i.placeType)?null===(c=$)||void 0===c?void 0:c.osmPlaceType:null===(v=$)||void 0===v?void 0:v.placeType,propertyType:null===k||void 0===k?void 0:k.value,route:T.pathname,previousRoute:null===(f=(0,d.qg)("previousRoute"))||void 0===f?void 0:f.prevPath}),w||!_||0!==_.length||!l()($)){e.next=20;break}return H({}),L({}),Q(!1),R(!0),e.abrupt("return",{status:"empty_result_modal"});case 20:if(Q(!0),O(!1),j(!1),ee=(X=$).placeId,te=X.latitude,ne=X.longitude,ae=X.cityId,re=(0,d.b4)({placeName:null===(h=$)||void 0===h?void 0:h.name}),oe="Residence"==$.placeType?$.transformationUuid:0,(0,p.he)($.place,oe),"Apartment"!==$.placeType){e.next=31;break}if(k.value!==g.p[0].value&&k.value!==g.p[1].value){e.next=31;break}return R(!0),e.abrupt("return",{status:"type_mismatch_modal"});
1case 31:if("Residence"!==$.placeType||k.value!==g.p[2].value){e.next=34;break}return R(!0),e.abrupt("return",{status:"type_mismatch_modal"});case 34:if(ie={},!k||k.label!==g.p[0].label){e.next=39;break}return e.next=38,A({placeId:ee,cityId:ae,latitude:te,longitude:ne,meta:re,isApartmentPage:!1,pageNo:1,pageSize:null===(a||(a=n.t(s,2)))||void 0===(a||(a=n.t(s,2)))?void 0:s.mWebPageSize});case 38:ie=e.sent;case 39:if(!k||k.label!==g.p[1].label){e.next=43;break}return e.next=42,A({placeId:ee,cityId:ae,latitude:te,longitude:ne,meta:re,isApartmentPage:!1,profession:"suit",pageNo:1,pageSize:null===(a||(a=n.t(s,2)))||void 0===(a||(a=n.t(s,2)))?void 0:s.mWebPageSize});case 42:ie=e.sent;case 43:if(!k||k.label!==g.p[2].label){e.next=47;break}return e.next=46,A({placeId:ee,cityId:ae,latitude:te,longitude:ne,meta:re,isApartmentPage:!0,pageNo:1,pageSize:null===(a||(a=n.t(s,2)))||void 0===(a||(a=n.t(s,2)))?void 0:s.mWebPageSize});case 46:ie=e.sent;case 47:if(M(ie),ce=(ue=ie).residenceResponseShortDTOsPg,le=ue.apartments,se=ue.propertyLocations,pe=ue.residenceResponseShortDTOsCoLiving,de=ue.placeIndexDto,!(l()(ce)&&l()(se)&&l()(pe))){e.next=54;break}if(Q(!1),"City"!==$.placeType){e.next=54;break}return T.push({pathname:"/".concat($.citySlug)},void 0,{shallow:!1}),e.abrupt("return",{status:"city_fallback"});case 54:if(k.value!==g.p[2].value||!l()(se)){e.next=59;break}return l()(ce)?l()(pe)||Z(g.p[1]):Z(g.p[0]),B("apartment"),R(!0),e.abrupt("return",{status:"empty_apartment_modal",response:ie});case 59:if(k.value!==g.p[1].value||!l()(pe)){e.next=64;break}return l()(ce)?l()(le)||Z(g.p[2]):Z(g.p[0]),B("co-living"),R(!0),e.abrupt("return",{status:"empty_coliving_modal",response:ie});case 64:if(k.value!==g.p[0].value||!l()(ce)){e.next=69;break}return l()(pe)?l()(le)||Z(g.p[2]):Z(g.p[1]),B("pg"),R(!0),e.abrupt("return",{status:"empty_pg_modal",response:ie});case 69:return F({status:!1}),b({place:$,propertyType:k,placeIndexDto:de,router:T,dispatch:E,setOpenExplorePlaceModal:R,setStatus:F,isScholar:K}),e.abrupt("return",{status:"routed",response:ie,placeIndexDto:de});case 72:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},87755:function(e,t,n){n.d(t,{T1:function(){return o},he:function(){return a},oI:function(){return i},qf:function(){return r}});n(87794),n(11752);var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={name:"search",action:"click",non_interaction:"false",metaData:{search_text:e,clicked_property_id:t||0}};"function"===typeof window.sendVueAnalyticsEvent&&t&&window.sendVueAnalyticsEvent(n)},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={name:"reserve",action:"click",non_interaction:"false",metaData:{property_id:e}};"function"===typeof window.sendVueAnalyticsEvent&&window.sendVueAnalyticsEvent(t)},o=function(e){var t={name:"scheduleVisit",action:"click",non_interaction:"false",metaData:{property_id:e}};"function"===typeof window.sendVueAnalyticsEvent&&window.sendVueAnalyticsEvent(t)},i=function(){"function"===typeof window.sendVueAnalyticsEvent&&window.sendVueAnalyticsEvent({name:"formsubmit",action:"click",non_interaction:"false",metaData:{}})}},75401:function(e,t,n){var a=n(67294),r=n(11163),o=n(2612),i=n(91184),u=n(85893);t.Z=function(e){var t=e.width,n=void 0===t?22:t,c=e.height,l=void 0===c?22:c,s=(0,r.useRouter)(),p=null===s||void 0===s?void 0:s.pathname;return(0,a.useEffect)((function(){p&&((0,i.qg)("isLocateMeSeen")||((0,o.Iz)(p),(0,i.Yw)("isLocateMe",!1)),(0,i.Yw)("isLocateMeSeen",!0))}),[p]),(0,u.jsxs)("svg",{width:n,height:l,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M11 3.5V1.625M11 20.375V18.5",stroke:"#60C3AD",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M11 4.25C9.66498 4.25 8.35993 4.64588 7.2499 5.38758C6.13987 6.12928 5.27471 7.18349 4.76382 8.41689C4.25292 9.65029 4.11925 11.0075 4.3797 12.3169C4.64015 13.6262 5.28303 14.829 6.22703 15.773C7.17104 16.717 8.37377 17.3599 9.68314 17.6203C10.9925 17.8808 12.3497 17.7471 13.5831 17.2362C14.8165 16.7253 15.8707 15.8601 16.6124 14.7501C17.3541 13.6401 17.75 12.335 17.75 11C17.75 9.20979 17.0388 7.4929 15.773 6.22703C14.5071 4.96116 12.7902 4.25 11 4.25Z",stroke:"#60C3AD",strokeWidth:"1.5",strokeMiterlimit:"10"}
1),(0,u.jsx)("path",{d:"M18.5 11H20.375M1.625 11H3.5",stroke:"#60C3AD",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("circle",{cx:"11",cy:"11",r:"2",fill:"#60C3AD"})]})}}}]);
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.