(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8849],{2134:(e,s,t)=>{"use strict";t.d(s,{InsidePageComponent:()=>u});var n=t(95155),i=t(12115),a=t(14676),l=t(57489),o=t(85189),r=t(6874),c=t.n(r),d=t(35695),m=t(45766),_=t(49266),x=t(55619),h=t.n(x);let p=e=>{var s,t;let{roomClass:o}=e,r=(0,d.useRouter)(),c=(0,d.usePathname)(),[m,x]=(0,i.useState)(!1),p=()=>{let e=c.split("/").filter(Boolean);if(e.length>2){let s="/".concat(e.slice(0,e.length-1).join("/"));r.push(s)}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:h().innerContainer,children:[(0,n.jsx)("h2",{className:h().textBlockMobile,children:o.name}),o.image&&"ImageModel"===o.image.__typename&&(0,n.jsx)(_.a,{alt:o.image.altText,customClassName:h().imageStyle,file:o.image.landscape||o.image.portrait}),(0,n.jsx)("div",{className:h().textContainer,children:(0,n.jsxs)("div",{className:h().textPadding,children:[(0,n.jsxs)("p",{className:h().textArea,children:[(0,n.jsx)("span",{children:o.area}),(0,n.jsx)("span",{className:h().fullStop}),(0,n.jsx)("span",{children:o.sleeps})]}),(0,n.jsx)("p",{className:h().textDescription,children:o.shortDescription}),(0,n.jsxs)("div",{className:h().dropdown,children:[(0,n.jsxs)("div",{className:h().displayAmenitiesAndIcon,onClick:()=>x(e=>!e),children:[(0,n.jsx)("span",{className:h().amenities,children:"ROOM AMENITIES"}),m?(0,n.jsx)(l.g,{icon:a.faMinus,size:"sm"}):(0,n.jsx)(l.g,{icon:a.faPlus,size:"sm"})]}),m&&(0,n.jsx)("div",{className:h().amenitiesList,dangerouslySetInnerHTML:{__html:null!==(t=null===(s=o.amenities)||void 0===s?void 0:s.html)&&void 0!==t?t:""}})]})]})}),(0,n.jsx)("div",{className:h().closeIconMobile,children:(0,n.jsx)(l.g,{icon:a.faXmark,onClick:()=>p(),size:"lg"})})]})})},u=e=>{var s,t;let{roomClass:r}=e,x=(0,d.useRouter)(),u=(0,d.usePathname)(),[j,g]=(0,i.useState)(!1),{isMobile:v,isSmallScreen:N}=(0,m.l)(),y=(0,i.useRef)(null),C="/".concat(u.split("/").filter(Boolean).slice(0,-1).join("/")),f=()=>{x.push(C)};return(0,i.useEffect)(()=>{let e=e=>{y.current&&!y.current.contains(e.target)&&e.target.classList.contains("ant-drawer-mask")&&f()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,n.jsxs)(n.Fragment,{children:[!(v||N)&&(0,n.jsx)(o.A,{open:!0,width:"88%",closable:!1,onClose:f,maskClosable:!0,styles:{body:{padding:0,overflow:"auto"},content:{padding:0}},children:(0,n.jsxs)("div",{ref:y,className:h().innerContainer,children:[r.image&&"ImageModel"===r.image.__typename&&(0,n.jsx)(_.a,{alt:r.image.altText,customClassName:h().imageStyle,file:r.image.landscape||r.image.portrait}),(0,n.jsxs)("div",{className:h().textContainer,children:[(0,n.jsx)(c(),{href:C,className:h().closeIcon,children:(0,n.jsx)(l.g,{icon:a.faXmark,size:"lg"})}),(0,n.jsxs)("div",{className:h().textContentArea,children:[(0,n.jsxs)("div",{className:h().fixedTextContent,children:[(0,n.jsx)("h2",{className:h().textBlock,children:r.name}),(0,n.jsxs)("p",{className:h().textArea,children:[(0,n.jsx)("span",{children:r.area}),(0,n.jsx)("span",{className:h().fullStop}),(0,n.jsx)("span",{children:r.sleeps})]}),(0,n.jsx)("p",{className:h().textDescription,children:r.shortDescription})]}),(0,n.jsx)("div",{className:h().amenitiesContainer,children:(0,n.jsxs)("div",{className:h().dropdown,children:[(0,n.jsxs)("div",{className:h().displayAmenitiesAndIcon,onClick:()=>g(e=>!e),children:[(0,n.jsx)("span",{className:h().amenities,children:"ROOM AMENITIES"}),j?(0,n.jsx)(l.g,{icon:a.faMinus,size:"sm"}):(0,n.jsx)(l.g,{icon:a.faPlus,size:"sm"})]}),j&&(0,n.jsx)("div",{className:h().amenitiesList,dangerouslySetInnerHTML:{__html:null!==(t=null===(s=r.amenities)||void 0===s?void 0:s.html)&&void 0!==t?t:""}})]})})]})]})]})}),(v||N)&&(0,n.jsx)(p,{roomClass:r})]})}},55619:e=>{e.exports={outerContainer:"styles_outerContainer__z5han",innerContainer:"styles_innerContainer__VH0my",imageStyle:"styles_imageStyle__lc2JA",textContainer:"styles_textContainer___Jeov",textContentArea:"styles_textContentArea__e_Ttd",fixedTextContent:"styles_fixedTextContent__BJ_nW",textPadding:"styles_textPadding__Jaj22",textArea:"styles_textArea__MNA_f",fullStop:"styles_fullStop__pRBeE",textDescription:"styles_textDescription__avu_9",textBlock:"styles_textBlock__GOBOB",dropdown:"styles_dropdown__bHHqi",displayAmenitiesAndIcon:"styles_displayAmenitiesAndIcon__AGAXZ",amenitiesContainer:"styles_amenitiesContainer__wWAwp",amenities:"styles_amenities___CWp8",closeIcon:"styles_closeIcon__SMIia",amenitiesList:"styles_amenitiesList__FQWN5",closeIconMobile:"styles_closeIconMobile__dOlSe",textBlockMobile:"styles_textBlockMobile__QtOFL"}},76839:(e,s,t)=>{Promise.resolve().then(t.bind(t,52155)),Promise.resolve().then(t.bind(t,2134)),Promise.resolve().then(t.t.bind(t,30235,23)),Promise.resolve().then(t.bind(t,35151)),Promise.resolve().then(t.bind(t,8163))}},e=>{var s=s=>e(e.s=s);e.O(0,[2959,7268,958,3640,6302,8249,7041,5714,1376,5637,8383,1286,3704,1137,7489,4666,189,6874,9593,2725,8815,3063,9983,6922,1141,3299,7653,5971,4134,4849,5189,9159,3223,1921,8441,1684,7358],()=>s(76839)),_N_E=e.O()}]);