(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1076],{25099:function(e,t,n){"use strict";n.d(t,{C:function(){return l},g:function(){return o}});var i=n(97458),r=n(44361);let l=e=>{let{text:t,className:n=""}=e;return(0,i.jsx)("div",{className:(0,r.m)("absolute z-10 bg-numa-yellow px-1.5 py-0.5 text-center uppercase ".concat(n)),children:t})},o=e=>{let{text:t,className:n=""}=e;return(0,i.jsx)("div",{className:(0,r.m)("bg-numa-yellow font-lausanne font-semibold text-sm px-3 py-2 ".concat(n," rounded-2xl")),children:t})}},28676:function(e,t,n){"use strict";n.d(t,{C:function(){return i.C}});var i=n(25099)},33548:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var i=n(52983),r=n(63730);let l=0,o=e=>{let{children:t}=e,[n]=(0,i.useState)(()=>l++),[o,a]=(0,i.useState)();return((0,i.useEffect)(()=>{let e=document.createElement("div");return e.id="uniqId-".concat(n),a(e),document.body.appendChild(e),()=>{e.remove()}},[n]),o)?r.createPortal(t,o):null}},98559:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var i=n(97458),r=n(7829),l=n(90106),o=n(76602),a=n(33548);let s=e=>{let{show:t=!1,showCloseButton:n=!1,position:s="bottom",className:u="bg-white",onClose:d,children:c}=e;return(0,i.jsx)(a.c,{children:(0,i.jsxs)("div",{className:(0,r.Z)("fixed inset-0","flex justify-items-center","z-overlay","transition-opacity duration-300",{"pointer-events-none opacity-0":!t},{center:"items-center",bottom:"items-end",top:"items-start"}[s]),children:[t&&(0,i.jsx)(o.l,{}),(0,i.jsx)("div",{className:"absolute inset-0 bg-opacity-70 bg-numa-black-400",onClick:d}),(0,i.jsxs)("div",{className:(0,r.Z)("relative z-10 flex-grow",u),children:[(0,i.jsx)("div",{children:c}),n&&(0,i.jsx)("button",{type:"button",className:(0,r.Z)("p-2 absolute top-0 right-0","z-20"),onClick:()=>d(),children:(0,i.jsx)("span",{className:(0,r.Z)("block","bg-white text-black rounded-full","p-1 w-6 h-6 box-content"),children:(0,i.jsx)(l.Z,{className:"text-black"})})})]})]})})}},95614:function(e,t,n){"use strict";var i=n(97458),r=n(46484),l=n.n(r),o=n(56718),a=n(52983),s=n(96196);t.Z=e=>{let{target:t="_self",href:n,bookingParams:r=!0,children:u}=e;(0,o.useRouter)();let d=(0,a.useMemo)(()=>(0,s.uF)(n),[n]),c=(0,s.bd)(d,r);return(0,i.jsx)(l(),{href:c,passHref:!0,target:t,legacyBehavior:"_blank"!==t,children:u})}},3226:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(97458),r=n(56718),l=n(52983),o=n(33548),a=n(84312),s=n(3236),u=n(46461),d=n(81366),c=n(90106),m=n(4752),p=n(33786),v=n(45113),f=n(81745),h=function(e){let{images:t,initialSlide:n,onSlideChange:r}=e,[o,a]=(0,l.useState)(null),s=(0,l.useRef)({dragged:!1,index:0});return(0,i.jsxs)("div",{className:"flex items-center justify-between h-full","data-testid":v.Y.unitgroupPage.individualGalleryModal,children:[(0,i.jsx)("button",{type:"button",className:"w-10 h-10 bg-numa-gray-200 transition-colors duration-200 hover:bg-numa-gray hidden lg:flex items-center justify-center focus:outline-none",onClick:()=>{o&&(o.slidePrev(),r(o.realIndex-1,"left","chevron clicked"))},children:(0,i.jsx)(f.Z,{className:"w-4 h-4 text-gray-600",position:"left"})}),(0,i.jsx)("div",{className:"w-full lg:max-w-160",children:(0,i.jsx)(m.tq,{initialSlide:n,slidesPerView:1,loop:t.length>1,onSwiper:a,spaceBetween:12,autoHeight:!1,simulateTouch:!1,longSwipesRatio:.25,onTouchEnd:e=>{s.current={dragged:!0,index:e.realIndex}},onSlideChange:e=>{let{dragged:t,index:n}=s.current;t&&n!==e.realIndex&&r(e.realIndex,e.realIndex>n?"right":"left","dragged"),s.current={dragged:!1,index:e.realIndex}},children:t.map(e=>(0,i.jsx)(m.o5,{children:(0,i.jsx)(p.t,{className:"object-contain",wrapperClassName:"w-full h-80 md:h-image-gallery-detail",img:e,dimensions:{mobile:360,desktop:900}})},e.id))})}),(0,i.jsx)("button",{type:"button",className:"w-10 h-10 bg-numa-gray-200 transition-colors duration-200 hover:bg-numa-gray hidden lg:flex items-center justify-center focus:outline-none",onClick:()=>{o&&(null==o||o.slideNext(),r(o.realIndex+1,"right","chevron clicked"))},children:(0,i.jsx)(f.Z,{className:"w-4 h-4 text-gray-600",position:"right"})})]})},g=function(e){let{currentSlide:t,imagesAmount:n,onGoBack:r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{type:"button",className:"flex items-center justify-center h-8 w-8 focus:outline-none",onClick:r,children:(0,i.jsx)(f.Z,{className:"w-4 h-4",position:"left"})}),(0,i.jsxs)("span",{className:"font-semibold text-numa-sm text-numa-black-800","data-testid":v.Y.unitgroupPage.galleryStep,children:[t,"/",n]})]})},x=n(29210),y=function(e){let{images:t,onOpenDetailView:n}=e;return(0,i.jsx)("div",{className:"flex flex-col sm:grid grid-cols-3 gap-2",children:t.map((e,t)=>(0,i.jsx)(x.W,{onClick:()=>n(t),children:(0,i.jsx)(p.t,{wrapperClassName:"relative w-full overflow-hidden h-40 md:h-48",className:"object-cover",img:e,dimensions:{mobile:360}})},e.id))})},b=function(e){let{isOpen:t,onClose:n,images:m,title:p,detailViewDirect:v,testId:f=""}=e,[x,b]=(0,l.useState)({isActive:!1,initialSlide:0,currentSlide:0}),{trackEvent:j}=(0,s.z)(),w=(0,d.F)(),k=(0,r.useRouter)().asPath;(0,l.useEffect)(()=>{v&&b(v)},[v]);let N=(0,l.useCallback)(()=>{b({isActive:!1}),n()},[n]);return(0,i.jsx)(o.c,{children:(0,i.jsxs)(a.Z,{isOpen:t,onClose:N,classes:"pt-4 lg:pt-8 w-full md:max-w-2xl lg:max-w-5xl",hideCloseButton:!0,children:[(0,i.jsxs)("div",{className:"flex items-center justify-between px-4 lg:px-8 mb-4 lg:mb-8","data-testid":f,children:[x.isActive?(0,i.jsx)(g,{currentSlide:x.currentSlide,imagesAmount:m.length,onGoBack:()=>{b({isActive:!1})}}):(0,i.jsx)("h3",{className:"font-semibold text-numa-md text-numa-black-800",children:p}),(0,i.jsx)("button",{type:"button",className:"focus:outline-none ",onClick:n,children:(0,i.jsx)(c.Z,{className:"w-6 h-6 text-black"})})]}),(0,i.jsx)("div",{className:"w-full overflow-y-auto h-image-gallery-modal md:max-h-150 px-4 lg:px-8 pb-4 lg:pb-8",children:x.isActive?(0,i.jsx)(h,{images:m,initialSlide:x.initialSlide,onSlideChange:(e,t,n)=>{b(t=>({...t,currentSlide:(e+m.length)%m.length+1})),j({event:u.s6.GalleryImageSwiped,properties:{device_category:w,path_name:k,direction:t,swipe_type:n}})}}):(0,i.jsx)(y,{images:m,onOpenDetailView:e=>{b({isActive:!0,initialSlide:e,currentSlide:e+1}),j({event:u.s6.ImageGalleryDetailsModalOpened,properties:{device_category:w,path_name:k}})}})})]})})}},29210:function(e,t,n){"use strict";n.d(t,{W:function(){return a},t:function(){return s}});var i=n(31791),r=n(86206);function l(){let e=(0,i._)(["\n  display: flex;\n  width: 100%;\n\n  transition-property: all;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 200ms;\n  cursor: default;\n  outline: none;\n\n  @media (min-width: 720px) {\n    cursor: pointer;\n    &:hover {\n      filter: brightness(0.75);\n    }\n  }\n\n  &:focus {\n    outline: 2px solid transparent;\n    outline-offset: 2px;\n  }\n"]);return l=function(){return e},e}function o(){let e=(0,i._)(["\n  height: 100%;\n  display: grid;\n  grid-template-rows: repeat(1, minmax(0, 1fr));\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n  gap: 1rem;\n\n  @media (min-width: 640px) {\n    grid-template-rows: repeat(2, minmax(0, 1fr));\n    ",";\n  }\n"]);return o=function(){return e},e}let a=r.styled.div(l()),s=r.styled.div(o(),e=>{let{$cols:t}=e;return"grid-template-columns: repeat(".concat(t,",minmax(0,1fr));")})},84312:function(e,t,n){"use strict";var i=n(97458),r=n(52983),l=n(71652),o=n(90106);t.Z=function(e){let{children:t,isOpen:n,onClose:a,containerClassses:s,innerContainerClasses:u,classes:d,overlayClasses:c,hideCloseButton:m=!1}=e,p=(0,r.useRef)(null);return(0,l.Z)(p,a),(0,r.useEffect)(()=>(n&&(document.querySelector("body").style.overflow="hidden",document.querySelector("body").style.height="100%"),()=>{document.querySelector("body").style.overflow="auto",document.querySelector("body").style.height="auto"}),[n]),(0,i.jsx)("div",{className:n?"fixed z-overlay inset-0 overflow-y-hidden ".concat(s):"hidden","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:(0,i.jsxs)("div",{className:"flex items-end justify-center pt-4 px-4 pb-20 text-center sm:block sm:p-0 overflow-hidden ".concat(u),children:[(0,i.jsx)("div",{className:"fixed inset-0 bg-numa-black-400 opacity-70 transition-opacity ".concat(c),"aria-hidden":"true"}),(0,i.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,i.jsxs)("div",{ref:p,className:"relative inline-block align-bottom bg-white rounded-lg text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full ".concat(d),children:[t,!m&&(0,i.jsx)("button",{type:"button",className:"absolute top-5 right-5 outline-none focus:outline-none ",onClick:a,children:(0,i.jsx)(o.Z,{className:"w-6 h-6 text-black"})})]})]})})}},88397:function(e,t,n){"use strict";n.d(t,{y:function(){return Z}});var i=n(97458),r=n(52983),l=n(7829),o=n(39907),a=n.n(o),s=n(69107),u=n.n(s),d=n(71635),c=n.n(d),m=n(3010),p=n.n(m),v=n(76602),f=n(98559),h=n(79083),g=n(45113),x=n(6288),y=n(31791),b=n(86206),j=n(59782),w=n(63925);function k(){let e=(0,y._)(["\n  cursor: pointer;\n  display: block !important;\n  @media (max-width: 720px) {\n    display: none !important;\n  }\n"]);return k=function(){return e},e}function N(){let e=(0,y._)(["\n  margin-top: 0.5rem;\n  cursor: pointer;\n  display: none !important;\n  @media (max-width: 720px) {\n    display: block !important;\n  }\n"]);return N=function(){return e},e}function _(){let e=(0,y._)(["\n  background-color: rgb(156, 163, 175);\n  content: '';\n  display: block;\n  height: 1px;\n  width: 100%;\n  margin: 0px 3px;\n"]);return _=function(){return e},e}let P=(0,b.styled)(j.F)(k()),C=(0,b.styled)(w.K)(N()),S=b.styled.div(_()),Z=e=>{let{onClose:t,amenities:n}=e,o=e=>{e.stopPropagation(),t()},{i18n:s}=(0,x.M0)(),d=(0,r.useMemo)(()=>n.some(e=>{let{amenityId:t}=e;return h.t.includes(t)}),[n]),m=(0,r.useMemo)(()=>{var e;return null===(e=n.find(e=>{let{category:t}=e;return"general"===t.categoryId}))||void 0===e?void 0:e.category},[n]),y=(0,r.useMemo)(()=>n.map(e=>({...e,category:!m||"kitchen"!==e.category.categoryId||d?e.category:m})),[n,m,d]),b=(0,r.useMemo)(()=>a()(y,e=>e.category.name),[y]),j=u()(c()(p()(y.map(e=>{let{category:t}=e;return t}),e=>{let{name:t}=e;return t}),e=>{let{position:t}=e;return t}),e=>{let{name:t}=e;return t});return(0,i.jsxs)(f.a,{show:!0,className:"lg:max-w-3xl w-full mx-auto my-auto overflow-y-auto max-h-full bg-white",onClose:t,children:[(0,i.jsx)(v.l,{}),(0,i.jsxs)("div",{className:(0,l.Z)("px-4 lg:px-8 text-sm lg:text-base w-full ","h-[100vh] lg:h-[95vh]"),"data-testid":g.Y.unitgroupPage.amenitiesModal,children:[(0,i.jsxs)("div",{className:"flex justify-start lg:justify-between items-center",children:[(0,i.jsx)("button",{type:"button",className:"block lg:hidden",onClick:o,children:(0,i.jsx)(C,{})}),(0,i.jsx)("h1",{className:"pl-20 lg:pl-0 text-3xl pt-10 pb-6 capitalize",children:s.allAmenities}),(0,i.jsx)("button",{type:"button",className:"hidden lg:block","data-testid":g.Y.amenitiesModal.closeAmenitiesItemsModal,onClick:o,children:(0,i.jsx)(P,{})})]}),j.map(e=>(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex items-center whitespace-nowrap",children:[(0,i.jsx)("span",{className:"text-title text-base pr-5 font-semibold leading-5",children:e}),(0,i.jsx)(S,{})]}),(0,i.jsx)("div",{className:"pt-4 grid grid-cols-2 pb-8 gap-y-3 gap-x-8 lg:gap-x-6 font-light",children:b[e].map(e=>(0,i.jsx)("span",{className:"leading-5","data-testid":g.Y.unitgroupPage.amenitiesItemsModal,children:e.name},e.id))})]},e))]})]})}},45946:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var i=n(31791),r=n(97458),l=n(52983),o=n(14243);function a(){let e=(0,i._)(["\n  height: ",";\n  width: ",";\n\n  &:hover {\n    height: ",";\n    width: ",";\n  }\n"]);return a=function(){return e},e}let s=n(86206).styled.div(a(),e=>e.$height,e=>e.$width,e=>e.$hoveredHeight,e=>e.$hoveredWidth),u=e=>{let{children:t,id:n,location:i,isActive:a,onClick:u,height:d="auto",width:c="auto",activeHeight:m=d,activeWidth:p=c}=e,[v,f]=(0,l.useState)(!1);return(0,r.jsx)(o._Q,{position:{lat:i.latitude,lng:i.longitude},zIndex:a||v?1:0,onClick:()=>null==u?void 0:u({id:n,location:i}),children:(0,r.jsx)(s,{$height:a?m:d,$width:a?p:c,$hoveredHeight:m,$hoveredWidth:p,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:t})})}},92990:function(e,t,n){"use strict";n.d(t,{U:function(){return x}});var i=n(31791),r=n(97458);n(14243);var l=n(7829),o=n(86206),a=n(94618);function s(){let e=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n"]);return s=function(){return e},e}function u(){let e=(0,i._)(["\n  width: 70px;\n  aspect-ratio: 0.83;\n  background-color: ",";\n  transform: scale(",");\n  transform-origin: bottom center;\n  transition: all 0.15s linear;\n  mask-image: url('/numa/map-marker.svg');\n  mask-size: contain;\n  mask-repeat: no-repeat;\n  box-shadow: 0px 0px 10px black;\n  display: grid;\n  place-items: center;\n"]);return u=function(){return e},e}function d(){let e=(0,i._)(["\n  width: calc(100% - 2 * 4px);\n  height: calc(100% - 2 * 4px);\n  object-fit: cover;\n  background-color: #00635b;\n  mask-image: url('/numa/map-marker.svg');\n  mask-size: contain;\n  mask-repeat: no-repeat;\n"]);return d=function(){return e},e}function c(){let e=(0,i._)(["\n  display: flex;\n  justify-content: center;\n  position: relative;\n  border-radius: 1px;\n  transition: all 100ms ease-out;\n"]);return c=function(){return e},e}function m(){let e=(0,i._)(["\n  padding: 0px 7px;\n  ","\n  transition: all 0.2s linear;\n  width: fit-content;\n"]);return m=function(){return e},e}let p=o.styled.div(s()),v=o.styled.div(u(),e=>e.$isSelected?"rgb(var(--color-numa-black))":"#fff",e=>e.$isSelected?1.2:1),f=o.styled.img(d()),h=o.styled.div(c()),g=o.styled.p(m(),e=>e.$isSelected?"\n          background-color: rgb(var(--color-numa-black));\n          color: white;\n        ":"\n      background-color: white;\n      color: rgb(var(--color-numa-black));\n    "),x=e=>{let{isSelected:t=!1,imgURL:n,name:i}=e;return(0,r.jsxs)(p,{children:[(0,r.jsx)(v,{$isSelected:t,children:(0,r.jsx)(f,{src:n})}),(0,r.jsx)(h,{children:(0,r.jsx)(g,{className:(0,l.W)(a.wu.body,a.wu.bold),$isSelected:t,children:i})})]})}},60770:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var i=n(79493),r=n.n(i),l=n(76838),o=n.n(l);let a=e=>{var t,n,i,l;let a={north:null===(t=r()(e,"latitude"))||void 0===t?void 0:t.latitude,south:null===(n=o()(e,"latitude"))||void 0===n?void 0:n.latitude,east:null===(i=r()(e,"longitude"))||void 0===i?void 0:i.longitude,west:null===(l=o()(e,"longitude"))||void 0===l?void 0:l.longitude};if(void 0===a.north||void 0===a.south||void 0===a.east||void 0===a.west)return;let s={lat:(a.north+a.south)/2,lng:(a.east+a.west)/2};return{north:Math.max(a.north,s.lat+.01),south:Math.min(a.south,s.lat-.01),east:Math.max(a.east,s.lng+.01),west:Math.min(a.west,s.lng-.01)}}},35487:function(e,t,n){"use strict";n.d(t,{J:function(){return k}});var i=n(97458),r=n(7829),l=n(46484),o=n.n(l),a=n(28676),s=n(94618),u=n(28419),d=n(45113),c=n(6288),m=n(52983),p=n(3010),v=n.n(p),f=n(90428),h=n(21247),g=n(33786),x=n(81366),y=n(59781);let b=e=>{let{property:t,isOverlay:n,onClick:r}=e,l=(0,x.F)(),o=(0,m.useMemo)(()=>"galleryV2"in t?t.galleryV2.map(e=>(0,i.jsx)(h.o5,{children:(0,i.jsx)(g.t,{img:e,dimensions:{mobile:470},className:"aspect-[1.5]"})},e.id)):v()(t.gallery,"id").map(e=>(0,i.jsx)(h.o5,{children:(0,i.jsx)(f.E,{data:(0,y.B)(e.responsiveImage,{ar:1.5}),className:"relative w-full pb-2/3",pictureClassName:"absolute h-full aspect-[1.5] w-full object-cover"})},e.id)),[t]);return(0,i.jsx)(h.lr,{className:"aspect-[1.5] w-full",onClick:r,trackingData:{source:n?"Property Modal":"Property Card",device_category:l,path_name:t.url},navigationDots:4,children:o})};var j=n(27267),w=n.n(j);let k=e=>{let{property:t,onAddressClick:n,onBookClick:l=()=>void 0,className:m="",isOverlay:p=!1,onPropertyClick:v}=e,{i18n:f}=(0,c.M0)(),{minRate:h,bedrooms:g=0}=t;return(0,i.jsxs)("div",{className:(0,r.Z)("relative flex flex-col",{"rounded-lg":p},m),"data-testid":d.Y.locationsPage.mobileProperty,children:[t.isNewlyLaunched&&(0,i.jsx)(a.C,{text:f.new,className:"top-2 left-0 text-numa-xxs leading-[17.5px] font-semibold"}),(0,i.jsx)("div",{className:(0,r.Z)({"overflow-hidden rounded-t-lg":p}),children:(0,i.jsx)(b,{property:t,isOverlay:p,onClick:()=>null==v?void 0:v(t.url)})}),(0,i.jsxs)("div",{className:(0,r.Z)(p?"px-4":"px-5 lg:px-0"),onClick:()=>null==v?void 0:v(t.url),children:[(0,i.jsxs)("h3",{className:(0,r.Z)(s.wu.heading3,p?"mt-4 text-numa-black-700":"mt-2.5 lg:mt-4 text-numa-black-400 lg:text-numa-black-700"),children:["Numa ",t.name]}),(0,i.jsxs)("div",{className:(0,r.Z)(s.wu.label,s.wu.medium,"text-numa-black-700",p?"mt-1.5":"mt-2 lg:mt-1.5"),children:[f.inCity.replace("{{value}}",""),(0,i.jsx)("span",{className:(0,r.Z)(!p&&s.wu.bold),children:t.district.name.length>0?t.district.name:t.districtOld}),","," ",n?(0,i.jsx)("button",{type:"button",className:"underline cursor-pointer",onClick:e=>{e.stopPropagation(),n(t)},children:t.address}):(0,i.jsx)("span",{children:t.address})]}),(0,i.jsx)("div",{className:(0,r.Z)(s.wu.medium,"text-numa-black-700 lineclamp-3",p?["mt-4",s.wu.body]:["mt-2 lg:mt-4",s.wu.label]),children:t.subtitle})]}),(0,i.jsx)("div",{className:"flex-grow"}),(0,i.jsxs)("div",{className:(0,r.Z)({"px-5 pb-10 xl:p-0":!p,"flex flex-col items-stretch":p}),children:[(0,i.jsxs)("p",{className:(0,r.Z)(s.wu.body,"capitalize text-numa-green",p?"my-4 px-4":"mt-2 mb-4 lg:my-4"),children:["".concat(g," ").concat(f.roomType," "),(0,i.jsxs)("span",{className:(0,r.Z)(s.wu.bold,"lowercase"),children:[f.from," ",(0,i.jsx)(u.Z,{amount:null==h?void 0:h.amount,currency:null==h?void 0:h.currency})]})]}),(0,i.jsx)(o(),{href:t.url,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)("button",{type:"button",className:(0,r.Z)(w().exploreButton,p?"m-3":"my-3"),onClick:()=>l(t),children:f.viewRoomButton})})]})]})}},37844:function(e,t,n){"use strict";n.d(t,{e:function(){return i},u:function(){return r}});let i=6,r="Corporate"},79083:function(e,t,n){"use strict";n.d(t,{V:function(){return r},t:function(){return i}});let i=["regularKitchen","builtInKitchen","cityKitchenette","kitchenette","kitchenInSomeRooms","commonKitchen","fullyEquippedKitchen"],r=["parkingPrivate","paidParkingOnSite","freeParkingOnSite","freeParkingNearby","paidParkingNearby"]},66485:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(97458);let r=e=>(0,i.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 14 14",style:{margin:"-4px"},fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,i.jsx)("path",{d:"M6.33325 3.66674H7.66659V5.00007H6.33325V3.66674ZM6.33325 6.3334H7.66659V10.3334H6.33325V6.3334ZM6.99992 0.333405C3.31992 0.333405 0.333252 3.32007 0.333252 7.00007C0.333252 10.6801 3.31992 13.6667 6.99992 13.6667C10.6799 13.6667 13.6666 10.6801 13.6666 7.00007C13.6666 3.32007 10.6799 0.333405 6.99992 0.333405ZM6.99992 12.3334C4.05992 12.3334 1.66659 9.94007 1.66659 7.00007C1.66659 4.06007 4.05992 1.66674 6.99992 1.66674C9.93992 1.66674 12.3333 4.06007 12.3333 7.00007C12.3333 9.94007 9.93992 12.3334 6.99992 12.3334Z",fill:"currentColor"})})},54697:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var i=n(97458),r=n(7829);let l=e=>{let{className:t,selected:n}=e;return(0,i.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",fill:"transparent",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,i.jsx)("path",{d:"M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M12.5 10C12.5 11.3807 11.3807 12.5 10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10Z",strokeWidth:"5",stroke:(0,r.Z)({transparent:!n,currentColor:n}),strokeLinecap:"round",strokeLinejoin:"round"})]})}},37138:function(e,t,n){"use strict";n.d(t,{b:function(){return f}});var i=n(96506),r=n.n(i),l=n(6901),o=n.n(l),a=n(30947),s=n(46469),u=n(6677),d=n(91484),c=n(98946),m=n(99687),p=n(5394);let v=p.ZP.object({rates:p.ZP.array(p.ZP.object({availableUnitsInDay:p.ZP.number().optional(),date:p.ZP.string(),price:p.ZP.object({amount:p.ZP.number(),currency:p.ZP.string()})}))});class f{async getOffers(e,t){let n=(0,d.E)(),i=(0,c.Z)(t,e);return(0,u.N)("offers/v2?".concat((0,m.TP)(e)),"GET",void 0,{...i,...n},s.Tq)}async getOffersMultipleRoom(e,t){let n=(0,d.E)(),i=(0,c.Z)(t,e);return(0,u.N)("offers/v2/multiple-rooms?".concat((0,m.TP)({...e})),"GET",void 0,{...i,...n},s.Tq)}async getSearchSuggestions(e){let t=(0,d.E)(),n=(0,c.Z)("useSuggestionSearch",e);return(0,u.N)("offers/v2/suggestions?".concat((0,m.TP)({...e})),"GET",void 0,{...n,...t},s.Tq)}static async getExtraServices(e,t){let n=(0,d.E)();return(0,u.N)("offers/v2/services/".concat(e,"/all?").concat((0,m.TP)({locale:t})),"GET",void 0,{...n},s.Tq)}static async getDailyRatesForDateRange(e){let{dateRange:{start:t,end:n},adults:i,propertyIds:r,unitGroupId:l}=e,d={start:o().max([o()(),t]).format("YYYY-MM-DD"),end:n.format("YYYY-MM-DD"),adults:i,propertyIds:r?r.join(","):"",unitGroupId:l};return(0,u.N)("offers/v2/daily-rates?".concat((0,m.TP)(d)),"GET",void 0,{"x-offers-source":"ari"},s.Tq).then(e=>{let{rates:t}=v.parse(e);return(0,a.$I)(t)}).catch(()=>(0,a.hk)(t,n,"error"))}static async getDailyRates_private(e){let{date:t,adults:n,propertyIds:i,unitGroupId:r}=e;return f.getDailyRatesForDateRange({dateRange:{start:t.clone().startOf("month"),end:t.clone().endOf("month")},adults:n,propertyIds:i,unitGroupId:r})}}f.getDailyRates=r()(f.getDailyRates_private,{isSerialized:!0,serializer:e=>{var t;let[n]=e,i=n.date.format("YYYY-MM"),r=null===(t=n.propertyIds)||void 0===t?void 0:t.join(","),{unitGroupId:l}=n,{adults:o}=n;return["".concat(i," - ").concat(r," - ").concat(l," - ").concat(o.toString())]},isPromise:!0,maxSize:20})},99936:function(e,t,n){"use strict";n.d(t,{F:function(){return f}});var i=n(56718),r=n(3236),l=n(46461),o=n(84907),a=n(83791),s=n(14518),u=n(37844),d=n(43500),c=n(25341),m=n(54809),p=n(52250),v=n(37138);function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=(0,c.J)(),h=(0,i.useRouter)(),[g,x]=(0,s.useQueryParam)("couponCode",s.StringParam),{state:{couponCode:y}}=(0,d.q$)(),b=new v.b,{data:j}=(0,o.U)(),{arrival:w,departure:k,adults:N=1,children:_=0,infants:P=0,couponCode:C=g||y}=e,S={lang:f,locale:f,...e,adults:N,children:_,infants:P,couponCode:C,user:{email:null==j?void 0:j.email}},{trackEvent:Z}=(0,r.z)();return(0,a.useQuery)(["use_offers",S,N,_,P,w,k,j],async()=>{var n;if((0,m.hs)({arrival:w,departure:k}))return Promise.reject({success:!1});let i=await b.getOffers(S,null!=t?t:"services/useOffers"),r=null!==(n=null==i?void 0:i.offers)&&void 0!==n?n:[],o=(null==i?void 0:i.couponCategory)===u.u,a=r.some(e=>e.discountedAmount);return C&&a&&x(C,"replaceIn"),g&&!a&&r.length>0&&!o&&x(void 0,"replaceIn"),Z({event:l.s6.ProductsSearched,properties:{city:e.location,arrival:e.arrival,departure:e.departure,number_of_adults:e.adults,number_of_children:e.children,number_of_infants:e.infants,property_id:e.propertyId,coupon_code:e.couponCode,page:h.pathname,...(0,p.K3)(r)}}),{...i,offers:r}},{staleTime:6e5,retry:!1,refetchOnWindowFocus:!1,...n})}},91484:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(72118),r=n(75593);function l(){let e=i.Z.get(r.o3);return e&&"null"!==e?{Authorization:"Bearer ".concat(e)}:{}}},98946:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let i=(e,t)=>({"X-Requested-From":e,"X-Requested-UserId":t});function r(e,t){var n,r;return{...i(e,(null==t?void 0:null===(n=t.user)||void 0===n?void 0:n.email)||(null===(r=localStorage)||void 0===r?void 0:r.getItem("guest_id"))),"x-offers-source":"ari"}}},1548:function(e,t,n){"use strict";n.d(t,{Fk:function(){return i},nK:function(){return r}});let i={bedroom:"bedroom",bedroomPlural:"bedroomPlural",livingroom:"livingRoom",livingroomPlural:"livingRoomPlural"},r={queenSizeBed:"queenBed",queenSizeBedPlural:"queenBedPlural",sofaBed:"sofaBed",sofaBedPlural:"sofaBedPlural",twinBed:"twinBed",twinBedPlural:"twinBedPlural",kingSizeBed:"kingBed",kingSizeBedPlural:"kingBedPlural",bunkBed:"bunkBed",bunkBedPlural:"bunkBedPlural",singleBed:"singleBed",singleBedPlural:"singleBedPlural",doubleBed:"doubleBed",doubleBedPlural:"doubleBedPlural"}},52250:function(e,t,n){"use strict";n.d(t,{JB:function(){return u},K3:function(){return o},_T:function(){return s},bF:function(){return a},o5:function(){return l},xd:function(){return r}});let i=e=>{var t,n;let i=e.services.filter(t=>e.selectedServices.includes(t.id)).map((e,t)=>{var n;return{product_id:e.id,name:e.name,price:null===(n=e.grossPrice)||void 0===n?void 0:n.amount,quantity:1,position:t}});return[{product_id:e.unitGroupId,name:e.unitGroupName,price:null===(t=e.totalRoomStayPrice)||void 0===t?void 0:t.amount,quantity:1,variant:null===(n=e.cancellation)||void 0===n?void 0:n.code},...i]},r=e=>{var t,n,r,l,o,s,u,d,c,m,p,v,f;let{cart:h}=e;return{...(null==e?void 0:null===(t=e.reservationDetails)||void 0===t?void 0:t.reservationId)&&{order_id:null==e?void 0:null===(n=e.reservationDetails)||void 0===n?void 0:n.reservationId},...h.cartId&&{checkout_id:h.cartId},property_id:null==e?void 0:null===(r=e.property)||void 0===r?void 0:r.id,content_ids:[a(null==e?void 0:null===(l=e.property)||void 0===l?void 0:l.id)],total:null===(o=h.total)||void 0===o?void 0:o.amount,currency:null===(s=h.total)||void 0===s?void 0:s.currency,discount:null===(u=h.coupon)||void 0===u?void 0:u.absoluteValueDiscount,coupon:null===(d=h.coupon)||void 0===d?void 0:d.code,products:i(e),unitsRequired:null==e?void 0:null===(c=e.transformed)||void 0===c?void 0:c.unitsCount,city:null==e?void 0:null===(p=e.property)||void 0===p?void 0:null===(m=p.i18city)||void 0===m?void 0:m.en,country:null==e?void 0:null===(v=e.property)||void 0===v?void 0:v.country,property_name:null==e?void 0:null===(f=e.property)||void 0===f?void 0:f.name}},l=(e,t,n,r)=>{var l,o,s,u,d,c,m,p,v,f,h,g;let{cart:x}=e;return{...(null==e?void 0:null===(l=e.reservationDetails)||void 0===l?void 0:l.reservationId)&&{order_id:null==e?void 0:null===(o=e.reservationDetails)||void 0===o?void 0:o.reservationId},...x.cartId&&{checkout_id:x.cartId},property_id:null==e?void 0:null===(s=e.property)||void 0===s?void 0:s.id,content_ids:[a(null==e?void 0:null===(u=e.property)||void 0===u?void 0:u.id)],total:null===(d=x.total)||void 0===d?void 0:d.amount,currency:null===(c=x.total)||void 0===c?void 0:c.currency,discount:null===(m=x.coupon)||void 0===m?void 0:m.absoluteValueDiscount,coupon:null===(p=x.coupon)||void 0===p?void 0:p.code,products:i(e),city:null==e?void 0:null===(f=e.property)||void 0===f?void 0:null===(v=f.i18city)||void 0===v?void 0:v.en,country:null==e?void 0:null===(h=e.property)||void 0===h?void 0:h.country,property_name:null==e?void 0:null===(g=e.property)||void 0===g?void 0:g.name,paymentMethod:t,paidWithSavedCard:n,saveCardCheckbox:r}},o=e=>{var t,n;let i=new Set;e.forEach(e=>{let{property:t}=e;i.add(t.id)});let r=Array.from(i).map(e=>a(e));return{offers_and_prices:e.map(e=>({unit_group_id:e.unitGroupId,amount:e.total.amount,rateplan_code:e.ratePlan.code,unitsRequired:e.unitsRequired})),currency:null===(t=e[0])||void 0===t?void 0:t.total.currency,offer_count:null!==(n=e.length)&&void 0!==n?n:0,content_ids:r}},a=e=>e.replace(/[^a-zA-Z0-9]/g,""),s=(e,t,n)=>{var i,r;return{guest_id:null==e?void 0:e.guestId,email:null==e?void 0:e.email,first_name:null==e?void 0:e.firstName,last_name:null==e?void 0:e.lastName,payment_session_id:null==t?void 0:t.id,country:null==t?void 0:t.countryCode,total:(null==t?void 0:null===(i=t.amount)||void 0===i?void 0:i.value)/100,currency:null==t?void 0:null===(r=t.amount)||void 0===r?void 0:r.currency,paymentProvider:"stripe",paymentMethod:n}},u=(e,t)=>({guest_id:null==e?void 0:e.guestId,email:null==e?void 0:e.email,first_name:null==e?void 0:e.firstName,last_name:null==e?void 0:e.lastName,paymentProvider:"stripe",paymentMethodId:t})},59781:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});let i=(e,t)=>{try{let n=new URL(e.src),i=new URLSearchParams(n.search);return Object.entries(t).forEach(e=>{let[t,n]=e;i.set(t,n)}),n.search=i.toString(),{...e,src:n.toString()}}catch(t){return{...e,src:e.src}}}},27267:function(e){e.exports={exploreButton:"styles_exploreButton__UX94Z"}}}]);