PageSourceSearch

https://book.andoliving.com/_next/static/chunks/6813-5c7ac85ecb1a11be.js

js andoliving.com collected 2026-10-04 13:32:42 UTC 60,267 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6813],{5826:function(e,t,n){n.d(t,{z:function(){return MediaQuery}});var o=n(85893),i=n(5152),r=n.n(i);let a=r()(()=>n.e(1852).then(n.t.bind(n,1852,23)),{loadableGenerated:{webpack:()=>[1852]},ssr:!1}),MediaQuery=e=>{let{children:t,maxWidth:n,minWidth:i}=e;return(0,o.jsx)(a,{maxWidth:n,minWidth:i,children:t})}},15329:function(e,t,n){n.d(t,{O:function(){return Skeleton}});var o=n(85893),i=n(50549);n(97480);let Skeleton=e=>{let{...t}=e;return(0,o.jsx)(i.Z,{...t})}},49762:function(e,t,n){n.d(t,{I:function(){return LangSelection}});var o=n(85893),i=n(67294),r=n(37303),a=n(25675),l=n.n(a),s=n(11163),u=n(12854),c=n(96219),d=n(53182),m=n(80258),p=n(59886);let useEffectOnce=e=>{let t=(0,i.useRef)(e),n=(0,i.useRef)(),o=(0,i.useRef)(!1),r=(0,i.useRef)(!1),[,a]=(0,i.useState)(0);o.current&&(r.current=!0),(0,i.useEffect)(()=>(o.current||(n.current=t.current(),o.current=!0),a(e=>e+1),()=>{r.current&&n.current&&n.current()}),[])};var g=n(28477),f=n(22293),h=n(96597),b=n(82729),y=n(85444);function _templateObject(){let e=(0,b._)(["\n          width: 100%;\n          left: 0;\n          top: 0;\n          border-radius: 0;\n          height: ",";\n          box-shadow: none;\n        "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,b._)(["\n          width: 380px;\n        "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,b._)(["\n  display: flex;\n  flex-direction: column;\n  background-color: ",";\n  width: 380px;\n  height: ",";\n  position: absolute;\n  top: ",";\n  right: 20px;\n  z-index: 501;\n  overflow: hidden;\n  transition: all 0.2s;\n  border-radius: ",";\n  box-shadow: ",";\n\n  ",";\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,b._)(["\n      font-size: ",";\n    "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,b._)(["\n  font-size: ",";\n  color: ",";\n  font-family: ",";\n  letter-spacing: ",";\n  font-weight: ",";\n\n  ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,b._)(["\n  padding: ",";\n\n  @media "," {\n    padding: ",";\n  }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,b._)(["\n  display: grid;\n  grid-template-columns: repeat(2, 1fr);\n  justify-content: space-between;\n  margin-top: ",";\n\n  @media "," {\n    grid-template-columns: 1fr;\n    margin-top: ",";\n    margin-bottom: ",";\n  }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,b._)(["\n  display: flex;\n  align-items: center;\n  cursor: pointer;\n  border: none;\n  padding: ",";\n  transition: all 0.4s;\n\n  @media "," {\n    border-bottom: 1px solid #dddddd;\n    padding: ",";\n\n    &:last-child {\n      border-bottom: none;\n    }\n  }\n\n  &:hover {\n    border-radius: 5px;\n    background: rgba(79, 176, 175, 0.1);\n  }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,b._)(["\n  margin-right: ",";\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,b._)(["\n  display: flex;\n  flex-direction: column;\n  height: 120px;\n  padding: ",";\n  border-top: 1px solid ",";\n\n  p {\n    font-size: ",";\n    margin-bottom: ",";\n  }\n\n  #google_translate_element {\n    select {\n      box-shadow: ",";\n      border: 2px solid transparent;\n      min-height: 28px;\n      border-radius: ",";\n      width: 100%;\n      padding: 0 ",";\n      margin-bottom: ",";\n      color: ",";\n    }\n  }\n\n  .goog-te-combo + .goog-te-combo,\n  .skiptranslate + .skiptranslate {\n    display: none;\n  }\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,b._)(["\n  position: absolute;\n  height: 25px;\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n  padding: ",";\n  top: 12px;\n\n  svg {\n    color: ",";\n  }\n"]);return _templateObject10=function(){return e},e}
1function _templateObject11(){let e=(0,b._)(["\n  margin-left: ",";\n\n  svg {\n    color: ",";\n  }\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,b._)(["\n  background-color: ",";\n  border-radius: 6px;\n  box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px,\n    hsl(206 22% 7% / 20%) 0px 10px 20px -15px;\n  position: fixed;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 540px;\n  max-width: 90vw;\n  max-height: 85vh;\n  padding: ",";\n  z-index: 1000;\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,b._)(["\n  max-height: 84vh;\n  overflow-y: auto;\n  padding: 0 ",";\n\n  h3 {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    column-gap: ",";\n    padding-bottom: ",";\n    margin-bottom: ",";\n    border-bottom: 1px solid ",";\n  }\n\n  p {\n    font-weight: ",";\n    color: ",";\n    font-size: ",";\n    margin-top: ",";\n  }\n\n  @media "," {\n    padding: 0 ",";\n  }\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,b._)(["\n  display: flex;\n  column-gap: ",";\n  margin-bottom: ",";\n\n  svg {\n    min-width: 20px;\n    min-height: 20px;\n  }\n\n  div {\n    display: flex;\n    flex-direction: column;\n\n    h4 {\n      font-size: ",";\n      font-weight: ",";\n    }\n  }\n\n  @media "," {\n    column-gap: ",";\n  }\n"]);return _templateObject14=function(){return e},e}let _=y.ZP.div.withConfig({componentId:"sc-38202d1f-0"})(_templateObject2(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{isOpen:t}=e;return t?"auto;":"0;"},e=>{let{top:t}=e;return t?"".concat(100+parseInt(t,10),"px"):"100px"},e=>{let{theme:t}=e;return t.radii.medium},e=>{let{theme:t}=e;return t.shadows.boxShadow},e=>{let{isFull:t,isOpen:n,theme:o}=e;return t?(0,y.iv)(_templateObject(),n?"calc(100vh - ".concat(o.navbarHeight,");"):"0;"):(0,y.iv)(_templateObject1())}),v=y.ZP.p.withConfig({componentId:"sc-38202d1f-1"})(_templateObject4(),e=>{let{theme:t}=e;return t.fontSizes.medium},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.fonts.primary},e=>{let{theme:t}=e;return t.spacing.none},e=>{let{weight:t}=e;return t},e=>{let{size:t}=e;return t&&(0,y.iv)(_templateObject3(),d.TV.fontSizes[t])}),w=y.ZP.div.withConfig({componentId:"sc-38202d1f-2"})(_templateObject5(),e=>{let{theme:t}=e;return t.spacing.large},d.Hb.mobile,e=>{let{theme:t}=e;return t.spacing.medium}),x=y.ZP.div.withConfig({componentId:"sc-38202d1f-3"})(_templateObject6(),e=>{let{theme:t}=e;return t.spacing.large},d.Hb.mobile,e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.spacing.medium}),k=y.ZP.div.withConfig({componentId:"sc-38202d1f-4"})(_templateObject7(),e=>{let{theme:t}=e;return t.spacing.middle},d.Hb.mobile,e=>{let{theme:t}=e;return"".concat(t.spacing.small," ").concat(t.spacing.none)}),j=(0,y.ZP)(l()).withConfig({componentId:"sc-38202d1f-5"})(_templateObject8(),e=>{let{theme:t}=e;return t.spacing.small}),O=y.ZP.div.withConfig({componentId:"sc-38202d1f-6"})(_templateObject9(),e=>{let{theme:t}=e;return"".concat(t.spacing.middle," ").concat(t.spacing.large)},e=>{let{theme:t}=e;return t.colors.grey2},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.shadows.boxShadow},e=>{let{theme:t}=e;return t.radii.xxx_large},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.colors.text}),I=y.ZP.button.withConfig({componentId:"sc-38202d1f-7"})(_templateObject10(),e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.colors.text}),C=y.ZP.button.withConfig({componentId:"sc-38202d1f-8"})(_templateObject11(),e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.colors.black}),T=(0,y.ZP)(u.VY).withConfig({componentId:"sc-38202d1f-9"})(_templateObject12(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.spacing.large}),P=y.ZP.div.withConfig({componentId:"sc-38202d1f-10"})(_templateObject13(),e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.colors.grey2},e=>{let{theme:t}=e;return t.weights.regular},e=>{let{theme:t}=e;return t.colors.grey},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.spacing.small},d.Hb.mobile,e=>{let{theme:t}=e;return t.spacing.middle}),G=y.ZP.div.withConfig({componentId:"sc-38202d1f-11"}
1)(_templateObject14(),e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.weights.semiBold},d.Hb.mobile,e=>{let{theme:t}=e;return t.spacing.middle}),LangSelection=e=>{let{top:t,isOpen:n,isFull:a,openMenuLang:b}=e,y=(0,s.useRouter)(),{t:S}=(0,r.$G)(),{pathname:B,asPath:D,query:Z}=y,E=(0,g.Z)(d.Hb.tablet),R=(0,i.useRef)(null);(0,f.t)(R,e=>{let t=document.getElementById(h.p);t&&!t.contains(e.target)&&b(!1)}),(0,i.useEffect)(()=>{let updateTranslationBannerStyles=()=>{var e;let t=document.getElementById(":1.container"),n=null==t?void 0:null===(e=t.contentWindow)||void 0===e?void 0:e.document.getElementById("options");n&&(n.style.display=E?"none":"table-cell")};return window.addEventListener("resize",updateTranslationBannerStyles),()=>{window.removeEventListener("resize",updateTranslationBannerStyles)}},[E]),useEffectOnce(()=>{let e=document.createElement("script");e.setAttribute("src","//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"),document.body.appendChild(e),window.googleTranslateElementInit=googleTranslateElementInit});let googleTranslateElementInit=()=>new window.google.translate.TranslateElement({pageLanguage:"auto",includedLanguages:"fr,tr,es,de",layout:window.google.translate.TranslateElement.InlineLayout.BUTTON},"google_translate_element"),changeLanguage=e=>{y.push({pathname:B,query:Z},D,{locale:e}),b(!1)},A=S("common:navbar.translationSection.disclaimer.descriptions",{returnObjects:!0});return(0,o.jsxs)(_,{isFull:null!=a?a:E,ref:R,isOpen:n,top:t,children:[E&&(0,o.jsx)(I,{onClick:()=>b(!1),children:(0,o.jsx)(p.P.Close,{size:24})}),(0,o.jsx)(w,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)(v,{weight:"bold",children:S("common:navbar.translationSection.languages")}),(0,o.jsx)(x,{children:h.l.filter(e=>{let{showEverywhere:t}=e;return t}).map(e=>(0,o.jsxs)(k,{onClick:()=>changeLanguage(e.locale),children:[(0,o.jsx)(j,{src:e.flag,alt:S(e.imgAlt),title:S(e.imgTitle),height:e.imgHeight}),(0,o.jsx)(v,{weight:"normal",children:S(e.label)})]},e.id))})]})}),(0,o.jsxs)(O,{style:{display:"none"},children:[(0,o.jsxs)(v,{weight:"bold",children:[S("common:navbar.translationSection.autoTranslation"),(0,o.jsx)(m.V,{trigger:(0,o.jsx)(C,{children:(0,o.jsx)(p.P.Info,{size:14})}),content:(0,o.jsxs)(T,{children:[(0,o.jsx)(c.T,{children:(0,o.jsx)(u.$N,{children:S("common:navbar.translationSection.autoTranslation")})}),(0,o.jsxs)(P,{children:[(0,o.jsxs)("h3",{children:[(0,o.jsx)(p.P.Translate,{size:18}),S("common:navbar.translationSection.disclaimer.title")]}),Object.values(A).map((e,t)=>{let{icon:n,description:i,title:r}=e;return(0,o.jsxs)(G,{children:[(0,o.jsx)(l(),{src:n,width:20,height:20,alt:r}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h4",{children:r}),(0,o.jsx)("p",{children:i})]})]},t)}),(0,o.jsx)("p",{children:S("common:navbar.translationSection.disclaimer.footer")})]})]})})]}),(0,o.jsx)("div",{id:"google_translate_element"})]})]})}},1020:function(e,t,n){n.d(t,{E:function(){return LangSwitch}});var o=n(85893),i=n(53854),r=n(37303),a=n(96597),l=n(82729),s=n(25675),u=n.n(s),c=n(85444),d=n(53182),m=n(45177);function _templateObject(){let e=(0,l._)(["\n  display: flex;\n  align-items: center;\n  column-gap: ",";\n  align-self: center;\n  justify-self: end;\n  cursor: pointer;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,l._)(["\n          color: ",";\n          font-weight: ",";\n        "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,l._)(["\n  color: ",";\n  text-transform: uppercase;\n  font-size: ",";\n\n  ",";\n\n  @media "," {\n    font-size: ",";\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,l._)(["\n          svg {\n            color: ",";\n          }\n        "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,l._)(["\n  background-color: transparent;\n  outline: none;\n  border: none;\n  color: ",";\n  font-size: ",";\n  cursor: pointer;\n  transition: all 200ms;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  &:hover {\n    color: ",";\n  }\n\n  ",";\n"]);
1return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,l._)(["\n  @media "," {\n    height: 20px !important;\n    width: auto !important;\n  }\n"]);return _templateObject5=function(){return e},e}let p=c.ZP.div.withConfig({componentId:"sc-dab07183-0"})(_templateObject(),e=>{let{theme:t}=e;return t.spacing.small}),g=c.ZP.span.withConfig({componentId:"sc-dab07183-1"})(_templateObject2(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.currentCompany===m.O3.ferienhaus?(0,c.iv)(_templateObject1(),t.colors.secondary,t.weights.regular):null},d.Hb.mobile,e=>{let{theme:t}=e;return t.fontSizes.small}),f=c.ZP.div.withConfig({componentId:"sc-dab07183-2"})(_templateObject4(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.currentCompany===m.O3.ferienhaus?(0,c.iv)(_templateObject3(),t.colors.primary):null}),h=(0,c.ZP)(u()).withConfig({componentId:"sc-dab07183-3"})(_templateObject5(),d.Hb.mobile),LangSwitch=e=>{let{openMenuLang:t}=e,{t:n,i18n:l}=(0,r.$G)(),s=a.l.find(e=>e.locale===l.language);return(0,o.jsxs)(p,{id:a.p,onClick:()=>t(e=>!e),children:[(0,o.jsx)(g,{className:"notranslate",children:l.language}),s&&(0,o.jsx)(h,{src:s.flag,alt:n(s.imgAlt),title:n(s.imgTitle),height:s.imgHeight}),(0,o.jsx)(f,{className:"switch-lang-btn",title:n("common:open"),"data-testid":"switch-language-btn",children:(0,o.jsx)(i.kzR,{})})]})}},96597:function(e,t,n){n.d(t,{l:function(){return i},p:function(){return o}});let o="menu-lang-switch",i=[{id:1,name:"English",flag:{src:"/_next/static/media/english_icon.d30ed1fc.svg",height:30,width:30,blurWidth:0,blurHeight:0},imgAlt:"common:navbar.flags.uk",imgTitle:"common:english",imgHeight:30,label:"English",locale:"en",showEverywhere:!0},{id:2,name:"Portuguese",flag:{src:"/_next/static/media/portuguese_icon.24394346.svg",height:30,width:30,blurWidth:0,blurHeight:0},imgAlt:"common:navbar.flags.pt",imgTitle:"common:portuguese",imgHeight:30,label:"Portugu\xeas",locale:"pt",showEverywhere:!0},{id:3,name:"Spanish",flag:{src:"/_next/static/media/spanish_icon.6601812f.svg",height:512,width:512,blurWidth:0,blurHeight:0},imgAlt:"common:navbar.flags.spanish",imgTitle:"common:spanish",imgHeight:30,label:"Espa\xf1ol",locale:"es"},{id:4,name:"French",flag:{src:"/_next/static/media/french_icon.fecf1add.svg",height:83,width:83,blurWidth:0,blurHeight:0},imgAlt:"common:navbar.flags.fr",imgTitle:"common:french",imgHeight:30,label:"Fran\xe7ais",locale:"fr"}]},79597:function(e,t,n){n.d(t,{f:function(){return a},Q:function(){return buildGuestPageContext}});var o,i,r=n(19692);(o=i||(i={})).GuestPageViewed="guest_page_viewed",o.GuestContactDetailsSubmitted="guest_contact_details_submitted",o.GuestDetailsUpdated="guest_details_updated",o.IdentityVerificationStarted="identity_verification_started",o.IdentityVerificationSubmitted="identity_verification_submitted",o.GuestPaymentCompleted="guest_payment_completed",o.PayNowClicked="pay_now_clicked",o.SupportContactClicked="support_contact_clicked",o.BookingInfoTabViewed="booking_info_tab_viewed",o.GuestInfoCopied="guest_info_copied",o.Share="share",o.GuestPageCtaClicked="guest_page_cta_clicked",o.InvoiceDetailsSubmitted="invoice_details_submitted",o.InvoiceOpened="invoice_opened",o.GuestMenuItemClicked="guest_menu_item_clicked";let buildGuestPageContext=e=>{let{screen:t,bookingRentalType:n,source:o,isPastBooking:i,isOngoingBooking:r}=e;return{screen:t,rental_type:null!=n?n:"",booking_source:o,booking_stage:i?"past":r?"ongoing":"upcoming"}},a={GuestPageViewed:e=>{(0,r.sendGTMEvent)({event:"guest_page_viewed",...e})},GuestContactDetailsSubmitted:e=>{(0,r.sendGTMEvent)({event:"guest_contact_details_submitted",...e})},GuestDetailsUpdated:e=>{(0,r.sendGTMEvent)({event:"guest_details_updated",...e})},IdentityVerificationStarted:e=>{(0,r.sendGTMEvent)({event:"identity_verification_started",...e})},IdentityVerificationSubmitted:e=>{(0,r.sendGTMEvent)({event:"identity_verification_submitted",...e})},GuestPaymentCompleted:e=>{(0,r.sendGTMEvent)({event:"guest_payment_completed",...e})},PayNowClicked:e=>{(0,r.sendGTMEvent)({event:"pay_now_clicked",...e})},SupportContactClicked:e=>{(0,r.sendGTMEvent)({event:"support_contact_clicked",...e})},BookingInfoTabViewed:e=>{(0,r.sendGTMEvent)({event:"booking_info_tab_viewed",...e})},GuestInfoCopied:e=>{(0,r.sendGTMEvent)({event:"guest_info_copied",...e})},Share:e=>{(0,r.sendGTMEvent)({event:"share",...e})},GuestPageCtaClicked:e=>{(0,r.sendGTMEvent)({event:"guest_page_cta_clicked",...e})},InvoiceDetailsSubmitted:e=>{(0,r.sendGTMEvent)({event:"invoice_details_submitted",...e})},InvoiceOpened:e=>{(0,r.sendGTMEvent)({event:"invoice_opened",...e})},GuestMenuItemClicked:e=>{(0,r.sendGTMEvent)({event:"guest_menu_item_clicked",...e})}}},18500:function(e,t,n){n.d(t,{X:function(){return useGuestPageEventContext}});var o=n(67294),i=n(11163),r=n(79597),a=n(48773);let useGuestPageEventContext=()=>{let{pathname:e}=(0,i.useRouter)(),t=(0,a.J)(e=>e.bookingInfo),{bookingRentalType:n,source:l,isPastBooking:s,isOngoingBooking:u}=t;return(0,o.useMemo)(()=>(0,r.Q)({screen:e,bookingRentalType:n,source:l,isPastBooking:s,isOngoingBooking:u}),[e,n,l,s,u])}},86094:function(e,t,n){n.d(t,{Z:function(){return hooks_useLoadGuestsData}});var o=n(67294),i=n(11163),r=n(77349),a=n(67803),l=n(33913),s=n(24257),u=n(23855),c=n(76248),d=n(85682),m=n(41821),p=n(17e3),g=n(43828);let useApartmentQuery=e=>{let{aptId:t,initialData:n=null,enabled:o=!0,isGuestPage:i=!1}=e;return(0,p.a)({queryKey:["apartment",t,i],queryFn:()=>(0,g.y)(t,i),keepPreviousData:!0,initialData:n,enabled:o,refetchOnWindowFocus:!1})};var f=n(3465);let useBookingInfoQuery=(e,t)=>(0,p.a)({queryKey:["booking-info",e],queryFn:()=>(0,f.gL)(e),enabled:t,refetchOnWindowFocus:!1});var h=n(93973);let useGuestsQuery=(e,t)=>(0,p.a)({queryKey:["guests",e],queryFn:()=>(0,f.VE)(e),cacheTime:1/0,enabled:t,refetchOnWindowFocus:!1});var b=n(48773),hooks_useLoadGuestsData=()=>{var e,t,n,p,g,f;let y=(0,i.useRouter)(),_=y.query.token,{mainGuest:v,superhogData:w,setBookingInfo:x,setMainGuest:k,setGuests:j,setPayments:O,setStatus:I}=(0,b.J)(e=>({mainGuest:e.mainGuest,superhogData:e.superhogData,setBookingInfo:e.setBookingInfo,setGuests:e.setGuests,setMainGuest:e.setMainGuest,setPayments:e.setPayments,setStatus:e.setStatus,status:e.status}),c.X),{data:C,isLoading:T}=useBookingInfoQuery(_,!0),{data:P,isLoading:G,isFetching:S,isSuccess:B}=useGuestsQuery(_,!0),{data:D,isLoading:Z}=(0,h.I)({guestToken:_,bookingUnitId:null!==(g=null==C?void 0:null===(t=C.bookingUnits)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.bookingUnitId)&&void 0!==g?g:"",isMultiRoom:(null==C?void 0:C.isMultiRoomBooking)||!1,enabled:!!(null==C?void 0:null===(p=C.bookingUnits)||void 0===p?void 0:null===(n=p[0])||void 0===n?void 0:n.bookingUnitId)}),{data:E,isLoading:R,refetch:A}=useApartmentQuery({aptId:null!==(f=null==C?void 0:C.aptIdRef)&&void 0!==f?f:"",enabled:!!(null==C?void 0:C.aptIdRef),isGuestPage:!0});return(0,o.useEffect)(()=>
1{if(C&&!E&&A(),C&&E){var e,t;let{photos:n,geoZoneId:o,buildingName:i,allowsPets:c,aptHouseRules:d,aptMunicipality:p,aptNeighbourhood:g,aptStreetName:f,coordLatitude:h,coordLongitude:b,maxOccupancy:y,managementCompanyId:_,aptCheckInStart:v,aptCheckInEnd:w,aptCheckOutHour:j,aptStreetNumber:O,aptZipCode:I,contactEmail:T,contactPhone:P,whatsappPhone:G,instagramUrl:S,officeAddress:B}=E;x({...C,agreesPrivacyPolicy:!0,geoZoneId:o,geoZoneBookingsEmail:null!=T?T:void 0,geoZoneBookingsPhone:null!=P?P:void 0,geoZoneOfficeAddress:null!=B?B:void 0,whatsappPhone:null!=G?G:void 0,instagramUrl:null!=S?S:void 0,geoZoneOfficeGoogleMapAddress:m.kF[o],photos:n.slice(0,5),buildingName:null!=i?i:"",allowsPets:c,aptHouseRules:d,aptMunicipality:p,aptNeighbourhood:null!=g?g:"",aptStreetName:f,aptStreetNumber:null!=O?O:"",aptZipCode:null!=I?I:"",coordLatitude:h,coordLongitude:b,maxOccupancy:y,managementCompanyId:_,aptCheckInStart:v,aptCheckInEnd:w,aptCheckOutHour:j,nights:(0,a.Z)((0,u.default)(null!==(e=C.checkOut)&&void 0!==e?e:""),(0,u.default)(null!==(t=C.checkIn)&&void 0!==t?t:"")),isPastBooking:(0,l.Z)((0,u.default)(C.checkOut)),isOngoingBooking:(0,s.default)(new Date,{start:(0,u.default)(C.checkIn),end:(0,r.default)((0,u.default)(C.checkOut),1)})}),k({phoneCountryId:C.phoneCountryId,normalizedNationalPhoneNumber:C.normalizedNationalPhoneNumber})}},[E,C,x,k,A]),(0,o.useEffect)(()=>{if(P&&B){let e=P.find(e=>{let{isMainGuest:t}=e;return t}),t=e?w[e.bookingIdRef]:{};k({...e,...t,isBookingSuperhog:(null==e?void 0:e.aptGuestVerificationType)==="superhog"||(null==e?void 0:e.aptGuestVerificationType)==="truvi"}),j(P)}},[P,B,j,k,w]),(0,o.useEffect)(()=>{if(D&&(O(D),C)){let e=D.totalToCharge,t=Math.round((C.totalBookingAmount-Number(C.chargedAmount)-e)*100)/100,n=C.bookerPaymentDetails.paymentStatus,o=!!(C.totalBookingAmount-Number(C.chargedAmount)),i=!!D.totalToCharge;if("incomplete"===n)return I({payment:"incomplete"}),x({actualDueAmountToPay:e||t});if(("complete"===n||!o||!i)&&(I({payment:"complete"}),x({actualDueAmountToPay:e}),"complete"===n&&0===C.chargedAmount))return x({chargedAmount:C.totalBookingAmount});if("processing"===n)return I({payment:"processing"}),x({actualProcessingAmount:C.totalBookingAmount-Number(C.chargedAmount)})}},[D,O,C,I,x]),(0,o.useEffect)(()=>{v&&(I({bookingDetails:{superhog:v.isBookingSuperhog?v.approvedByGuestVerificationPlatform?"complete":"incomplete":"complete",isPendingGuest:!(!P||!C||P.length<C.actualNumberOfGuests||(0,d.PN)(P))&&(0,d.fk)(v)&&(0,d.US)(v)?"complete":"incomplete"}}),C&&I({reservation:(null==C?void 0:C.bookingStatusDetails.pendingReservationConfirmation)?"incomplete":"complete"}))},[P,C,v,I]),{isGuestDataLoading:R||G||S||T||Z}}},28477:function(e,t,n){n.d(t,{Z:function(){return useMediaQuery}});var o=n(67294);function useMediaQuery(e){let[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let t=window.matchMedia(e),listener=()=>n(!!t.matches);return listener(),t.addListener(listener),()=>t.removeListener(listener)},[e]),t}},22293:function(e,t,n){n.d(t,{t:function(){return useOnClickOutside}});var o=n(67294);let useOnClickOutside=(e,t)=>{(0,o.useEffect)(()=>{let listener=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",listener),()=>{document.removeEventListener("mousedown",listener)}},[e,t])}},85682:function(e,t,n){n.d(t,{A9:function(){return isSuperhogPending},BH:function(){return usePhoneTypes},FM:function(){return createNewGuest},Ge:function(){return isGuestNotFilled},PN:function(){return isSomeGuestNotFilled},Rf:function(){return formatGuestToAdd},SF:function(){return isTruviApproved},US:function(){return isSuperhogApproved},bA:function(){return updateGuestViewDates},fk:function(){return isSuperhogSubmitted},jS:function(){return formatGuestToUpdate}});var o=n(67294),i=n(37303),r=n(70197),a=n(23855),l=n(42298),s=n(57557),u=n.n(s),c=n(54555);let d=c.ki.PT.id,getRequiredFields=e=>{let t=["name","surname","nationalityCountryIdRef","idDocumentType","idDocumentNumber"];return e!==d?[...t,"dateOfBirth","idDocumentIssuerCountryIdRef","addressCountryIdRef","entryDate","exitDate"]:t},isSuperhogSubmitted=e=>{let t=e.aptGuestVerificationType;return"superhog"!==t&&"truvi"!==t||"guestVerificationKey"in e},isSuperhogApproved=e=>{let t=e.aptGuestVerificationType;return"superhog"!==t||!0===e.isVerificationApproved},isTruviApproved=e=>{let t=e.aptGuestVerificationType;return"truvi"!==t||"Approved"===e.truviVerificationStatus},isSuperhogPending=e=>{let t=e.aptGuestVerificationType;return"superhog"!==t&&"truvi"!==t||"Incomplete"===e.guestVerificationStatus},isGuestNotFilled=e=>Object.entries(e).some(t=>{let[n,o]=t;return getRequiredFields(e.nationalityCountryIdRef).includes(n)&&!o}),isSomeGuestNotFilled=e=>e.some(isGuestNotFilled),formatViewedGuestDate=e=>{let t;if(!e)return"";if(/^\d{4}-\d{2}-\d{2}$/.test(e))t=(0,a.default)(e);else if(/^\d{2}[/-]\d{2}[/-]\d{4}$/.test(e)){let n=e.includes("/")?"/":"-";t=(0,r.default)(e,"dd".concat(n,"MM").concat(n,"yyyy"),new Date)}return t?(0,l.default)(t,"dd/MM/yyyy"):""},formatDate=e=>e?(0,l.default)((0,r.default)(e,"dd/MM/yyyy",new Date),"yyyy-MM-dd"):"",formatGuestToAdd=(e,t)=>{var n;let o=u()(e,["guestId"]);return{...o,dateOfBirth:formatDate(null==o?void 0:o.dateOfBirth),entryDate:formatDate(null==o?void 0:o.entryDate),exitDate:formatDate(null==o?void 0:o.exitDate),addressCountryIdRef:null==o?void 0:o.addressCountryIdRef,idDocumentIssuerCountryIdRef:null==o?void 0:o.idDocumentIssuerCountryIdRef,idDocumentNumber:null==o?void 0:o.idDocumentNumber,idDocumentType:null==o?void 0:o.idDocumentType,name:null==o?void 0:o.name,nationalityCountryIdRef:null==o?void 0:o.nationalityCountryIdRef,surname:null==o?void 0:o.surname,mainGuest:o.isMainGuest||!1,guestToken:t,bookingUnitId:null!==(n=o.bookingUnitId)&&void 0!==n?n:""}},formatGuestToUpdate=e=>({...e,idDocumentIssuerCountryIdRef:e.idDocumentIssuerCountryIdRef||null,dateOfBirth:(null==e?void 0:e.dateOfBirth)?formatDate(null==e?void 0:e.dateOfBirth):null,entryDate:(null==e?void 0:e.entryDate)?formatDate(null==e?void 0:e.entryDate):null,exitDate:(null==e?void 0:e.exitDate)?formatDate(null==e?void 0:e.exitDate):null,email:""===e.email?null:e.email}),isPlatformGuestEmail=e=>e.includes("guest"),usePhoneTypes=()=>{let{t:e}=(0,i.$G)();return(0,o.useMemo)(()=>[{value:"1",label:e("guest:superhog.phoneTypes.home")},{value:"2",label:e("guest:superhog.phoneTypes.mobile")},{value:"3",label:e("guest:superhog.phoneTypes.work")},{value:"4",label:e("guest:superhog.phoneTypes.other")}],[e])}
1,createNewGuest=(e,t,n)=>({isPendingGuest:!0,bookingId:"",bookingIdRef:"",bookingUnitId:t||"",guestId:n||"",tempId:n||"",name:"",surname:"",dateOfBirth:"",nationality:"",addressCountryIdRef:"",idDocumentType:"",idDocumentIssuerCountryIdRef:"",nationalityCountryIdRef:"",idDocumentNumber:"",entryDate:formatViewedGuestDate(e.checkIn),exitDate:formatViewedGuestDate(e.checkOut),isBookingSuperhog:!1,isMainGuest:!1}),updateGuestViewDates=e=>e.map(e=>{var t;return{...e,dateOfBirth:formatViewedGuestDate(e.dateOfBirth),entryDate:formatViewedGuestDate(e.entryDate),exitDate:formatViewedGuestDate(e.exitDate),email:isPlatformGuestEmail(null!==(t=e.email)&&void 0!==t?t:"")?"":e.email}})},65665:function(e,t,n){n.d(t,{Q:function(){return Subtitle}});var o=n(85893),i=n(82729),r=n(85444),a=n(53182);function _templateObject(){let e=(0,i._)(["\n  font-family: ",";\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n  padding: 0;\n  margin: 0;\n\n  @media (max-width: 1024px) {\n    font-size: ",";\n  }\n\n  @media "," {\n    font-size: 1.1rem;\n  }\n\n  &.semibold {\n    font-weight: ",";\n  }\n\n  &.bold {\n    font-weight: ",";\n  }\n"]);return _templateObject=function(){return e},e}let l=r.ZP.h3.withConfig({componentId:"sc-23d546f6-0"})(_templateObject(),e=>{let{theme:t}=e;return t.fonts.poppins},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.weights.regular},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.fontSizes.small},a.Hb.mobile,e=>{let{theme:t}=e;return t.weights.medium},e=>{let{theme:t}=e;return t.weights.semiBold}),Subtitle=e=>{let{children:t,variant:n="bold",className:i="",title:r,dataTestId:a,...s}=e;return(0,o.jsx)(l,{"data-testid":a,className:"".concat(n," ").concat(i),title:r,...s,children:t})}},59647:function(e,t,n){n.d(t,{x:function(){return Text}});var o=n(85893),i=n(82729),r=n(85444),a=n(53182);function _templateObject(){let e=(0,i._)(["\n  font-weight: 300;\n  font-family: ",";\n  font-size: ",";\n  color: ",";\n  padding: 0;\n  margin: 0;\n\n  &.hyphenated {\n    -ms-word-break: break-all;\n    word-break: break-all;\n    /* Non standard for webkit */\n    word-break: break-word;\n    -webkit-hyphens: auto;\n    -moz-hyphens: auto;\n    hyphens: auto;\n  }\n\n  @media (max-width: 1024px) {\n    font-size: ",";\n  }\n\n  @media "," {\n    font-size: 1.1rem;\n  }\n"]);return _templateObject=function(){return e},e}let l=r.ZP.p.withConfig({componentId:"sc-e2656147-0"})(_templateObject(),e=>{let{theme:t}=e;return t.fonts.poppins},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.fontSizes.small},a.Hb.mobile),Text=e=>{let{children:t,className:n="",title:i="",dataTestId:r,dangerouslySetInnerHTML:a}=e;return(0,o.jsx)(l,{dangerouslySetInnerHTML:a,"data-testid":r,className:n,title:i,children:t})}},287:function(e,t,n){n.d(t,{D:function(){return Title}});var o=n(85893),i=n(82729),r=n(85444),a=n(53182);function _templateObject(){let e=(0,i._)(["\n  font-family: ",";\n  font-size: ",";\n  font-weight: ",";\n  padding: 0;\n  margin: 0;\n\n  &.regular {\n    font-weight: ",";\n  }\n\n  @media (max-width: 1024px) {\n    font-size: ",";\n  }\n\n  @media "," {\n    font-size: 1.3rem;\n  }\n"]);return _templateObject=function(){return e},e}let l=r.ZP.h2.withConfig({componentId:"sc-31dd696d-0"})(_templateObject(),e=>{let{theme:t}=e;return t.fonts.poppins},e=>{let{theme:t}=e;return t.fontSizes.medium},e=>{let{theme:t}=e;return t.weights.medium},e=>{let{theme:t}=e;return t.weights.regular},e=>{let{theme:t}=e;return t.fontSizes.middle},a.Hb.mobile),Title=e=>{let{children:t,variant:n="medium"}=e;return(0,o.jsx)(l,{className:n,children:t})}},60737:function(e,t,n){n.d(t,{R:function(){return i},m:function(){return o}});let o={complete:"complete",incomplete:"incomplete",processing:"processing"},i={complete:"complete",incomplete:"incomplete",processing:"processing"}},290:function(e,t,n){n.d(t,{A:function(){return Layout}});var o=n(85893),i=n(67294),r=n(37303),a=n(11163),l=n(53182),s=n(79597),u=n(48773);let useGuestPageViewedTracking=()=>{let{pathname:e}=(0,a.useRouter)(),t=(0,u.J)(e=>e.bookingInfo),n=(0,i.useRef)(null);(0,i.useEffect)(()=>{t.bookingIdRef&&n.current!==e&&(n.current=e,s.f.GuestPageViewed((0,s.Q)({screen:e,bookingRentalType:t.bookingRentalType,source:t.source,isPastBooking:t.isPastBooking,isOngoingBooking:t.isOngoingBooking})))},[t,e])};
1var c=n(28477),d=n(43583),m=n(62195),p=n(54542),g=n(76248),f=n(60737),h=n(51195),b=n(18500),y=n(39374),_=n(82729),v=n(63750),w=n(41664),x=n.n(w),k=n(85444),j=n(92744);function _templateObject(){let e=(0,_._)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  width: 100%;\n  height: 100px;\n  padding: 0 ",";\n  border-top-left-radius: ",";\n  border-top-right-radius: ",";\n  ","\n  position: fixed;\n  bottom: 0;\n  z-index: 10;\n\n  @media "," {\n    padding: 0 ",";\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,_._)(["\n  position: absolute;\n  top: 3px;\n  left: calc(50% - 29px);\n  width: 58px;\n  height: 5px;\n  border-radius: ",";\n  background: ",";\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,_._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n  text-align: center;\n  color: ",";\n  width: 84px;\n  height: 67px;\n  padding: ",";\n  border-radius: ",";\n  position: relative;\n\n  .itemIcon {\n    color: ",";\n  }\n\n  p {\n    margin-top: ",";\n    font-size: 1.1rem;\n  }\n\n  svg {\n    min-height: 30px;\n    min-width: 30px;\n  }\n\n  ",";\n\n  .itemIcon {\n    min-width: 22px;\n    min-height: 22px;\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,_._)(["\n  position: absolute;\n  top: 0;\n  left: 46px;\n  border: 2px solid ",";\n  background-color: ",";\n  border-radius: 100%;\n  min-height: 0px !important;\n  min-width: 0px !important;\n  fill: ",";\n"]);return _templateObject3=function(){return e},e}let O=k.ZP.div.withConfig({componentId:"sc-b2b5ac25-0"})(_templateObject(),e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.radii.xxx_large},e=>{let{theme:t}=e;return t.radii.xxx_large},(0,j.c2)(j.oe,"secondary"),l.Hb.mobile,e=>{let{theme:t}=e;return t.spacing.medium}),I=k.ZP.div.withConfig({componentId:"sc-b2b5ac25-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.radii.large},e=>{let{theme:t}=e;return t.colors.white}),C=(0,k.ZP)(x()).withConfig({componentId:"sc-b2b5ac25-2"})(_templateObject2(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.radii.medium},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{$isActive:t}=e;return t&&(0,j.c2)(j.n9,"grey")}),T=(0,k.ZP)(v.STs).withConfig({componentId:"sc-b2b5ac25-3"})(_templateObject3(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.warning}),BottomNavigation=e=>{let{active:t}=e,{t:n}=(0,r.$G)("guest"),{isAndoLiving:i}=(0,h.M)(),{guestToken:a,bookingStatus:l,bookingRentalType:c,bookingSource:d}=(0,u.J)(e=>({guestToken:e.mainGuest.guestToken,bookingStatus:e.bookingGeneralStatus(),bookingRentalType:e.bookingInfo.bookingRentalType,bookingSource:e.bookingInfo.source}),g.X),m=(0,b.X)(),p=(0,y.z3)(i,c,d).filter(e=>{let{show:t}=e;return t}),handleMenuItemClick=e=>{s.f.GuestMenuItemClicked({...m,menu_item:"guest"===e?"home":e,placement:"bottom_navigation"})};return(0,o.jsxs)(O,{children:[(0,o.jsx)(I,{}),p.map(e=>{let{Icon:i,label:r,name:s,route:u,externalLink:c,showStatus:d}=e;return(0,o.jsxs)(C,{href:c||"".concat(u,"/").concat(a),$isActive:t[s],target:c?"_blank":"_self",onClick:()=>handleMenuItemClick(s),children:[(0,o.jsx)(i,{className:"itemIcon",size:22}),(0,o.jsx)("p",{children:n(r)}),d&&l===f.m.incomplete&&(0,o.jsx)(T,{size:18})]},s)})]})};var P=n(48403),G=n.n(P),S=n(59647),B=n(287),D=n(49762),Z=n(1020);function styles_templateObject(){let e=(0,_._)(["\n  position: relative;\n  width: 100%;\n  background-color: ",";\n  height: 95px;\n  z-index: 9;\n"]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){let e=(0,_._)(["\n  max-width: 1440px;\n  margin: 0 auto;\n  position: relative;\n  display: flex;\n  height: 95px;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0 "," 0 132px;\n  background-color: ",";\n  z-index: 9;\n\n  @media "," {\n    padding: 0 ",";\n  }\n"]);
1return styles_templateObject1=function(){return e},e}function styles_templateObject2(){let e=(0,_._)(["\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n\n  h2 {\n    margin-top: ",";\n  }\n"]);return styles_templateObject2=function(){return e},e}function styles_templateObject3(){let e=(0,_._)(["\n  .notranslate {\n    color: ",";\n  }\n\n  .switch-lang-btn {\n    color: ",";\n  }\n"]);return styles_templateObject3=function(){return e},e}let E=k.ZP.div.withConfig({componentId:"sc-3e301ab2-0"})(styles_templateObject(),e=>{let{theme:t}=e;return t.colors.white}),R=k.ZP.div.withConfig({componentId:"sc-3e301ab2-1"})(styles_templateObject1(),e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.colors.white},l.Hb.tablet,e=>{let{theme:t}=e;return t.spacing.medium}),A=k.ZP.div.withConfig({componentId:"sc-3e301ab2-2"})(styles_templateObject2(),e=>{let{theme:t}=e;return"-".concat(t.spacing.x_small)}),N=k.ZP.div.withConfig({componentId:"sc-3e301ab2-3"})(styles_templateObject3(),e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.colors.black}),Navbar=()=>{let e=(0,a.useRouter)(),{t}=(0,r.$G)("guest"),n=(0,c.Z)("(max-width: 545px)"),l=(0,u.J)(e=>e.mainGuest),[s,d]=(0,i.useState)(),[p,g]=(0,i.useState)(!1),f={[m.Z6.guest+"/[token]"]:t("dashboard"),[m.Z6.guestBooking+"/[token]"]:t("booking"),[m.Z6.guestPayments+"/[token]"]:t("payments"),[m.Z6.guestPaymentUnit+"/[id]"]:t("payments")};return(0,i.useEffect)(()=>{let e=new MutationObserver(e=>{for(let t of e)"style"===t.attributeName&&d(document.body.style.top)});return e.observe(document.body,{attributes:!0}),()=>e.disconnect()},[]),(0,o.jsx)(E,{children:(0,o.jsxs)(R,{children:[(0,o.jsxs)(A,{children:[(0,o.jsx)(S.x,{children:f[e.pathname]}),(0,o.jsx)(B.D,{children:t("navbar.title",{guestName:G()(l.name)})})]}),(0,o.jsx)(N,{children:(0,o.jsx)(Z.E,{openMenuLang:g})}),(0,o.jsx)(D.I,{top:s,isOpen:p,openMenuLang:g,isFull:n})]})})};var z=n(1451),M=n(79362),L=n(41821),F=n(24745),H=n(45177);function Sidebar_styles_templateObject(){let e=(0,_._)(["\n  position: fixed;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 90px;\n  ",";\n  transition: width 200ms ease-in;\n  border-top-right-radius: ",";\n  z-index: 1;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-between;\n  color: ",";\n  z-index: 10;\n\n  ","\n"]);return Sidebar_styles_templateObject=function(){return e},e}function Sidebar_styles_templateObject1(){let e=(0,_._)(["\n  width: 100%;\n"]);return Sidebar_styles_templateObject1=function(){return e},e}function Sidebar_styles_templateObject2(){let e=(0,_._)(["\n  width: 100%;\n  height: ",";\n  margin: 26px 0 76px 0;\n"]);return Sidebar_styles_templateObject2=function(){return e},e}function Sidebar_styles_templateObject3(){let e=(0,_._)([""]);return Sidebar_styles_templateObject3=function(){return e},e}function _templateObject4(){let e=(0,_._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  position: relative;\n  margin-bottom: 40px;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,_._)(["\n  width: 6px;\n  height: 50px;\n  border-radius: ",";\n  background: ",";\n  position: absolute;\n  left: 0;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,_._)(["\n      width: 182px;\n      justify-content: flex-start;\n    "]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,_._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 50px;\n  width: 50px;\n  border-radius: 10px;\n  gap: ",";\n  padding: ",";\n  position: relative;\n\n  .sideBarItemIcon {\n    color: ",";\n    height: 30px;\n    min-height: 30px;\n    width: 30px;\n    min-width: 30px;\n  }\n\n  p {\n    font-size: ",";\n    margin-right: ",";\n    text-align: left;\n  }\n\n  ",";\n\n  &:hover {\n    background-color: rgb(255, 255, 255, 0.2);\n  }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,_._)(["\n      background-color: rgb(255, 255, 255, 0.15);\n    "]);
1return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,_._)(["\n  ","\n\n  ","\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,_._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 100%;\n  row-gap: ",";\n  margin-bottom: 60px;\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,_._)(["\n  ","\n\n  color: ",";\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,_._)(["\n  position: absolute;\n  top: 4px;\n  left: 30px;\n  background-color: ",";\n  border-radius: 100%;\n  fill: ",";\n"]);return _templateObject12=function(){return e},e}let V=k.ZP.div.withConfig({componentId:"sc-8e44e493-0"})(Sidebar_styles_templateObject(),(0,j.c2)(j.oe,"secondary"),e=>{let{theme:t}=e;return t.radii.xxx_large},e=>{let{theme:t}=e;return t.colors.white},e=>{let{$isOpen:t}=e;return t&&"width: 230px;"}),U=k.ZP.div.withConfig({componentId:"sc-8e44e493-1"})(Sidebar_styles_templateObject1()),q=k.ZP.img.withConfig({componentId:"sc-8e44e493-2"})(Sidebar_styles_templateObject2(),e=>{let{theme:t}=e;return t.currentCompany===H.O3.andoliving?"63px":"48px"}),Q=k.ZP.div.withConfig({componentId:"sc-8e44e493-3"})(Sidebar_styles_templateObject3()),W=k.ZP.div.withConfig({componentId:"sc-8e44e493-4"})(_templateObject4()),K=k.ZP.div.withConfig({componentId:"sc-8e44e493-5"})(_templateObject5(),e=>{let{theme:t}=e;return"0px ".concat(t.radii.medium," ").concat(t.radii.medium," 0px")},e=>{let{theme:t}=e;return t.colors.white}),$=(0,k.iv)(_templateObject7(),e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.fontSizes.medium},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{$isOpen:t}=e;return t&&(0,k.iv)(_templateObject6())}),X=(0,k.ZP)(x()).withConfig({componentId:"sc-8e44e493-6"})(_templateObject9(),$,e=>{let{$isActive:t}=e;return t&&(0,k.iv)(_templateObject8())}),Y=k.ZP.div.withConfig({componentId:"sc-8e44e493-7"})(_templateObject10(),e=>{let{theme:t}=e;return t.spacing.medium}),J=k.ZP.button.withConfig({componentId:"sc-8e44e493-8"})(_templateObject11(),$,e=>{let{theme:t}=e;return t.colors.white}),ee=(0,k.ZP)(v.STs).withConfig({componentId:"sc-8e44e493-9"})(_templateObject12(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.warning}),Sidebar=e=>{let{active:t}=e,{push:n}=(0,a.useRouter)(),{t:l,i18n:c}=(0,r.$G)("guest"),{isAndoLiving:d}=(0,h.M)(),{guestToken:_,bookingStatus:v,bookingRentalType:w,bookingSource:x,geoZoneId:k}=(0,u.J)(e=>({guestToken:e.mainGuest.guestToken,bookingStatus:e.bookingGeneralStatus(),bookingRentalType:e.bookingInfo.bookingRentalType,bookingSource:e.bookingInfo.source,geoZoneId:e.bookingInfo.geoZoneId}),g.X),j=(0,p.Cg)(e=>e.actions.openPreferences),O=(0,b.X)(),[I,C]=(0,i.useState)(!1),[T,P]=(0,i.useState)(!1),{data:G}=(0,F.I)(!d&&!!k),S=null;if(!d&&k&&G){let e=(0,L.f0)(G,k);S=(null==e?void 0:e.linktreeUrl)||null}let handleMenuItemClick=e=>{s.f.GuestMenuItemClicked({...O,menu_item:"guest"===e?"home":e,placement:"sidebar"})};(0,i.useEffect)(()=>{let e;return I?e=setTimeout(()=>{P(!0)},100):P(!1),()=>clearTimeout(e)},[I]);let B=(0,y.z3)(d,w,x,S).filter(e=>{let{show:t}=e;return t});return(0,o.jsxs)(V,{$isOpen:I,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[(0,o.jsxs)(U,{children:[(0,o.jsx)(q,{src:"/logos/".concat(d?"andoliving-white.svg":"home-lovelystay-filled.svg")}),(0,o.jsx)(Q,{children:B.map(e=>{let{Icon:n,label:i,name:r,route:a,externalLink:s,showStatus:u}=e;return(0,o.jsxs)(W,{children:[t[r]&&(0,o.jsx)(K,{}),(0,o.jsxs)(X,{href:s||"".concat(a,"/").concat(_),$isActive:t[r],$isOpen:T,"data-testid":"qa-menu-".concat(r),target:s?"_blank":"_self",onClick:()=>handleMenuItemClick(r),children:[(0,o.jsx)(n,{className:"sideBarItemIcon",size:32}),T&&(0,o.jsx)("p",{children:l(i)}),u&&v===f.m.incomplete&&(0,o.jsx)(ee,{size:18})]})]},r)})})]}),(0,o.jsxs)(Y,{children:[(0,o.jsxs)(J,{onClick:()=>{if(handleMenuItemClick("website"),d){window.location.href=M.rP;return}["es","fr"].includes(c.language)?n({pathname:m.Z6.home},"",{locale:"en"}):n({pathname:m.Z6.home})},$isOpen:T,children:[(0,o.jsx)(z.Iw6,{className:"sideBarItemIcon"}),T&&(0,o.jsx)("p",{children:l("sidebar.website")})]}),(0,o.jsxs)(J,{onClick:j,$isOpen:T,"data-testid":"qa-menu-cookie-preferences",children:[(0,o.jsx)(z.nx8,{className:"sideBarItemIcon"}),T&&(0,o.jsx)("p",{children:l("sidebar.cookiePreferences")})]})]})]})};
1function layout_styles_templateObject(){let e=(0,_._)(["\n  max-width: 1440px;\n  margin: 0 auto;\n"]);return layout_styles_templateObject=function(){return e},e}function layout_styles_templateObject1(){let e=(0,_._)(["\n  display: flex;\n  justify-content: center;\n  padding: ",";\n  padding-bottom: 124px;\n"]);return layout_styles_templateObject1=function(){return e},e}function layout_styles_templateObject2(){let e=(0,_._)(["\n  font-size: ",";\n  color: ",";\n  text-decoration: underline;\n  cursor: pointer;\n"]);return layout_styles_templateObject2=function(){return e},e}let et=k.ZP.div.withConfig({componentId:"sc-741c21dc-0"})(layout_styles_templateObject()),en=k.ZP.footer.withConfig({componentId:"sc-741c21dc-1"})(layout_styles_templateObject1(),e=>{let{theme:t}=e;return"".concat(t.spacing.x_large," ").concat(t.spacing.medium)}),eo=k.ZP.button.withConfig({componentId:"sc-741c21dc-2"})(layout_styles_templateObject2(),e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.colors.grey}),Layout=e=>{let{children:t}=e,n=(0,a.useRouter)(),[s,u]=(0,i.useState)({guest:!0,booking:!1,payments:!1,services:!1}),g=(0,c.Z)(l.Hb.tablet),{t:f}=(0,r.$G)("guest"),h=(0,p.Cg)(e=>e.actions.openPreferences);useGuestPageViewedTracking();let hidePipedriveChat=e=>{let t=document.createElement("div");t.id=d._B,t.appendChild(e),document.body.appendChild(t),t.style.display="none"},hidePipedriveContainerChat=()=>{let e=document.getElementById(d._B);e&&(e.style.display="none")};return(0,i.useEffect)(()=>{u({guest:n.pathname==="".concat(m.Z6.guest,"/[token]"),booking:n.pathname==="".concat(m.Z6.guestBooking,"/[token]"),payments:["".concat(m.Z6.guestPayments,"/[token]"),"".concat(m.Z6.guestPaymentUnit,"/[id]")].includes(n.pathname),services:!1}),hidePipedriveContainerChat()},[n.pathname]),(0,i.useEffect)(()=>{let e=new MutationObserver(e=>{for(let t of e)"childList"===t.type&&t.addedNodes.forEach(e=>{e.id===d.zP&&hidePipedriveChat(e)})});return e.observe(document.body,{childList:!0}),()=>{e.disconnect();let t=document.getElementById(d._B);t&&(t.style.display="block")}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Navbar,{}),(0,o.jsxs)(et,{children:[!g&&(0,o.jsx)(Sidebar,{active:s}),(0,o.jsx)("main",{children:t}),g&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(en,{children:(0,o.jsx)(eo,{onClick:h,"data-testid":"guest-footer-cookie-preferences",children:f("sidebar.cookiePreferences")})}),(0,o.jsx)(BottomNavigation,{active:s})]})]})]})}},92744:function(e,t,n){n.d(t,{Pe:function(){return COLOR_BY_BRAND},c2:function(){return BACKGROUND_COLOR_BY_BRAND},iM:function(){return FILL_COLOR_BY_BRAND},n9:function(){return l},oe:function(){return a}});var o=n(82729),i=n(85444),r=n(45177);function _templateObject(){let e=(0,o._)(["\n  ",": ",";\n"]);return _templateObject=function(){return e},e}let a="#AE987A",l="#BAA78D",isValidThemeColorKey=(e,t)=>e in t,getColorByBrand=(e,t,n)=>(0,i.iv)(_templateObject(),e,e=>{let{theme:o}=e;return o.currentCompany===r.O3.andoliving?isValidThemeColorKey(t,o.colors)?o.colors[t]:t:isValidThemeColorKey(n,o.colors)?o.colors[n]:n}),COLOR_BY_BRAND=(e,t)=>getColorByBrand("color",e,t),BACKGROUND_COLOR_BY_BRAND=(e,t)=>getColorByBrand("background-color",e,t),FILL_COLOR_BY_BRAND=(e,t)=>getColorByBrand("fill",e,t)},43828:function(e,t,n){n.d(t,{y:function(){return fetchApartmentById}});var o=n(48303);let formatAmenities=e=>{let t={};return e.forEach(e=>{let n=e.amenityType.replace(/_([a-z])/g,(e,t)=>t.toUpperCase());t[n]={visible:!0,metadata:e.metadata||{}}}),t};var i=n(89206);let fetchApartmentById=async(e,t)=>{let n=t?"/apartment/".concat(e,"/guest-page"):"/apartment/".concat(e,"/info");try{let{data:e}=await o.Z.get(n),t={...e,amenities:formatAmenities(e.amenities)};return t}catch(e){throw(0,i.S)({error:e,endpoint:n}),e}}},61694:function(e,t,n){n.d(t,{B:function(){return fetchGeoZone},D:function(){return postContact}});var o=n(48303),i=n(89206);let postContact=async e=>{let t="/contact";try{o.Z.post(t,{...e})}catch(e){(0,i.S)({error:e,method:"POST",endpoint:t})}},fetchGeoZone=async()=>{try{let{data:e}
1=await o.Z.get("/website/geozones");return e}catch(e){(0,i.S)({error:e,endpoint:"/website/geozones"})}}},13009:function(e,t,n){n.d(t,{U:function(){return showErrorMessage}});var o=n(37303),i=n(77930);let showErrorMessage=(e,t)=>{var n;return(0,i.c0)({message:null!==(n=null!=e?e:null===o.ag||void 0===o.ag?void 0:o.ag.t("common:error"))&&void 0!==n?n:"Ops, an error occurred.",type:"error",toastId:t})}},3465:function(e,t,n){n.d(t,{VE:function(){return fetchGuests},Zf:function(){return fetchBookingInvoices},gL:function(){return fetchBookingInfo},hw:function(){return addGuest},rQ:function(){return fetchBookingPaymentInfo},rv:function(){return chargeBooking},sF:function(){return updateGuest},w5:function(){return updateBookingInfo}});var o=n(99882),i=n(48303),r=n(54555),a=n(89206),l=n(13009);let s=r.ki.PT.id,fetchBookingInfo=async e=>{let t="/bookings/guestToken/".concat(e);try{let{data:e}=await i.Z.get(t);return e}catch(e){(0,a.S)({error:e,endpoint:t}),console.error(e)}},fetchBookingInvoices=async e=>{let t="/bookings/guestToken/".concat(e,"/invoices");try{let{data:e}=await i.Z.get(t);return e}catch(e){(0,a.S)({error:e,endpoint:t}),console.error(e)}},fetchGuests=async e=>{let t="/bookings/token/".concat(e,"/guests");try{let{data:e}=await i.Z.get(t);return e}catch(e){(0,a.S)({error:e,endpoint:t}),console.error(e)}},updateGuest=async e=>{let t="/bookings/token/".concat(e.guestToken,"/guest/").concat(e.guestId),n={...e,addressCountryIdRef:e.nationalityCountryIdRef!==s||e.addressCountryIdRef?e.addressCountryIdRef:s};try{return i.Z.patch(t,n)}catch(e){(0,a.S)({error:e,method:"PATCH",endpoint:t})}},addGuest=async e=>{let{guestToken:t,...n}=e,o="/bookings/token/".concat(t,"/guest"),r={...n,addressCountryIdRef:n.nationalityCountryIdRef!==s||n.addressCountryIdRef?n.addressCountryIdRef:s};try{return i.Z.post(o,r)}catch(e){(0,a.S)({error:e,method:"POST",endpoint:o})}},updateBookingInfo=async e=>{let t="/bookings/guestToken/".concat(e.guestToken);try{return i.Z.patch(t,{...e})}catch(e){(0,a.S)({error:e,method:"PATCH",endpoint:t})}},fetchBookingPaymentInfo=async(e,t,n)=>{let o=n?"bookings/website/getBookingPaymentInformation/".concat(e):"bookings/website/getBookingPaymentInformation/".concat(e,"/bookingUnits/").concat(t);try{let{data:e}=await i.Z.get(o);return{aptId:e.aptId,bookingId:e.bookingId,checkIn:e.checkIn,checkOut:e.checkOut,paymentDetail:e.paymentDetail,totalToCharge:e.totalToCharge}}catch(e){(0,a.S)({error:e,endpoint:o}),console.error(e)}},chargeBooking=async(e,t,n,r)=>{var a,s,u;let c=r?"/bookings/website/chargeBookingV2/".concat(e):"/bookings/website/chargeBookingV2/".concat(e,"/bookingUnits/").concat(t);try{let{data:e}=await i.Z.post(c,{...n});if("failed"===e.outcome||"requiresPaymentMethod"===e.outcome)throw o.R.RequestError({error_message:e.error,method:"POST",endpoint:c}),(0,l.U)(e.error),Error(null!==(a=e.error)&&void 0!==a?a:"Payment failed");if("requiresAction"===e.outcome)throw o.R.RequestError({error_message:"Unexpected requiresAction after chargeBooking",method:"POST",endpoint:c}),(0,l.U)(),Error("Payment could not be completed");return e}catch(e){if(!(null==e?void 0:e.response))throw e;throw o.R.RequestError({error_message:null==e?void 0:null===(s=e.response)||void 0===s?void 0:s.data.error,method:"POST",endpoint:c}),(0,l.U)(null==e?void 0:null===(u=e.response)||void 0===u?void 0:u.data.error),e}}},48303:function(e,t,n){var o=n(87066);let i=o.default.create({baseURL:"https://dashboard.lovelystay.com/api",withCredentials:!0});t.Z=i},24745:function(e,t,n){n.d(t,{I:function(){return useGeozoneQuery}});var o=n(17e3),i=n(61694);let useGeozoneQuery=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.a)({queryKey:["geozones"],queryFn:()=>(0,i.B)(),keepPreviousData:!0,staleTime:1/0,enabled:e})}},93973:function(e,t,n){n.d(t,{I:function(){return useBookingPaymentInfoQuery}});var o=n(17e3),i=n(3465);let useBookingPaymentInfoQuery=e=>{let{guestToken:t,bookingUnitId:n,isMultiRoom:r,enabled:a}=e;return(0,o.a)({queryKey:["booking-payments",t,n,r],queryFn:()=>(0,i.rQ)(t,n,r),cacheTime:1/0,enabled:a,refetchOnWindowFocus:!1})}},80691:function(e,t,n){function formatToCurrency(e){return void 0!==e?new Intl.NumberFormat("pt-PT",{style:"currency",currency:"EUR",minimumFractionDigits:2,maximumFractionDigits:2}).format(e).replace(/\s+/g," "):0}
1n.d(t,{E4:function(){return formatAmountForLanguage},WW:function(){return formatToCurrency},oe:function(){return formatCurrencyForLanguage}});let formatAmountForLanguage=(e,t)=>(null==t?void 0:t.toLowerCase().startsWith("pt"))?new Intl.NumberFormat("pt-PT",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e).replace(/\s+/g," "):e.toFixed(2),formatCurrencyForLanguage=(e,t)=>"".concat(formatAmountForLanguage(e,t)," €")},41821:function(e,t,n){n.d(t,{AD:function(){return findGeoZoneByName},f0:function(){return findGeoZoneById},kF:function(){return i}});let o={Lisboa:"[email protected]",Porto:"[email protected]",Algarve:"[email protected]",Mafra:"[email protected]",Cascais:"[email protected]","V.N. Gaia":"[email protected]",Matosinhos:"[email protected]",Sintra:"[email protected]",Faro:"[email protected]",Normandy:"[email protected]"},findGeoZoneByName=(e,t)=>{for(let n in e)if(e[n].geoZoneName===t){let e={geoZoneBookingsEmail:o[t],geoZoneSalesEmail:"[email protected]",geoZoneId:n};return e}return null},findGeoZoneById=(e,t)=>e&&e[t]?{...e[t],linktreeUrl:getGeoZoneLinktreeUrl(e[t].geoZoneName)}
1:null,i={2:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",3:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",4:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",5:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",6:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",13:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",14:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",16:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",17:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",18:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",19:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",20:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",22:"https://maps.app.goo.gl/GJxKHkQcd1VWZ3S39",23:"https://maps.app.goo.gl/KiT2EvbT8DawaNDo7",25:"https://maps.app.goo.gl/GJxKHkQcd1VWZ3S39",26:"https://maps.app.goo.gl/KiT2EvbT8DawaNDo7",27:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",60:"https://maps.app.goo.gl/KiT2EvbT8DawaNDo7",61:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",62:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",63:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",64:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8"},r={lisboa:{url:"https://linktr.ee/lovelystaylisboa",locations:["Lisboa","Mafra","Cascais","Oeiras","Seixal","Almada","Sesimbra"]},porto:{url:"https://linktr.ee/lovelystayporto",locations:["Porto","V.N. Gaia","Matosinhos","P\xf3voa de Varzim"]},algarve:{url:"https://linktr.ee/lovelystayalgarve",locations:["Algarve","V.R. Santo Ant\xf3nio","Faro","Olh\xe3o","Portim\xe3o","Lagoa","Albufeira","Loul\xe9"]},madeira:{url:"https://linktr.ee/lovelystaymadeira",locations:["Madeira","Santa Cruz","Ponta do Sol","Santana","Calheta","Machico","Funchal","Ribeira Brava","C\xe2mara de Lobos","S\xe3o Vicente"]}},getGeoZoneLinktreeUrl=e=>{for(let t of Object.values(r))if(t.locations.includes(e))return t.url;return null}},39374:function(e,t,n){n.d(t,{KN:function(){return getCurrentAndNextPayment},a5:function(){return formatRentalPeriod},ci:function(){return getUnitStatus},fL:function(){return formatTextWithLinks},p6:function(){return formatDate},u0:function(){return y},z3:function(){return getGuestMenuItems}});var o=n(85893),i=n(89583),r=n(1451),a=n(5434),l=n(37106),s=n(42298),u=n(42699),c=n(313),d=n(24257),m=n(23855),p=n(55354),g=n(79362),f=n(13719),h=n(62195),b=n(1112);let y=[{value:"national_id",label:"guest:idDocumentType.national_id"},{value:"passport",label:"guest:idDocumentType.passport"},{value:"drivers_licence",label:"guest:idDocumentType.drivers_license"},{value:"other_id_document",label:"guest:idDocumentType.other_id_document"}],getGuestMenuItems=(e,t,n,s)=>[{name:"guest",route:h.Z6.guest,Icon:e=>{let{className:t,size:n}=e;return(0,o.jsx)(l.diY,{className:t,size:n})},label:"sidebar.dashboard",show:!0},{name:"booking",route:h.Z6.guestBooking,Icon:e=>{let{className:t,size:n}=e;return(0,o.jsx)(r.ujk,{className:t,size:n})},label:"sidebar.booking",showStatus:!0,show:!0},{name:"services",externalLink:e?g.$w:s||"",Icon:e=>{let{className:t,size:n}=e;return(0,o.jsx)(a.G4S,{className:t,size:n})},label:"sidebar.services",show:e||!!s},{name:"payments",route:h.Z6.guestPayments,Icon:e=>{let{className:t,size:n}=e;return(0,o.jsx)(i._02,{className:t,size:n})},label:"sidebar.payments",show:!!t&&t!==p.m.shortTerm&&n!==b.X.flatio}],getUnitStatus=e=>{let{chargedAmount:t,checkOut:n,checkIn:o,totalToCharge:i,chargeAllowedDate:r}=e;if(t===i)return"paid";let a=o?(0,m.default)(o):new Date,l=n?(0,m.default)(n):new Date,s=r?(0,m.default)(r):new Date;if((0,d.default)(new Date,{start:s,end:a}))return"awaiting";let p=(0,u.default)(new Date,s),g=(0,c.default)(new Date,l);return p&&g?"due":"notYetDue"},getCurrentAndNextPayment=e=>{let t,n,o;let i=e?e.sort((e,t)=>(0,m.default)(e.checkIn).getTime()-(0,m.default)(t.checkIn).getTime()):[];if(i.forEach((e,t)=>{let{checkOut:n,checkIn:i,chargeAllowedDate:r}=e,a=i?(0,m.default)(i):new Date,l=n?(0,m.default)(n):new Date,s=r?(0,m.default)(r):new Date;if((0,d.default)(new Date,{start:s,end:a})){o=t;return}let p=(0,u.default)(new Date,s),g=(0,c.default)(new Date,l);if(p&&g){o=t;return}}),void 0!==o){t=i[o];let e=i.length-1===o;e||(n=i[o+1])}else n=i[0];return{current:t,next:n}},formatDate=(e,t)=>(0,s.default)((0,m.default)(e),"dd LLL yyyy",{locale:(0,f.t4)(t)}),formatRentalPeriod=(e,t,n)=>{let o=formatDate(e,n),i=formatDate(t,n),r=o&&i?" - ":"";return"".concat(o).concat(r).concat(i)},formatTextWithLinks=e=>e.replace(/{{([^]*?)}}/gm,e=>{let t=e.replace(/{{/g,"").replace(/}}/g,""),n=t.replace(/@"[^-A-Za-z0-9+&@#/%?=~_|!:,.;\(\)]"/,"");return'<a name="'.concat(n,'" target="_blank" href="').concat(n,'">').concat(n,"</a>")})},89206:function(e,t,n){n.d(t,{S:function(){return handleErrorTracking}});var o=n(99882);let handleErrorTracking=e=>{let{error:t,endpoint:n,method:i="GET"}=e;t instanceof Error?o.R.RequestError({error_message:t.message,method:i,endpoint:n}):o.R.RequestError({error_message:"An unknown error occurred",method:i,endpoint:n})}},43583:function(e,t,n){n.d(t,{Eg:function(){return a},JG:function(){return r},KI:function(){return i},U1:function(){return m},XT:function(){return s},_B:function(){return d},iD:function(){return o},mH:function(){return u},rQ:function(){return l},um:function(){return p},zP:function(){return c}});let o="guestInput",i="guestMobileInput",r="checkInCheckOutInput",a="checkInCheckOutMobileInput",l="search-form",s="lovelystay-navbar",u="top-banner",c="LeadboosterContainer",d="pipedrive-container",m="become-a-partner",p="owner-packages"},1112:function(e,t,n){var o,i;n.d(t,{X:function(){return o},Y:function(){return r}});let r={airbnb:"Airbnb",booking:"Booking",tripadvisor:"Tripadvisor",homeaway:"Homeaway",office:"Office",owner:"Owner",uniplaces:"Uniplaces",rentalsUnited:"Rentals United",expedia:"Expedia",plumGuide:"Plum Guide",agoda:"Agoda",holidu:"Holidu",homelike:"Homelike",leboncoin:"Leboncoin",nestpick:"Nestpick",onefinestay:"Onefinestay",rakuten:"Rakuten",topvillas:"Top Villas",tuivillas:"TUI villas",kidandcoe:"Kid & Coe",villa
1Finder:"Villa Finder",googleTravel:"Google Travel",homeToGo:"HomeToGo",kayakHotelsCombined:"Kayak HotelsCombined",homesAndVillasMarriott:"Homes & Villas by Marriott",housingAnyWhere:"Housing AnyWhere",flatio:"Flatio"};(i=o||(o={})).airbnb="airbnb",i.booking="booking",i.tripadvisor="tripadvisor",i.homeaway="homeaway",i.office="office",i.owner="owner",i.uniplaces="uniplaces",i.rentalsUnited="rentalsUnited",i.expedia="expedia",i.plumGuide="plumGuide",i.agoda="agoda",i.holidu="holidu",i.homelike="homelike",i.leboncoin="leboncoin",i.nestpick="nestpick",i.onefinestay="onefinestay",i.rakuten="rakuten",i.topvillas="topvillas",i.tuivillas="tuivillas",i.kidandcoe="kidandcoe",i.villaFinder="villaFinder",i.googleTravel="googleTravel",i.homeToGo="homeToGo",i.kayakHotelsCombined="kayakHotelsCombined",i.homesAndVillasMarriott="homesAndVillasMarriott",i.housingAnyWhere="housingAnyWhere",i.flatio="flatio"}}]);

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.