(window.webpackJsonp=window.webpackJsonp||[]).push([["app.19e92a76"],{"0739":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return l}));let s="multi",n=!1,a=!1,o=!1;const r=e=>{var t;(null===(t=null==e?void 0:e.routerOptions)||void 0===t?void 0:t.type)&&(s=e.routerOptions.type||"multi"),(null==e?void 0:e.propertyOptions)&&("boolean"==typeof e.propertyOptions.showUnavailableUnits&&(n=e.propertyOptions.showUnavailableUnits),"boolean"==typeof e.propertyOptions.showUnavailableProperties&&(a=e.propertyOptions.showUnavailableProperties),"boolean"==typeof e.propertyOptions.showUnavailableCities&&(o=e.propertyOptions.showUnavailableCities),a&&(o=!0))},l={getRouterType:()=>s,showUnavailableUnits:()=>n,showUnavailableProperties:()=>a,showUnavailableCities:()=>o}},1099:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("b0c5"),n=i("d1da");const a={combineObjects:(...e)=>{const t={};for(const i of e)for(const[e,s]of Object.entries(i))t[e]=s;return t},imageSrc:e=>{if(e.match(/(\.[a-zA-z])|https|http|www/g))return e;try{return i("7584")("./"+e)}catch(e){return""}},getAsset:(e,t,i="website")=>(/\/gallery\//.test(e)&&(i="property"),`${s.a.getBaseAssetPath(i)}/${e}/${t}`),getImage:(e,t,i="website")=>("s"!==e.slice(-1)&&(e+="s"),s.a.getImagePath(`${e}/${t}`,i)),getPanelImage:(e,t,i)=>(i||(i="website"),s.a.getPanelImagePath(e,t,i)),stripHtml:e=>{var t;const i=document.createElement("DIV");return i.innerHTML=e,(null===(t=i.textContent)||void 0===t?void 0:t.trim())||i.innerText.trim()||""},chunk:(e,t)=>Array.from({length:Math.ceil(e.length/t)},(i,s)=>e.slice(s*t,s*t+t)),setCookie:(e,t,i,s)=>{document.cookie=`${e}=${t};expires=${i.toString()};path=${null!=s?s:"/"}`},getCookie:(e,t)=>{e+="=";const i=decodeURIComponent(document.cookie).split(";");for(let t of i){for(;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(e))return t.substring(e.length,t.length)}return t},removeCookie:(e,t)=>{a.setCookie(e,"test",n.a.dayjs().subtract(1,"year"),t)},loadScript:(e,t,i)=>{if(t=t.replace(/[\t\n\r]+/gm,"").replace(/\<\!--.*--\>/gm,"").trim(),void 0!==typeof document&&void 0!==typeof window&&/^<script/.test(t)){const s=t.match(new RegExp("<script(?:(?!<\/script>).)+<\/script>","gm"));if(null==s?void 0:s.length)return void s.forEach(t=>{var s,n;const a=document.createElement("script");a.type="text/javascript",i&&"function"==typeof i&&a.addEventListener("load",()=>{i()});const o=t.replace(/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/gm,"");if(o){const e=o.replace(/\s+/gm," ");a.innerText=e}const r=null===(s=t.match(/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/gm))||void 0===s?void 0:s[0];if(r&&(null===(n=r.match(/\S+=["']?(?:.(?!["']?\s+(?:\S+)=|[>"']))+.["']?/gm))||void 0===n||n.forEach(e=>{const t=e.substring(0,e.indexOf("=")),s=e.substring(e.indexOf("=")+1).replace(/(\"|\')/g,"");if("onload"===t&&window[s]&&!i){const e=window[s];"function"==typeof e&&a.addEventListener("load",()=>{e()})}a.setAttribute(t,s)})),a.setAttribute("async",""),a.setAttribute("defer",""),"string"==typeof e){const t=document.querySelector(e);t&&(null==t||t.appendChild(a))}else"string"!=typeof e&&e.appendChild(a)})}},shuffleArray:e=>e.map(e=>[Math.random(),e]).sort((e,t)=>e[0]-t[0]).map(e=>e[1]),isExternalUrl:e=>!!e.match(/(\.[a-zA-z])|https|http|www/g)}},1881:function(e,t,i){"use strict";i.r(t),i.d(t,"dateTime",(function(){return s.a})),i.d(t,"text",(function(){return n.a})),i.d(t,"generic",(function(){return a.a})),i.d(t,"translations",(function(){return o.a})),i.d(t,"schema",(function(){return h})),i.d(t,"data",(function(){return g.a})),i.d(t,"AssetBucketSizesArray",(function(){return f.a})),i.d(t,"assets",(function(){return f.b})),i.d(t,"setHelperConfig",(function(){return m.b})),i.d(t,"config",(function(){return m.a}));var s=i("d1da"),n=i("ad17"),a=i("1099"),o=i("c32e"),r=i("9ab4"),l=i("23b2"),d=i("0fe8"),c=i("add4"),u=i("7921"),p=i("bbcc");const h={richDataTestimonial:(e,t)=>Object(r.a)(void 0,void 0,void 0,(function*(){const i=document.createElement("script");i.setAttribute("type","application/ld+json");const s=new p.a(e),o=yield s.getProperty();if(o){const e=new l.a(o);let r="";const d=e.photos?e.photos:yield e.getPhotos(),c="256";if(d)for(const e of d)if(e.searchResult)return void(r=a.a.getAsset("images/gallery/"+c,e.image));let u=e.geoLocation;u||(u=yield t.getGeoLocation());let p='{\n              "@context":"http://schema.org/",\n              "@type":"Review",\n              "itemReviewed": {\n                  "@context":"http://schema.org",\n                  "@type":"Apartment",\n                  "address":{\n                      "@type":"PostalAddress",\n                      ';u&&(p+=`"addressCountry":"${u.countryName}",\n                          "addressLocality":"${u.cityName}",\n                          "addressRegion":"${u.provinceName}",\n                          "areaServed":"${u.cityName}",\n                          "postalCode":"${e.postal}",\n                          "streetAddress":"${e.streetNumber} ${e.streetName}",\n                          "telephone":"${e.phone}"`),p+=`},\n                  "name":"${e.buildingName}",\n                  "description":"${n.a.htmlDecodeAndStripTags(e.buildingOverview)}",\n                  "photo": {\n                      "@type":"Photograph",\n                      "url":"${r}"\n                  },\n                  "telephone":"${e.phone}",\n                  "geo":{\n                      "@type":"GeoCoordinates",\n                      "latitude":"${e.latitude}",\n                      "longitude":"${e.longitude}"\n                  },\n                  "hasMap":"https://www.google.com/maps/place/${e.latitude},${e.longitude}"\n              },\n              "reviewBody":"${n.a.htmlDecodeAndStripTags(s.testimonial)}",\n              "author": {\n                  "@type":"Person",\n                  "givenName":"${s.name}"\n              },\n              "reviewRating":{\n                  "author":{\n                      "@type":"Person",\n                      "givenName":"${s.name}"\n                  },\n                  "ratingValue":"${s.rating?s.rating:5}"\n              },\n          }`,i.append(p),document.body.append(i)}else{let e=t.geoLocation;e||(e=yield t.getGeoLocation());let a=`{\n              "@context":"http://schema.org/",\n              "@type":"Review",\n              "itemReviewed":{\n                  "@context":"http://schema.org",\n                  "@type":"LocalBusiness",\n                  "name":"${t.name}",\n                  "priceRange":"$300-$3500",\n                  "image":{\n                      "@type":"ImageObject"\n                      "url":"${t.getPrimaryLogo()}"\n                  },\n                  "description":"${t.name}",\n                  "photo": {\n                      "@type":"Photograph",\n                      "url":"${t.getPrimaryLogo()}"\n                  },\n                  "telephone":"${t.phone}",\n                  "geo":{\n                      "@type":"GeoCoordinates",\n                      "latitude":"${t.latitude}",\n                      "longitude":"${t.longitude}"\n                  },\n                  "address":{\n                      "@type": "PostalAddress",`;e&&(a+=`"addressCountry":"${e.countryName}",\n                        "addressLocality":"${e.countryName}",\n                        "addressRegion":"${e.provinceName}",\n                        "serviceArea":"${e.countryName}",`),a+=`"postalCode":"${t.postal}",\n                      "streetAddress":"${t.address}",\n                      "telephone":"${t.phone}"\n                  },\n                  "hasMap":"https://www.google.com/maps/place/${t.latitude},${t.longitude}"\n              },\n              "reviewBody":"${n.a.htmlDecodeAndStripTags(s.testimonial)}",\n              "author": {\n                  "@type":"Person",\n                  "givenName":"${s.name}"\n              },\n              "reviewRating":{\n                  "author":{\n                      "@type":"Person",\n                      "givenName":"${s.name}"\n                  },\n                  "ratingValue":"${s.rating?s.rating:5}"\n              },\n          }`,i.append(a),document.body.append(i)}})),richDataClient:e=>Object(r.a)(void 0,void 0,void 0,(function*(){const t=document.createElement("script");t.setAttribute("type","application/ld+json");let i=e.geoLocation;i||(i=yield e.getGeoLocation());const s=e.getPrimaryLogo();let n='{\n        "@context":"http://schema.org/",\n        "@type":"LocalBusiness",\n        "address":{\n          "@type":"PostalAddress",';i&&(n+=`"addressCountry":"${i.countryName}",\n            "addressLocality":"${i.provinceName}",\n            "serviceArea":"${i.countryName}",`),n+=`"postalCode":"${e.postal}",\n          "streetAddress":"${e.address}",\n          "telephone":"${e.phone}"\n        },\n        "description":"",\n        "name":"${e.name}",\n        "priceRange":"$$",\n        "image":{\n          "@type":"ImageObject",\n          "url":"${s}"\n        },\n        "telephone":"${e.phone}",\n        "url":"${window.location.href}",\n        "geo":{\n          "@type":"GeoCoordinates",\n          "latitude":"${e.latitude}",\n          "longitude":"${e.longitude}"\n        },`;const a=[];if(e.facebookUrl&&a.push(e.facebookUrl),e.twitterUrl&&a.push(e.twitterUrl),e.linkedinUrl&&a.push(e.linkedinUrl),e.youtubeUrl&&a.push(e.youtubeUrl),e.pinterestUrl&&a.push(e.pinterestUrl),e.instagramUrl&&a.push(e.instagramUrl),a.length){n+='"sameAs":[';for(let e=0;e<a.length;e++)n+=`"${a[e]}"`,a.length-1!==e&&(n+=",");n+="],"}n+=`"hasMap":"https://www.google.com/maps/place/${e.latitude},${e.longitude}"\n      }`,t.append(n),document.body.append(t)})),richDataProperty:(e,t)=>Object(r.a)(void 0,void 0,void 0,(function*(){const i=document.createElement("script");i.setAttribute("type","application/ld+json");const s=new l.a(e);let o="";const r=t.getPrimaryLogo();let d="";const c=yield s.getBuildingType();let u=s.photos;if(u||(u=yield s.getPhotos()),u)for(const e of u)if(e.searchResult)return void(d=a.a.getAsset("images/gallery/256",e.image));let p=s.geoLocation;p||(p=yield s.getGeoLocation()),o+='{\n        "@context":"http://schema.org/",\n        "@type":"apartmentComplex",\n        "address":{\n          "@type":"PostalAddress",',p.countryName&&p.cityName&&p.provinceName&&(o+=`"addressCountry":"${p.countryName}",\n            "addressLocality":"${p.cityName}",\n            "addressRegion":"${p.provinceName}",`),o+=`"postalCode":"${s.postal}",\n          "areaServed":"${p.cityName}",\n          "streetAddress":"${s.streetNumber} ${s.streetName}",\n          "telephone":"${s.phone?s.phone:t.phone}"\n        },\n        "name":"${s.buildingName}",\n        "description":"${n.a.htmlDecodeAndStripTags(s.buildingOverview)}",`,d&&(o+=`"photo":{\n            "@type":"PostalAddress",\n            "url":"${d}"\n          },`),o+=`"telephone":"${s.phone?s.phone:t.phone}",\n        "url":"${window.location.href}",\n        "geo":{\n          "@types":"GeoCoordinates",\n          "latitude":"${s.latitude}",\n          "longitude":"${s.longitude}"\n        },\n        "hasMap":"https://www.google.com/maps/place/${s.latitude},${s.longitude}"`;let h=s.amenities;if(h||(h=yield s.getAmenities()),h){o+=',"amenityFeature":[';let e=0;for(const t of h)o+=`{\n              "name":"${t.name}",\n              "value":true,\n              "@type":"LocationFeatureSpecification"\n            }`,h.length-1!=e++&&(o+=",");o+="]"}o+="}",i.append(o),document.body.append(i);let g=s.units;if(g||(g=yield s.getUnits()),g)for(const e of g){const i=document.createElement("script");i.setAttribute("type","application/ld+json"),o=`{\n                "@context":"http://schema.org/",\n                "@type":"Offer",\n                "availability":"http://schema.org/LimitedAvailability",\n                "offeredBy":{\n                  "@type":"LocalBusiness",\n                  "name":"${t.name}",\n                  "priceRange":"$300-$3500",\n                  "image":{\n                    "@type":"ImageObject",\n                    "url":"${r}"\n                  },\n                  "address":{\n                    "@type":"PostalAddress",`,p.countryName&&p.cityName&&p.provinceName&&(o+=`"addressCountry":"${p.countryName}",\n                      "addressLocality":"${p.cityName}",\n                      "addressRegion":"${p.provinceName}",`),o+=`"postalCode":"${s.postal}",`,p.countryName&&(o+=`"areaServed":"${p.countryName}",`),o+=`"streetAddress":"${s.streetNumber} ${s.streetName}",\n                    "telephone":"${s.phone?s.phone:t.phone}"\n                  }\n                },\n                "image":{\n                  "@type":"imageObject",\n                  "url":"${d}"\n                },\n                "name":"${e.typeName} ${c.name} for Rent in ${p.cityName}",\n                "sku":"${e.id}",\n                "areaServed":"${p.countryName}",\n                "potentialAction":{\n                  "@type":"RentAction"\n                },\n                "price":"${e.rate}",\n                "url":"${window.location.href}"\n              }`,i.append(o),document.body.append(i)}})),richDataBlog:(e,t)=>{const i=document.createElement("script");i.setAttribute("type","application/ld+json");const s=new d.a(e),a=s.getImage();let o=`{\n        "@context":"http://schema.org/",\n        "@type": "Article",\n        "headline": "${s.title}",\n        "mainEntityOfPage":{\n          "@type":"WebPage",\n          "@id":"${window.location.href}"\n        },\n        "url":"${window.location.href}",\n        "dateModified":"${s.publishDate}",\n        "datePublished":"${s.publishDate}",\n        "author":{\n          "@type":"Person",\n          "name":"${s.author}"\n        },`;a&&(o+=`"image":{\n            "@type":"ImageObject",\n            "url":"${a}"\n          },`),o+=`"publisher":{\n          "@type":"Organization",\n          "name":"${t.name}",\n          "logo":{\n            "@type":"ImageObject",\n            "url":"${a}"\n          }\n        },\n        "articleBody":"${n.a.htmlDecodeAndStripTags(s.content)}"\n      }`,i.append(o),document.body.append(i)},richDataNews:(e,t)=>{const i=document.createElement("script");i.setAttribute("type","application/ld+json");const s=new c.a(e),a=s.getImage();let o=`{\n        "@context":"http://schema.org/",\n        "@type": "Article",\n        "headline": "${s.title}",\n        "mainEntityOfPage":{\n          "@type":"WebPage",\n          "@id":"${window.location.pathname}"\n        },\n        "url":"${window.location.pathname}",\n        "dateModified":"${s.publishDate}",\n        "datePublished":"${s.publishDate}",\n        "author":{\n          "@type":"Person",\n          "name":"${s.author}"\n        },`;a&&(o+=`"image":{\n            "@type":"ImageObject",\n            "url":"${a}"\n          },`),o+=`"publisher":{\n          "@type":"Organization",\n          "name":"${t.name}",\n          "logo":{\n            "@type":"ImageObject",\n            "url":"${a}"\n          }\n        },\n        "articleBody":"${n.a.htmlDecodeAndStripTags(s.content)}"\n      }`,i.append(o),document.body.append(i)},richDataCareer:(e,t)=>Object(r.a)(void 0,void 0,void 0,(function*(){var i,s,a;const o=document.createElement("script");o.setAttribute("type","application/ld+json");const r=new u.a(e);let l=t.geoLocation;l||(l=yield t.getGeoLocation());const d=t.getPrimaryLogo();let c=`{\n        "@context":"http://schema.org/",\n        "@type":"JobPosting",\n        "datePosted":"${r.postingStartDate}",\n        "description":"${n.a.htmlDecodeAndStripTags(r.jobSummary?r.jobSummary:r.postingDetails)}",\n        "employmentType":"${null===(i=r.jobType)||void 0===i?void 0:i.replace(/_/g,"")}",\n        "title":"${r.title}",\n        "baseSalary":"${r.wageAmount}",\n        "jobLocation":{\n          "@type":"Place",\n          "address":{\n            "@type":"PostalAddress",\n            "addressLocality":"${null===(s=r.jobLocation)||void 0===s?void 0:s.split(",")[0]}",\n            "addressRegion":"${null===(a=r.jobLocation)||void 0===a?void 0:a.split(",")[1]}"\n          }\n        },\n        "hiringOrganization": {\n          "@type":"LocalBusiness",\n          "name":"${t.name}",\n          "priceRange":"$300-$3500",\n          "telephone":"${t.phone}",\n          "address":{\n            "@type":"PostalAddress",`;l&&(c+=`"addressCountry":"${l.countryName}",\n              "addressLocality":"${l.cityName}",\n              "addressRegion":"${l.provinceName}",\n              "serviceArea":"${l.countryName}",`),c+=`"postalCode":"${t.postal}",\n            "streetAddress":"${t.address}",\n            "telephone":"${t.phone}"\n          },\n          "image":{\n            "@type":"ImageObject",\n            "url":"${d}"\n          }\n        }\n      }`,o.append(c),document.body.append(o)})),printSchema:(e,t,i)=>Object(r.a)(void 0,void 0,void 0,(function*(){if(void 0!==typeof document&&void 0!==typeof window)if(i)switch(t){case"news":h.richDataNews(i,e);break;case"blog":h.richDataBlog(i,e);break;case"property":yield h.richDataProperty(i,e);break;case"career":yield h.richDataCareer(i,e);break;case"testimonial":yield h.richDataTestimonial(i,e);break;case"client":yield h.richDataClient(e)}else"client"===t&&(yield h.richDataClient(e))})),clearSchema:()=>{if(void 0!==typeof document&&void 0!==typeof window){const e=document.querySelectorAll('script[type="application/ld+json"]');for(const t in e)"SCRIPT"===e[t].tagName&&e[t].remove()}}};var g=i("238f"),f=i("4d96"),m=i("0739")},"238f":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("38eb");const n={getPagePermalink:e=>{var t,i,n,a,o,r;return"object"!=typeof e?null===(i=null===(t=s.a.getPages())||void 0===t?void 0:t.find(t=>t.id===Number(e)))||void 0===i?void 0:i.permaLink:e.template?null===(a=null===(n=s.a.getPages())||void 0===n?void 0:n.find(t=>{var i,s;return(null===(i=t.template)||void 0===i?void 0:i.toLowerCase())===(null===(s=e.template)||void 0===s?void 0:s.toLowerCase())}))||void 0===a?void 0:a.permaLink:null===(r=null===(o=s.a.getPages())||void 0===o?void 0:o.find(t=>t.id===Number(e.id)))||void 0===r?void 0:r.permaLink}}},"38eb":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("9ab4"),n=i("397b"),a=i("4ef5");const o=new class{getResponse(e){return Object(s.a)(this,void 0,void 0,(function*(){return{data:new n.a(e.data),meta:e.meta}}))}find(){return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield a.a.request("/site-initialization",{environment:"production"}))}))}};var r=i("eb17");const l=new class{constructor(){this.languages=[],this.redirects=[],this.websiteSettings={},this.forms=[],this.availableProperties=[],this.availableCities=[]}init(){var e;return Object(s.a)(this,void 0,void 0,(function*(){let t;const i=localStorage.getItem("rs:summitpm_mrktlofts:initialization"),s=window.location.hostname;!i||/localhost/.test(s)||/rentsync.dev/.test(s)?yield Promise.all([o.find(),this.onlyAvailableCitiesAndPropertyIds()]).then(e=>{t=e[0],localStorage.setItem("rs:summitpm_mrktlofts:initialization",JSON.stringify(t))}):(t=JSON.parse(localStorage.getItem("rs:summitpm_mrktlofts:initialization")),t.data=new n.a(t.data),localStorage.removeItem("rs:summitpm_mrktlofts:initialization"),yield this.onlyAvailableCitiesAndPropertyIds()),this.site=null==t?void 0:t.data.site,this.client=null==t?void 0:t.data.client,this.siteSettings=null==t?void 0:t.data.liftSettings,this.menus=null==t?void 0:t.data.menus,this.pages=null==t?void 0:t.data.pages,this.cityPages=null==t?void 0:t.data.citiesOffered,this.customFields=null==t?void 0:t.data.customFields,this.panels=null==t?void 0:t.data.panels,this.languages=(null==t?void 0:t.data.hasLanguages)||[],this.redirects=null==t?void 0:t.data.siteRedirects,this.websiteSettings=null==t?void 0:t.data.websiteSettings,this.forms=null==t?void 0:t.data.forms,null===(e=this.languages)||void 0===e||e.map(e=>{e.language={id:e.id,languageCode:e.languageCode,name:e.name,locale:e.locale}}),r.a.init(this.site,this.languages)}))}getPanel(e){const t=[];if(this.panels)for(const i of this.panels){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getPanels(){return this.panels}getCustomFields(){var e;return this.customFields&&this.customFields[r.a.getLanguage()]?this.customFields[r.a.getLanguage()]:null===(e=this.customFields)||void 0===e?void 0:e.en}getCustomField(e){const t=[];if(this.customFields&&this.customFields[r.a.getLanguage()])for(const i of this.customFields[r.a.getLanguage()]){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getRedirects(){return this.redirects}getPage(e){const t=[];if(this.pages&&this.pages[r.a.getLanguage()])for(const i of this.pages[r.a.getLanguage()]){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getRawPages(){return this.pages}getPages(){var e;return this.pages&&this.pages[r.a.getLanguage()]?this.pages[r.a.getLanguage()]:null===(e=this.pages)||void 0===e?void 0:e.en}getMenu(e){const t=[];if(this.menus&&this.menus[r.a.getLanguage()])for(const i of this.menus[r.a.getLanguage()]){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getFormSetting(e){const t=[];if(this.forms)for(const i of this.forms){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getFormSettings(){return this.forms}getWebsiteSettings(){return this.websiteSettings?this.websiteSettings:{}}getMenus(){var e;return this.menus&&this.menus[r.a.getLanguage()]?this.menus[r.a.getLanguage()]:null===(e=this.menus)||void 0===e?void 0:e.en}getCityPage(e){const t=[];if(this.cityPages&&this.cityPages[r.a.getLanguage()])for(const i of this.cityPages[r.a.getLanguage()]){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getCityPages(){var e;return this.cityPages&&this.cityPages[r.a.getLanguage()]?this.cityPages[r.a.getLanguage()]:null===(e=this.cityPages)||void 0===e?void 0:e.en}getSiteSettings(){return this.siteSettings}getSiteSetting(e){const t=[];if(this.siteSettings)for(const i of this.siteSettings){const s=i,n=e.length;let a=0;e.forEach(e=>{Object.keys(s).forEach(o=>{e.values.includes(""+s[o])&&e.field===o&&(a++,n===a&&t.push(i))})})}return t}getCity(e){var t;const i=[];if(this.cityPages&&this.cityPages[r.a.getLanguage()]){const s=this.cityPages[r.a.getLanguage()].map(e=>e.geoLocation);if(s&&s.length){const n=s.map(e=>Object.assign({id:null==e?void 0:e.cityId},e));if(n&&n.length)for(const t of n)if(t){const s=t,n=e.length;let a=0;e.forEach(e=>{Object.keys(t).forEach(t=>{e.values.includes(""+s[t])&&e.field===t&&(a++,n===a&&i.push(s))})})}if(i.length!==(null===(t=e.find(e=>"id"===e.field))||void 0===t?void 0:t.values.length))return[];i.length&&i.forEach(e=>{e.province={id:e.provinceId,provinceCode:e.provinceCode,provinceName:e.provinceName,countryId:e.countryId,country:{id:e.countryId,countryCode:e.countryCode,countryName:e.countryName}},delete e.provinceCode,delete e.provinceName,delete e.countryId,delete e.countryCode,delete e.countryName})}}return i}getClient(){return this.client}getSite(){return this.site}getLanguages(){return this.languages}getAvailablePropertyIds(){return this.availableProperties}getAvailableCityIds(){return this.availableCities}onlyAvailableCitiesAndPropertyIds(){return Object(s.a)(this,void 0,void 0,(function*(){const e=yield a.a.request("properties",{aggregations:"count(unitsAvailable,suite_types,available)~where(available:1,buildingId:b.id),count(unitsWaitlist,suite_types,available)~where(available:-1,buildingId:b.id)",alias:"b",select:"unitsAvailable,unitsWaitlist,b.id,b.cityId",limit:9999});e&&e.data&&e.data.forEach(e=>{(e.unitsAvailable>0||e.unitsWaitlist>0)&&(this.availableCities.includes(e.cityId)||this.availableCities.push(e.cityId),this.availableProperties.push(e.id))})}))}}},"4d96":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));var s=i("b0c5");const n=["64","128","256","512","768","1152","full"],a={getImage:(e,t,i)=>`${s.a.getBaseAssetPath("gallery"===t?"property":"website")}/images/${t}/${i}/${e}`,getImages:(e,t,i)=>{const n=[];return i.forEach(i=>{n.push(`${s.a.getBaseAssetPath("gallery"===t?"property":"website")}/images/${t}/${i}/${e}`)}),n},getPageBuilderImage:(e,t)=>`${s.a.getBaseAssetPath("website")}/page_builder/images/${t}/${e}`,getPanelFile:(e,t,i,n="website")=>{if(!i)return`${s.a.getBaseAssetPath(n)}/panels/${t}/files/${e}`;switch(i){case"full":return`${s.a.getBaseAssetPath(n)}/panels/${t}/files/${e}`;default:return`${s.a.getBaseAssetPath(n)}/panels/${t}/files/${i}/${e}`}},getPanelFiles:(e,t,i,n="website")=>{const a=[];return i?i.forEach(i=>{switch(i){case"full":a.push(`${s.a.getBaseAssetPath(n)}/panels/${t}/files/${e}`);break;default:a.push(`${s.a.getBaseAssetPath(n)}/panels/${t}/files/${i}/${e}`)}}):a.push(`${s.a.getBaseAssetPath(n)}/panels/${t}/files/${e}`),a},getBioImage:e=>`${s.a.getBaseAssetPath()}/userfiles/bios/${e}`,getBlogImage:e=>`${s.a.getBaseAssetPath()}/images/blog/${e}`,getNewsImage:e=>`${s.a.getBaseAssetPath()}/images/news/${e}`,getBlogThumbnail:e=>`${s.a.getBaseAssetPath()}/images/blog/thumbs/${e}`,getNewsThumbnail:e=>`${s.a.getBaseAssetPath()}/images/news/thumbs/${e}`,getFloorplan:(e,t)=>{switch(t){case"pdf":return`${s.a.getBaseAssetPath("property")}/files/floorplans/${e}`;default:return`${s.a.getBaseAssetPath("property")}/images/floorplans/${e}`}},getTestimonialFile:e=>`${s.a.getBaseAssetPath()}/files/misc/${e}`}},"4ef5":function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var s=i("9ab4"),n=i("bc3a"),a=i.n(n);let o={en:{},es:{},fr:{},zhs:{},zht:{}};const r={flush:()=>{o={en:{},es:{},fr:{},zhs:{},zht:{}}},createKey:(e,t)=>{let i=[];for(const e in t.params)if(t.params[e]){const s=(""+t.params[e]).split(/\,(?![^\(]*\))/).sort().map(e=>{let t=e;const i=e.split(":");return i&&i[1]&&/|/.test(i[1])&&(t=`${i[0]}:${i[1].split("|").sort().join("|")}`),t});i.push(`${e}=${s.join(",")}&`)}return i=i.sort(),`${e}?${i.join("&").slice(0,-1)}`},queue:(e,t,i,n)=>Object(s.a)(void 0,void 0,void 0,(function*(){Object({VUE_APP_ENV:"production",VUE_APP_SITE_KEY:"summitpm_mrktlofts",VUE_APP_GCP_BUCKET:"rentsync-websites",VUE_APP_CDN_ENVIRONMENT:"site",VUE_APP_DB_ENV:"production",NODE_ENV:"production",BASE_URL:"https://cdn.rentsync.com/site/summitpm_mrktlofts/"}).JEST_WORKER_ID&&r.flush();const a=r.createKey(e,t);if(i||(i="en"),!o[i][a]){const e={searchFn:n,status:"queued"};o[i][a]=e;const t=yield o[i][a].searchFn();return o[i][a].status="complete",o[i][a].results=t,JSON.parse(JSON.stringify(t))}return"complete"!==o[i][a].status?yield new Promise(a=>{setTimeout(()=>Object(s.a)(void 0,void 0,void 0,(function*(){a(yield r.queue(e,t,i,n))})),20)}):JSON.parse(JSON.stringify(o[i][a].results))}))};var l=i("eb17"),d=i("38eb");const c=new class{constructor(){this.siteKey="",this.hostOverride="",this.environment="production",this.cdnCache="",this.cdnCacheControlOverride="",this.apiVersion="v1",this.axiosConfig={baseURL:"",withCredentials:!1,headers:{Accept:"application/json","Content-Type":"application/json"}},this.axiosInstance=a.a.create(this.axiosConfig)}setSiteConfig(e){this.siteKey=e.siteKey,e.hostOverride&&(this.hostOverride=e.hostOverride.endsWith("/")?e.hostOverride.slice(0,-1):e.hostOverride),e.env&&(this.environment=e.env),/localhost/.test(window.location.hostname)||(e.cdnCacheOptions&&e.cdnCacheOptions.cache&&(this.cdnCache=e.cdnCacheOptions.cache),e.cdnCacheOptions&&e.cdnCacheOptions.cacheControlOverride&&(this.cdnCacheControlOverride=e.cdnCacheOptions.cacheControlOverride)),this.setBaseUrl()}request(e,t){var i;return Object(s.a)(this,void 0,void 0,(function*(){const n={params:{}},a=l.a.allSupportedLanguages;let o=l.a.getDefaultLanguage().languageCode;t?(t.language?(o=t.language,delete t.language):o=window.location.pathname.substring(1).split("/")[0].toString(),n.params=this.cleanParams(t)):o=window.location.pathname.substring(1).split("/")[0].toString();let d=this.checkDataManager(e,n);return d&&d.length?((null===(i=d[0])||void 0===i?void 0:i.googleAnalyticsKey)&&(d=d[0]),this.wrapDataManagerData(d)):(a.includes(o)?n.headers?(n.headers["rs-lang"]=o,n.headers["Accept-Language"]=a.join(", ")):n.headers={"rs-lang":o,"Accept-Language":a.join(", ")}:o="en","all"!==this.cdnCache&&this.cdnCache!==this.environment||!this.cdnCacheControlOverride||(n.headers?n.headers["rs-caching-options"]=this.cdnCacheControlOverride:n.headers={"rs-caching-options":this.cdnCacheControlOverride}),yield r.queue(e,n,o,()=>Object(s.a)(this,void 0,void 0,(function*(){return e=this.metaDataAdjustments(e,n),yield this.axiosInstance.get(e,n).then(e=>{const{data:t,meta:i}=e.data;return{data:t,meta:i}}).catch(e=>{})}))))}))}metaDataAdjustments(e,t){if(new RegExp(/^\/?panels/).test(e)&&t.params&&t.params.where){const i=new RegExp(/(,|=|)fieldName(~[a-z]+)?:([^&,]+)/),s=new RegExp(/(,|=|)fieldValue(~[a-z]+)?:([^&,]+)/),n=new RegExp(/(,|=|)panelTemplateKey(~[a-z]+)?:([^&,]+)/),a=t.params.where.match(i),o=t.params.where.match(s),r=t.params.where.match(n);if((null==r?void 0:r.length)&&(null==o?void 0:o.length)&&(null==a?void 0:a.length)){const i=r[r.length-1],s=o[o.length-1],n=a[a.length-1];t.params.where=`fieldName:${n},fieldValue:${s},panelTemplateKey:${i}`,e="panels_by_field"}}return e}requestDataset(e){return Object(s.a)(this,void 0,void 0,(function*(){return this.get({url:e,withCredentials:this.axiosConfig.withCredentials,headers:this.axiosConfig.headers}).then(e=>{const{data:t}=e.data;return{data:t,meta:e.data.meta}})}))}get(e){return Object(s.a)(this,void 0,void 0,(function*(){"get"!==e.method&&(e.method="get");const t=window.location.pathname.substring(1).split("/")[0].toString();return e.headers&&t&&!e.headers["rs-lang"]&&(e.headers["rs-lang"]=t),yield this.makeRequest(e)}))}post(e){return Object(s.a)(this,void 0,void 0,(function*(){return"post"!==e.method&&(e.method="post"),/(rentsync.dev|localhost)/.test(window.location.hostname)&&!Object({VUE_APP_ENV:"production",VUE_APP_SITE_KEY:"summitpm_mrktlofts",VUE_APP_GCP_BUCKET:"rentsync-websites",VUE_APP_CDN_ENVIRONMENT:"site",VUE_APP_DB_ENV:"production",NODE_ENV:"production",BASE_URL:"https://cdn.rentsync.com/site/summitpm_mrktlofts/"}).JEST_WORKER_ID&&(e.headers["test-form-submission"]="true"),this.makeRequest(e)}))}setBaseUrl(){let e="production"===this.environment?"https://website-gateway.rentsync.com":`https://website-gateway.${this.environment}.rentsync.dev`;(this.cdnCache===this.environment||"staging"===this.environment&&"all"===this.cdnCache||"production"===this.environment&&"all"===this.cdnCache)&&(e="production"===this.environment?"https://website-gateway-cdn.rentsync.com":"https://website-gateway-cdn.staging.rentsync.dev"),this.hostOverride&&(e=this.hostOverride),this.axiosInstance.defaults.baseURL=`${e}/${this.apiVersion}/${this.siteKey}`}formatResponse(e){return{status:e.status?e.status:500,statusText:e.statusText?e.statusText:null,data:e.data?e.data:null}}makeRequest(e){if(!e.url)throw new Error("Request requires a url.");return new Promise((t,i)=>{a()(e).then(e=>{t(this.formatResponse(e))},e=>{e.response?t(this.formatResponse(e.response)):i(e)})})}getTags(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=["isCategory:0"];return e.objectIdorIds&&t.push("oht.objectId~in:"+e.objectIdorIds),e.model&&t.push("oht.model:"+e.model),yield this.request("tags",{where:t.join(),relations:"objectsHasTags:oht",limit:750})}))}getCategories(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=["isCategory:1"];return e.objectIdorIds&&t.push("oht.objectId~in:"+e.objectIdorIds),e.model&&t.push("oht.model:"+e.model),yield this.request("tags",{where:t.join(),relations:"objectsHasTags:oht",limit:750})}))}getCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];return e.identifierIdorIds&&t.push("identifierId~in:"+e.identifierIdorIds),e.keyOrKeys&&t.push("`key`~in:"+e.keyOrKeys),e.tableName&&t.push("tableName:"+e.tableName),yield this.request("custom_fields",{where:t.join(),limit:750})}))}getUnits(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=["status:enabled"];if(e.ids&&t.push("id~in:"+e.ids.join("|")),e.propertyIds&&t.push("buildingId~in:"+e.propertyIds.join("|")),e.availability){const i=[];e.availability.forEach(e=>{switch(e){case"available":i.push("1");break;case"unavailable":i.push("0");break;case"waitlist":i.push("-1")}}),t.push("available~in:"+i.join("|"))}return yield this.request("units",{where:t.join(),limit:750})}))}getFloorplans(e){return Object(s.a)(this,void 0,void 0,(function*(){return yield this.request("floorplans",{where:"suiteTypeId~in:"+e.unitIds.join("|"),limit:750})}))}getVirtualTours(e){return Object(s.a)(this,void 0,void 0,(function*(){return yield this.request("virtual-tours",{where:"buildingId~in:"+e.propertyIds.join("|"),limit:750})}))}getPhotos(e,t="property"){return Object(s.a)(this,void 0,void 0,(function*(){const i={limit:750,orderBy:"property"===t?"bhp.orderBy~asc":"shp.orderBy~asc"};return e.propertyIds&&(i.relations="buildingsHasPhotos:bhp",i.where="bhp.buildingId~in:"+e.propertyIds.join("|")),e.unitIds&&(i.relations="suitesHasPhotos:shp",i.where="shp.suiteTypeId~in:"+e.unitIds.join("|")),yield this.request("photos",i)}))}cleanParams(e){for(const t in e)""===e[t]&&delete e[t];return e}checkDataManager(e,t){let i;if(!Object({VUE_APP_ENV:"production",VUE_APP_SITE_KEY:"summitpm_mrktlofts",VUE_APP_GCP_BUCKET:"rentsync-websites",VUE_APP_CDN_ENVIRONMENT:"site",VUE_APP_DB_ENV:"production",NODE_ENV:"production",BASE_URL:"https://cdn.rentsync.com/site/summitpm_mrktlofts/"}).JEST_WORKER_ID){const s=["pages","menus","lift_settings","cities","cities_offered","custom_fields","panels","form_settings","website_settings"],n=e.replace(/^\//,"").replace(/-/gm,"_");if(!t.params.where||!s.includes(n))return null;const a=[];switch(t.params.where.split(",").forEach(e=>{const t=e.split(":"),i=t[0].replace(/~[a-z]+/,""),s=t[1].split("|");a.push({field:i,values:s})}),n){case"pages":i=d.a.getPage(a);break;case"menus":i=d.a.getMenu(a);break;case"lift_settings":i=d.a.getSiteSetting(a);break;case"cities":i=d.a.getCity(a);break;case"cities_offered":i=d.a.getCityPage(a);break;case"custom_fields":i=d.a.getCustomField(a);break;case"panels":i=d.a.getPanel(a);break;case"form_settings":i=d.a.getFormSetting(a);break;case"website_settings":i=[d.a.getWebsiteSettings()]}}return i}wrapDataManagerData(e){return{data:e,meta:{totalRecords:e.length,totalPages:1,recordsPerPage:e.length,currentPage:1,links:{self:null,prev:null,next:null,first:null,last:null}}}}}},"52d4":function(e,t,i){"use strict";i.d(t,"d",(function(){return j})),i.d(t,"b",(function(){return $})),i.d(t,"a",(function(){return T})),i.d(t,"c",(function(){return C}));var s=i("9ab4"),n=i("4e2e"),a=i("6c75"),o=i("1fd9"),r=i("bbcc"),l=i("84d0"),d=i("dc2b"),c=i("2ab4"),u=i("0120"),p=i("7c60"),h=i("cdb6"),g=i("4f51"),f=i("dea1"),m=i("1e77"),y=i("9454"),b=i("a776"),v=i("23b2"),w=i("4d35"),P=i("b0ce");const O=(e,t)=>Object(s.a)(void 0,void 0,void 0,(function*(){if(e.rate){const i="string"==typeof e.rate?parseInt(e.rate,0):e.rate;t.rates.push(i)}if(void 0!==e.bed){const i="string"==typeof e.bed?parseInt(e.bed,0):e.bed;t.beds.push(i)}if(void 0!==e.bath){const i="string"==typeof e.bath?parseInt(e.bath,0):e.bath;t.baths.push(i)}if(e.sqFt){const i="string"==typeof e.sqFt?parseInt(e.sqFt,0):e.sqFt;t.sqft.push(i)}})),j=e=>Object(s.a)(void 0,void 0,void 0,(function*(){var t,i,s;const n={};for(const a of e.units){let o="",r="";switch(e.groupBy){case"beds":o=a.bed,r=o+" Bedrooms";break;case"baths":o=a.bath,r=o+" Baths";break;default:o=a.typeName,r=""+o}if(void 0!==o){if(void 0===n[o]&&(n[o]={name:"",units:[],sqft:[],beds:[],baths:[],rates:[]}),e.additionalData.virtualTours.length&&a.virtualTourId){void 0===n[o].virtualTours&&(n[o].virtualTours=[]);const i=e.additionalData.virtualTours.find(e=>e.id===a.virtualTourId);a.virtualTour=i,null===(t=n[o].virtualTours)||void 0===t||t.push(i)}if(e.additionalData.floorplans.length){const t=[];a.floorplans=[],e.additionalData.floorplans.forEach(e=>{var i;e.suiteTypeId===a.id&&(null===(i=a.floorplans)||void 0===i||i.push(e),t.push(e))}),void 0===n[o].floorplans&&(n[o].floorplans=[]),n[o].floorplans=null===(i=n[o].floorplans)||void 0===i?void 0:i.concat(t)}if(e.additionalData.photos.length){const t=[];a.photos=[],e.additionalData.photos.forEach(e=>{e.suitesHasPhotos&&e.suitesHasPhotos.forEach(i=>{var s;i.suiteTypeId===a.id&&(t.push(new p.a(e)),null===(s=a.photos)||void 0===s||s.push(new p.a(e)))})}),t.length&&(void 0===n[o].photos&&(n[o].photos=[]),n[o].photos=null===(s=n[o].photos)||void 0===s?void 0:s.concat(t))}if(n[o].name=r,n[o].units.push(a),e.summaryAvailability){const t=[];e.summaryAvailability.forEach(e=>{switch(e){case"available":t.push(1);break;case"unavailable":t.push(0);break;case"waitlist":t.push(-1)}}),void 0!==a.available&&t.includes(a.available)&&O(a,n[o])}else O(a,n[o])}}return n})),$=e=>e.reduce((e,t)=>Math.min(e,t)),T=e=>e.reduce((e,t)=>Math.max(e,t)),C=(e,t)=>{if(e.tags&&(t.tags=e.tags),e.categories&&(t.categories=e.categories),e.listingFloorplans&&e.listingFloorplans.length){t.listingFloorplans=[];for(const i of e.listingFloorplans)t.listingFloorplans.push(new w.a(i))}if(e.amenities&&e.amenities.length){t.amenities=[];for(const i of e.amenities)t.amenities.push(new l.a(i))}if(e.customFields&&e.customFields.length){t.customFields=[];for(const i of e.customFields)t.customFields.push(new b.a(i))}if(e.ownershipTypes&&e.ownershipTypes.length){t.ownershipTypes=[];for(const i of e.ownershipTypes)t.ownershipTypes.push(new f.a(i))}if(e.housingTypes&&e.housingTypes.length){t.housingTypes=[];for(const i of e.housingTypes)t.housingTypes.push(new m.a(i))}if(e.pages&&e.pages.length){t.pages=[];for(const i of e.pages)t.pages.push(new d.a(i))}if(e.promotions&&e.promotions.length){t.promotions=[];for(const i of e.promotions)t.promotions.push(new u.a(i))}if(e.galleryPhotos&&e.galleryPhotos.length){t.photos=[];for(const i of e.galleryPhotos)t.photos.push(new p.a(i))}if(e.suiteTypes&&e.suiteTypes.length){t.units=[];for(const i of e.suiteTypes)t.units.push(new n.a(i))}if(e.buildingUtilities&&e.buildingUtilities.length){t.utilities=[];for(const i of e.buildingUtilities)t.utilities.push(new c.a(i))}if(e.videos&&e.videos.length){t.videos=[];for(const i of e.videos)t.videos.push(new h.a(i))}if(e.virtualTours&&e.virtualTours.length){t.virtualTours=[];for(const i of e.virtualTours)t.virtualTours.push(new g.a(i))}if(e.testimonials&&e.testimonials.length){t.testimonials=[];for(const i of e.testimonials)t.testimonials.push(new r.a(i))}if(e.geoLocation&&(t.geoLocation=new a.a(e.geoLocation)),e.buildingType&&(t.buildingType=new o.a(e.buildingType)),e.documentCategory&&(t.documentCategory=new y.a(e.documentCategory)),e.buildings&&e.buildings.length){t.properties=[];for(const i of e.buildings)t.properties.push(new v.a(i))}if(e.cityRegions&&e.cityRegions.length){t.regions=[];for(const i of e.cityRegions)t.regions.push(new P.a(i))}e.region&&(t.region=new P.a(e.region))}},"5af5":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("8389");function n(e,t){if(e instanceof s.a){const i=e.getValue(t);return""===i&&Object.prototype.hasOwnProperty.call(s.a,t)&&e[t]?e[t]:i}return e[t]}const a=new class{pluck(e,t,i){return null==i?e.map(e=>n(e,t)):e.reduce((e,s)=>(e[n(s,t)]=n(s,i),e),{})}keyBy(e,t){return e.reduce((e,i)=>(e[n(i,t)]=i,e),{})}groupBy(e,t){return e.reduce((e,i)=>{const s=n(i,t);return void 0===e[s]&&(e[s]=[]),e[s].push(i),e},{})}where(e,t,i){return e.reduce((e,s)=>(("function"==typeof i&&i(n(s,t))||n(s,t)===i)&&e.push(s),e),[])}min(e,t){return e.reduce((e,i)=>Number.isNaN(e)||e>n(i,t)?n(i,t):e,Number.NaN)}max(e,t){return e.reduce((e,i)=>Number.isNaN(e)||e<n(i,t)?n(i,t):e,Number.NaN)}minMax(e,t){let i=Number.NaN,s=Number.NaN;for(const a of e){const e=Number.parseFloat(n(a,t));(Number.isNaN(i)||i>e)&&(i=e),(Number.isNaN(s)||s<e)&&(s=e)}return{min:i,max:s}}unique(e){return e.filter((e,t,i)=>i.indexOf(e)===t)}}},"805d":function(e,t){function i(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}i.keys=function(){return[]},i.resolve=i,e.exports=i,i.id="805d"},ac30:function(e,t,i){"use strict";i.d(t,"a",(function(){return j}));var s=i("9ab4"),n=i("d007"),a=i("23b2"),o=i("4ef5"),r=i("6cdc"),l=i("a776"),d=i("1fd9"),c=i("84d0"),u=i("1e77"),p=i("dea1"),h=i("2ab4"),g=i("118b"),f=i("0739");class m extends n.a{constructor(){super("/dynamic-ranges")}getDynamicRanges(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=this.getApiParams(e),i=yield o.a.request("/dynamic-ranges",t);if(i.data)for(let t of i.data){const i=t.amenities;null==i||i.forEach((e,i)=>{if(t.amenities&&t.amenities[i]){const s=new c.a(e);e.propertyIds&&e.propertyIds.length&&(s.propertyIds=e.propertyIds),t.amenities[i]=s}});const s=t.utilities;null==s||s.forEach((e,i)=>{if(t.utilities&&t.utilities[i]){const s=new h.a(e);e.propertyIds&&e.propertyIds.length&&(s.propertyIds=e.propertyIds),t.utilities[i]=s}});const n=t.buildingType;null==n||n.forEach((e,i)=>{if(t.buildingType&&t.buildingType[i]){const s=new d.a(e);e.propertyIds&&e.propertyIds.length&&(s.propertyIds=e.propertyIds),t.buildingType[i]=s}});const a=t.housingTypes;null==a||a.forEach((e,i)=>{if(t.housingTypes&&t.housingTypes[i]){const s=new u.a(e);e.propertyIds&&e.propertyIds.length&&(s.propertyIds=e.propertyIds),t.housingTypes[i]=s}});const o=t.ownershipTypes;null==o||o.forEach((e,i)=>{if(t.ownershipTypes&&t.ownershipTypes[i]){const s=new p.a(e);e.propertyIds&&e.propertyIds.length&&(s.propertyIds=e.propertyIds),t.ownershipTypes[i]=s}}),t=new g.a(t,null==e?void 0:e.addNameValuePair)}return i}))}getPropertyFilters(e){if(e){const t=e;let i="";for(const e of Object.keys(t))"permaLink"!==e&&"propertyNames"!==e&&"propertyTypes"!==e&&"propertyTypeGroups"!==e&&"categoryTypes"!==e&&"intersections"!==e&&"neighbourhoods"!==e&&"streetNumber"!==e&&"streetName"!==e&&"cities"!==e&&"pets"!==e&&"ownershipTypes"!==e&&"housingTypes"!==e&&"omitOwnershipTypes"!==e&&"omitPropertyTypeGroups"!==e&&"omitHousingTypes"!==e&&"omitPropertyTypes"!==e&&"omitCategoryTypes"!==e&&"omitIntersections"!==e&&"omitNeighbourhoods"!==e&&"omitCities"!==e&&"omitRegions"!==e&&"regions"!==e&&"utilities"!==e&&"amenities"!==e||void 0===t[e]||"undefined"===t[e]||null===t[e]||"null"===t[e]||(i+=`${e}:${t[e]}|`);return i.slice(0,-1)}return""}getUnitFilters(e){if(e){const t=e;let i="";for(const e of Object.keys(t))"beds"!==e&&"bedMin"!==e&&"bedMax"!==e&&"baths"!==e&&"bathMin"!==e&&"bathMax"!==e&&"sqfts"!==e&&"sqftMin"!==e&&"sqftMax"!==e&&"rates"!==e&&"rateMin"!==e&&"rateMax"!==e&&"unitNumber"!==e&&"unitType"!==e&&"availability"!==e&&"den"!==e&&"furnished"!==e&&"shortTerm"!==e&&"luxury"!==e&&"executive"!==e||void 0===t[e]||"undefined"===t[e]||null===t[e]||"null"===t[e]||(i+=`${e}:${t[e]}|`);return i.slice(0,-1)}return""}getDynamicRangesQuery(e){if(null==e?void 0:e.length){const t=e;let i="";for(const e of t)"amenities"!==e&&"baths"!==e&&"beds"!==e&&"sqft"!==e&&"rate"!==e&&"unit"!==e&&"housingTypes"!==e&&"ownershipTypes"!==e&&"unitType"!==e&&"buildingType"!==e&&"geoLocation"!==e&&"neighbourhoods"!==e&&"cities"!==e&&"provinces"!==e&&"countries"!==e&&"utilities"!==e||(i+=e+",");return i.slice(0,-1)}return""}getLocation(e){return`${null==e?void 0:e.radius},${null==e?void 0:e.latitude},${null==e?void 0:e.latitude},${null==e?void 0:e.unitOfMeasure}`}getBounds(e){return""+e.join("|")}getApiParams(e){const t={};return(null==e?void 0:e.addSelectDynamicRanges)&&(t.addDynamicRanges=this.getDynamicRangesQuery(e.addSelectDynamicRanges)),(null==e?void 0:e.filters)&&(e.filters.property&&(t.propertyFilters=this.getPropertyFilters(e.filters.property)),e.filters.unit&&(t.unitFilters=this.getUnitFilters(e.filters.unit))),(null==e?void 0:e.location)&&(t.location=this.getLocation(e.location)),(null==e?void 0:e.bounds)&&(t.bounds=this.getBounds(e.bounds)),(null==e?void 0:e.excludePropertyOnUnavailableUnits)?t.excludePropertyOnUnavailableUnits="true":f.a.showUnavailableProperties()||(t.excludePropertyOnUnavailableUnits="true"),t}}const y=new m;var b=i("6bab");class v extends n.a{constructor(){super("/tour-url")}getResponse(e){return Object(s.a)(this,void 0,void 0,(function*(){const t={data:new b.a(e.data),meta:this.metaObj};return t.meta=e.meta,t}))}findTourUrl(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){let i="";if(e.params){const t=e.params;for(const e in t)t[e]&&(i+=`${e}:${t[e]},`);i=i.slice(0,-1)}const s={custom:{where:"propertyId:"+e.propertyId,params:i}};return yield this.getResponse(yield t.find.call(this,s))}))}}const w=new v;var P=i("38eb");class O extends n.a{constructor(){super("/properties")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&(t.includes("geoLocation")&&s.push(this.includeGeoLocation(e)),(t.includes("unitSummary")||t.includes("unitSummaries"))&&s.push(this.includeUnitSummary(e)),t.includes("customFields")&&s.push(this.includeCustomFields(e)),t.includes("units")&&s.push(this.includeUnits(e)),t.includes("photos")&&(t.includes("photoTags")?s.push(this.includePhotos(e,!0)):s.push(this.includePhotos(e))),t.includes("virtualTours")&&(t.includes("virtualTourTags")?s.push(this.includeVirtualTours(e,!0)):s.push(this.includeVirtualTours(e)))),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new a.a(e))}),i.meta=e.meta,i}))}includeVirtualTours(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i=e.data.map(e=>e.id),s=yield o.a.getVirtualTours({propertyIds:i}).then(e=>e.data);if(t){const e=s.map(e=>e.id),t=yield o.a.getTags({objectIdorIds:e.join("|"),model:"virtual_tours"});for(const e of s)t.data.forEach(t=>{var i;(null===(i=t.objectsHasTags)||void 0===i?void 0:i.find(t=>t.objectId===e.id))&&(e.tags||(e.tags=[]),e.tags.push(new r.a(t)))})}for(const t of e.data)t.virtualTours=s.filter(e=>e.buildingId===t.id)}))}includePhotos(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i=e.data.map(e=>e.id),s=yield o.a.getPhotos({propertyIds:i}).then(e=>e.data);if(t){const e=s.map(e=>e.id),t=yield o.a.getTags({objectIdorIds:e.join("|"),model:"building-photos"});for(const e of s)t.data.forEach(t=>{var i;(null===(i=t.objectsHasTags)||void 0===i?void 0:i.find(t=>t.objectId===e.id))&&(e.tags||(e.tags=[]),e.tags.push(new r.a(t)))})}for(const t of e.data)t.galleryPhotos=s.filter(e=>e.buildingId===t.id)}))}includeGeoLocation(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[],i=[];let s="";for(const t of e.data)t.cityId&&(i.includes(t.cityId)||i.push(t.cityId));i.forEach(e=>{s+=e+"|"}),s=s.substring(0,s.length-1),yield o.a.request("/cities",{relations:"province:p,p.country:c",where:"id~in:"+s}).then(e=>{e.data.forEach(e=>{const i=e,s=i.province,n=s.country;t.push({cityId:i.id,cityName:i.cityName,provinceId:s.id,provinceName:s.provinceName,provinceCode:s.provinceCode,countryId:n.id,countryName:n.countryName,countryCode:n.countryCode})})});for(const i of e.data)i.geoLocation=t.find(e=>e.cityId===i.cityId)}))}includeUnitSummary(e){return Object(s.a)(this,void 0,void 0,(function*(){let t=[],i="";for(const t of e.data)i+=t.id+"|";i=i.substring(0,i.length-1),yield o.a.request("properties/unit-summary",{where:"buildingIds:"+i}).then(e=>{t=e.data});for(const i of e.data)i.unitSummary=t.find(e=>e.propertyId===i.id),i.unitSummaries=i.unitSummary}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=e.data.map(e=>e.id),i=yield o.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"buildings"}),s=P.a.getClient();for(const t of e.data)i.data.forEach(e=>{t.customFields||(t.customFields=[]),(e.identifierId===t.id||(null==s?void 0:s.id)===e.clientId&&!e.identifierId)&&t.customFields.push(new l.a(e))})}))}includeUnits(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=e.data.map(e=>e.id),i=yield o.a.getUnits({propertyIds:t});for(const t of e.data)i.data.forEach(e=>{t.suiteTypes||(t.suiteTypes=[]),e.buildingId===t.id&&t.suiteTypes.push(e)})}))}mutateOptions(e){if(e){if(e.showAll)return e;if(e.findBy&&Object.keys(e.findBy).includes("id"))return e;if(e.filter){const t=e.filter;if(Array.isArray(t)&&t.some(e=>"id"===e.field))return e;if(!Array.isArray(t)&&"id"===t.field)return e}}else e={};if(!f.a.showUnavailableProperties()){const t=P.a.getAvailablePropertyIds();t.length&&(e.findBy?Object.assign(e.findBy,{id:t.join("|")}):e.findBy={id:t.join("|")})}return e}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==(e=this.mutateOptions(e))?void 0:e.include)?(e.relations=this.includeRelationalData(e.include),yield this.getResponse(yield t.find.call(this,e),e.include)):yield this.getResponse(yield t.find.call(this,e))}))}featured(){const e=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){let t={findBy:{featured:1}};return t=this.mutateOptions(t),yield this.getResponse(yield e.find.call(this,t))}))}residential(){const e=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){let t={findBy:{"bt.categoryType":"residential"},relations:[{entity:"buildingType",alias:"bt"}]};return t=this.mutateOptions(t),yield this.getResponse(yield e.find.call(this,t))}))}commercial(){const e=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){let t={findBy:{"bt.categoryType":"commercial"},relations:[{entity:"buildingType",alias:"bt"}]};return t=this.mutateOptions(t),yield this.getResponse(yield e.find.call(this,t))}))}buildingTypes(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];return yield o.a.request("building-types",this.configureFindParameters(e)).then(e=>{e.data.forEach(e=>{t.push(new d.a(e))})}),t}))}nearby(e,t){const i=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){const s=e.unitOfMeasure?e.unitOfMeasure:"km";let n=[];const a={location:`${e.radius},${e.latitude},${e.longitude},${s}`,select:"id"};e.categoryType&&(a.categoryType=e.categoryType),e.propertyTypes&&(a.propertyTypes=e.propertyTypes),t&&t.limit&&(a.limit=t.limit),t&&t.select&&(a.select=t.select),e.featured&&(a.featured=1),e.notBuildingId&&(a.where="notBuildingId:"+e.notBuildingId.join("|"));const r=yield o.a.request("nearby-properties",a).then(e=>(e.data.forEach(e=>{n.push(e.id)}),e));let l={data:[],meta:{totalRecords:0,totalPages:0,recordsPerPage:0,currentPage:0,links:{self:null,prev:null,next:null,first:null,last:null}}};if(!n.length)return l;if(!f.a.showUnavailableProperties()){const e=P.a.getAvailablePropertyIds();e.length&&(n=n.filter(t=>e.find(e=>e===t)))}const d={field:"id",operator:"in",value:n.join("|")};let c={filter:d};t&&(c=t,c.filter=d),(null==c?void 0:c.include)?(c.relations=this.includeRelationalData(c.include),l=yield this.getResponse(yield i.find.call(this,c),c.include)):l=yield this.getResponse(yield i.find.call(this,c));const u=[];return r.data&&(r.data.forEach(e=>{var t;const i=null===(t=l.data.filter(t=>t.id===e.id))||void 0===t?void 0:t.pop();i&&u.push(i)}),l.data=u),l}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield n.dataset.call(this,e,t,i))}))}includeRelationalData(e){const t=[];return e.forEach(e=>{switch(e){case"listingFloorplans":t.push({entity:"listingFloorplans",alias:"listingFloorplans"});break;case"amenities":t.push({entity:"amenities",alias:"amenities"});break;case"buildingType":t.push({entity:"buildingType",alias:"buildingType"});break;case"housingTypes":t.push({entity:"housingTypes",alias:"housingTypes"});break;case"ownershipTypes":t.push({entity:"ownershipTypes",alias:"ownershipTypes"});break;case"pages":t.push({entity:"pages",alias:"pages"});break;case"promotions":t.push({entity:"promotions",alias:"promotions"});break;case"utilities":t.push({entity:"buildingUtilities",alias:"utilities"});break;case"videos":t.push({entity:"videos",alias:"videos"});break;case"testimonials":t.push({entity:"testimonials",alias:"testimonials"});break;case"region":t.push({entity:"region",alias:"region"})}}),t}getDynamicRanges(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=yield y.getDynamicRanges(e);return{data:t.data.pop(),meta:t.meta}}))}tourUrl(e){return Object(s.a)(this,void 0,void 0,(function*(){return yield w.findTourUrl(e)}))}}const j=new O},ad17:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));const s=(e,t)=>{let i=0;for(let s=t;s<e.length;s++)if(">"===e[s]){i=s;break}if(i>0){let n=0;for(let t=i;t>0;t--){const i=e[t];if("/"===i||"<"===i){n=t,t>0&&"<"===e[t-1]&&"/"===i&&n--;break}}if(n<=t&&t<=i){const t=e.substring(n,i+1);return/<\/?[a-zA-Z0-9]+>/gm.test(t),s(e,i+1)}return t}return t},n=(e,t)=>{const i=e.toString().split(/(?=[A-Z])/);let s="";const n="id"===t?"_":"-";for(let e=0;e<i.length;e++)0!==e&&(i[e]=n+i[e]),s+=i[e].toLowerCase();const a=new RegExp(`[^a-zA-Z0-9\\${n}]+`,"g"),o=new RegExp(n+"+","g");return s.replace(a,n).replace(o,n)},a={parseHtmlPreserveTags(e,t){if("string"!=typeof e)return e;const i=document.createElement("textarea");i.innerHTML=e;const s=i.value;return t?this.truncateText(s,t,!1):s},parseHtml(e,t){if("string"!=typeof e)return e;e=e.replace(/&amp;[a-zA-Z]+;/gm,e=>e.replace("&amp;","&"));const i=(new DOMParser).parseFromString(e,"text/html"),s=i.body.textContent?i.body.textContent:e;return t?this.truncateText(s,t,!1):s},camelCase:e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase()),pascalCase:e=>{const t=e.split(" ");let i="";for(const e of t)i+=e.replace(/^./,e=>e.toUpperCase());return i},truncateText:(e,t=30,i=!0)=>{if(i&&(e=a.parseHtml(e)),e.length&&e.length>t&&/<\/?[a-zA-Z0-9]+>/gm.test(e)){t+=s(e,t);const i=(e=e.substring(0,t).replace(/\s*$/gm,"")+"...").match(/<\/?[a-zA-Z0-9]+>/gm);if(i&&i.length){let t="";const s=[];i.forEach(e=>{t?/^<\//.test(e)&&e.replace(/\//,"")===t?(s.shift(),t=""):(t="",s.unshift(e.replace("<","</"))):(t=e,s.unshift(e.replace("<","</")))}),s.forEach(t=>{e+=t})}}else e=e.length>t?e.substring(0,t).replace(/\s*$/gm,"")+"...":e;return e},ucfLetter:e=>e.charAt(0).toUpperCase()+e.slice(1),kebabCase:e=>n(e,"class"),snakeCase:e=>n(e,"id"),trimLastChar:e=>e.substring(0,e.length-1),formatPhone:(e,t=" ")=>{const i=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);if(i){const e=i[1]?"+1":"";return`${""!==e?e+t:""}(${i[2]})${t}${i[3]}${t}${i[4]}`}return 7===e.length?[e.slice(0,3),t,e.slice(3)].join(""):e},queryStringFromObject(e){if(!Object.keys(e).length)return"";let t="?";for(const[i,s]of Object.entries(e))t+=`${i}=${s}&`;return t="&"===t[t.length-1]?this.trimLastChar(t):t,encodeURI(t)},objectFromQueryString(e){if(null===e)return{};const t=e.includes("?")?e.split("?")[1]:e,i=decodeURIComponent(t.toString()).split("&"),s={};for(const e of i){const[t,i]=e.split("=");s[t]=i.trim()}return s},htmlDecodeAndStripTags(e,t,i=!0){if(""!==e){let s=this.parseHtml(e);if(s=this.parseHtml(s.replace(/<[^>]*>?/gm,"")).replace(/((?:\r|\n)+)/gm," "),/[^\s]/.test(s)||(s=""),""!==s&&t&&t.length&&t[0]<t[1]){const e=s.length;if(s=s.substring(t[0],t[1]),i&&e>t[1])if(" "!==s[s.length]){let e=s;for(let t=s.length-1;s.length>=t;t--)if(" "===s[t]){let i=t;t>1&&s[t-1]&&/[!,?"';&@]/.test(s[t-1])&&(i-=1),e=e.slice(0,i);break}s=e.concat("...").trim()}else s=s.trim();else s=s.trim()}else s=s.trim();return s}return""}}},b0c5:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));const s=new class{constructor(){this.selectedAssetHost="gcp",this.assetStoragePathClientKey="",this.assetStoragePathSiteKey="",this.assetHosts={gcp:{baseUrl:"https://storage.googleapis.com/rentsync-assets",separator:"-"},aws:{baseUrl:"https://s3.amazonaws.com/lws_lift",separator:"_"}}}setStoragePath(e,t,i,s){const n=t||"production",a=s||"",o=i||"";this.selectedAssetHost=e||"gcp";const r=`${this.assetHosts[this.selectedAssetHost].baseUrl}${this.initEnv(n)}`;this.assetStoragePathClientKey=`${r}/${a}`,this.assetStoragePathSiteKey=`${r}/${o}`}getBaseAssetPath(e="website"){return"property"===e?this.assetStoragePathClientKey:this.assetStoragePathSiteKey}getImagePath(e,t="website"){return"property"===t?`${this.assetStoragePathClientKey}/images/${e}`:`${this.assetStoragePathSiteKey}/images/${e}`}getPanelImagePath(e,t,i="website"){return"website"===i?`${this.assetStoragePathSiteKey}/panels/${e}/files/${t}`:`${this.assetStoragePathClientKey}/panels/${e}/files/${t}`}initEnv(e){return"production"===e?"":`${this.assetHosts[this.selectedAssetHost].separator}${e}`}}},c32e:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));const s={getLocale(e,t){let s="";try{let n="";if(t)try{n=i("805d")(t)}catch(t){s=e}else n=i("69de");const a=localStorage.getItem("rs-currentLang")?localStorage.getItem("rs-currentLang"):"en";s=n[e][a]}catch(t){s=e}return s},getLocaleParams(e,t,i){let s=this.getLocale(e,i);if(!s)return e;for(const e of Object.keys(t)){const i=new RegExp(`%${e}%`,"g");s=s.replace(i,t[e])}return s}}},d007:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("9ab4"),n=i("4ef5"),a=i("bd8e");class o{constructor(e){this.metaObj={totalRecords:0,totalPages:0,recordsPerPage:0,currentPage:0,links:{self:null,prev:null,next:null,first:null,last:null}},this.baseEndpoint=e}configureFindParameters(e){const t={};if(e){if(e.findBy){let i="";for(const[t,s]of Object.entries(e.findBy))"permaLink"===t&&"string"==typeof s&&"/"===s.charAt(0)?i+=`${t}~in:${s.substring(1)},`:i+=`${t}~in:${s},`;t.where=i.replace(/,\s*$/,"")}if(e.orderBy){const i=e.orderBy.direction?e.orderBy.direction:"desc";e.orderBy.field&&(t.orderBy=`${e.orderBy.field}~${i}`)}if(e.fields&&(t.select="id,"+e.fields),e.filter&&!Array.isArray(e.filter)){const i=this.ifDateFormat(e.filter.value);let s="";s=e.filter.operator?`${e.filter.field}~${e.filter.operator}:${i}`:`${e.filter.field}:${i}`,t.where?t.where+=","+s:t.where=s}else e.filter&&Array.isArray(e.filter)&&e.filter.forEach(e=>{const i=this.ifDateFormat(e.value);let s="";s=e.operator?`${e.field}~${e.operator}:${i}`:`${e.field}:${i}`,t.where?t.where+=","+s:t.where=s});if(e.relations){let i="";e.relations.forEach(e=>{i+=`${e.entity}:${e.alias},`}),t.relations=i.replace(/,\s*$/,"")}if(e.limit&&(t.limit=e.limit),e.language&&(t.language=e.language),e.custom)for(const i in e.custom)e.custom[i]&&(t[i]=e.custom[i])}return t}find(e){return Object(s.a)(this,void 0,void 0,(function*(){return yield n.a.request(this.baseEndpoint,this.configureFindParameters(e))}))}dataset(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){const s=e.meta.links;let a=s.self?s.self:"";switch(t){case"next":return a=s.next?s.next:a,n.a.requestDataset(a);case"prev":return a=s.prev?s.prev:a,n.a.requestDataset(a);case"first":return a=s.first?s.first:a,n.a.requestDataset(a);case"last":return a=s.last?s.last:a,n.a.requestDataset(a);case"page":return i||(i=1),a=a.replace(/page=[0-9]+/,"page="+i),n.a.requestDataset(a);default:return n.a.requestDataset(a)}}))}ifDateFormat(e){const t=e.split("|");let i=e;const s=/[0-9]{4}-[0-9]{2}-[0-9]{2}(\s[0-9]{2}:[0-9]{2}:[0-9]{2})?/g;if(2===t.length&&s.test(t[0])&&s.test(t[1])){i="";let e=0;t.forEach(t=>{const s=Date.parse(t.trim().replace(/-/g,"/"));if(!Number.isNaN(s)){let t=Object(a.a)(s).format("YYYY-MM-DD HH:mm:ss");t.indexOf("00:00:00")>0&&2==++e&&(t=t.replace("00:00:00","23:59:59")),i+=t+"|"}}),i=i.slice(0,-1)}else if(s.test(e)&&1===t.length){const t=Date.parse(e.trim().replace(/-/g,"/"));if(!Number.isNaN(t)){const e=Object(a.a)(t).format("YYYY-MM-DD HH:mm:ss");i=e}}return i}}},d1da:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("eb17"),n=i("bd8e"),a=i("bbf4"),o=i("98a4"),r=i("41af"),l=i("c32e");n.a.extend(a.a),n.a.extend(o.a);const d={timestampToString:(e,t=new r.a)=>d.format(e,t),todaysDate:(e=new r.a)=>d.format((new Date).toString(),e),getDay:()=>Object(n.a)((new Date).toString()).date(),getCurrentYear:()=>Object(n.a)((new Date).toString()).year(),validateDate:e=>Object(n.a)(e.toString()).isValid(),dateDiff:(e,t,i)=>(e=e.toString(),t=t.toString(),i?Object(n.a)(e).diff(Object(n.a)(t),i):Object(n.a)(e).diff(Object(n.a)(t),"day")),dateToUTC:(e,t)=>{if(e)return t?d.format(d.localeDate(e).utc().toString(),t):Object(n.a)(e).utc().format();const i=(new Date).toString();return t?d.format(d.localeDate(i).utc().toString(),t):Object(n.a)(i).utc().format()},dayjs:e=>e?d.localeDate(e):d.localeDate((new Date).toString()),format(e,t=new r.a){const i=s.a.getLanguage();return d.localeDate(e).format(t[i])},localeDate:e=>{const t=s.a.getLanguage();let a="";switch(t){case"fr":a="fr",i("67a9");break;case"es":a="es",i("324b");break;case"zhs":a="zh-cn",i("8629");break;case"zht":a="zh",i("dea0");break;default:a=t}return Object(n.a)(e).locale(a)},combineAuthorWithDate(e,t,i,s){let n="";const a=d.format(t,new r.a(s));let o=i.split("-");return o[1]||(o="posted_by-on".split("-")),n=l.a.getLocale(o[0])+" "+e+" "+l.a.getLocale(o[1])+" "+a,n}}},eb17:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));const s=new class{constructor(){this.enabledLanguages=[],this.allSupportedLanguages=["en","fr","es","zhs","zht"],this.english={id:0,name:"English",languageCode:"en",locale:"en_CA",language:{id:0,name:"English",languageCode:"en",locale:"en_CA"}}}init(e,t){const i=t;let s=0;(null==e?void 0:e.defaultLanguageId)&&(s=e.defaultLanguageId),(null==i?void 0:i.length)&&(this.enabledLanguages=i),this.enabledLanguages.push(this.english);const n=this.enabledLanguages.find(e=>e.id===s);this.defaultLanguage=n||this.english}getEnabledLanguages(){return this.enabledLanguages}getDefaultLanguage(){return this.defaultLanguage||this.english}isLanguageEnabled(e){const t=e.toLowerCase();return!!this.enabledLanguages.find(e=>e.name.toLowerCase()===t||e.languageCode.toLowerCase()===t)}getLanguage(){var e;let t=(null===(e=this.defaultLanguage)||void 0===e?void 0:e.languageCode)||"en";return this.enabledLanguages.forEach(e=>{e.languageCode===window.location.pathname.substring(1).split("/")[0].toString()&&(t=e.languageCode)}),t}getFirstBrowserLanguage(){const e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"];let i,s="en";if(Array.isArray(e.languages))for(i=0;i<e.languages.length;i++){const t=e.languages[i];if(t&&t.length&&this.allSupportedLanguages.includes(t.split("-")[0])){s=t.split("-")[0];break}}for(i=0;i<t.length;i++){const n=e[t[i]];if(n&&n.length&&this.allSupportedLanguages.includes(n.split("-")[0])){s=n.split("-")[0];break}}return this.enabledLanguages.find(e=>e.languageCode===s)||this.english}}},eec3:function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var s=i("9ab4"),n=i("d007"),a=i("dc2b"),o=i("a96b"),r=i("a776"),l=i("4ef5"),d=i("38eb");class c extends n.a{constructor(){super("/pages")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&t.includes("customFields")&&s.push(this.includeCustomFields(e)),yield Promise.all(s),e.data.forEach(e=>{const t=new a.a(e);if(e.featuredImage&&Array.isArray(e.featuredImage)){const i=[];e.featuredImage.forEach(e=>{i.push(new o.a(e))}),t.featuredImage=i}i.data.push(t)}),i.meta=e.meta,i}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield l.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"pages"}),s=d.a.getClient();for(const t of e.data)i.data.forEach(e=>{t.customFields||(t.customFields=[]),(e.identifierId===t.id||(null==s?void 0:s.id)===e.clientId&&!e.identifierId)&&t.customFields.push(new r.a(e))})}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}getPermaLink(e){const t=d.a.getPage([{field:"type",values:[""+e]},{field:"status",values:["enabled"]}]);if(t.length)return t[0].permaLink}dataset(e,t){const i=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield i.dataset.call(this,e,t))}))}getLanguage(){if(window.location.pathname.split("/").length>=2){const e=window.location.pathname.split("/")[1];if(e&&/(fr|es|zh)/.test(e))return e}}}const u=new c},f0d4:function(e,t,i){"use strict";i.d(t,"a",(function(){return Me}));var s=i("9ab4"),n=i("2b0e"),a=i("8c4f"),o=i("2f62"),r=i("a584"),l=i("a1e5"),d=i("1881"),c=i("0739"),u=i("38eb"),p=i("d007"),h=i("ad17"),g=i("1099"),f=i("eb17"),m=i("d1da"),y=new class{constructor(){this.helpers=d,this.multiPropertyTypes=[]}init(e,t,i,n){return Object(s.a)(this,void 0,void 0,(function*(){this.router=t,this.pages=n,this.multiPropertyTypes=e.multiPropertyTypes,this.vueRouter=e,yield this.bindBeforeEach(i&&i.beforeEach?i.beforeEach:void 0),yield this.bindAfterEach(i&&i.afterEach?i.afterEach:void 0)}))}bindBeforeEach(e){return Object(s.a)(this,void 0,void 0,(function*(){this.router&&this.router.beforeEach((t,i,n)=>Object(s.a)(this,void 0,void 0,(function*(){var s,a,o,r,l,d,c;if("page-builder-preview"===t.name)return n();const{redirectTo:u,redirectType:m}=this.redirects(t);if(u&&m){if("domain"===m){const e=document.createElement("meta");return e.setAttribute("name","robots"),e.setAttribute("content","noindex"),e.classList.add("meta-info"),document.head.append(e),window.location.href=u,n()}return n(u)}let y="";if(y=t.name?t.name:"",document.body.className=y,this.pages){const e=new RegExp(/\/details(-.+)?$/);let u,h,m=!1;for(const i of this.pages)if(i.routeConfig&&i.page){if(u=i.routeConfig,t.name&&e.test(t.name)&&t.name===u.name){m=!0,h=i.page;break}if(u.path.replace(/(\/)*$/,"")===t.path.replace(/(\/)*$/,"")||"/"===t.path&&u.path===t.path){m=!0,h=i.page;break}if((null===(s=this.vueRouter)||void 0===s?void 0:s.singlePageExtendPostUrls)&&(null===(a=i.page)||void 0===a?void 0:a.template)&&this.vueRouter.singlePageExtendModules.includes(i.page.template)&&t.name===i.page.template){m=!0,h=i.page;break}}if(!(u&&h&&m))return t.path.endsWith("/404")?n():n(t.path.concat("/404"));{const s=null===(o=this.vueRouter)||void 0===o?void 0:o.client,n=(null===(r=this.vueRouter)||void 0===r?void 0:r.siteName)||(null===(l=this.vueRouter)||void 0===l?void 0:l.site)?null===(c=null===(d=this.vueRouter)||void 0===d?void 0:d.site)||void 0===c?void 0:c.name:"";let a="";if(a=h.metaTitle?h.metaTitle:h.title?h.title:"Page",n&&(a+=" | "+n),u.meta={title:this.helpers.text.htmlDecodeAndStripTags(a),metaTags:[{name:"description",content:h.metaDesc?h.metaDesc:this.helpers.text.htmlDecodeAndStripTags(h.content,[0,180])}]},document.title=u.meta.title,u.meta.metaTags.length){let n,a,o;if(u.meta.metaTags.forEach(e=>{const t=document.querySelector(`meta[name=${e.name}]`);if(t)t.setAttribute("content",e.content);else{const t=document.querySelector("title"),i=document.createElement("meta");Object.keys(e).forEach(t=>{i.setAttribute(t,e[t])}),i.setAttribute("data-vue-router-controlled",""),t&&t.parentNode&&t.parentNode.insertBefore(i,t.nextSibling)}}),this.helpers.schema.clearSchema(),this.helpers.schema.printSchema(s,"client"),e.test(t.name)&&1===h.hasDetailsPage&&"page"!==h.type){let e="",r="";const l=t.params.idOrPermaLink,d=[],c="metaTitle";let m="title";const y="metaDesc";let b="description",v="";const w="256",P="metaPhoto",O="photo";let j=h.type;switch(j&&this.multiPropertyTypes.includes(j)&&(j="properties"),j){case"careers":e="/careers_postings",r="permaLink",b="postingDetails";break;case"blogs":e="/blogs",r="seoUrl",v="images/blog",b="content";break;case"news":e="/news",r="seoUrl",v="images/news",b="content";break;case"bios":e="/bios",r="seoUrl",v="userfiles/bios",b="bio";break;case"properties":e="/properties",r="permaLink",v="images/gallery",m="buildingName",b="buildingOverview",d.push({entity:"galleryPhotos",alias:"galleryPhoto"});break;case"cities":e="/cities-offered",r="permaLink",v="images/cities/"+w;break;default:e="/"+h.type,r="seoUrl"}Number.isNaN(Number(l));try{const $=f.a.getLanguage();new p.a(""+e).find({relations:d,findBy:{[r]:l},language:$}).then(e=>{if(e&&e.data.length){const r=e.data[0];if(s)switch(j){case"careers":this.helpers.schema.printSchema(s,"career",e.data[0]);break;case"blogs":this.helpers.schema.printSchema(s,"blog",e.data[0]);break;case"news":this.helpers.schema.printSchema(s,"news",e.data[0]);break;case"properties":this.helpers.schema.printSchema(s,"property",e.data[0])}a=r[c]?r[c]:r[m],o=r[y]?r[y]:"",n=r[P]?r[P]:"",a&&h&&h.title&&(document.title=this.helpers.text.htmlDecodeAndStripTags(""+a)),!o&&r[b]&&(o=r[b],o=this.helpers.text.htmlDecodeAndStripTags(o,[0,157])),""!==v&&n?n=g.a.getAsset(""+v,n):r[O]?n=g.a.getAsset(""+v,r[O]):d.length&&d.forEach(e=>{if("galleryPhotos"===e.entity&&r.galleryPhotos&&r.galleryPhotos.length)for(const e of r.galleryPhotos)if(null===e.deletedAt){if(e.searchResult)return void(n=g.a.getAsset(`${v}/${w}`,e.image));n||(n=g.a.getAsset(`${v}/${w}`,e.image))}}),this.adjustMetaTags(h,t,i,u,e.data[0],a,o,n)}})}catch(e){}}this.adjustMetaTags(h,t,i,u),t.params.idOrPermaLink||(t.params.idOrPermaLink=t.fullPath.split("/").pop())}}}return t.params.queryString=h.a.objectFromQueryString(t.fullPath.includes("?")?t.fullPath.split("?")[1]:null),t.params.currentLanguage=f.a.getLanguage(),localStorage.setItem("rs-currentLang",t.params.currentLanguage),e&&e(t,i,n),n()})))}))}bindAfterEach(e){return Object(s.a)(this,void 0,void 0,(function*(){this.router&&this.router.afterEach((t,i)=>Object(s.a)(this,void 0,void 0,(function*(){e&&(yield e(t,i))})))}))}redirects(e){const t=u.a.getRedirects();let i,s="page";if(t)for(const n of t){if(decodeURIComponent(n.from).indexOf("<")<decodeURIComponent(n.from).lastIndexOf(">")){const t=n.from.indexOf("<")+1,a=n.from.lastIndexOf(">"),o=new RegExp(""+n.from.substring(t,a)),r=new RegExp(/\$\d{1,}/g);if(o.test(e.fullPath)){if(r.test(decodeURIComponent(n.to))){const t=e.fullPath.match(o);if(t){let e=n.to;for(let i=0;i<t.length;i++){const s=new RegExp("\\$"+i,"g");e=e.replace(s,t[i])}i=e,s=n.type;break}}if(!i){i=n.to,s=n.type;break}}}if(decodeURIComponent(n.from)===decodeURIComponent(e.fullPath)){i=decodeURIComponent(n.to),s=n.type;break}}return{redirectTo:i,redirectType:s}}adjustMetaTags(e,t,i,n,a,o,r,l){return Object(s.a)(this,void 0,void 0,(function*(){const i=new RegExp(/\/details(-.+)?$/);let s,d,c;const u=document.querySelector('meta[name="description"]');u&&r&&u.setAttribute("content",r),s=l||(e&&null!==e.featuredImage&&void 0!==e.featuredImage&&e.featuredImage.length?g.a.getAsset("images/pages/full",e.featuredImage[0].filename):""),d=null!=o?o:n&&n.meta&&(void 0!==n.meta.title||null!==n.meta.title)?n.meta.title:"",c=null!=r?r:n&&n.meta&&void 0!==n.meta.metaTags&&n.meta.metaTags.length?n.meta.metaTags[0].content:"";const p={metaTitle:{property:"og:title",content:d},metaDesc:{property:"og:description",content:c},image:{property:"og:image",content:s},url:{property:"og:url",content:window.location.href.replace(/\?.*/,"")},localeEN:{property:"og:locale",content:"en_US"},twitterCard:{property:"twitter:card",content:"summary"},twitterTitle:{property:"twitter:title",content:d},twitterDescription:{property:"twitter:description",content:c},twitterImage:{property:"twitter:image",content:s}},h=f.a.getEnabledLanguages();if(h.length>0)for(const e of h)p["locale"+e.languageCode.toUpperCase()]={property:"og:locale:alternate",content:""+e.locale};if(e.type)switch(e.type){case"blogs":case"news":a&&i.test(t.name)&&1===e.hasDetailsPage&&(p.type={property:"og:type",content:"article"},p.articlePublishTime={property:"article:published_time",content:m.a.dayjs(a.publishDate).format("YYYY-MM-DD HH:mm:ss")},a.modified&&(p.modifiedTime={property:"article:modified_time",content:m.a.dayjs(a.modified).format("YYYY-MM-DD HH:mm:ss")}),a.author&&(p.author={property:"article:author",content:a.author}));break;default:p.type={property:"og:type",content:"website"}}const y=document.querySelectorAll(".meta-info");y&&y.forEach(e=>{e.remove()});for(const e in p)if(p[e]){if(void 0===p[e].content||null===p[e].content||""===p[e].content)continue;const t=document.createElement("meta");t.setAttribute("property",p[e].property),t.setAttribute("content",p[e].content),t.classList.add("meta-info"),document.head.append(t)}const b=`${window.location.origin}${t.path.replace(/\/$/,"")}`,v=document.querySelectorAll('link[rel="canonical"]');v.length&&v.forEach(e=>{e.remove()});const w=document.createElement("link");w.setAttribute("rel","canonical"),w.setAttribute("href",b),document.head.append(w)}))}},b=class{constructor(e){this.routerType=e.routerType,this.multiPropertyTypes=e.multiPropertyTypes,this.enabledLanguages=e.enabledLanguages,this.homeTemplate=e.homeTemplate,this.includeTranslations=e.includeTranslations,this.singlePageExtendPostUrls=e.singlePageExtendPostUrls,this.websitePages=u.a.getRawPages(),this.defaultLangCode="en",this.defaultPageName="Default",this.detailsPageSuffix="Details",this.routesToUse=[],this.singlePageData={},this.registrationPage=!1,this.focusPageTypes=["properties","cities"],this.singlePageExtendModules=e.singlePageExtendModules}buildRouterFromPages(){var e,t,i;return Object(s.a)(this,void 0,void 0,(function*(){let s=!1,n=!1;if(this.defaultLangCode=f.a.getDefaultLanguage().languageCode,this.homeTemplate&&this.homeTemplate.pageTemplate){const e=h.a.pascalCase(this.homeTemplate.pageTemplate);for(const t of this.websitePages[this.defaultLangCode])if(e===(t.template?h.a.pascalCase(t.template):"Default")){this.homePageData=t,this.registrationPage=!0;break}}const a=u.a.getPanel([{field:"panelTemplateKey",values:["theme-settings-admin"]}]);if(Array.isArray(a)&&a.length)try{const i=null===(t=null===(e=a[0])||void 0===e?void 0:e.fields.en)||void 0===t?void 0:t.find(e=>"enable-splash-page"===e.name||"enable-registration-page"===e.name);if(i){const e=i.values;if(e&&e.includes("production")){const e=f.a.getLanguage();if(this.homePageData=this.websitePages[e].find(e=>"Splash"===e.template||"Registration"===e.template),!this.homePageData)throw new Error;this.homeTemplate={pageTemplate:this.homePageData.template||"Registration"},"Splash"!==this.homePageData.template&&i.name,this.registrationPage=!0}}}catch(e){}if(this.enabledLanguages){if("single"===this.routerType)for(const e of this.enabledLanguages)if(this.includeTranslations||e.languageCode===this.defaultLangCode)for(const t of this.websitePages[e.languageCode])if(t.type&&!this.multiPropertyTypes.includes(t.type)&&!this.focusPageTypes.includes(t.type)){const i=t.template?h.a.pascalCase(t.template):"Default";this.singlePageData[""+e.languageCode]||(this.singlePageData[""+e.languageCode]={}),this.singlePageData[""+e.languageCode][""+i]=t}for(const e of this.enabledLanguages)if(this.includeTranslations||e.languageCode===this.defaultLangCode)for(const t of this.websitePages[e.languageCode])if(t.type&&!this.multiPropertyTypes.includes(t.type)&&!this.focusPageTypes.includes(t.type)){const a=t.template?h.a.pascalCase(t.template):"Default",o=e.languageCode!==this.defaultLangCode?e.languageCode:"";let r=!1;switch(a){case"Splash":case"Registration":break;case"Error":n=!0,r=!0;break;case"Home":s=!0}if(r)continue;"PageBuilder"!==a||"/"!==t.permaLink&&"home"!==t.permaLink||(s=!0),"PageBuilder"!==a||"error"!==t.permaLink&&"404"!==t.permaLink||(n=!0);const l=this.importRouteComponent(a);"single"===this.routerType?"Home"===a||"Splash"===a||"Registration"===a?this.addRoute(t,l,o):this.singlePageExtendPostUrls&&(null===(i=this.singlePageExtendModules)||void 0===i?void 0:i.includes(a))&&this.addExtendedRoute(t,l,o):this.addRoute(t,l,o)}}if(n&&this.importErrorPage(),!s||!n)throw new Error("Website must have a Home template and an Error template");const o={path:"/page-builder-preview",name:"page-builder-preview",component:this.importRouteComponent("PageBuilderPreview")};return this.routesToUse.push({routeConfig:o}),this.routesToUse}))}importRouteComponent(e,t){let s=null;return s=t?()=>i("a2f9")(`./${e}.vue`).catch(()=>i("4fe5")(`./${this.defaultPageName}/${this.defaultPageName}.vue`).catch(()=>{})):()=>i("4fe5")(`./${e}/${e}.vue`).catch(()=>i("4fe5")(`./${this.defaultPageName}/${this.defaultPageName}.vue`).catch(()=>{})),s}addExtendedRoute(e,t,i){let s=`/${e.permaLink}/:idOrPermaLink`;i&&(s=`/${i}${s}`);const n={path:s,name:i?`${e.template}-${i}`:""+e.template,component:t,props:{pageData:e}};e.vanityUrl&&(n.alias=this.setVanityUrls(e.vanityUrl)),this.routesToUse.push({routeConfig:n,page:e})}addRoute(e,t,i){if("Home"===e.template&&this.registrationPage)return;let s="/";i&&(s=`/${i}${s}`),"Home"===e.template||("Splash"===e.template||"Registration"===e.template)&&("Splash"!==e.template&&"Registration"!==e.template||this.registrationPage)||(s+=e.permaLink);const n="Home"===e.template?"home":e.permaLink,a={path:s,name:i?`${n}-${i}`:""+n,component:t,props:{pageData:e,sections:this.singlePageData[""+(i||"en")]}};e.vanityUrl&&(a.alias=this.setVanityUrls(e.vanityUrl)),this.routesToUse.push({routeConfig:a,page:e}),e.hasDetailsPage&&this.addDetailsRoute(e,i)}addDetailsRoute(e,t){let i=`${t}/${e.permaLink}/:idOrPermaLink`;t&&(i="/"+i);const s=e.template?h.a.pascalCase(e.template):"Default",n=`${s}/${s}${this.detailsPageSuffix}/${s}${this.detailsPageSuffix}`,a=this.importRouteComponent(n,!0),o=t?`${e.permaLink}/details-${t}`:e.permaLink+"/details";let r=e;if(e.pageBuilderEnabled){const i=""===t?"en":t;this.websitePages[i].forEach(t=>{t.pageBuilderEnabled&&e.template===t.template+"Details"&&(r=t)})}const l={path:i,name:o,component:a,props:{pageData:r}};this.routesToUse.push({routeConfig:l,page:e})}importErrorPage(){const e={path:"*/404",name:"errorRoute",component:this.importRouteComponent("Error"),beforeEnter:(e,t,i)=>{document.body.classList.add("error"),i()}};this.routesToUse.push({routeConfig:e})}setVanityUrls(e){const t=[];for(const i of e.split(","))t.push("/"+i);return t}},v=class{constructor(e){this.routerType=e.routerType,this.addPrintUrlsToProperty=e.addPrintUrlsToProperty,this.multiPropertyTypes=e.multiPropertyTypes,this.includeCityTypePage=e.includeCityTypePage,this.includePropertyTypePage=e.includePropertyTypePage,this.includeTranslations=e.includeTranslations,this.enabledLanguages=e.enabledLanguages,this.websitePages=u.a.getRawPages(),this.defaultLangCode="en",this.defaultPageName="Default",this.detailsPageSuffix="Details",this.routesToUse=[],this.multiPropertyType=!1,this.focusPageTypes=["properties","cities"]}buildRouterFromProperties(){return Object(s.a)(this,void 0,void 0,(function*(){if("single"===this.routerType)return[];if(this.enabledLanguages){this.defaultLangCode=f.a.getDefaultLanguage().languageCode;const e={},t={};for(const i of this.enabledLanguages)for(const s of this.websitePages[i.languageCode])s.type&&this.focusPageTypes.includes(s.type)?(t[i.languageCode]||(t[i.languageCode]=[]),t[i.languageCode].push(s)):s.type&&this.multiPropertyTypes.includes(s.type)&&(this.multiPropertyType=!0,e[i.languageCode]||(e[i.languageCode]=[]),e[i.languageCode].push(s));if(!Object.keys(t).length||!Object.keys(e).length)return[];for(const i of this.enabledLanguages)if(0===e[i.languageCode].length&&0===t[i.languageCode].length)return[];if(this.multiPropertyType)for(const i of this.enabledLanguages)for(const s of e[i.languageCode]){let e=i.languageCode;i.languageCode===this.defaultLangCode&&(e=""),this.addPropertyTypeRoute(s,t[i.languageCode],e)}else{let e=!1;for(const i of this.enabledLanguages)for(const s of t[i.languageCode])"properties"===s.type&&(e=!0);if(!e)throw new Error("If you have a Cities Page Type Page,\n            you must have a Properties Page-Type Page activated/enabled");for(const e of this.enabledLanguages)for(const i of t[e.languageCode]){const t=i.template?h.a.pascalCase(i.template):"Default",s=this.importRouteComponent(t);this.addRoute(i,s,e.languageCode)}}for(const e of this.enabledLanguages)if(this.includeTranslations||e.languageCode===this.defaultLangCode)for(const i of t[e.languageCode]){const t=i.template?h.a.pascalCase(i.template):"Default";let s=e.languageCode;if(e.languageCode===this.defaultLangCode&&(s=""),this.includeCityTypePage&&"cities"===i.type){const e=this.importRouteComponent(t);this.addRoute(i,e,s)}if(this.includePropertyTypePage&&"properties"===i.type){const e=this.importRouteComponent(t);this.addRoute(i,e,s)}}}return this.routesToUse}))}importRouteComponent(e,t){let s=null;return s=t?()=>i("a2f9")(`./${e}.vue`).catch(()=>i("4fe5")(`./${this.defaultPageName}/${this.defaultPageName}.vue`).catch(()=>{})):()=>i("4fe5")(`./${e}/${e}.vue`).catch(()=>i("4fe5")(`./${this.defaultPageName}/${this.defaultPageName}.vue`).catch(()=>{})),s}addRoute(e,t,i){let s="/"+e.permaLink;i&&(s=`/${i}${s}`);const n=e.permaLink,a={path:s,name:i?`${n}-${i}`:""+n,component:t,props:{pageData:e}};e.vanityUrl&&(a.alias=this.setVanityUrls(e.vanityUrl)),this.routesToUse.push({routeConfig:a,page:e}),e.hasDetailsPage&&this.addDetailsRoute(e,i)}addPropertyTypeRoute(e,t,i){t.forEach(t=>{const s=t.template?h.a.pascalCase(t.template):"Default";if("cities"===t.type){let n=`/${e.permaLink}/${t.permaLink}`;i&&(n=`/${i}${n}`);const a=this.importRouteComponent(s),o={path:n,name:i?`${e.permaLink}-${t.permaLink}-${i}`:`${e.permaLink}-${t.permaLink}`,component:a,props:{pageData:t}};t.vanityUrl&&(o.alias=this.setVanityUrls(t.vanityUrl)),this.routesToUse.push({routeConfig:o,page:t}),t.hasDetailsPage&&this.addDetailsRoute(t,i,e)}});const s=e.template?h.a.pascalCase(e.template):"Default",n=this.importRouteComponent(s);this.addRoute(e,n,i)}addDetailsRoute(e,t,i){let s=i?`/${i.permaLink}/${e.permaLink}`:"/"+e.permaLink;const n=e.template?h.a.pascalCase(e.template):"Default",a=`${n}/${n}${this.detailsPageSuffix}/${n}`,o=`${a}${this.detailsPageSuffix}`,r=this.importRouteComponent(o,!0);let l=i?`${i.permaLink}-${e.permaLink}/details`:e.permaLink+"/details";t&&(l=`${l}-${t}`,s=`/${t}${s}`);let d=e;if(e.pageBuilderEnabled){const i=""===t?"en":t;this.websitePages[i].forEach(t=>{t.pageBuilderEnabled&&e.template===t.template+"Details"&&(d=t)})}const c=s+"/:idOrPermaLink",u={path:c,name:l,component:r,props:{pageData:d}};if(this.routesToUse.push({routeConfig:u,page:e}),this.addPrintUrlsToProperty&&!i&&"Cities"!==e.template){const i=this.importRouteComponent(a+"Print",!0);this.addPrintRoute(e,t,c+"/print",l+"-print",i)}}addPrintRoute(e,t,i,s,n){let a=e;if(e.pageBuilderEnabled){const i=""===t?"en":t;this.websitePages[i].forEach(t=>{t.pageBuilderEnabled&&e.template===t.template+"Details"&&(a=t)})}const o={path:""+i,name:""+s,component:n,props:{pageData:a}};this.routesToUse.push({routeConfig:o,page:e})}setVanityUrls(e){const t=[];for(const i of e.split(","))t.push("/"+i);return t}};class w{constructor(){this.router=void 0,this.siteName="",this.routerType="multi",this.enabledLanguages=[],this.hooks=y,this.baseUrl="/",this.includePropertyTypePage=!1,this.includeCityTypePage=!1,this.includeTranslations=!0,this.singlePageExtendPostUrls=!1,this.addPrintUrlsToProperty=!1,this.multiPropertyTypes=["residential","commercial","industrial","condos","townhouses","apartments","seniors","campgrounds","communities","hotels","houses","marinas","motels","office","furnished_suites","short_term_suites","construction","subdivisions"],this.singlePageExtendModules=[]}init(){return Object(s.a)(this,void 0,void 0,(function*(){this.client=u.a.getClient(),this.site=u.a.getSite();try{this.siteName=u.a.getSiteSetting([{field:"key",values:["site_name"]}])[0].value}catch(e){}this.singlePageExtendPostUrls&&(this.singlePageExtendModules=["BlogDetails","NewsDetails"]),this.enabledLanguages=f.a.getEnabledLanguages();const e=new b(this),t=yield e.buildRouterFromPages(),i=new v(this),s=[...t,...yield i.buildRouterFromProperties()],n=[];for(const e of s)e.routeConfig&&n.push(e.routeConfig);const o=new a.a({mode:"history",base:this.baseUrl,routes:n,scrollBehavior:(e,t,i)=>({x:0,y:0})});return this.router=o,yield y.init(this,o,this.hookFunctions,s),o}))}}var P=i("4ef5"),O=i("b0c5"),j=i("8128"),$=i("a776");class T extends p.a{constructor(){super("/bios")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&t.includes("customFields")&&s.push(this.includeCustomFields(e)),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new j.a(e))}),i.meta=e.meta,i}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"bios"}),s=u.a.getClient();for(const t of e.data)i.data.forEach(e=>{t.customFields||(t.customFields=[]),(e.identifierId===t.id||(null==s?void 0:s.id)===e.clientId&&!e.identifierId)&&t.customFields.push(new $.a(e))})}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield n.dataset.call(this,e,t,i))}))}}const C=new T;var I=i("0fe8"),E=i("6cdc");class L extends p.a{constructor(){super("/blogs")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&(t.includes("tags")&&s.push(this.includeTags(e)),t.includes("customFields")&&s.push(this.includeCustomFields(e))),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new I.a(e))}),i.meta=e.meta,i}))}includeTags(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getTags({objectIdorIds:t.join("|"),model:"blogs"});for(const t of e.data)i.data.forEach(e=>{var i;(null===(i=e.objectsHasTags)||void 0===i?void 0:i.find(e=>e.objectId===t.id))&&(t.tags||(t.tags=[]),t.tags.push(new E.a(e)))})}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"blog"}),s=u.a.getClient();for(const t of e.data)i.data.forEach(e=>{t.customFields||(t.customFields=[]),(e.identifierId===t.id||(null==s?void 0:s.id)===e.clientId&&!e.identifierId)&&t.customFields.push(new $.a(e))})}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}findByTags(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){let s={};i&&(this.adjustOptions(i),s=this.configureFindParameters(i)),s.where?s.where+=",oht.model:blogs,isCategory:0":s.where="oht.model:blogs,isCategory:0",s.includeTags=t||!1,s.includedTags=e;let n=null==i?void 0:i.include;return n&&(n=n.filter(e=>"tags"!==e)),this.getResponse(yield P.a.request("blogs_by_tags",s),n)}))}findByCategory(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){let s={};return i&&(this.adjustOptions(i),s=this.configureFindParameters(i)),s.where?s.where+=",oht.model:news,isCategory:1":s.where="oht.model:news,isCategory:1",s.includeTags=t||!1,s.includedTags=e,this.getResponse(yield P.a.request("blogs_by_tags",s),null==i?void 0:i.include)}))}findWithoutTags(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){let s={};return i&&(this.adjustOptions(i),s=this.configureFindParameters(i)),s.where?s.where+=",oht.model:blogs,isCategory:0":s.where="oht.model:blogs,isCategory:0",s.includeTags=t||!1,s.excludedTags=e,this.getResponse(yield P.a.request("blogs_by_tags",s),null==i?void 0:i.include)}))}archives(){return Object(s.a)(this,void 0,void 0,(function*(){return yield P.a.request("archives_blogs")}))}getTags(e,t){return Object(s.a)(this,void 0,void 0,(function*(){let i={};const s=[];return e.data.forEach(e=>{s.push(e.id)}),i.where="oht.model:blogs,isCategory:0,oht.objectId~in:"+s.join("|"),t?(t.relations=[{entity:"objectsHasTags",alias:"oht"}],i=this.configureFindParameters(t)):i.relations="objectsHasTags:oht",yield P.a.request("tags",i).then(e=>e.data)}))}adjustOptions(e){let t=e.custom;t||(t={}),e.page&&(t.page=""+e.page),e.includeAll&&(t.includeAll=""+e.includeAll),e.filterOperator&&(t.filterOperator=""+e.filterOperator),e.filterDate&&(t.filterDate=""+e.filterDate),e.custom=t}}const R=new L;var N=i("7921");class A extends p.a{constructor(){super("/careers_postings")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&(t.includes("tags")&&s.push(this.includeTags(e)),t.includes("customFields")&&s.push(this.includeCustomFields(e))),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new N.a(e))}),i.meta=e.meta,i}))}includeTags(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getTags({objectIdorIds:t.join("|"),model:"career"});for(const t of e.data)i.data.forEach(e=>{var i;(null===(i=e.objectsHasTags)||void 0===i?void 0:i.find(e=>e.objectId===t.id))&&(t.tags||(t.tags=[]),t.tags.push(new E.a(e)))})}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"careers"}),s=u.a.getClient();for(const t of e.data)i.data.forEach(e=>{t.customFields||(t.customFields=[]),(e.identifierId===t.id||(null==s?void 0:s.id)===e.clientId&&!e.identifierId)&&t.customFields.push(new $.a(e))})}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield n.dataset.call(this,e,t,i))}))}}const S=new A;var D=i("96f1");class k extends p.a{constructor(){super("/client")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj};return t&&t.includes("geoLocation")&&(yield this.includeGeoLocation(e)),e.data.forEach(e=>{i.data.push(new D.a(e))}),i.meta=e.meta,i}))}includeGeoLocation(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[],i=[];let s="";for(const t of e.data)t.cityId&&(i.includes(t.cityId)||i.push(t.cityId));i.forEach(e=>{s+=e+"|"}),s=s.substring(0,s.length-1),yield P.a.request("/cities",{relations:"province:p,p.country:c",where:"id~in:"+s}).then(e=>{e.data.forEach(e=>{const i=e,s=i.province,n=s.country;t.push({cityId:i.id,cityName:i.cityName,provinceId:s.id,provinceName:s.provinceName,provinceCode:s.provinceCode,countryId:n.id,countryName:n.countryName,countryCode:n.countryCode})})});for(const i of e.data)i.geoLocation=t.find(e=>e.cityId===i.cityId)}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}}const U=new k;class x extends p.a{constructor(){super("/custom_fields")}getResponse(e){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new $.a(e))}),t.meta=e.meta,t}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield n.dataset.call(this,e,t,i))}))}}const F=new x;var _=i("bac5");class B extends p.a{constructor(){super("/documents")}getResponse(e){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new _.a(e))}),t.meta=e.meta,t}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)&&(e.relations=this.includeRelationalData(e.include)),this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}includeRelationalData(e){const t=[];return e.forEach(e=>{switch(e){case"categories":t.push({entity:"documentCategory",alias:"dc"})}}),t}}const q=new B;var H=i("62cd");class M extends p.a{constructor(){super("/faqs")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&t.includes("tags")&&s.push(this.includeTags(e)),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new H.a(e))}),i.meta=e.meta,i}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}includeTags(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getTags({objectIdorIds:t.join("|"),model:"faqs"});for(const t of e.data)i.data.forEach(e=>{var i;(null===(i=e.objectsHasTags)||void 0===i?void 0:i.find(e=>e.objectId===t.id))&&(t.tags||(t.tags=[]),t.tags.push(new E.a(e)))})}))}}const V=new M;var K=i("4a0f");class z extends p.a{constructor(){super("/form_settings")}getResponse(e){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new K.a(e))}),t.meta=e.meta,t}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}submit(e,t,i,n){return Object(s.a)(this,void 0,void 0,(function*(){const s=new FormData,a=Object.assign({},t);Object.keys(a).forEach(e=>{void 0===a[e]&&(a[e]=null)}),s.append("language",i),s.append("source",n),s.append("formSettings",JSON.stringify(e));for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&a[e]instanceof FileList&&a[e].length>0&&(s.append(e,a[e][0]),a[e]=a[e][0].name);return s.append("data",JSON.stringify(a)),yield P.a.post({url:P.a.axiosInstance.defaults.baseURL+"/form_responses",headers:{Referrer:document.referrer,"Content-Type":"multipart/form-data"},data:s})}))}}const G=new z;var Y=i("39f5");class W extends p.a{constructor(){super("/menus")}find(e,t=!1){const i=Object.create(null,{find:{get:()=>super.find}});var n;return Object(s.a)(this,void 0,void 0,(function*(){if(t)return{};const s={data:[],meta:this.metaObj};yield i.find.call(this,e).then(e=>{e.data.forEach(e=>{s.data.push(new Y.a(e))}),s.meta=e.meta});const a=[];return(null===(n=null==e?void 0:e.include)||void 0===n?void 0:n.includes("customFields"))&&a.push(this.includeCustomFields(s)),yield Promise.all(a),s}))}getMenu(e,t){var i;return Object(s.a)(this,void 0,void 0,(function*(){let s;if(e&&!t){const t={findBy:{menuKey:e.toLowerCase()}},i=yield this.find(t,!0);(null==i?void 0:i.data)&&(s=i)}const n={data:[],meta:this.metaObj},a=[];(null==s?void 0:s.data)||(s=yield P.a.request("/menus",{where:"menuKey:"+e,orderBy:"orderBy"}).then(e=>e)),(null===(i=null==t?void 0:t.include)||void 0===i?void 0:i.includes("customFields"))&&(yield this.includeCustomFields(s)),s.data.forEach(e=>{n.data.push(new Y.a(e))}),n.meta=s.meta;for(let e=0;e<n.data.length;e++){const t=n.data[e];t.parentId&&(a.push(t),n.data.splice(e,1),e--)}return n.data.forEach((e,t)=>{e.parentId&&(a.push(e),n.data.splice(t,1))}),n.data.forEach((e,t)=>{n.data[t].children=[],a.forEach(i=>{var s;i.parentId===e.id&&e.children&&(null===(s=n.data[t].children)||void 0===s||s.push(i))})}),n}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=e.data.map(e=>e.id),i=yield P.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"pages"});for(const t of e.data)t.customFields=[],i.data.forEach(e=>{e.identifierId===t.id&&t.customFields&&t.customFields.push(new $.a(e))})}))}}const J=new W;var Z=i("add4");class Q extends p.a{constructor(){super("/news")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&(t.includes("tags")&&s.push(this.includeTags(e)),t.includes("customFields")&&s.push(this.includeCustomFields(e))),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new Z.a(e))}),i.meta=e.meta,i}))}includeTags(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getTags({objectIdorIds:t.join("|"),model:"news"});for(const t of e.data)i.data.forEach(e=>{var i;(null===(i=e.objectsHasTags)||void 0===i?void 0:i.find(e=>e.objectId===t.id))&&(t.tags||(t.tags=[]),t.tags.push(new E.a(e)))})}))}includeCustomFields(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.push(i.id);const i=yield P.a.getCustomFields({identifierIdorIds:t.join("|"),tableName:"news"}),s=u.a.getClient();for(const t of e.data)i.data.forEach(e=>{t.customFields||(t.customFields=[]),(e.identifierId===t.id||(null==s?void 0:s.id)===e.clientId&&!e.identifierId)&&t.customFields.push(new $.a(e))})}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}findByTags(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){let s={};i&&(this.adjustOptions(i),s=this.configureFindParameters(i)),s.where?s.where+=",oht.model:news,isCategory:0":s.where="oht.model:news,isCategory:0",s.includeTags=t||!1,s.includedTags=e;let n=null==i?void 0:i.include;return n&&(n=n.filter(e=>"tags"!==e)),this.getResponse(yield P.a.request("news_by_tags",s),null==i?void 0:i.include)}))}findByCategory(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){let s={};return i&&(this.adjustOptions(i),s=this.configureFindParameters(i)),s.where?s.where+=",oht.model:news,isCategory:1":s.where="oht.model:news,isCategory:1",s.includeTags=t||!1,s.includedTags=e,this.getResponse(yield P.a.request("news_by_tags",s),null==i?void 0:i.include)}))}findWithoutTags(e,t,i){return Object(s.a)(this,void 0,void 0,(function*(){let s={};return i&&(this.adjustOptions(i),s=this.configureFindParameters(i)),s.where?s.where+=",oht.model:news,isCategory:0":s.where="oht.model:news,isCategory:0",s.includeTags=t||!1,s.excludedTags=e,this.getResponse(yield P.a.request("news_by_tags",s),null==i?void 0:i.include)}))}archives(){return Object(s.a)(this,void 0,void 0,(function*(){return yield P.a.request("archives_news")}))}getTags(e,t){return Object(s.a)(this,void 0,void 0,(function*(){let i={};const s=[];return e.data.forEach(e=>{s.push(e.id)}),i.where="oht.model:news,isCategory:0,oht.objectId~in:"+s.join("|"),t?(t.relations=[{entity:"objectsHasTags",alias:"oht"}],i=this.configureFindParameters(t)):i.relations="objectsHasTags:oht",yield P.a.request("tags",i).then(e=>e.data)}))}adjustOptions(e){let t=e.custom;t||(t={}),e.page&&(t.page=""+e.page),e.includeAll&&(t.includeAll=""+e.includeAll),e.filterOperator&&(t.filterOperator=""+e.filterOperator),e.filterDate&&(t.filterDate=""+e.filterDate),e.custom=t}}const X=new Q;var ee=i("eec3"),te=i("8389"),ie=i("dc2b"),se=i("23b2"),ne=i("5001");class ae extends p.a{constructor(){super("/panels")}getResponse(e){return Object(s.a)(this,void 0,void 0,(function*(){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new te.a(e))}),t.meta=e.meta,t}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return yield this.getResponse(yield t.find.call(this,e))}))}get(e,t){const i=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){const s={panelTemplateKey:e};t&&(s.modelId=t.id,t instanceof ie.a?s.model="pages":t instanceof se.a?s.model="buildings":t instanceof ne.a&&(s.model="cities_offered"));const n=yield i.find.call(this,{findBy:s});return n.length?n[0]:n.data&&n.data.length?n.data[0]:null}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}findByField(e){return Object(s.a)(this,void 0,void 0,(function*(){const t={},i=e.find,s=`fieldName:${i.field},fieldValue:${i.value},panelTemplateKey:${i.templateKey}`;return t.where?t.where+=s:t.where=s,e.limit&&(t.limit=e.limit),yield this.getResponse(yield P.a.request("panels_by_field",t))}))}}const oe=new ae;var re=i("f5c4");class le extends p.a{constructor(){super("/panel_template")}getResponse(e){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new re.a(e))}),t.meta=e.meta,t}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}}const de=new le;var ce=i("0120");class ue extends p.a{constructor(){super("/promotions")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj},s=[];return t&&(t.includes("properties")&&t.includes("unitSummary")&&s.push(this.includeUnitSummary(e)),t.includes("properties")&&t.includes("units")&&s.push(this.includeUnits(e)),t.includes("properties")&&(t.includes("photos")||t.includes("photoTags"))&&(t.includes("photoTags")?s.push(this.includePhotos(e,!0)):s.push(this.includePhotos(e))),t.includes("geoLocation")&&s.push(this.includeGeoLocation(e))),yield Promise.all(s),e.data.forEach(e=>{i.data.push(new ce.a(e))}),i.meta=e.meta,i}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?(e.relations=this.includeRelationalData(e.include),yield this.getResponse(yield t.find.call(this,e),e.include)):yield this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}includeUnitSummary(e){return Object(s.a)(this,void 0,void 0,(function*(){let t=[],i="";for(const t of e.data)if(t.buildings)for(const e of t.buildings)i+=e.id+"|";i=i.substring(0,i.length-1),yield P.a.request("properties/unit-summary",{where:"buildingIds:"+i}).then(e=>{t=e.data});for(const i of e.data)if(i.buildings)for(const e of i.buildings)e.unitSummary=t.find(t=>t.propertyId===e.id)}))}includePhotos(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i=[];for(const t of e.data)if(t.buildings)for(const e of t.buildings)i.push(e.id);const s=yield P.a.getPhotos({propertyIds:i}).then(e=>e.data);if(t){const e=s.map(e=>e.id),t=yield P.a.getTags({objectIdorIds:e.join("|"),model:"building-photos"});for(const e of s)t.data.forEach(t=>{var i;(null===(i=t.objectsHasTags)||void 0===i?void 0:i.find(t=>t.objectId===e.id))&&(e.tags||(e.tags=[]),e.tags.push(new E.a(t)))})}for(const t of e.data)if(t.buildings)for(const e of t.buildings)e.galleryPhotos=s.filter(t=>t.buildingId===e.id)}))}includeGeoLocation(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[],i=[];let s="";for(const t of e.data)if(t.buildings)for(const e of t.buildings)e.cityId&&(i.includes(e.cityId)||i.push(e.cityId));i.forEach(e=>{s+=e+"|"}),s=s.substring(0,s.length-1),yield P.a.request("/cities",{relations:"province:p,p.country:c",where:"id~in:"+s}).then(e=>{e.data.forEach(e=>{const i=e,s=i.province,n=s.country;t.push({cityId:i.id,cityName:i.cityName,provinceId:s.id,provinceName:s.provinceName,provinceCode:s.provinceCode,countryId:n.id,countryName:n.countryName,countryCode:n.countryCode})})});for(const i of e.data)if(i.buildings)for(const e of i.buildings)e.geoLocation=t.find(t=>t.cityId===e.cityId)}))}includeUnits(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)if(i.buildings)for(const e of i.buildings)t.push(e.id);const i=yield P.a.getUnits({propertyIds:t});for(const t of e.data)if(t.buildings)for(const e of t.buildings)i.data.forEach(t=>{e.suiteTypes||(e.suiteTypes=[]),t.buildingId===e.id&&e.suiteTypes.push(t)})}))}includeRelationalData(e){const t=[];return e.includes("properties")&&(t.push({entity:"buildings",alias:"b"}),e.includes("amenities")&&t.push({entity:"b.amenities",alias:"ba"})),t}}const pe=new ue;var he=i("ac30");class ge extends p.a{constructor(){super("/site_settings"),this.liftSettings={data:[],meta:this.metaObj}}lift(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=this.liftSettings.data.find(t=>t.key===e);if(t)return t.value;const i=yield P.a.request("/lift_settings",{where:"key:"+e});return i.data[0]?(this.liftSettings.data.push(i.data[0]),i.data[0].value):(this.liftSettings.data.push({key:e,value:""}),"")}))}getEnabledLanguages(){return f.a.getEnabledLanguages()}isLanguageEnabled(e){const t=e.toLowerCase();return!!f.a.getEnabledLanguages().find(e=>e.name.toLowerCase()===t||e.languageCode.toLowerCase()===t)}}const fe=new ge;var me=i("bbcc");class ye extends p.a{constructor(){super("/testimonials")}getResponse(e){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new me.a(e))}),t.meta=e.meta,t}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield t.find.call(this,e))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}}const be=new ye;var ve=i("8abb");class we extends p.a{constructor(){super("/weather")}getResponse(e){const t={data:[],meta:this.metaObj};return e.data.forEach(e=>{t.data.push(new ve.a(e))}),t}getWeather(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){const i=this.getResponse(yield t.find.call(this,e));return i.data,{data:i.data.pop(),meta:i.meta}}))}}const Pe=new we;var Oe=i("4e60");class je extends p.a{constructor(){super("/site_urls")}getResponse(e){const t={data:new Oe.a(e.data),meta:this.metaObj};return t.meta=e.meta,t}getSiteUrls(e){const t=Object.create(null,{find:{get:()=>super.find}});var i;return Object(s.a)(this,void 0,void 0,(function*(){let s=c.a.showUnavailableCities()?"false":"true",n=c.a.showUnavailableProperties()?"false":"true";"boolean"==typeof(null==e?void 0:e.onlyAvailableCities)&&(s=e.onlyAvailableCities?"true":"false"),"boolean"==typeof(null==e?void 0:e.onlyAvailableProperties)&&(n=e.onlyAvailableProperties?"true":"false");const a={custom:{groupPropertiesBy:(null==e?void 0:e.groupPropertiesBy)?null==e?void 0:e.groupPropertiesBy:"",groupPagesByParent:(null==e?void 0:e.groupPagesByParent)?"true":"false",selectOnly:(null==e?void 0:e.selectOnly)?null===(i=null==e?void 0:e.selectOnly)||void 0===i?void 0:i.join("|"):"",onlyAvailableCities:s,onlyAvailableProperties:n}};return this.getResponse(yield t.find.call(this,a))}))}dataset(e,t,i){const n=Object.create(null,{dataset:{get:()=>super.dataset}});return Object(s.a)(this,void 0,void 0,(function*(){return this.getResponse(yield n.dataset.call(this,e,t,i))}))}}const $e=new je;var Te=i("882b"),Ce=i("6c75");class Ie extends p.a{constructor(){super("/cities")}forProperties(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[],i=[],n={select:"cityId,permaLink",limit:1e3};let a=!c.a.showUnavailableCities();return e&&(a="boolean"==typeof e.onlyAvailable?e.onlyAvailable:a,e.categoryType&&(n.select+=",bt.categoryType",i.push("buildingType:bt"),t.push("bt.categoryType:"+e.categoryType)),e.buildingTypes&&(n.select+=",bt."+e.buildingTypes.field,i.push("buildingType:bt"),t.push(`bt.${e.buildingTypes.field}:${e.buildingTypes.value}`)),e.ownershipType&&(n.select+=",ot.permaLink",i.push("ownershipTypes:ot"),t.push("ot.permaLink:"+e.ownershipType)),e.propertyType&&t.push("buildingTypeId:"+e.propertyType),a&&t.push("id~in:"+u.a.getAvailablePropertyIds().join("|"))),n.where=t.join(","),n.relations=i.join(","),yield P.a.request("properties",n).then(e=>Object(s.a)(this,void 0,void 0,(function*(){const t=[];for(const i of e.data)t.includes(i.cityId)||t.push(i.cityId);return yield P.a.request("cities",{where:"id~in:"+t.join("|"),relations:"province:p,p.country:c",limit:1e3}).then(e=>{const t=[];for(const i of e.data)t.push(new Ce.a({cityId:i.id,cityName:i.cityName,latitude:i.latitude,longitude:i.longitude,provinceId:i.province.id,provinceName:i.province.provinceName,provinceCode:i.province.provinceCode,countryId:i.province.country.id,countryName:i.province.country.countryName,countryCode:i.province.country.countryCode}));return t})})))}))}getPages(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=this.configureFindParameters(e);return(null==e?void 0:e.include)&&e.include.length&&(e.include.includes("geoLocation")&&(t.relations="city:ci,ci.province:p,p.country:c"),e.include.includes("regions")&&(t.relations?t.relations+=",cityRegions:cityRegions":t.relations="cityRegions:cityRegions")),c.a.showUnavailableCities()||(t.where&&!/cityId(~in)?:/g.test(t.where)?t.where+=",cityId~in:"+u.a.getAvailableCityIds().join("|"):t.where||(t.where="cityId~in:"+u.a.getAvailableCityIds().join("|"))),yield P.a.request("cities-offered",t).then(e=>{const t=[];for(const i of e.data){if(i.city){const e=i.city,t={cityId:e.id,cityName:e.cityName,latitude:e.latitude,longitude:e.longitude,provinceId:e.province.id,provinceName:e.province.provinceName,provinceCode:e.province.provinceCode,countryId:e.province.country.id,countryName:e.province.country.countryName,countryCode:e.province.country.countryCode};i.geoLocation=t}t.push(new ne.a(i))}return t})}))}getCityPropertySummary(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=this.configureFindParameters(e);return yield P.a.request("cities/property-summary",t).then(e=>{const t=[];for(const i of e.data)t.push(new Te.a(i));return t})}))}}const Ee=new Ie;var Le=i("70bd");class Re extends p.a{constructor(){super("/site")}getResponse(e,t){return Object(s.a)(this,void 0,void 0,(function*(){const i={data:[],meta:this.metaObj};return t&&t.includes("geoLocation")&&(yield this.includeGeoLocation(e)),e.data.forEach(e=>{i.data.push(new Le.a(e))}),i.meta=e.meta,i}))}includeGeoLocation(e){return Object(s.a)(this,void 0,void 0,(function*(){const t=[],i=[];let s="";for(const t of e.data)t.cityId&&(i.includes(t.cityId)||i.push(t.cityId));i.forEach(e=>{s+=e+"|"}),s=s.substring(0,s.length-1),yield P.a.request("/cities",{relations:"province:p,p.country:c",where:"id~in:"+s}).then(e=>{e.data.forEach(e=>{const i=e,s=i.province,n=s.country;t.push({cityId:i.id,cityName:i.cityName,provinceId:s.id,provinceName:s.provinceName,provinceCode:s.provinceCode,countryId:n.id,countryName:n.countryName,countryCode:n.countryCode})})});for(const i of e.data)i.geoLocation=t.find(e=>e.cityId===i.cityId)}))}find(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){return(null==e?void 0:e.include)?yield this.getResponse(yield t.find.call(this,e),e.include):yield this.getResponse(yield t.find.call(this,e))}))}}const Ne=new Re;var Ae=i("5af5"),Se=i("7404");class De extends p.a{constructor(){super("/unit-table-builder")}get(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){const i=yield t.find.call(this,{findBy:e});return(null==i?void 0:i.data)?new Se.a(i.data):void 0}))}}const ke=new De;class Ue extends p.a{constructor(){super("/website-settings")}get(e){return Object(s.a)(this,void 0,void 0,(function*(){return(yield P.a.axiosInstance.get(this.baseEndpoint,{params:e})).data}))}}const xe=new Ue;class Fe extends p.a{constructor(){super("/page-builder-page")}get(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){const i=yield t.find.call(this,{findBy:{pageId:e}});return null==i?void 0:i.data}))}}const _e=new Fe;var Be=i("c3c2");class qe extends p.a{constructor(){super("/post-settings")}get(e){const t=Object.create(null,{find:{get:()=>super.find}});return Object(s.a)(this,void 0,void 0,(function*(){const i=e;e.excludePostIds&&(i.excludePostIds=e.excludePostIds.join("|"));const s=yield t.find.call(this,{findBy:i});return(null==s?void 0:s.data)?new Be.a(s.data):void 0}))}}const He=new qe,Me=new class{constructor(){this.client=U,this.site=Ne,this.properties=he.a,this.unitTableBuilder=ke,this.postsSettingsBuilder=He,this.cities=Ee,this.router=new w,this.storeModules=l.a,this.helpers=d,this.assetHost="aws",this.options=void 0,this.website={bios:C,blogs:R,careers:S,customFields:F,documents:q,faqs:V,forms:G,menu:J,news:X,pages:ee.a,pageBuilder:_e,panels:oe,panelTemplates:de,promotions:pe,siteUrls:$e,testimonials:be,weather:Pe,settings:xe},this.rentsyncApiFunctions={settings:fe,properties:this.properties,unitTableBuilder:this.unitTableBuilder,postsSettingsBuilder:this.postsSettingsBuilder,cities:this.cities,website:this.website,client:this.client,site:this.site,helpers:this.helpers}}setConfig(e){return Object(s.a)(this,void 0,void 0,(function*(){this.options=e,P.a.setSiteConfig(e),e.routerOptions&&(e.routerOptions.type&&(this.router.routerType=e.routerOptions.type),e.routerOptions.baseUrl&&(this.router.baseUrl=e.routerOptions.baseUrl),e.routerOptions.hooks&&(this.router.hookFunctions=e.routerOptions.hooks),e.routerOptions.homeTemplate&&(this.router.homeTemplate=e.routerOptions.homeTemplate),e.routerOptions.includeCityTypePage&&(this.router.includeCityTypePage=e.routerOptions.includeCityTypePage),e.routerOptions.includePropertyTypePage&&(this.router.includePropertyTypePage=e.routerOptions.includePropertyTypePage),"boolean"==typeof e.routerOptions.includeTranslations&&(this.router.includeTranslations=e.routerOptions.includeTranslations),"boolean"==typeof e.routerOptions.singlePageExtendPostUrls&&(this.router.singlePageExtendPostUrls=e.routerOptions.singlePageExtendPostUrls),"boolean"==typeof e.routerOptions.addPrintUrlsToProperty&&(this.router.addPrintUrlsToProperty=e.routerOptions.addPrintUrlsToProperty)),e.assetHost&&(this.assetHost=e.assetHost),e.seo}))}getConfig(){return this.options}init(){var e;return Object(s.a)(this,void 0,void 0,(function*(){n.default.use(o.a),n.default.use(a.a),yield u.a.init();const t=f.a.getFirstBrowserLanguage().languageCode,i=f.a.getDefaultLanguage().languageCode,s=f.a.allSupportedLanguages.includes(t),l=f.a.getLanguage();if(s&&t!==i&&l===i){const e="/"===window.location.pathname?"":window.location.pathname;sessionStorage.getItem("rs:summitpm_mrktlofts:visitSiteOnSession")||(window.location.pathname=`/${t}${e}`)}sessionStorage.setItem("rs:summitpm_mrktlofts:visitSiteOnSession","true");const d=new o.a.Store({modules:Object.assign({},this.storeModules)}),p=yield this.router.init();n.default.use(r.b,{bootstrap:!1},p),n.default.config.productionTip=!1,d.dispatch("site/setSite"),d.dispatch("client/setClient");const h=this.getConfig();return h&&c.b(h),O.a.setStoragePath(null==h?void 0:h.assetHost,null==h?void 0:h.env,null==h?void 0:h.siteKey,null===(e=u.a.getClient())||void 0===e?void 0:e.clientKey),n.default.prototype.$client=u.a.getClient(),n.default.prototype.$site=u.a.getSite(),n.default.config.ignoredElements=["floorplan-navigator"],{store:d,router:p}}))}install(e){e.prototype.$assets=this.helpers.assets,e.prototype.$genericHelpers=this.helpers.generic,e.prototype.$dateTimeHelpers=this.helpers.dateTime,e.prototype.$textHelpers=this.helpers.text,e.prototype.$translationHelpers=this.helpers.translations,e.prototype.$schemaHelpers=this.helpers.schema,e.prototype.$dataHelpers=this.helpers.data,e.prototype.$collections=Ae.a,e.prototype.$rs=Object.assign(Object.assign({},this.rentsyncApiFunctions),{api:this.rentsyncApiFunctions,assets:this.helpers.assets,genericHelpers:this.helpers.generic,config:this.helpers.config,dateTimeHelpers:this.helpers.dateTime,textHelpers:this.helpers.text,translationHelpers:this.helpers.translations,schemaHelpers:this.helpers.schema,dataHelpers:this.helpers.data,collections:Ae.a})}}}}]);