1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d048336e-c8b5-4f76-9c0e-ee46eeb4c506",e._sentryDebugIdIdentifier="sentry-dbid-d048336e-c8b5-4f76-9c0e-ee46eeb4c506")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5646],{35646:(e,a,t)=>{t.r(a),t.d(a,{default:()=>F});var s=t(80263),n=t(53239),i=t(1075),r=t(34878),l=t.n(r),o=t(12007),d=t.n(o),c=t(32351),m=t(59165),u=t(51867),h=t(84343),y=t(40307),x=t(6648),f=t(56220),b=t(49034),p=t(89800),g=t(95882),v=t(53563),j=t(44461),w=t(83763),N=t(79534),D=t(74176),M=t(94542),$=t(58619),C=t(91419),k=t(82687),A=t(89837),_=t(87740),P=t(67906),S=t(43609),I=t(82973),O=t(81580),R=t(82025),L=t(37625),B=t(28524);let E=d()(()=>Promise.all([t.e(3911),t.e(3315),t.e(8936),t.e(517)]).then(t.bind(t,60517)),{loadableGenerated:{webpack:()=>[60517]},ssr:!1,loading:()=>(0,s.jsx)(u.y,{})}),q=d()(()=>t.e(4626).then(t.bind(t,74626)),{loadableGenerated:{webpack:()=>[74626]},ssr:!1}),F=e=>{let{listing:a,weeklyStay:t,isUpcoming:r,setHoveredListing:o}=e,d=(0,i.useRouter)(),u=(0,h.U)("(min-width: 1080px)"),{amenities:F,max:G,min:T,photos:U,query:K,showPriceRange:z,threeDTour:W,nextAvailableDate:Y,city:H}=function({listing:e}){let{query:a}=(0,i.useRouter)(),[t,s]=(0,n.useState)(!1),r=(0,M.nc)(e=>e.userData),[l,o]=(e=>{if(0===e.length)return[void 0,void 0];let a=e.slice().sort((e,a)=>e.basePriceWithCharges-a.basePriceWithCharges);return[a[0].basePriceWithCharges,a[a.length-1].basePriceWithCharges]})(e.rooms),d=(0,N.Kb)(e.rooms),c=(0,N.i$)(e),m=(0,N.RK)(e.rooms),u=(0,N.Ju)(e.rooms),h=(0,v.A)(e.rooms)?.spaceInSqFeet,y=(0,v.A)(e.rooms)?.numberOfBathrooms,x=[e.minimumStay&&`Min ${e.minimumStay} nights`,e.maximumStay>0&&`Max ${e.maximumStay} nights`].filter(Boolean),f=[`Max ${d+(0,D.L)(" guest","s",d)}`,e.petsAllowed&&"Pets allowed",h?`${h}ft\xb2`:null,y+(0,D.L)(" bathroom","s",y)].concat((0,N.rR)(e)).filter(Boolean),b=(0,j.A)(w.A,a),p=b("moveInDate")&&b("moveOutDate"),$=e.city||{slug:a.citySlug},C=(0,N.Kc)(e.rooms);return(0,g.A)(()=>{s(!!r)}),{amenities:f,max:o,meta:x,min:l,photos:c,query:a,roomTypes:m,showPriceRange:p,threeDTour:u,nextAvailableDate:C,showBookmark:t,city:$}}(e),V=a?.rooms[0]?.id,J=(0,C.c)(e=>e.preferredCurrency),Q=Y?new Date(Y):new Date,Z="string"==typeof d.query.moveInDate?d.query.moveInDate:"string"==typeof d.query.move_in_date?d.query.move_in_date:void 0,X="string"==typeof d.query.moveOutDate?d.query.moveOutDate:"string"==typeof d.query.move_out_date?d.query.move_out_date:void 0,[ee]=(0,B.nl)({variables:{rentCalculatorAttrs:{displayCurrency:J,roomId:V,numberOfGuests:1,moveInDate:Z||(0,c.GP)(Q,"yyyy-MM-dd"),moveOutDate:X||(0,c.GP)((0,m.f)(Q,30),"yyyy-MM-dd"),useUserCredits:!1}}}),{totalRating:ea,commentsReviews:et}=(0,k.v1)(a.reviews),[es,en]=(0,n.useState)(!1),ei=a.rooms[0]?.basePrice?.baseMonthlyRate,er=a.rooms[0]?.basePriceWithCharges,el=ee?.data?.rentCalculator?.initialPayment?.displayCurrency?.monthlyAmount,eo=ee?.data?.rentCalculator?.initialPayment?.displayCurrency?.usdMonthlyAmount||0,ed=ee?.data?.rentCalculator?.initialPayment?.displayCurrency?.currency||"USD",ec="number"==typeof el?el:z&&T?T:void 0,em=er??ei,eu=!!ec&&!!em&&em>ec&&Math.round(100-ec/em*100)>=10,eh=ec&&em?Math.round(100-ec/em*100):0,ey=Y&&new Date(Y)<=new Date?"available":Y?"from":"soon",ex={"@context":"https://schema.org","@type":"Apartment",name:a?.name,numberOfRooms:a?.rooms[0]?.numberOfBedrooms,numberOfBathroomsTotal:a?.rooms[0]?.numberOfBathrooms,floorSize:{"@type":"QuantitativeValue",value:a?.rooms[0]?.spaceInSqFeet,unitCode:"FTK"},address:{"@type":"PostalAddress",streetAddress:a.address},latitude:a.latitude,longitude:a.longitude,url:window.location.origin+(0,$.Y)(a,K,r)?.pathname,photo:{"@type":"ImageObject",url:U[0]?.url},logo:"https://cdn.anyplace.com/assets/images/anyplace-icon.svg"};return d.isReady&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.Y,{data:ex}),(0,s.jsxs)("div",{className:"mb-4 grid grid-rows-[auto,1fr] pt-4",onMouseEnter:()=>o?o(a):null,onMouseLeave:()=>o?o(void 0):null,children:[(0,s.jsxs)("div",{className:"bg-line group relative h-60 overflow-hidden rounded-t-lg",children:[(0,s.jsx)("div",{className:"absolute bottom-2 left-2 z-10 lg:inline-flex lg:place-items-center",children:a.hotelClassification&&(0,s.jsx)(y.v,{"aria-label":`Hotel classification: ${a.hotelClassification.name}`,className:"mb-2 mr-2 self-start lg:mb-0 ",variant:"positive",children:a.hotelClassification.name})}),(0,s.jsx)("div",{className:"absolute left-2 right-2 top-2 z-10",children:(0,s.jsxs)(l(),{"aria-label":`View details for ${a.name}, located at ${a.address}, available ${"available"===ey?"now":"from"===ey?`from ${(0,c.GP)(new Date(Y),"MMM dd, yyyy")}`:"soon"}`,className:"ga4-listing-card place-items-left inline-flex flex-col gap-1 hover:no-underline",href:(0,$.Y)(a,K,r),id:`${a.name.replace(/\s+/g,"-").toLowerCase()}`,target:`${u?"_blank":""}`,children:[a.isPreLaunch&&(0,s.jsx)("div",{className:"bg-dark-blue/40 w-fit roun
1ded px-2 py-1",children:(0,s.jsx)(x.E,{className:"Heading Heading--6 mb-1 text-white",children:"Photos Coming Soon"})}),a.rareBadge&&(0,s.jsx)(y.v,{className:"w-fit",variant:"positive",children:"Usually Booked"}),a.newBadge&&(0,s.jsx)(y.v,{className:"w-fit",variant:"positive",children:"New Opening"}),eu&&(0,s.jsxs)(y.v,{"aria-label":`${eh}% off`,className:"w-fit",variant:"positive2",children:[eh,"% Off"]})]})}),(0,s.jsx)("div",{className:"absolute right-2 top-2 z-10 inline-flex",children:(0,s.jsxs)("div",{className:"ml-auto flex cursor-pointer flex-col gap-y-2",children:[(0,s.jsx)(O.D,{children:(0,s.jsx)(P.c,{"aria-label":"Save listing",hotelId:a.id})}),W&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-label":"View 3D tour",className:"cursor-pointer",role:"button",onClick:()=>en(!0),children:(0,s.jsx)(O.D,{children:(0,s.jsx)(p.e,{})})}),(0,s.jsx)(f.U,{onDismiss:()=>en(!1),children:es&&(0,s.jsx)(_.N,{address:a.address,threedtour:a.rooms[0]?.threedtour||"",title:a.name})})]})]})}),(0,s.jsx)(E,{ariaLableText:`View details for ${a.name}, located at ${a.address}, available ${"available"===ey?"now":"from"===ey?`from ${(0,c.GP)(new Date(Y),"MMM dd, yyyy")}`:"soon"}`,link:(0,$.Y)(a,K,r),listingName:a.name,photos:u?U?.slice(0,12):U?.slice(0,8)})]}),(0,s.jsxs)("article",{className:"relative flex flex-col rounded-b-lg bg-white px-2 py-4",children:[(0,s.jsx)(l(),{"aria-label":`View details for ${a.name}, located at ${a.address}, available ${"available"===ey?"now":"from"===ey?`from ${(0,c.GP)(new Date(Y),"MMM dd, yyyy")}`:"soon"}`,className:"ga4-listing-card absolute inset-0",href:(0,$.Y)(a,K,r),id:`${a.name.replace(/\s+/g,"-").toLowerCase()}`,target:`${u?"_blank":""}`}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)(x.E,{className:"text-dark-navy inline-flex flex-row items-center font-semibold",children:[(0,s.jsx)(R.c,{status:ey}),(0,s.jsx)("span",{children:"available"===ey?"Available now":"from"===ey?`Available from ${(0,c.GP)(Y,"MMM dd, yyyy")}`:"Back soon"})]}),et.length>0?(0,s.jsxs)("div",{className:"flex items-center justify-center",children:[(0,s.jsx)(b.A,{rating:ea,size:"small",variant:"average"}),(0,s.jsx)(x.E,{className:"ml-2",variant:"body-md",children:+et.length>1?et.length+" Reviews":et.length+" Review"})]}):null]}),(0,s.jsxs)("header",{className:"my-4",children:[(0,s.jsx)("div",{className:"items-baseline justify-between md:grid md:grid-cols-[1fr,auto] md:gap-x-4",children:(0,s.jsx)(x.E,{className:"text-dark-navy mb-3 block font-semibold",variant:"body-3xl",children:a.name})}),(0,s.jsx)(x.E,{as:"p",children:F.map((e,a)=>(0,s.jsxs)("span",{children:[0!==a&&(0,s.jsx)("span",{className:"inline-block px-2",children:"\xb7"}),e]},a))})]}),z&&G&&T?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.E,{className:"mb-4 block font-semibold md:mb-0",variant:"body-xl",children:[(0,s.jsx)(A.p,{baseMonthlyRate:er??ei,currency:ed,max:G,min:T,monthlyAmount:el})," ",t?"/ night":"/ month","manhattan-new-york-city"===H.slug&&(0,s.jsx)("span",{className:"pl-2 text-sm text-gray-300",children:"*Taxes & fees included"})]}),"USD"!==ed&&(0,s.jsxs)(S.m_,{children:[(0,s.jsx)(S.ZI,{children:(0,s.jsx)(x.E,{className:"text-gray block max-w-[200px] rounded-lg bg-white px-4 py-2 text-sm shadow",children:"Approximate conversion based on today's exchange rate. Final charged amount may vary depending on your card issuer's exchange rate and fees."})}),(0,s.jsx)(S.k$,{asChild:!0,children:(0,s.jsx)("div",{className:"text-text-base relative z-10 mt-1 cursor-help leading-tight",children:(0,s.jsxs)("div",{className:"text-sm font-semibold",children:["Approx."," ",(0,s.jsx)(L.S,{currency:"USD",value:Math.round(eo)})," ","USD"," ",(0,s.jsx)("div",{className:"text-dark-navy bg-line inline-block h-6 w-6 rounded-full text-center font-semibold",children:"?"})]})})})]})]}):(0,s.jsx)(q,{baseMonthlyRate:ei,basePriceWithCharges:er,city:H,percOff:eh,rentCalculatorResponse:ee})]})]})]})}},74176:(e,a,t)=>{t.d(a,{L:()=>s});let s=(e,a,t)=>t>1?`${e}${a}`:e},79534:(e,a,t)=>{t.d(a,{HD:()=>c,Ju:()=>y,Kb:()=>u,Kc:()=>b,RK:()=>h,i$:()=>d,rR:()=>f});var s=t(58872),n=t(91835),i=t(53563),r=t(16597),l=t(92752),o=t(33198);let d=e=>
1[].concat(c(e.rooms)).concat(e.photos).filter(Boolean),c=e=>e.reduce((e,a)=>e.concat(a.photos),[]).flat(),m=(0,s.A)((0,n.A)(1,"occupancyLimit")),u=e=>{let a=m(e),t=(0,i.A)(a)?.occupancyLimit||1,s=(0,r.A)(a)?.occupancyLimit||1;return t===s?t:s},h=e=>(0,l.A)(e.map(e=>e.roomType.name)),y=e=>e.filter(e=>e.threedtour)[0],x=["2","63","5","73","75","4"],f=e=>e.hotelAmenities.filter(e=>x.includes(e.amenity.id)).map(e=>e.amenity.name),b=e=>(0,i.A)(e.filter(e=>e.moveInFrom).map(e=>(0,o._)(e.moveInFrom)).sort((e,a)=>e.getTime()-a.getTime()))},82973:(e,a,t)=>{t.d(a,{Y:()=>r});var s=t(80263),n=t(62872),i=t.n(n);function r({data:e}){return(0,s.jsxs)(i(),{children:[(0,s.jsx)("meta",{content:"width=device-width, initial-scale=1, viewport-fit=cover, shrink-to-fit=no",name:"viewport"}),(0,s.jsx)("meta",{content:"app-id=1459707410",name:"apple-itunes-app"}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(e)},type:"application/ld+json"},`structured-data-${e?.name??e?.["@type"]??"structured-data"}`)]})}}}]);
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.