1import Z from"./BB4nNST-.js";import{a as K}from"./vftL2WRu.js";import{_ as X}from"./B9ZD45rp.js";import{m as $,I as a,J as m,G as y,M as S,u as _,V as v,R as U,L as o,_ as ee,P as w,Y as f,Z as te,N as h,Q as oe,a4 as le,H as ae}from"./Br7Dpjc1.js";import{o as re,c as A,_ as ne,i as D}from"./CHm4YBkG.js";import{_ as se}from"./DpXpL2B0.js";import{a as ie,u as ce,c as R,f as de,n as F}from"./CKQqvuhm.js";import{u as me}from"./BqUIgWZt.js";import{u as ue}from"./Dfb4I4kb.js";import{u as be}from"./CRdxDW28.js";import"./h4mVFODA.js";import"./Ci4e8ZHf.js";import"./7DVYXydw.js";import"./BW_b9vM_.js";import"./DHRLZTi5.js";import"./C-sRDPwd.js";import"./CGqxcNZs.js";import"./DuNcIhbW.js";import"./OnU9eYA_.js";import"./DIYUskNZ.js";const pe={class:"buttons flex flex-col lg:flex-row items-center justify-between [&_button[disabled]]:opacity-70 [&_button[disabled]]:cursor-not-allowed"},fe=["aria-label","rel","onClick"],ge={__name:"BlockButtons",props:{buttons:Array},setup(t){const r=A(),i=$(()=>r.public.mriCalendar.enableSelfScheduler),l=(d,n)=>{n.onClick&&(d.preventDefault(),n.onClick())},c=d=>d.onClick;return(d,n)=>{const s=X;return a(),m("div",pe,[(a(!0),m(y,null,S(t.buttons,(e,u)=>(a(),m(y,{key:u},[_(i)&&e.isSelfScheduler?(a(),v(s,{key:0,unitInformation:e.unitInformation},{button:U(({openModal:b})=>[o("button",{role:"button",class:"button flex items-center justify-center border border-hp-bc-2 grow w-full text-center text-sm py-5 transition-all duration-300 lg:text-lg border-b-0 lg:border-r-0 lg:border-b first:rounded-t-3xl first:lg:rounded-l-full last:rounded-b-3xl last:lg:rounded-r-full last:border-b last:lg:border-r lg:hover:bg-hp-bc-1 lg:hover:text-hp-bc-3","aria-label":e.ariaLabel,rel:e.target==="_blank"?"noopener":void 0,onClick:ee(b,["prevent"])},[(a(),v(w(e.icon),{height:"24",width:"24",class:"mr-2 scale-75 lg:scale-100"})),o("span",null,f(e.label),1)],8,fe)]),_:2},1032,["unitInformation"])):e.isSelfScheduler?te("",!0):(a(),v(w(c(e)?"button":_(re)),{key:1,role:c(e)?"button":"link",href:e.to,target:e.target,onClick:b=>l(b,e),class:"button flex items-center justify-center border border-hp-bc-2 grow w-full text-center text-sm py-5 transition-all duration-300 lg:text-lg border-b-0 lg:border-r-0 lg:border-b first:rounded-t-3xl first:lg:rounded-l-full last:rounded-b-3xl last:lg:rounded-r-full last:border-b last:lg:border-r lg:hover:bg-hp-bc-1 lg:hover:text-hp-bc-3","aria-label":e.ariaLabel,rel:e.target==="_blank"?"noopener":void 0,disabled:e.disabled},{default:U(()=>[(a(),v(w(e.icon),{height:"24",width:"24",class:"mr-2 scale-75 lg:scale-100"})),o("span",null,f(e.label),1)]),_:2},1032,["role","href","target","onClick","aria-label","rel","disabled"]))],64))),128))])}}},he={class:"apt-swipper bg-transparent mt-20 lg:mt-10 flex flex-col relative overflow-hidden bg-cover bg-no-repeat bg-[#333333]"},_e={class:"inset-0 lg:absolute flex grow-[4] lg:max-h-[80vh]"},xe={class:"flex flex-col text-hp-bc-1 text-shadow-lg lg:font-bold lg:text-hp-white lg:pl-20 lg:pb-8 lg:max-h-[80vh] items-center justify-center grow lg:justify-end lg:items-start text-center lg:text-left"},ve={class:"z-0 lg:z-50"},ye={class:"h2 mb-2 lg:mb-0"},ke={class:"h6 lg:text-lg lg:font-bold"},Ce={class:"lg:mt-[20px] block-apartment-detail text-hp-bc-1 before:content-[''] before:absolute before:top-0 before:w-full before:h-[10vh] before:bg-gradient-to-t before:from-hp-bc-3 before:to-transparent before:-translate-y-full lg:before:content-none"},Be={class:"p-6 lg:p-9 lg:pb-[72px]"},we={class:"flex flex-col description lg:grid lg:grid-cols-12 gap-10"},Se={class:"block lg:col-span-4 lg:col-start-1"},$e={class:"lg:col-span-7 lg:col-start-6"},Ae={class:"text-sm lg:text-lg flex flex-col gap-[2em] last:italic"},Pe={class:"mt-9 lg:mt-12"},Ie={class:"h4"},Le={class:"mt-4 sm:mt-6 sm:columns-2 sm:gap-x-9"},Ne={__name:"BlockApartmentDetailUpdated",props:{title:String,description:String,details:Object,amenities:Object,images:Array,buttons:Array},setup(t){const r=n=>c.value?n.slice(-1).concat(n.slice(0,-1)):n,l=(n=>n.split(/(\n)/g).map(s=>s.trim()).filter(s=>s&&s!==` 2`))(t.description),c=$(()=>!!l.slice(-1)?.[0]?.startsWith("*")),d=r(l);return(n,s)=>{const e=Z,u=K,b=ge;return a(),m("div",null,[o("div",he,[o("div",_e,[h(e,{images:t.images,fullSize:!0},null,8,["images"])]),o("div",xe,[o("div",ve,[o("div",ye,f(t.title),
21),o("div",ke,f(t.details.address),1),h(u,{class:"mt-4 lg:mt-1 [&_div]:lg:mt-1",bedroom:t.details.bedroom,bathroom:t.details.bathroom,availability:t.details.availability,rent:t.details.rent,"is-bold-icons":!0},null,8,["bedroom","bathroom","availability","rent"])])])]),o("div",Ce,[o("div",Be,[o("div",we,[o("div",Se,[h(b,{buttons:t.buttons,class:"lg:flex-col [&_.button]:lg:border-b-0"},null,8,["buttons"])]),o("div",$e,[o("div",Ae,[(a(!0),m(y,null,S(_(d),g=>(a(),m("p",{class:oe({"first:italic":_(c)})},f(g),3))),256))]),o("div",Pe,[o("div",Ie,f(t.amenities.label),1),o("ul",Le,[(a(!0),m(y,null,S(t.amenities.list,(g,x)=>(a(),m("li",{key:x,class:"font-semibold text-sm lg:text-lg border-t border-hp-bc-2 py-3"},f(g),1))),128))])])])])])])])}}},Ue=ne(Ne,[["__scopeId","data-v-db1bacb0"]]),De=async t=>{const r=A(),{formattedAvailabilities:i}=await me(ie),l=i.value.find(c=>Re(c.unitNumber)===t);return ce(_(l),r.public.halletsPoint20And30MriId)};function Re(t){if(t.includes("-")){const r=t.slice(0,2),i=t.slice(2),l=R(i);return r+l}else return R(t)}const lt={__name:"apt-[unit]",async setup(t){let r,i;const l=D(),c=de(l.params.building,l.params.unit),{description:d,mriEnabled:n,property:s,bedrooms:e,bathrooms:u,availability:b,price:g,formattedPrice:x,floorplan:k,virtualTourUrl:P,amenities:T,images:I,unitNumber:C,mriProspectConnectLink:j}=([r,i]=le(()=>De(c)),r=await r,i(),r),M=A().public.siteUrl,z=e===0?"Studio":`${e} Bedroom`,O=`${u} Bathroom`,V=`${M}${D().fullPath.slice(1)}`,L=`${s} #${C}`,N=`${z} ${O} for rent. Rent: ${x}`;ue({schema:{"@context":"http://schema.org","@type":"RealEstateListing",url:V,description:N,name:L},image:I?.[0],title:L,description:N},!0);const{open:B}=be(),E=()=>{B("floor-plan",{componentProps:{floorplanImageUrl:k.image},downloadButton:{href:k.pdf,icon:"IconArrowDown",target:"_blank"}})},W=()=>{B("360-tour",{componentProps:{virtualTourUrl:P}})},Y=()=>{B("contact-us",{styles:"lg:!py-16 lg:!px-8 [&_.h4]:!pb-8"})},q=$(()=>{const p=Number(g);return Number.isFinite(p)?p:null}),H=[{label:"Schedule a Tour",icon:"IconCalendar",ariaLabel:"Click to schedule a tour",isSelfScheduler:!0,enabled:!0,unitInformation:{building:F(l.params.building),unit:C??F(l.params.unit),bedrooms:e,price:q.value}},{label:"Apply Now",to:j,target:"_blank",icon:"IconPen",ariaLabel:"Click to Apply now",enabled:n},{label:"Contact Us",onClick:Y,target:"modal",icon:"IconForm",modal:"contact-us",ariaLabel:"Open the contact us modal",enabled:!0},{label:"Floorplan",onClick:E,icon:"IconPlan",modal:"floor-plan",ariaLabel:"Open the floor plan modal",enabled:!!k?.pdf},{label:"360 Tour",onClick:W,icon:"Icon360",modal:"360-tour",ariaLabel:"Open the 360 tour modal",enabled:!!P}],G={title:`APT ${C}`,description:d,details:{fullAddress:"10 Halletts Point, NY Astoria, NY 11102",address:s,bedroom:{label:e>1?"Bedrooms":"Bedroom",quantity:e===0?"Studio":`x${e}`},bathroom:{label:u>1?"Bathrooms":"Bathroom",quantity:`x${u}`},availability:{label:"Available:",date:b},rent:{label:"Rent:",amount:x,description:d}},amenities:{label:"Residence Features",list:T},images:I.map(p=>({src:p})),buttons:H.filter(p=>p.enabled)};return(p,Fe)=>{const J=Ue,Q=se;return a(),m("section",null,[h(J,ae({class:"relative bg-brand-tertiary"},G),null,16),h(Q)])}}};export{lt 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.