PageSourceSearch

https://www.coterieseniorliving.com/_nuxt/rtG6kiOo.js

js coterieseniorliving.com collected 2026-09-29 14:25:33 UTC 5,487 bytes, 1 lines download raw bytes

1import E from"./B0tmTAMK.js";import{_ as $}from"./DnX8g156.js";import Y from"./DzXRGNDs.js";import{m as V}from"./DqjqJOJw.js";import j from"./CgcJoydG.js";import W from"./CwCvJ9JX.js";import{d as H}from"./DhR4oH-R.js";import{d as U,H as G,b as C,e as d,w as z,f as l,i as y,t as F,u as e,l as m,j as x,g as S,F as J,D as K,c as T}from"./CvG0wzej.js";import"./CJ3eqfSw.js";import"./CSSxz1HG.js";import"./NQvUE04U.js";import"./0rkg3YHJ.js";import"./BdMn5CsR.js";import"./ws46tAyU.js";import"./BTY52GvZ.js";import"./dA8TbgX9.js";import"./CUzCvIsG.js";import"./DlKykd6e.js";import"./BQZzJbKK.js";import"./KQsXDnc0.js";import"./a0KI0hBD.js";import"./Cga8d3Ty.js";import"./CM1LkWja.js";import"./DkTjT6lu.js";import"./BHebh01l.js";const Q={class:"residence-filter__section-title"},X={class:"residence-filter__description spacing spacing--is-mb-xxsmall"},Z={class:"residence-filter__radios spacing spacing--is-mb-medium"},ee={key:0,class:"residece-filter__cards"},te={class:"grid"},ae={key:1},oe=U({__name:"CoterieResidenceFilter",props:{...W,communityNumber:{String},sectionTitle:{type:String,default:""},sectionCopy:{type:String,default:""},thankYouTitle:{type:String,default:""},thankYouCopy:{type:String,default:""},slug:{type:String,default:"/luxury-retirement-communities/coterie-hudson-yards-new-york-ny/residence"},careTypes:{type:Array,default:()=>[]},defaultCategoryWhenEmpty:{type:String,default:""},newTab:{type:Boolean,default:!1},hidePrice:{type:Boolean,default:!1}},async setup(s){let h,P;const i=s,u=C({}),b=C([]),R=C([]),{data:B}=([h,P]=G(()=>H(()=>i.communityNumber)),h=await h,P(),h),v=B.value;function D(t){if(t?.hasOwnProperty("digitalAssets")&&t?.digitalAssets?.images?.length){let a=t?.digitalAssets?.images.find(o=>o.isFeatured);return a||(a=t?.digitalAssets?.images[0]),{url:a.url}}return t?.floorPlans?.length?t?.floorPlans[0]:{}}function k(t,a,o="isFeatured"){return t?t?.filter(r=>{let c=!1;return r?.careTypes.forEach(n=>c=a.includes(n)?!0:c),c&&r?.availableToMarket&&r[o]}).map(r=>({...r,residenceImage:D(r),squareFootage:r?.attributes?.find(c=>c.id==="GrossUnitArea")?.value,isModel:v?.isModel})):[]}const I=k(v?.apartments,i.careTypes,"isFeatured"),M=Object.keys(V[i.communityNumber]).map(t=>V[i.communityNumber][t]),O=k(M,i.careTypes,"isHighlighted");b.value=[...I],R.value=[...O];const p=C(A()),_=T(()=>{const a=b.value.filter(o=>p.value==""?o:o.roomType==p.value).sort((o,r)=>o.startingAtPrice-r.startingAtPrice);return a?.length==0&&L(),a}),N=T(()=>({header:i.thankYouTitle,copy:i.thankYouCopy})),w=T(()=>i.careTypes.length===1&&i.careTypes[0]==="Memory Care"),q=t=>t.replace(/[^0-9]/g,""),f=T(()=>A());function L(){const t=R.value.find(a=>a.roomType.includes(p.value)||a.roomType===p.value);u.value=t}function g(t){p.value=t}function A(){return b?.length?"":i.defaultCategoryWhenEmpty}return(t,a)=>{const o=E,r=$,c=Y;return l(),d(j,{className:"residence-filter"},{default:z(()=>[y("h2",Q,F(s.sectionTitle),1),y("p",X,F(s.sectionCopy),1),a[0]||(a[0]=y("h4",{class:"residence-filter__title"},"Bedrooms",-1)),y("div",Z,[e(_).length!==0?(l(),d(o,{key:0,inputType:"radio",label:"All",labelOnLeft:!1,onChange:g,optionValue:"",name:"name",defaultRadioValue:e(f)},null,8,["defaultRadioValue"])):m("",!0),x(o,{inputType:"radio",label:"Studio",labelOnLeft:!1,onChange:g,optionValue:"Studio",defaultRadioValue:e(f),name:"name"},null,8,["defaultRadioValue"]),e(w)?m("",!0):(l(),d(o,{key:1,inputType:"radio",label:"One Bedroom",name:"name",labelOnLeft:!1,onChange:g,defaultRadioValue:e(f),optionValue:"One Bedroom"},null,8,["defaultRadioValue"])),e(w)?m("",!0):(l(),d(o,{key:2,inputType:"radio",label:"Two Bedroom",labelOnLeft:!1,onChange:g,optionValue:"Two Bedroom",defaultRadioValue:e(f),name:"name"},null,8,["defaultRadioValue"])),e(w)?(l(),d(o,{key:3,inputType:"radio",label:"Shared Suite",labelOnLeft:!1,onChange:g,optionValue:"Shared Suite",defaultRadioValue:e(f),name:"name"},null,8,["defaultRadioValue"])):m("",!0)]),e(_).length>0?(l(),S("div",ee,[y("div",te,[(l(!0),S(J,null,K(e(_),n=>(l(),d(r,{key:n.apartmentId,extraClass:"grid-item grid-item--is-6-tablet grid-item--is-4-desktop grid-item--is-3-widescreen",communityStructure:q(n.communityStructure),startingAtPrice:n.startingAtPrice,residenceImage:n.residenceImage?n.residenceImage:{},squareFootage:n.squareFootage,roomType:n.roomType,newTab:s.newTab,hidePrice
1:s.hidePrice,ctaButton:{action:`${s.slug}?id=${n.apartmentId}`,text:"View Details"}},null,8,["communityStructure","startingAtPrice","residenceImage","squareFootage","roomType","newTab","hidePrice","ctaButton"]))),128))])])):m("",!0),e(_).length==0?(l(),S("div",ae,[x(c,{apologyCopy:"Clearly you have great taste.",furtherInfoCopy:[`All of our ${e(u)?.roomType.toLowerCase()||"unit"}s are spoken for, but new listings are posted regularly.`,"In the meantime, we invite you to explore our model units.","Please complete the form below and a Sales Director will be in touch"],communityStructure:e(u)?.communityStructure,startingAtPrice:e(u)?.startingAtPrice,residenceImage:e(u)?.residenceImage,squareFootage:e(u)?.squareFootage,roomType:e(u)?.roomType,successMessages:e(N),newTab:s.newTab,ctaButton:{action:`${s.slug}?id=${e(u)?.apartmentId}`,text:"View Details"},hidePrice:s.hidePrice},null,8,["furtherInfoCopy","communityStructure","startingAtPrice","residenceImage","squareFootage","roomType","successMessages","newTab","ctaButton","hidePrice"])])):m("",!0)]),_:1})}}}),Ve=Object.assign(oe,{__name:"CoterieResidenceFilter"});export{Ve as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.