function setParallax(){window.innerWidth!=="undefined"&&window.innerWidth>1200?typeof jarallax!="undefined"&&jarallax(document.querySelectorAll(".jarallax-pic"),{imgElement:"picture"}):jQuery(".parallax-cnr picture").removeAttr("style")}Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-backtotop");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{showBacktoTop:!1},methods:{backToTop:function(){var n=document.querySelector(".vue-header"),t;n&&(t={easing:"ease-in-out"},VueScrollTo.scrollTo(n,500,t))},handleBackToTop:function(){var n=Lennar.Vue.Utils.GetScrollTop();this.showBacktoTop=n>750}},mounted:function(){this.Debounce=Lennar.Vue.Utils.Debounce(function(){this.handleBackToTop()}.bind(this),300,!1);window.addEventListener("scroll",this.Debounce)},beforeDestroy:function(){window.removeEventListener("scroll",this.Debounce)}})})},"backtotop");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-blog");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{feedlimit:0,feedUrls:null,feedsUrlLevels:null,maxBodyLength:0,maxTitleLength:0,showDate:!1,dateFormatString:"",showMoreText:"",feedsRecieved:0,numPendingReqs:0,theFeeds:[],linkPosts:"",posts:[]},methods:{load:function(){for(var i=this.feedsUrlLevels.shift(),n=i.split("|"),t;this.feedsRecieved<this.feedlimit&&n.length>0;)t=n.shift(),this.numPendingReqs++,axios.post("/Services/Rest/Dashboard.svc/GetFeeds",{url:t}).then(function(t){this.coalateFeed(t);this.numPendingReqs--;(this.feedsRecieved>this.feedlimit||n.length==0)&&this.displayfeeds();this.numPendingReqs==0&&this.$nextTick(function(){this.truncateText()});return}.bind(this)).catch(function(n){console.log(n)})},close:function(){this.show=!1},coalateFeed:function(n){n=JSON.parse(n.data);n.error||(this.theFeeds=this.theFeeds.concat(n.entries),this.theFeeds=this.unique(this.theFeeds),this.linkPosts=n.linkFeed,this.feedsRecieved=this.theFeeds.length)},unique:function(n){var i=[],r=n.length,u={},t;if(r>1){for(t=0;t<r;t++)typeof u[n[t].publishedDate]=="undefined"&&(u[n[t].publishedDate]=t,i.push(n[t]));return i}return n},displayfeeds:function(){var r="",t="",i,n,u,f;for(this.theFeeds.sort(function(n,t){return Date.parse(t.publishedDate)-Date.parse(n.publishedDate)}),i=0;i<this.feedlimit&&i<this.theFeeds.length;i++)n=this.theFeeds[i],n.description&&n.description.length>0?(t=n.description,r=t.replace(/(<([^>]+)>)/ig,"")):(t=n.content,r=t.replace(/(<([^>]+)>)/ig,"")),n.content=r,u="/Images/relaunch/DefaultBlogImage.jpeg",f=/<img[^>]+src="([^">]+)"/.exec(t),f!=null&&(u=f[1]),n.publishedDate=new Date(n.publishedDate).format(this.dateFormatString),n.image=u;this.posts=this.theFeeds.slice(0,this.feedlimit)},truncateText:function(){var n=this.$el.getElementsByClassName("clampthetext");for(i=0;i<n.length;i++)n[i].style="",$clamp(n[i],{clamp:"auto"});this.$nextTick(function(){for(i=0;i<n.length;i++)$clamp(n[i],{clamp:"auto"})})}},mounted:function(){this.feedurlsList=this.$el.dataset.feedurl;this.feedlimit=Number(this.$el.dataset.feedlimit);this.maxTitleLength=Number(this.$el.dataset.maxtitlelength);this.maxBodyLength=Number(this.$el.dataset.maxbodylength);this.showDate=this.$el.dataset.showdate=="True";this.dateFormatString=this.$el.dataset.dateformat;this.feedsUrlLevels=this.feedurlsList.split("!");this.feedsUrlLevels.length>0&&this.load();this.deb=Lennar.Vue.Utils.Debounce(this.truncateText,100,!1);window.addEventListener("resize",this.deb);this.$nextTick(function(){this.truncateText()})}})})},"VueBlog");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-category-card");Array.prototype.forEach.call(n,function(n){new Vue({el:n,components:{"tiny-slider":VueTinySlider},methods:{playVideo:function(n,t){this.$refs.videoModal.openVideoModal(n,t)},truncateText:function(){var n=this.$el.getElementsByClassName("clampthetext");for(i=0;i<n.length;i++)n[i].style="",$clamp(n[i],{clamp:"auto"});this.$nextTick(function(){for(i=0;i<n.length;i++)$clamp(n[i],{clamp:"auto"})})}},mounted:function(){this.deb=Lennar.Vue.Utils.Debounce(this.truncateText,100,!1);window.addEventListener("resize",this.deb);this.$nextTick(function(){this.truncateText()})},beforeDestroy:function(){window.removeEventListener("resize",this.deb)}})})},"CategoryCard");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-community-details");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{collection:0,mapTabActive:!1,nearbyCommunityId:0,nearbyRadius:0,lat:0,long:0,activeNearbyCat:null,pois:{},nearbyComms:[],ammenityTabActive:!1,schoolTabActive:!1,activeAmenityCollection:0,activeServicesCollection:1,activeSchoolsCollection:1,showPOIList:!0,tooltips:[],isMobile:Lennar.Vue.Utils.IsMobile(),address:null,showVisitTooltip:!1},components:{"tiny-slider":VueTinySlider},computed:{nearbyPOIs:function(){return this.activeNearbyCat?this.pois[this.activeNearbyCat]:{items:[]}}},methods:{onTabChange:function(n){if(n==this.$refs.nearbyTab&&!this.mapTabActive){this.mapTabActive=!0;this.activeNearbyCat="schools";this.getWhatsNearbyPOIs()}this.ammenityTabActive=n==this.$refs.tabAmenity;this.schoolTabActive=n==this.$refs.tabSchool;n==this.$refs.overviewTab&&this.$refs.overviewRM.refresh()},getWhatsNearbyPOIs:function(){if(!this.pois[this.activeNearbyCat]){this.$set(this.pois,this.activeNearbyCat,{loading:!0,items:[]});var n={CommunityId:this.nearbyCommunityId,Location:{lat:this.lat,lng:this.long},Radius:this.nearbyRadius,RemoveBannedPlaces:!0,Types:this.getPOITypes(this.activeNearbyCat),VisitId:0};axios.post("/Services/Rest/PointsOfInterests.svc/SearchPlaces",n).then(function(n,t){t&&t.data&&t.data.s==="OK"&&(this.pois[n].loading=!1,this.$set(this.pois[n],"items",t.data.d.map(function(n){return{lat:n.g.l.lat,long:n.g.l.lng,name:n.n,distance:n.d.toFixed(2),id:n.place_id,address:n.ad}}.bind(this))))}.bind(this,this.activeNearbyCat)).catch(function(n){console.log(n)})}},onPOITabChange:function(n){this.activeNearbyCat=n;this.getWhatsNearbyPOIs();this.showPOIList=!0},onPOITabChangeMobile:function(n){this.activeNearbyCat=n;this.getWhatsNearbyPOIs()},getPOITypes:function(n){switch(n){case"schools":return["library","school","university"];case"food":return["bakery","cafe","meal_delivery","meal_takeaway","restaurant"];case"health":return["dentist","doctor","gym","hospital","pharmacy","physiotherapist","veterinary_care"];case"recreation":return["amusement_park","aquarium","art_gallery","bowling_alley","campground","movie_theater","museum","park","stadium","zoo"];case"services":return["city_hall","courthouse","fire_station","local_government_office","police, post_office"];case"shopping":return["bicycle_store","book_store","book_store","clothing_store","department_store","electronics_store","furniture_store","hardware_store","home_goods_store","jewelry_store","pet_store","shoe_store","shopping_mall","store"];case"transit":return["airport,bus_station,car_rental,moving_company,parking,subway_station,taxi_stand,train_station"];case"worship":return["church","hindu_temple","mosque","synagogue"];default:return[]}},openMapFlyout:function(n){this.$refs.nearbyMap.openFlyout(n,1,15,!0,150)},getMarkerInfo:function(n){var t=this.nearbyPOIs.items[n];axios.get("/Services/Rest/PointsOfInterests.svc/GetPlaceDetails",{params:{placeid:t.id}}).then(function(n,t){t&&t.data&&t.data.s==="OK"&&(this.nearbyPOIs.items[n].phoneNumber=t.data.d.p?t.data.d.p:" ",this.openMapFlyout(n))}.bind(this,n)).catch(function(n){console.log(n)})},openUrlModal:function(n,t){for(var e=Lennar.Vue.Utils.FindAncestor(n.target,"slider-here"),r=e.getElementsByTagName("img"),u=[],f,i=0;i<r.length;i++)f=this.alterImageWidth(r[i].src,undefined),u.push({src:f});this.$refs.modal.openModal(t,u)},alterImageWidth:function(n,t){return Lennar.Vue.Utils.AddQueryStringToUrl(n,"w",t)},openRfi:function(){Lennar.Vue.Utils.OpenRfiModal(null,null,null,null,null,null,null,!0)},checkQuerystring:function(){var n=Lennar.Vue.Utils.GetQueryStringParameterByName("form");n=="INT"&&this.$refs.intListLink&&this.$refs.intListLink.dataset.isVip==="false"?this.openRfi():n=="VIP"&&this.$refs.intListLink&&this.$refs.intListLink.dataset.isVip==="true"&&this.openRfi()},openTooltip:function(n){for(this.hideTooltipFunc!=null&&this.hideTooltipFunc();this.tooltips.length<=n;)this.tooltips.push(!1);Vue.set(this.tooltips,n,!0);this.$nextTick(function(){this.hideTooltipFunc=this.hideTooltip.bind(this,n);document.addEventListener("click",this.hideTooltipFunc)})},hideTooltip:function(n){Vue.set(this.tooltips,n,!1);document.removeEventListener("click",this.hideTooltipFunc);this.hideTooltipFunc=null},openVisitTT:function(n){this.hideTooltipFunc!=null&&this.hideTooltipFunc();this.$nextTick(function(){this.hideVisitTooltipFunc=this.hideTooltip.bind(this,n);document.addEventListener("click",this.hideTooltipFunc)})},openDirectionsModal:function(n){var t=n.target,u=t.dataset.isDynamic=="true",f=Lennar.Vue.Utils.IsMobile(),i=Lennar.Vue.Utils.IsIOS(),r;u&&(f||i)?(this.address=t.dataset.address,i?this.$refs.selectDirections.show(""):window.open("https://www.google.com/maps/search/?api=1&query="+encodeURI(this.address),"_blank")):(r="/modals/drivingdirections?comid="+(this.collection>0?this.collection:this.nearbyCommunityId),Lennar.Vue.Utils.OpenUrlModal(r,"gen-mdl-form no-bkg-dialog",null,!1,"white-overlay"))},openGoogleMaps:function(){window.open("comgooglemaps://?q="+this.address,"_blank")},openAppleMaps:function(){window.open("maps://?daddr="+this.address,"_blank")},openWaze:function(){window.open("http://waze.to/ul?q="+this.address,"_blank")}},mounted:function(){this.collection=this.$el.dataset.initialCollection;this.nearbyCommunityId=this.$el.dataset.nearbyCommunityId;this.nearbyRadius=this.$el.dataset.nearbyRadius;this.lat=this.$el.dataset.nearbyLat;this.long=this.$el.dataset.nearbyLong;this.nearbyComms=_commDetailsInfo;this.checkQuerystring()}})})},"CommunityDetails");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-container");Array.prototype.forEach.call(n,function(n){Lennar.Vue.Utils.VueInstances.push(new Vue({el:n,components:{"tiny-slider":VueTinySlider},data:{isMobile:Lennar.Vue.Utils.IsMobile()}}))})},"VueContainer");Lennar.WinReady(function(){var n=document.querySelectorAll(".vue-container-win");Array.prototype.forEach.call(n,function(n){Lennar.Vue.Utils.VueInstances.push(new Vue({el:n,components:{"tiny-slider":VueTinySlider},data:{isMobile:Lennar.Vue.Utils.IsMobile()}}))})},"VueContainerWin");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-faq");Array.prototype.forEach.call(n,function(n){var t=n.querySelectorAll("li"),i=Array.prototype.map.call(t,function(){return{visible:!1}});new Vue({el:n,data:{faqs:i},methods:{toggleFaq:function(n){this.faqs[n].visible=!this.faqs[n].visible}}})})},"VueFAQ");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-footer");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{isLoggedIn:Lennar.Global.actorStatus>0,showAboutUs:!1,showProductsAndServices:!1,showFollowUs:!1,showMyLennar:!1},methods:{toggleAboutUs:function(){this.showAboutUs=!this.showAboutUs},toggleProductsAndServices:function(){this.showProductsAndServices=!this.showProductsAndServices},toggleFollowUs:function(){this.showFollowUs=!this.showFollowUs},toggleMyLennar:function(){this.showMyLennar=!this.showMyLennar}}})})});Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-header");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{isLoggedIn:Lennar.Global.actorStatus>0,userName:Lennar.Global.userFirstName,fullName:Lennar.Global.userFirstName+" "+Lennar.Global.userLastName,userPhase:Lennar.Global.userPhase,showStickyHeader:!1,showUpHeader:!0,scrollTop:0,showMobileMenu:!1,showMobileMenuWrap:!1,showMobileSearch:!1,showMobileSearchWrap:!1,mobileSearchOpen:!1,showAboutUs:!1,showMyLennar:!1,showResources:!1,showFavorites:!1,showSetUpServices:!1,showMyAccount:!1,showProductsAndServices:!1,showLoginMenu:!1,showLoginMenuMobile:!1,loginMenuIndex:-1,showDesktopAbout:!1,showDesktopProds:!1,isMastheadRfiPresent:!1,disableRFI:!1,width:0,isFindAHome:!1},computed:{forceStickyHeader:function(){return this.width<768&&this.isFindAHome}},methods:{openSignInModal:function(){this.closeMobileMenu();Lennar.Global.openSignInModal()},signOut:function(){Lennar.Global.logoutUser()},openFindHomeModal:function(){Lennar.Vue.Utils.OpenUrlModal("/modals/findhome","gen-mdl-form no-bkg-dialog")},openRfi:function(){Lennar.Vue.Utils.OpenRfiModal()},openMobileMenu:function(){this.showMobileMenu=!0;this.showMobileMenuWrap=!0},openLoginMenu:function(){this.showLoginMenu=!0},hideLoginMenu:function(n){n&&Lennar.Vue.Utils.IsChildOf(this.$refs.loginWrapper,n.target)||(this.showLoginMenu=!1,this.loginMenuIndex=-1,document.removeEventListener("click",this.hideLoginMenu))},afterLoginMenuOpen:function(){document.addEventListener("click",this.hideLoginMenu)},loginMenuEnter:function(){this.loginMenuOpen?this.loginMenuIndex==-1?this.hideLoginMenu():this.loginMenuIndex==0?this.openMyLennarDashboard():this.loginMenuIndex==1&&this.signOut():this.openLoginMenu()},loginMenuDown:function(){this.loginMenuOpen?this.loginMenuIndex=(this.loginMenuIndex+1)%2:this.openLoginMenu()},loginMenuUp:function(){this.loginMenuOpen&&this.loginMenuIndex!=-1&&(this.loginMenuIndex=(this.loginMenuIndex-1)%2)},openMyLennarDashboard:function(){window.location.href="/mylennar/dashboard"},openDesktopAboutMenu:function(){this.hideDesktopProdsMenu();this.showDesktopAbout=!0;document.addEventListener("mousemove",this.hideDesktopAboutMenu)},hideDesktopAboutMenu:function(n){n&&(Lennar.Vue.Utils.IsChildOf(this.$refs.menuWrapper,n.target)||Lennar.Vue.Utils.IsChildOf(this.$refs.aboutMenu,n.target))||(this.showDesktopAbout=!1,document.removeEventListener("mousemove",this.hideDesktopAboutMenu))},openDesktopProdsMenu:function(){this.hideDesktopAboutMenu();this.showDesktopProds=!0;document.addEventListener("mousemove",this.hideDesktopProdsMenu)},hideDesktopProdsMenu:function(n){n&&(Lennar.Vue.Utils.IsChildOf(this.$refs.menuWrapper,n.target)||Lennar.Vue.Utils.IsChildOf(this.$refs.prodsMenu,n.target))||(this.showDesktopProds=!1,document.removeEventListener("mousemove",this.hideDesktopProdsMenu))},openMobileSearch:function(){this.showMobileSearch=!0;this.showMobileSearchWrap=!0},hideMobileSearch:function(n){Lennar.Vue.Utils.IsChildOf(this.$refs.searchWrapper,n.target)||(this.showMobileSearch=!1,this.mobileSearchOpen=!1,document.removeEventListener("click",this.hideMobileSearch))},afterSearchOpen:function(){this.mobileSearchOpen=!0;document.addEventListener("click",this.hideMobileSearch)},afterSearchClose:function(){this.showMobileSearchWrap=!1},closeMobileMenu:function(){this.showMobileMenu=!1},afterMenuClose:function(){this.showMobileMenuWrap=!1},toggleAboutUs:function(){this.showAboutUs=!this.showAboutUs},toggleResources:function(){this.showResources=!this.showResources},toggleFavorites:function(){this.showFavorites=!this.showFavorites},toggleMyLennar:function(){this.showMyLennar=!this.showMyLennar},toggleLoginMenuMobile:function(){this.showLoginMenuMobile=!this.showLoginMenuMobile},toggleSetUpServices:function(){this.showSetUpServices=!this.showSetUpServices},toggleMyAccount:function(){this.showMyAccount=!this.showMyAccount},toggleProductsAndServices:function(){this.showProductsAndServices=!this.showProductsAndServices},handleScroll:function(){var n=Lennar.Vue.Utils.GetScrollTop();n!==this.scrollTop&&(this.showStickyHeader=n>this.scrollTop&&n>450,this.showUpHeader=!this.showStickyHeader,document.activeElement.parentElement.classList.contains("header-typeaheadsearch")&&document.activeElement.blur(),this.showUpHeader||this.isMastheadRfiPresent&&this.disableRFI&&n>1e3&&Lennar.Vue.Utils.EventBus.$emit("close-masthead-rfi"),this.scrollTop=n)},onMouseDown:function(n){if(this.preventClick=!1,!this.isMouseDown){var t=Lennar.Vue.Utils.GetClientX(n);this.isMouseDown=!0;this.lastClientX=t;this.initialClientX=t;this.currentX=this.currentX||0;this.maxX=0;n.touches||n.preventDefault()}},onMouseMove:function(n){var t=Lennar.Vue.Utils.GetClientX(n);this.isMouseDown&&(Math.abs(t-this.initialClientX)>3&&(this.isMouseDragging=!0,this.currentX=Math.min(this.maxX,Math.max(this.minX,this.currentX+(t-this.lastClientX))),this.lastClientX=t),n.touches||n.preventDefault())},onMouseUp:function(n){this.isMouseDown&&(this.isMouseDown=!1);this.isMouseDragging&&(this.isMouseDragging=!1,this.preventClick=!0,n.preventDefault())},onMouseClick:function(n){this.preventClick&&(n.preventDefault(),this.preventClick=!1)},setHeightAndWidth:function(){this.width=window.innerWidth;this.width<=767?this.$el.style.removeProperty("height"):this.$el.style.height=this.$el.querySelector(".deskheader").clientHeight+"px"},openMastheadRFIModal:function(){this.isMastheadRfiPresent?this.disableRFI||Lennar.Vue.Utils.EventBus.$emit("open-masthead-rfi"):this.openRfi()},mastheadRfiOpened:function(){this.disableRFI=!0},mastheadRfiClosed:function(){this.disableRFI=!1},mastheadRfiPresent:function(){this.isMastheadRfiPresent=!0},refreshUserStatus:function(){Lennar.Global.actorStatus>0&&axios.get("/Services/Rest/Profile.svc/GetUserProfile").then(function(n){if(n&&n.data){var t=JSON.parse(n.data);t.FirstName&&(Lennar.Global.userFirstName=t.FirstName,Lennar.Global.userLastName=t.LastName,Lennar.Global.userPhase=t.Phase);this.isLoggedIn=Lennar.Global.actorStatus>0;this.userName=Lennar.Global.userFirstName;this.fullName=Lennar.Global.userFirstName+" "+Lennar.Global.userLastName;this.userPhase=Lennar.Global.userPhase}}.bind(this)).catch(function(n){console.log(n)})}},mounted:function(){this.setHeightAndWidth();this.isFindAHome=this.$el.dataset.isFindHome==="true";this.$el.dataset.showStickyHeaderAnimation&&this.$el.dataset.showStickyHeaderAnimation==="True"?window.addEventListener("scroll",this.handleScroll):document.querySelector(".vue-header").classList.add("no-animation");var n=Lennar.Vue.Utils.GetQueryStringParameterByName("form");n==="rfiform"&&this.openRfi();Lennar.Vue.Utils.EventBus.$on("masthead-rfi-opened",this.mastheadRfiOpened);Lennar.Vue.Utils.EventBus.$on("masthead-rfi-closed",this.mastheadRfiClosed);Lennar.Vue.Utils.EventBus.$on("masthead-rfi-present",this.mastheadRfiPresent);Lennar.Vue.Utils.EventBus.$on("user-logged-in",this.refreshUserStatus);window.addEventListener("scroll",this.handleBackToTop);window.addEventListener("mousemove",this.onMouseMove);window.addEventListener("touchmove",this.onMouseMove);window.addEventListener("mouseup",this.onMouseUp);window.addEventListener("touchend",this.onMouseUp);window.addEventListener("click",this.onMouseClick);window.addEventListener("resize",this.setHeightAndWidth)},beforeDestroy:function(){this.$el.dataset.showStickyHeaderAnimation&&this.$el.dataset.showStickyHeaderAnimation==="True"&&window.removeEventListener("scroll",this.handleScroll);window.removeEventListener("scroll",this.handleBackToTop);window.removeEventListener("mousemove",this.onMouseMove);window.removeEventListener("touchmove",this.onMouseMove);window.removeEventListener("mouseup",this.onMouseUp);window.removeEventListener("touchend",this.onMouseUp);window.removeEventListener("click",this.onMouseClick);window.removeEventListener("resize",this.setHeightAndWidth)}})})},"Header");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-horizontal-carousel");Array.prototype.forEach.call(n,function(n){new Vue({el:n,components:{"tiny-slider":VueTinySlider},methods:{playVideo:function(n,t){this.$refs.videoModal.openVideoModal(n,t)}}})})},"HorizontalCategoryCarousel");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-isc");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{isMobile:Lennar.Vue.Utils.IsMobile()},methods:{openRfi:function(){Lennar.Vue.Utils.OpenRfiModal()}}})})},"VueISC");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-lennar-topics");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{},computed:{},methods:{loadEvents:function(){if(document.querySelectorAll&&document.querySelector){var n=document.querySelectorAll('.len-tpc a[href^="#"]');Array.prototype.forEach.call(n,function(n){var t=document.querySelector(n.getAttribute("href"));t?n.addEventListener&&n.addEventListener("click",function(t){var i=document.querySelector(n.getAttribute("href")),r;i&&(t.preventDefault(),r={easing:"ease-in-out",offset:-65},VueScrollTo.scrollTo(i,500,r))}):n.parentElement.parentElement.removeChild(n.parentElement)})}}},mounted:function(){this.loadEvents()}})})},"AnimateTopicAnchors");Lennar.WinReady(function(){var n=document.querySelectorAll(".vue-len-builds");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{stateGroups:null,stateCount:0,isBuildsVisible:!1,isLoading:!1},methods:{toggleBuilds:function(){this.isBuildsVisible=!this.isBuildsVisible},loadStates:function(){var n=this;axios.get("/Services/Rest/SearchMethods.svc/GetStatesAndMarkets").then(function(t){if(t&&t.data){n.stateCount=t.data.sts.length;var r=2.5,i=Math.floor((t.data.ct+n.stateCount*r)/3);n.stateGroups=n.divideRows(t.data.sts,i,r);n.stateGroups>3&&(i=Math.floor((t.data.ct+n.stateCount)/3),n.stateGroups=n.divideRows(t.data.sts,i,1))}n.isLoading=!1}).catch(function(t){console.log(t);n.isLoading=!1})},divideRows:function(n,t,i){var o=[],e=0,f=0,r={states:[]},u,s;for(o.push(r);e<n.length;)u=n[e],s=f+u.mks.length+Math.max(0,(r.states.length-1)*i),s>=t?f>0?(f=0,r={states:[]},o.push(r)):(r.states.push(u),f+=u.mks.length,++e):(r.states.push(u),f+=u.mks.length,++e);return o}},mounted:function(){this.isLoading=!0;this.loadStates()}})})},"LennarBuilds");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-markets-list");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{showFullHeight:!1,areMarketsVisible:!1},methods:{toggleLocations:function(){this.areMarketsVisible=!this.areMarketsVisible}},mounted:function(){this.$el.dataset.showFullHeight&&this.$el.dataset.showFullHeight==="True"&&(this.showFullHeight=!0,this.areMarketsVisible=!0)}})})},"MarketsList");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-masthead-carousel");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{mastheadItems:null,galleryImagesItems:null,item:0,pageNumber:1,showMastheadRfi:!1,showSpecialOffer:!1},components:{"tiny-slider":VueTinySlider},computed:{displayItemsCount:function(){return this.mastheadItems==null?0:this.mastheadItems.length>=9?8:this.mastheadItems.length<=8&&this.mastheadItems.length>=7?7:this.mastheadItems.length<=6?this.mastheadItems.length:void 0},computedThumbnailClass:function(){return"w_126_"+this.displayItemsCount},pageCount:function(){return this.mastheadItems==null?0:this.mastheadItems.length}},methods:{handleTSClick:function(n){n&&n.target&&(Lennar.Vue.Utils.HasClass(n.target,"the-360-btn")?this.openUrlModal(n.target.dataset.url):Lennar.Vue.Utils.HasClass(n.target,"vdo-ply-btn")?this.playVideo(n.target.dataset.url):Lennar.Vue.Utils.HasClass(n.target,"splofflink")&&this.openToast())},playVideo:function(n,t){this.$refs.videoModal.openVideoModal(n,t)},openUrlModal:function(n){Lennar.Vue.Utils.OpenUrlModal(n,"gen-mdl-video")},onInit:function(n){Lennar.Vue.Utils.AddClass(n.slideItems[n.index],"center-active")},onParentPeekaBooIndexChanged:function(n){for(var t=0;t<n.slideItems.length;t++)Lennar.Vue.Utils.RemoveClass(n.slideItems[t],"center-active");Lennar.Vue.Utils.AddClass(n.slideItems[n.index],"center-active");this.pageNumber=n.displayIndex},onParentIndexChanged:function(n){for(var i,t=0;t<n.slideItems.length;t++)Lennar.Vue.Utils.RemoveClass(n.slideItems[t],"center-active");Lennar.Vue.Utils.AddClass(n.slideItems[n.index],"center-active");this.$refs.thumbs.goTo(n.index);i=this.$refs.thumbs.getIndex();i!=n.index&&this.$refs.thumbs.goTo(n.index)},onThumbsIndexChanged:function(n){var t=this.$refs.masthead.getIndex();t!=n.index&&this.$refs.masthead.goTo(n.index)},getMastheadImages:function(){typeof _mastheadItems!="undefined"&&(this.mastheadItems=_mastheadItems,typeof _galleryImagesItems!="undefined"&&(this.galleryImagesItems=this.mastheadItems.concat(_galleryImagesItems)))},openGalleryView:function(){this.$refs.modal.openModal(this.$refs.masthead.getIndex()-1,this.galleryImagesItems)},closeMastheadRfi:function(){this.showMastheadRfi=!1;Lennar.Vue.Utils.EventBus.$emit("masthead-rfi-closed")},openToast:function(){this.showSpecialOffer=!1;Lennar.Vue.Utils.EventBus.$emit("show-toast")},toastClosed:function(){this.showSpecialOffer=!0},openMastheadRfi:function(){this.showMastheadRfi=!0;Lennar.Vue.Utils.EventBus.$emit("masthead-rfi-opened")},addQsParams:function(n,t){return n.indexOf("?")>=0?n+"&"+t:n+"?"+t},positionGalleryView:function(){var n=this.$el.getElementsByClassName("btm"),t;n.length!=0&&(n=n[0],t=window.innerWidth<768,t?(n.style.bottom="24px",n.style.position="absolute"):window.pageYOffset+window.innerHeight>parseInt(getComputedStyle(document.querySelector("header")).height.replace("px",""))+parseInt(getComputedStyle(document.querySelector(".msthd-crsl")).height.replace("px",""))+document.getElementsByClassName("msthd-crsl")[0].offsetTop?(n.style.bottom="35px",n.style.position="absolute"):(n.style.bottom="60px",n.style.position="fixed"))}},mounted:function(){this.getMastheadImages();Lennar.Vue.Utils.EventBus.$on("open-masthead-rfi",this.openMastheadRfi);Lennar.Vue.Utils.EventBus.$on("close-masthead-rfi",this.closeMastheadRfi);Lennar.Vue.Utils.EventBus.$on("toast-closed",this.toastClosed);this.Debounce=Lennar.Vue.Utils.Debounce(function(){this.positionGalleryView()}.bind(this),300,!1);window.addEventListener("scroll",this.Debounce);window.addEventListener("resize",this.Debounce);this.$nextTick(function(){this.$refs.innerRfi&&Lennar.Vue.Utils.EventBus.$emit("masthead-rfi-present");(Lennar.Vue.Utils.GetQueryStringParameterByName("openrfi")=="1"||Lennar.Vue.Utils.GetQueryStringParameterByName("form")=="openrfi")&&this.openMastheadRfi();this.positionGalleryView()})},beforeDestroy:function(){window.removeEventListener("scroll",this.Debounce);window.removeEventListener("resize",this.Debounce)}})})},"VueMastheadCarousel");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-masthead-one-image");Array.prototype.forEach.call(n,function(n){new Vue({el:n,methods:{playVideo:function(n,t){this.$refs.videoModal.openVideoModal(n,t)}}})})},"MastheadImageAndLogo");Lennar.DocReady(function(){setParallax()});Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-plan-overview");Array.prototype.forEach.call(n,function(n){Lennar.Vue.Utils.VueInstances.push(new Vue({el:n,data:{isMobile:Lennar.Vue.Utils.IsMobile(),showVisitTooltip:!1,type:"",id:0,communityId:0},methods:{openModsyModal:function(n){Lennar.Vue.DataLayer.Event("roomDesigner");Lennar.Vue.Utils.OpenUrlModal(n,"immersion-mdl")},openEstimatedPaymentModal:function(){Lennar.Vue.DataLayer.Event("estimatePayment");var n=null;Lennar.Global.actorStatus===0&&(n=function(){Lennar.Global.actorStatus!==0&&window.location.reload()});this.type=="p"?Lennar.Vue.Utils.OpenUrlModal("/modals/EstimatedMonthlyPayment?planid="+this.id,"gen-mdl-form",n):this.type=="h"&&Lennar.Vue.Utils.OpenUrlModal("/modals/EstimatedMonthlyPayment?availid="+this.id,"gen-mdl-form",n)},openDirectionsModal:function(n){var t=n.target,u=t.dataset.isDynamic=="true",f=Lennar.Vue.Utils.IsMobile(),i=Lennar.Vue.Utils.IsIOS(),r;u&&(f||i)?(this.address=t.dataset.address,i?this.$refs.selectDirections.show(""):window.open("https://www.google.com/maps/search/?api=1&query="+encodeURI(this.address),"_blank")):(r="/modals/drivingdirections?comid="+this.communityId,Lennar.Vue.Utils.OpenUrlModal(r,"gen-mdl-form no-bkg-dialog",null,!1,"white-overlay"))},openGoogleMaps:function(){window.open("comgooglemaps://?q="+this.address,"_blank")},openAppleMaps:function(){window.open("maps://?daddr="+this.address,"_blank")},openWaze:function(){window.open("http://waze.to/ul?q="+this.address,"_blank")}},mounted:function(){this.type=this.$el.dataset.type;this.id=this.$el.dataset.id;this.communityId=this.$el.dataset.communityId;Lennar.Vue.Utils.GetQueryStringParameterByName("form")=="estmonpay"&&this.openEstimatedPaymentModal()}}))})},"VuePlanOverview");Lennar.WinReady(function(){var n=document.querySelectorAll(".len-spbk");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{isLoggedIn:Lennar.Global.actorStatus>0,homeownerPhotos:null,homeownerPhotosRaw:null,scrapbookPhotos:null,scrapbookPhotosRaw:null,isHomeOwnersActive:!1,isScrapbookActive:!0,hasScrapbookResults:!1,isLoading:!0,initialX:0,initialY:0,hoServiceParams:{pageNumber:1,pageSize:100,mostrecent:0,oldest:0,category:0},sbServiceParams:{pageNumber:1,pageSize:100}},components:{"tiny-slider":VueTinySlider},created:function(){this.isLoggedIn?(this.loadScrapbookPhotos(),this.loadHomeOwnersPhotos()):(this.isHomeOwnersActive=!0,this.isScrapbookActive=!1,this.loadHomeOwnersPhotos())},methods:{selectHomeOwnersPhotos:function(){this.isHomeOwnersActive=!0;this.isScrapbookActive=!1;this.loadHomeOwnersPhotos()},selectScrapbookPhotos:function(){this.isScrapbookActive=!0;this.isHomeOwnersActive=!1;this.loadScrapbookPhotos()},loadHomeOwnersPhotos:function(){var n=this;n.homeownerPhotos==null&&axios.get("/Services/Rest/Scrapbook.svc/GetPublicScrapBooks",{params:this.hoServiceParams}).then(function(t){t&&t.data&&t.data.s?(n.homeownerPhotos=n.groupPhotos(t.data.s),n.homeownerPhotosRaw=n.cleanPhotos(t.data.s),n.homeownerPhotos&&n.homeownerPhotos.length==0&&n.selectScrapbookPhotos()):(isScrapbookActive=!0,isHomeOwnersActive=!1);n.isLoading=!1}).catch(function(t){console.log(t);n.isLoading=!1})},loadScrapbookPhotos:function(){var n=this;n.scrapbookPhotos==null&&axios.get("/Services/Rest/Scrapbook.svc/GetMyPublicScrapBook",{params:this.sbServiceParams}).then(function(t){t&&t.data&&t.data.s&&(n.scrapbookPhotos=n.groupPhotos(t.data.s),n.scrapbookPhotosRaw=n.cleanPhotos(t.data.s),n.scrapbookPhotosRaw&&n.scrapbookPhotosRaw.length>0?n.hasScrapbookResults=!0:this.isLoggedIn||(isHomeOwnersActive=!0,isScrapbookActive=!1));n.isLoading=!1}).catch(function(t){console.log(t);n.isLoading=!1})},groupPhotos:function(n){for(var u=[],t=0,r=0,i={};t<n.length;)if(n[t].up)if(r<3){switch(r){case 0:u.push(i);i.first=n[t];break;case 1:i.second=n[t];break;case 2:i.third=n[t]}r++;t++}else r=0,i={};else t++;return u},cleanPhotos:function(n){for(var i=[],t=0;t<n.length;)n[t].up&&i.push(n[t]),t++;return i},onMouseUp:function(n,t){Math.abs(this.initialX-event.screenX)<=5&&Math.abs(this.initialY-event.screenY)<=5&&this.$refs.modal.openModal(n,t)},onMouseDown:function(){this.initialX=event.screenX;this.initialY=event.screenY},onKeyEnter:function(n,t){this.$refs.modal.openModal(n,t)},openSignInModal:function(){Lennar.Global.openSignInModal()},openCreateAccountModal:function(){Lennar.Global.openAccountModal()}}})})},"VueScrapbook");Lennar.DocReady(function(){var n=document.querySelectorAll(".ilovelennar-section");Array.prototype.forEach.call(n,function(n){new Vue({el:n,components:{},methods:{openURLModal:function(n){Lennar.Vue.Utils.OpenUrlModal(n,"gen-mdl-img ilovelennar",null,!0)},playVideo:function(n,t){this.$refs.videoModal.openVideoModal(n,t)}}})})},"SocialNetworkImageList");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-terms");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{currentVersion:null,savedVersion:null},computed:{showTerms:function(){return this.currentVersion!==this.savedVersion}},methods:{close:function(){this.savedVersion=this.currentVersion;Lennar.Vue.Utils.SetCookie("accepted_terms",this.currentVersion,1e3)}},mounted:function(){setTimeout(function(){this.savedVersion=Lennar.Vue.Utils.GetCookie("accepted_terms",null);this.currentVersion=this.$el.dataset.terms}.bind(this),3e3)}})})},"VueTerms");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-three-column-card");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{},methods:{handleClick:function(n){var i=n.target,t={};t.name=i.innerText;Lennar.Vue.DataLayer.Event("sstoSelected",t)}}})})},"VueThreeColumnCard");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-thumb-carousel");Array.prototype.forEach.call(n,function(n){new Vue({el:n,components:{"tiny-slider":VueTinySlider},methods:{openMapModal:function(){Lennar.Vue.Utils.OpenUrlModal("/common/SvgMapSearch.aspx","gen-mdl-form no-bkg-dialog mapModal")},playVideo:function(n,t){this.$refs.videoModal.openVideoModal(n,t)}}})})},"ThumbnailCarousel");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-toast-message");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{show:!1,msg:"",img:""},methods:{load:function(n){axios.post("/Services/Rest/profile.svc/GetToastMessage",{id:n}).then(function(n){n&&n.data&&(this.msg=n.data.msg,this.img=n.data.img,Lennar.Vue.DataLayer.Event("popoverBanner",{name:n.data.name}),this.$nextTick(function(){this.show=!0}))}.bind(this)).catch(function(n){console.log(n)})},open:function(){this.show=!0},close:function(){this.show=!1;Lennar.Vue.Utils.EventBus.$emit("toast-closed")}},mounted:function(){Lennar.Vue.Utils.EventBus.$on("show-toast",this.open);var n=this.$el.dataset.itemId;n&&setTimeout(function(){this.load(n)}.bind(this),0)}})})},"ToastMessage");Lennar.DocReady(function(){var n=document.querySelectorAll(".vue-two-column-card");Array.prototype.forEach.call(n,function(n){new Vue({el:n,data:{isLoggedIn:Lennar.Global.actorStatus>0,showSeeMorebutton:!0,isFirstBatch:!0,nextIndex:0,nextGenSuccessStories:[],nextGenSuccessStoriesCount:0,isFetchingNextGenSuccessStories:!1},components:{"tiny-slider":VueTinySlider},methods:{openURLModal:function(n){Lennar.Vue.Utils.OpenUrlModal(n,"gen-mdl-img gen-mdl-plusbtn",null,!0)},openSignInModal:function(){Lennar.Global.openSignInModal()},getNextGenSuccessStories:function(){var n=this,t;this.showSeeMorebutton=!1;this.isFetchingNextGenSuccessStories=!0;t=3;axios.get("/Services/Rest/TwoColumnCard.svc/GetNextGenSuccesStories?nextIndex="+this.nextIndex+"&itemsToFetch="+t,{headers:{"Content-Type":"application/json"}}).then(function(t){var r,i,u;if(t&&t.data){for(n.nextIndex=t.data.nextIndex,r=t.data.items,i=0;i<r.length;i++)u=r[i],n.nextGenSuccessStories.push(u);n.isFirstBatch=!1;n.isFetchingNextGenSuccessStories=!1;n.nextGenSuccessStories.length+3<n.activeNextGenSuccessStoriesCount&&(n.showSeeMorebutton=!0)}}).catch(function(t){n.showSeeMorebutton=!0;n.isFetchingNextGenSuccessStories=!1;console.error(t)})},getActiveNextGenSuccessStoriesCount:function(){axios.get("/Services/Rest/TwoColumnCard.svc/GetActiveNextGenSuccesStoriesCount",{headers:{"Content-Type":"application/json"}}).then(function(n){n&&n.data&&(this.activeNextGenSuccessStoriesCount=n.data)}.bind(this)).catch(function(n){console.error(n)})}},mounted:function(){this.$el.querySelector(".nextGenSuccessStoriesLink")&&(this.$el.querySelector(".nextGenSuccessStoriesLink").addEventListener("click",this.getNextGenSuccessStories),this.nextIndex=this.$refs.nextIndex.value,this.nextGenSuccessStoriesCount=this.$refs.itemsCount.value,this.getActiveNextGenSuccessStoriesCount())}})})},"TwoColumnCard")