"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4318],{24284:function(n,e){e.Z={src:"/_next/static/media/ando-living-loader.79eaebcb.gif",height:500,width:500,blurWidth:0,blurHeight:0}},76100:function(n,e){e.Z={src:"/_next/static/media/loader.a5b4f275.gif",height:256,width:256,blurWidth:0,blurHeight:0}},54237:function(n,e){e.Z={src:"/_next/static/media/no-results.56b33e6a.svg",height:342,width:381,blurWidth:0,blurHeight:0}},28609:function(n,e,t){t.d(e,{z:function(){return v}});var r=t(85893),i=t(37303),o=t(25675),l=t.n(o),c=t(85444),a=t(13135),u=t(7297),s=t(92136);function d(){let n=(0,u.Z)(["\n      max-width: 250px;\n    "]);return d=function(){return n},n}function f(){let n=(0,u.Z)(["\n      @media "," {\n        display: grid;\n        grid-template-columns: repeat(2, 1fr);\n      }\n    "]);return f=function(){return n},n}function p(){let n=(0,u.Z)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  text-align: center;\n  max-width: 400px;\n  padding: ",";\n  width: 100%;\n  gap: ",";\n\n  ",";\n\n  @media "," {\n    gap: ",";\n    max-width: initial;\n    flex-wrap: wrap;\n  }\n\n  ",";\n"]);return p=function(){return n},n}function m(){let n=(0,u.Z)(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-between;\n  min-height: 37px;\n  gap: ",";\n\n  .size-icon {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    height: 20px;\n  }\n"]);return m=function(){return n},n}function h(){let n=(0,u.Z)(["\n  display: flex;\n  align-items: center;\n  text-transform: lowercase;\n  color: ",";\n  font-size: ",";\n"]);return h=function(){return n},n}let g=c.ZP.div.withConfig({componentId:"sc-20891a15-0"})(p(),n=>{let{mobile:e,theme:t}=n;return e?0:"0 ".concat(t.spacing.medium)},n=>{let{theme:e}=n;return e.spacing.small},n=>{let{mobile:e}=n;return e&&(0,c.iv)(d())},s.Hb.tablet,n=>{let{theme:e}=n;return"".concat(e.spacing.large," ").concat(e.spacing.small)},n=>{let{changeToGridOnMobile:e}=n;return e&&(0,c.iv)(f(),s.Hb.mobile)}),x=c.ZP.div.withConfig({componentId:"sc-20891a15-1"})(m(),n=>{let{theme:e}=n;return e.spacing.x_small}),b=c.ZP.div.withConfig({componentId:"sc-20891a15-2"})(h(),n=>{let{theme:e}=n;return e.colors.grey},n=>{let{theme:e,fontSize:t}=n;return t||e.fontSizes.small}),w=n=>{let{guest:e,bedrooms:t,bathrooms:o,area:u,iconAreaSize:s=16,iconBedSize:d=16,iconBathSize:f=16,iconGuestSize:p=16,fontSize:m,isMobile:h=!1,changeToGridOnMobile:w=!1}=n,v=(0,c.Fg)(),{t:y}=(0,i.$G)(),Z=(n,e)=>n?h?"x".concat(n):e:"-";return(0,r.jsxs)(g,{changeToGridOnMobile:w,mobile:h,children:[(0,r.jsxs)(x,{title:y("common:apartmentsMainFilter.fields.guests",{count:e}),children:[(0,r.jsx)(l(),{src:"".concat(a.Mx,"/icons/info-apto/guest-").concat(v.currentCompany,".svg"),width:p,height:p,alt:y("common:guests")}),(0,r.jsx)(b,{fontSize:m,children:Z(e,y("common:apartmentsMainFilter.fields.guests",{count:e}))})]}),(0,r.jsxs)(x,{title:y("common:apartmentDetails.bedrooms",{count:t}),children:[(0,r.jsx)(l(),{src:"".concat(a.Mx,"/icons/info-apto/bedroom-").concat(v.currentCompany,".svg"),width:d,height:d,alt:y("common:bedrooms")}),(0,r.jsx)(b,{fontSize:m,children:Z(t,y("common:apartmentDetails.bedrooms",{count:t}))})]}),(0,r.jsxs)(x,{title:y("common:apartmentDetails.bathrooms",{count:o}),children:[(0,r.jsx)(l(),{src:"".concat(a.Mx,"/icons/info-apto/shower-").concat(v.currentCompany,".svg"),width:f,height:f,alt:y("common:size")}),(0,r.jsx)(b,{fontSize:m,children:Z(o,y("common:apartmentDetails.bathrooms",{count:o}))})]}),(0,r.jsxs)(x,{children:[(0,r.jsx)("div",{className:"size-icon",children:(0,r.jsx)(l(),{src:"".concat(a.Mx,"/icons/info-apto/size-").concat(v.currentCompany,".svg"),width:s,height:s,alt:y("common:size")})}),(0,r.jsx)(b,{fontSize:m,children:u?"".concat(u," m\xb2"):"-"})]})]})};var v=w},12124:function(n,e,t){t.d(e,{x:function(){return a}});var r=t(85893),i=t(7297),o=t(85444);function l(){let n=(0,i.Z)(["\n  max-width: ",";\n  height: ",";\n  background: "," 0% 0% no-repeat padding-box;\n  box-shadow: 0px 3px 6px #00000029;\n  border-radius: ",";\n  opacity: 1;\n  padding: ",";\n"]);return l=function(){return n},n}let c=o.ZP.div.withConfig({componentId:"sc-433cf6a5-0"})(l(),n=>{let{width:e}=n;return e},n=>{let{height:e}=n;return e},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.spacing.medium}),a=n=>{let{children:e,className:t,width:i="initial",height:o="initial"}=n;return(0,r.jsx)(c,{className:t,width:i,height:o,children:e})}},30002:function(n,e,t){t.d(e,{A:function(){return m}});var r=t(85893),i=t(37303),o=t(76248),l=t(79920),c=t(1839),a=t(7297),u=t(85444);function s(){let n=(0,a.Z)(["\n          background-color: ",";\n          box-shadow: ",";\n          border-radius: 100%;\n          svg {\n            color: ",";\n          }\n        "]);return s=function(){return n},n}function d(){let n=(0,a.Z)(["\n          width: 30px;\n          height: 30px;\n          background-color: rgba(230, 230, 230, 0.5);\n          transition: background ",";\n\n          svg {\n            color: #fafafa;\n          }\n\n          &:hover {\n            background-color: rgba(97, 97, 97, 0.5);\n          }\n        "]);return d=function(){return n},n}function f(){let n=(0,a.Z)(["\n  width: 36px;\n  height: 36px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  transition: all 300ms;\n  border-radius: ",";\n  ",";\n\n  svg {\n    fill: ",";\n  }\n\n  &:hover {\n    cursor: pointer;\n  }\n"]);return f=function(){return n},n}let p=u.ZP.button.withConfig({componentId:"sc-e1db4965-0"})(f(),n=>{let{theme:e}=n;return e.radii.middle},n=>{let{theme:e,hasBackground:t}=n;return t?(0,u.iv)(s(),e.colors.white,e.shadows.boxShadow,e.colors.black):(0,u.iv)(d(),n=>{let{theme:e}=n;return e.transitions.regular})},n=>{let{theme:e,isSelected:t,borderColor:r}=n;return t?e.colors.danger:r}),m=n=>{var e;let{aptId:t,category:a,borderColor:u="white",hasBackground:s=!1,className:d}=n,{t:f}=(0,i.$G)(),{favourites:m,toggleFavourites:h}=(0,c.c)(n=>({favourites:n.favourites,toggleFavourites:n.toggleFavourites}),o.X),g=null===(e=m[a])||void 0===e?void 0:e.includes(t);return(0,r.jsx)(p,{className:d,hasBackground:s,"data-testid":"favourite-button",type:"button",onClick:()=>h(t,a),isSelected:g,borderColor:u,title:f(g?"common:removeFavourite":"common:addFavourite"),children:g?(0,r.jsx)(l.P.HeartFilled,{"data-testid":"heart-fill"}):(0,r.jsx)(l.P.HeartOutlined,{"data-testid":"heart-line"})})}},27166:function(n,e,t){t.d(e,{Z:function(){return Z}});var r=t(85893),i=t(37303),o=t(25675),l=t.n(o),c=t(24284),a=t(76100),u=t(12124),s=t(31741),d=t(7297),f=t(85444);function p(){let n=(0,d.Z)(["\n  display: flex;\n  width: 100%;\n  height: 100%;\n  justify-content: center;\n  align-items: center;\n  position: fixed;\n  top: 0;\n  left: 0;\n  background-color: rgba(37, 39, 41, 0.4);\n  font-family: ",";\n  color: ",";\n  z-index: 100;\n"]);return p=function(){return n},n}function m(){let n=(0,d.Z)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  max-width: 365px;\n"]);return m=function(){return n},n}function h(){let n=(0,d.Z)(["\n  font-size: ",";\n  width: 100%;\n  text-align: center;\n  margin-top: 15px;\n"]);return h=function(){return n},n}function g(){let n=(0,d.Z)(["\n  font-size: ",";\n  width: calc(100% - 30px);\n  text-align: center;\n  margin: 5px 15px;\n"]);return g=function(){return n},n}let x=f.ZP.div.withConfig({componentId:"sc-2d3469aa-0"})(p(),n=>{let{theme:e}=n;return e.fonts.primary},n=>{let{theme:e}=n;return e.colors.secondary}),b=f.ZP.div.withConfig({componentId:"sc-2d3469aa-1"})(m()),w=f.ZP.h6.withConfig({componentId:"sc-2d3469aa-2"})(h(),n=>{let{theme:e}=n;return e.fontSizes.large}),v=f.ZP.p.withConfig({componentId:"sc-2d3469aa-3"})(g(),n=>{let{theme:e}=n;return e.fontSizes.medium}),y=n=>{let{title:e,description:t}=n,{t:o}=(0,i.$G)(),{isLovelyStay:d}=(0,s.M)();return(0,r.jsx)(x,{children:(0,r.jsx)(u.x,{children:(0,r.jsxs)(b,{children:[e&&(0,r.jsx)(w,{children:o(e)}),t&&(0,r.jsx)(v,{children:o(t)}),(0,r.jsx)(l(),{src:d?a.Z:c.Z,alt:o("common:loading"),width:75,height:75})]})})})};var Z=y},66609:function(n,e,t){t.d(e,{D:function(){return a}});var r=t(85893),i=t(67294),o=t(32690);let l=n=>null!=n&&"object"==typeof n&&Number.isFinite(n.lat)&&Number.isFinite(n.lng),c=(0,o.gP)(()=>({areObjectsEqual:(n,e)=>l(n)||n instanceof google.maps.LatLng||l(e)||e instanceof google.maps.LatLng?new google.maps.LatLng(n).equals(new google.maps.LatLng(e)):(0,o.vZ)(n,e)})),a=n=>{var e;let{onIdle:t,onDragend:o,onZoomChanged:l,children:a,...u}=n,s=(0,i.useRef)(null),[d,f]=(0,i.useState)();return(0,i.useEffect)(()=>{if(s.current&&!d){let n=new window.google.maps.Map(s.current,{});f(n)}},[s,d]),e=()=>{d&&d.setOptions(u)},(0,i.useEffect)(e,[function(n){let e=(0,i.useRef)();return c(n,e.current)||(e.current=n),e.current}([d,u])]),(0,i.useEffect)(()=>{d&&(["dragend","idle","zoom_changed"].forEach(n=>google.maps.event.clearListeners(d,n)),t&&d.addListener("idle",()=>{t(d)}),o&&d.addListener("dragend",()=>{o(d)}),l&&d.addListener("zoom_changed",()=>{l(d)}))},[d,o,t,l]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:s}),i.Children.map(a,n=>{if((0,i.isValidElement)(n))return(0,i.cloneElement)(n,{map:d})})]})}},9477:function(n,e,t){t.d(e,{Z:function(){return o}});var r=t(67294),i=t(73935);function o(n){let{position:e,pane:t="floatPane",map:o,zIndex:l,children:c}=n,a=(0,r.useMemo)(()=>{let n=document.createElement("div");return n.style.position="absolute",n},[]),u=(0,r.useMemo)(()=>(function(n,e,t){class r extends google.maps.OverlayView{onAdd(){var n;let e=null===(n=this.getPanes())||void 0===n?void 0:n[this.pane];null==e||e.appendChild(this.container)}draw(){let n=this.getProjection(),e=n.fromLatLngToDivPixel(this.position);null!==e&&(this.container.style.transform="translate(".concat(e.x,"px, ").concat(e.y,"px)"))}onRemove(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)}constructor(n,e,t){super(),this.container=n,this.pane=e,this.position=t}}return new r(n,e,t)})(a,t,e),[a,t,e]);return(0,r.useEffect)(()=>(null==u||u.setMap(o),()=>null==u?void 0:u.setMap(null)),[o,u]),(0,r.useEffect)(()=>{a.style.zIndex="".concat(l)},[l,a]),(0,i.createPortal)(c,a)}},19912:function(n,e,t){t.d(e,{_:function(){return p}});var r=t(85893),i=t(79920),o=t(7297),l=t(11358),c=t.n(l),a=t(85444),u=t(85909);function s(){let n=(0,o.Z)(["\n          li {\n            border-radius: 0;\n            border: 1px solid ",";\n            border-left-width: 0;\n            box-shadow: none;\n            margin: 0;\n            color: ",";\n            font-size: ",";\n\n            &.previous,\n            &.next {\n              border-left-width: 1px;\n              margin: 0;\n            }\n\n            &.previous {\n              margin-right: ",";\n\n              + li {\n                border-left-width: 1px;\n              }\n            }\n\n            &.next {\n              margin-left: ",";\n            }\n\n            &.active {\n              border-color: ",";\n              box-shadow: none;\n            }\n          }\n        "]);return s=function(){return n},n}function d(){let n=(0,o.Z)(["\n  display: flex;\n  justify-content: center;\n  margin: "," 0;\n  list-style: none;\n\n  li {\n    margin: 0 ",";\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    width: 32px;\n    height: 32px;\n    border-radius: 50%;\n    color: ",";\n    font-weight: ",";\n\n    a {\n      cursor: pointer;\n      padding: ",";\n    }\n\n    &.previous,\n    &.next {\n      margin-top: 3px;\n      svg {\n        stroke-width: 3;\n      }\n    }\n    &.active {\n      box-shadow: ",";\n      background-color: ",";\n      color: white;\n    }\n    &.disabled {\n      opacity: 0.5;\n      cursor: not-allowed;\n    }\n  }\n\n  ",";\n"]);return d=function(){return n},n}let f=(0,a.ZP)(c()).withConfig({componentId:"sc-50e2df03-0"})(d(),n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.spacing.small},n=>{let{theme:e}=n;return e.colors.grey2},n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{theme:e}=n;return"".concat(e.spacing.small," ").concat(e.spacing.middle)},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.currentCompany===u.O3.ferienhaus?(0,a.iv)(s(),e.colors.grey2,e.colors.text,e.fontSizes.small,e.spacing.middle,e.spacing.middle,e.colors.primary):null}),p=n=>{let{currentPage:e,pageCount:t,onPageChange:o,marginPagesDisplayed:l=2,pageRangeDisplayed:c=5,forcePage:a}=n,u=n=>{o(n.selected)};return(0,r.jsx)(f,{pageCount:t,marginPagesDisplayed:l,pageRangeDisplayed:c,breakLabel:"...",onPageChange:u,initialPage:e,activeClassName:"active",previousLabel:(0,r.jsx)(i.P.ArrowLeft,{}),nextLabel:(0,r.jsx)(i.P.ArrowRight,{}),disabledClassName:"disabled",forcePage:a})}},97930:function(n,e,t){t.d(e,{u:function(){return c}});var r=t(85893),i=t(67294),o=t(79920),l=t(91962);let c=()=>{let[n,e]=(0,i.useState)(!1),t=()=>{let n=document.documentElement.scrollTop;n>100?e(!0):e(!1)},c=()=>{window.scrollTo({top:0,behavior:"smooth"})};return(0,i.useEffect)(()=>(window.addEventListener("scroll",t),()=>{window.addEventListener("scroll",t)}),[]),n?(0,r.jsx)(l.z,{onClick:c,children:(0,r.jsx)(o.P.ScrollUp,{})}):null}},91962:function(n,e,t){t.d(e,{z:function(){return c}});var r=t(7297),i=t(85444),o=t(92136);function l(){let n=(0,r.Z)(["\n  position: fixed;\n  width: 50px;\n  height: 50px;\n  z-index: 198;\n  cursor: pointer;\n  right: 24px;\n  bottom: 100px;\n  font-size: ",";\n  padding: ",";\n  color: ",";\n  background: ",";\n  box-shadow: ",";\n  border-radius: ",";\n\n  @media "," {\n    bottom: 20px;\n  }\n"]);return l=function(){return n},n}let c=i.ZP.button.withConfig({componentId:"sc-893684ac-0"})(l(),n=>{let{theme:e}=n;return e.fontSizes.xxx_large},n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.radii.medium},o.Hb.tablet)},4498:function(n,e,t){t.d(e,{O:function(){return o}});var r=t(85893),i=t(50549);t(46956);let o=n=>{let{...e}=n;return(0,r.jsx)(i.Z,{...e})}},58033:function(n,e,t){t.d(e,{E:function(){return I}});var r=t(85893),i=t(67294),o=t(7297),l=t(30150),c=t(85444),a=t(85909);function u(){let n=(0,o.Z)(["\n          flex-direction: row;\n        "]);return u=function(){return n},n}function s(){let n=(0,o.Z)(["\n          flex-direction: column;\n\n          > div {\n            margin-bottom: 10px;\n          }\n        "]);return s=function(){return n},n}function d(){let n=(0,o.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n\n  ",";\n"]);return d=function(){return n},n}function f(){let n=(0,o.Z)(["\n  display: flex;\n  align-items: center;\n"]);return f=function(){return n},n}function p(){let n=(0,o.Z)(["\n  background-color: white;\n  width: 14px;\n  height: 14px;\n  border-radius: 100%;\n  box-shadow: 0 0 0 2px ",";\n\n  &:hover {\n    background-color: ",";\n  }\n\n  &:focus,\n  &[data-state='checked'] {\n    box-shadow: 0 0 0 2px ",";\n  }\n"]);return p=function(){return n},n}function m(){let n=(0,o.Z)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  height: 100%;\n  position: relative;\n\n  &::after {\n    content: '';\n    display: block;\n    width: 10px;\n    height: 10px;\n    border-radius: 50%;\n    background-color: ",";\n  }\n"]);return m=function(){return n},n}function h(){let n=(0,o.Z)(["\n  width: 85%;\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n\n  > label {\n    justify-content: left;\n  }\n"]);return h=function(){return n},n}function g(){let n=(0,o.Z)(["\n          margin-left: ",";\n        "]);return g=function(){return n},n}function x(){let n=(0,o.Z)(["\n          margin-right: ",";\n        "]);return x=function(){return n},n}function b(){let n=(0,o.Z)(["\n  display: flex;\n  font-size: ",";\n  font-weight: ",";\n  ","\n"]);return b=function(){return n},n}function w(){let n=(0,o.Z)(["\n  display: flex;\n  flex-direction: column;\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n  margin-top: ",";\n"]);return w=function(){return n},n}let v=(0,c.ZP)(l.fC).withConfig({componentId:"sc-23a271cf-0"})(d(),n=>{let{orientation:e}=n;return"horizontal"===e?(0,c.iv)(u()):(0,c.iv)(s())}),y=c.ZP.div.withConfig({componentId:"sc-23a271cf-1"})(f()),Z=(0,c.ZP)(l.ck).withConfig({componentId:"sc-23a271cf-2"})(p(),n=>{let{theme:e}=n;return e.colors.grey2},n=>{let{theme:e}=n;return e.colors.tertiary},n=>{let{theme:e}=n;return e.colors.primary}),j=(0,c.ZP)(l.z$).withConfig({componentId:"sc-23a271cf-3"})(m(),n=>{let{theme:e}=n;return e.colors.primary}),C=c.ZP.div.withConfig({componentId:"sc-23a271cf-4"})(h()),P=c.ZP.label.withConfig({componentId:"sc-23a271cf-5"})(b(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.currentCompany===a.O3.lovelystay?e.weights.semiBold:e.weights.regular},n=>{let{direction:e,theme:t}=n;return"rtl"===e?(0,c.iv)(g(),t.spacing.middle):(0,c.iv)(x(),t.spacing.middle)}),z=c.ZP.p.withConfig({componentId:"sc-23a271cf-6"})(w(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.weights.regular},n=>{let{theme:e}=n;return e.colors.grey},n=>{let{theme:e}=n;return e.spacing.x_small}),I=n=>{let{orientation:e="horizontal",direction:t="ltr",defaultValue:o,options:l,setOptions:c}=n,[a,u]=(0,i.useState)(o),s=n=>{c(e=>e.map(e=>({...e,checked:e.value===n})))};return(0,i.useEffect)(()=>{var n;let e=l.find(n=>{let{checked:e}=n;return e});u(null!==(n=null==e?void 0:e.value)&&void 0!==n?n:"")},[l]),(0,r.jsx)(v,{loop:!0,orientation:e,dir:t,onValueChange:n=>s(n),defaultValue:a,value:a,children:l.map(n=>(0,r.jsxs)(y,{children:[(0,r.jsx)(Z,{id:n.value,value:n.value,"data-testid":"".concat(n.value,"-radio"),children:(0,r.jsx)(j,{})}),n.description&&"vertical"===e?(0,r.jsxs)(C,{children:[(0,r.jsx)(P,{children:n.name}),(0,r.jsx)(z,{children:n.description})]}):(0,r.jsx)(P,{children:n.name})]},n.value))})}},16467:function(n,e,t){t.d(e,{W:function(){return x}});var r=t(85893),i=t(67294),o=t(37303),l=t(76248),c=t(58033),a=t(4252),u=t(5644),s=t(7297),d=t(85444);function f(){let n=(0,s.Z)(["\n  width: ",";\n  max-width: 100%;\n  max-height: 200px;\n  margin-top: ",";\n"]);return f=function(){return n},n}function p(){let n=(0,s.Z)(["\n          width: 100%;\n        "]);return p=function(){return n},n}function m(){let n=(0,s.Z)(["\n  width: ",";\n  margin-top: ",";\n\n  > div {\n    align-items: flex-end;\n\n    > div {\n      justify-content: space-between;\n      ",";\n    }\n  }\n"]);return m=function(){return n},n}let h=d.ZP.div.withConfig({componentId:"sc-9e196d91-0"})(f(),n=>{let{compact:e}=n;return e?"150px":"270px"},n=>{let{theme:e,isMobileFilter:t}=n;return t?0:e.spacing.medium}),g=d.ZP.div.withConfig({componentId:"sc-9e196d91-1"})(m(),n=>{let{compact:e}=n;return e?"150px":"100%"},n=>{let{theme:e,compact:t,isMobileFilter:r}=n;return t?e.spacing.middle:r?0:e.spacing.large},n=>{let{compact:e}=n;return e&&(0,d.iv)(p())}),x=n=>{let{isMobileFilter:e=!1,compact:t=!1,onFilter:s}=n,{t:d}=(0,o.$G)(),{brand:f,setBrand:p}=(0,u.S)(n=>({brand:n.brand,setBrand:n.setBrand}),l.X),[m,x]=(0,i.useState)([{name:d("apartments:filters.brand.andoLiving.title"),description:t?"":d("apartments:filters.brand.andoLiving.description"),value:a.Q.andoliving,checked:f===a.Q.andoliving},{name:d("apartments:filters.brand.all.title"),description:t?"":d("apartments:filters.brand.all.description"),value:a.Q.all,checked:f===a.Q.all}]),b=(0,i.useRef)({brand:f});return(0,i.useEffect)(()=>{m.map(n=>{let{value:e,checked:t}=n,r=Object.keys(a.Q).indexOf(null!=e?e:"all"),i=Object.values(a.Q)[r];t&&p(i)})},[m,p]),(0,i.useEffect)(()=>{b.current.brand!=f&&(b.current.brand=f,null==s||s())},[f,s]),(0,i.useEffect)(()=>{x(n=>n.map(n=>({...n,checked:n.value===f})))},[f]),(0,r.jsxs)(h,{isMobileFilter:e,compact:t,children:[!e||t&&(0,r.jsx)("h5",{children:d("apartments:filters.brand.title")}),(0,r.jsx)(g,{isMobileFilter:e,compact:t,children:(0,r.jsx)(c.E,{orientation:"vertical",defaultValue:f,options:m,setOptions:x,direction:"rtl"})})]})}},9514:function(n,e,t){t.d(e,{M:function(){return K}});var r=t(85893),i=t(67294),o=t(37303),l=t(11163),c=t(76248),a=t(58033),u=t(79920),s=t(7297),d=t(68482),f=t(85444);function p(){let n=(0,s.Z)(["\n  position: relative;\n  display: flex;\n  align-items: center;\n  user-select: none;\n  touch-action: none;\n  width: 100%;\n  height: 20px;\n  margin-left: ",";\n"]);return p=function(){return n},n}function m(){let n=(0,s.Z)(["\n  background-color: ",";\n  position: relative;\n  flex-grow: 1;\n  border-radius: 9999px;\n  height: 5px;\n"]);return m=function(){return n},n}function h(){let n=(0,s.Z)(["\n  position: absolute;\n  background-color: ",";\n  border-radius: 9999px;\n  height: 100%;\n"]);return h=function(){return n},n}function g(){let n=(0,s.Z)(["\n  display: block;\n  width: 20px;\n  height: 20px;\n  background-color: ",";\n  box-shadow: ",";\n  border-radius: ",";\n\n  &:hover {\n    cursor: pointer;\n  }\n\n  &:focus {\n    outline: none;\n    box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.32);\n  }\n"]);return g=function(){return n},n}let x=(0,f.ZP)(d.fC).withConfig({componentId:"sc-86a25e48-0"})(p(),n=>{let{theme:e}=n;return e.spacing.x_small}),b=(0,f.ZP)(d.fQ).withConfig({componentId:"sc-86a25e48-1"})(m(),n=>{let{theme:e}=n;return e.colors.grey2}),w=(0,f.ZP)(d.e6).withConfig({componentId:"sc-86a25e48-2"})(h(),n=>{let{theme:e}=n;return e.colors.primary}),v=(0,f.ZP)(d.bU).withConfig({componentId:"sc-86a25e48-3"})(g(),n=>{let{theme:e}=n;return e.colors.background},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.radii.medium}),y=n=>{let{sliderValues:e,setSliderValues:t,onValueCommit:i,max:o,step:l,...c}=n,a=n=>t(n);return(0,r.jsxs)(x,{max:o,step:l,minStepsBetweenThumbs:1,value:e,onValueChange:a,onValueCommit:i,"aria-label":"Volume",...c,children:[(0,r.jsx)(b,{children:(0,r.jsx)(w,{})}),(0,r.jsx)(v,{}),(0,r.jsx)(v,{})]})};var Z=t(4252),j=t(5644),C=t(15796),P=t(85909);function z(){let n=(0,s.Z)(["\n  position: relative;\n  width: 100%;\n  max-width: 270px;\n  padding-bottom: ",";\n  border-bottom: 1px solid\n    ",";\n"]);return z=function(){return n},n}function I(){let n=(0,s.Z)(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  color: ",";\n  transition: ",";\n  border-radius: ",";\n  padding: ",";\n\n  &:hover {\n    color: ",";\n    background-color: ",";\n  }\n"]);return I=function(){return n},n}function k(){let n=(0,s.Z)(["\n      font-size: ",";\n    "]);return k=function(){return n},n}function S(){let n=(0,s.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  font-family: ",";\n  margin-bottom: ",";\n\n  ",";\n"]);return S=function(){return n},n}function O(){let n=(0,s.Z)(["\n          font-weight: ",";\n        "]);return O=function(){return n},n}function M(){let n=(0,s.Z)(["\n          color: ",";\n          font-weight: ",";\n        "]);return M=function(){return n},n}function _(){let n=(0,s.Z)(["\n  font-weight: ",";\n  font-size: ",";\n  font-family: ",";\n  color: ",";\n\n  ",";\n\n  ",";\n"]);return _=function(){return n},n}function N(){let n=(0,s.Z)(["\n  color: ",";\n  font-size: 1rem;\n  margin-bottom: ",";\n"]);return N=function(){return n},n}function L(){let n=(0,s.Z)(["\n  display: flex;\n  margin: ",";\n"]);return L=function(){return n},n}function T(){let n=(0,s.Z)(["\n          button {\n            border-radius: ",";\n          }\n        "]);return T=function(){return n},n}function E(){let n=(0,s.Z)(["\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  margin: ",";\n\n  ",";\n"]);return E=function(){return n},n}function B(){let n=(0,s.Z)(["\n          box-shadow: none;\n          border: 1px solid ",";\n\n          & > div {\n            background-color: ",";\n          }\n        "]);return B=function(){return n},n}function F(){let n=(0,s.Z)(["\n  min-height: 30px;\n  min-width: 70px;\n  justify-content: space-between;\n  font-weight: ",";\n  font-size: ",";\n\n  svg {\n    min-width: 16px;\n    min-height: 16px;\n    max-width: 16px;\n    max-height: 16px;\n  }\n\n  &:hover {\n    cursor: default;\n  }\n\n  & > div {\n    width: 30px;\n    height: 30px;\n    margin-right: ",";\n  }\n\n  ",";\n"]);return F=function(){return n},n}let R=f.ZP.div.withConfig({componentId:"sc-7d95b3cd-0"})(z(),n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e,isMobileFilter:t}=n;return t||e.currentCompany!==P.O3.lovelystay?"transparent":e.colors.grey3}),$=f.ZP.button.withConfig({componentId:"sc-7d95b3cd-1"})(I(),n=>{let{theme:e}=n;return e.colors.grey3},n=>{let{theme:e}=n;return e.transitions.regular},n=>{let{theme:e}=n;return e.radii.xx_large},n=>{let{theme:e}=n;return"".concat(e.spacing.x_small," ").concat(e.spacing.middle)},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.colors.grey3}),A=f.ZP.h4.withConfig({componentId:"sc-7d95b3cd-2"})(S(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{theme:e}=n;return e.fonts.secondary},n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.currentCompany===P.O3.andoliving&&(0,f.iv)(k(),e.fontSizes.large)}),D=f.ZP.p.withConfig({componentId:"sc-7d95b3cd-3"})(_(),n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.fonts.primary},n=>{let{theme:e}=n;return e.colors.secondary},n=>{let{theme:e}=n;return e.currentCompany===P.O3.andoliving?(0,f.iv)(O(),e.weights.regular):null},n=>{let{theme:e}=n;return e.currentCompany===P.O3.ferienhaus?(0,f.iv)(M(),e.colors.text,e.weights.semiBold):null}),H=f.ZP.p.withConfig({componentId:"sc-7d95b3cd-4"})(N(),n=>{let{theme:e}=n;return e.colors.grey},n=>{let{theme:e}=n;return e.spacing.middle}),V=f.ZP.div.withConfig({componentId:"sc-7d95b3cd-5"})(L(),n=>{let{theme:e}=n;return"".concat(e.spacing.medium," 0")}),G=f.ZP.div.withConfig({componentId:"sc-7d95b3cd-6"})(E(),n=>{let{theme:e}=n;return"".concat(e.spacing.medium," 0")},n=>{let{theme:e}=n;return e.currentCompany===P.O3.ferienhaus?(0,f.iv)(T(),e.radii.xxx_large):null}),q=(0,f.ZP)(C.z).withConfig({componentId:"sc-7d95b3cd-7"})(F(),n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{theme:e}=n;return e.fontSizes.middle},n=>{let{theme:e}=n;return e.spacing.small},n=>{let{theme:e}=n;return e.currentCompany===P.O3.ferienhaus?(0,f.iv)(B(),e.colors.grey3,e.colors.black):null}),K=n=>{let{onFilter:e,isMobileFilter:t}=n,{t:s}=(0,o.$G)(),{query:d}=(0,l.useRouter)(),f=(0,i.useRef)(null),{sliderValues:p,setSliderValues:m,sliderValuesType:h,setSliderValuesType:g}=(0,j.S)(n=>({sliderValues:n.priceRange,setSliderValues:n.setPriceRange,sliderValuesType:n.priceRangeType,setSliderValuesType:n.setPriceRangeType}),c.X),[x,b]=(0,i.useState)([{name:s("apartments:filters.priceRange.options.perNight"),checked:h===Z.R.perNight,value:"perNight"}]);(0,i.useEffect)(()=>{let n=h===Z.R.perNight?"price":"totalPrice",e=[d["".concat(n,"[min]")]?Number(d["".concat(n,"[min]")]):10,d["".concat(n,"[max]")]?Number(d["".concat(n,"[max]")]):3e3];m(e)},[d,m,h]),(0,i.useEffect)(()=>{x.map(n=>{let{value:e,checked:t}=n,r=Object.keys(Z.R).indexOf(null!=e?e:"all"),i=Object.values(Z.R)[r];t&&g(i)})},[x,g]);let w=()=>{m([10,3e3])},v=()=>{f.current&&f.current.click(),e()};return(0,r.jsxs)(R,{isMobileFilter:t,children:[!t&&(0,r.jsx)(A,{children:s("apartments:filters.priceRange.title")}),(0,r.jsx)(D,{children:s("apartments:filters.priceRange.description")}),(0,r.jsx)(H,{children:s("apartments:filters.priceRange.subdescription",{averagePrice:"200",currency:"euro"})}),(0,r.jsx)(V,{children:(0,r.jsx)(a.E,{orientation:"horizontal",defaultValue:h,options:x,setOptions:b,direction:"rtl"})}),(0,r.jsx)(y,{max:5e3,step:10,min:100,sliderValues:p,setSliderValues:m,onValueCommit:v}),(0,r.jsxs)(G,{children:[(0,r.jsx)(q,{text:String(p[0]),variant:"icon",icon:(0,r.jsx)(u.P.Euro,{size:16}),"data-testid":"range-min-value"}),(0,r.jsx)(q,{text:String(p[1]),variant:"icon",icon:(0,r.jsx)(u.P.Euro,{size:16}),"data-testid":"range-max-value"})]}),!t&&(0,r.jsx)($,{type:"button",onClick:w,children:s("common:clear")})]})}},39777:function(n,e,t){t.d(e,{x:function(){return C}});var r=t(85893),i=t(70420),o=t(67244),l=t(31741),c=t(7297),a=t(85444),u=t(12124),s=t(85909);function d(){let n=(0,c.Z)(["\n          margin-top: 0;\n          padding-top: 0;\n        "]);return d=function(){return n},n}function f(){let n=(0,c.Z)(["\n          border-radius: 0;\n          background-color: ",";\n          box-shadow: none;\n          margin-bottom: 0;\n        "]);return f=function(){return n},n}function p(){let n=(0,c.Z)(["\n  width: 1000px;\n  max-width: 90vw;\n  margin-bottom: -",";\n  background-color: ",";\n  padding: 0;\n\n  ",";\n\n  ",";\n"]);return p=function(){return n},n}function m(){let n=(0,c.Z)(["\n          background-color: ",";\n          border-radius: 0;\n          margin-bottom: 0;\n        "]);return m=function(){return n},n}function h(){let n=(0,c.Z)(["\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: ",";\n  background-color: ",";\n  margin-bottom: ",";\n\n  ",";\n"]);return h=function(){return n},n}function g(){let n=(0,c.Z)(["\n          border-top-left-radius: ",";\n        "]);return g=function(){return n},n}function x(){let n=(0,c.Z)(["\n          border-radius: 0;\n        "]);return x=function(){return n},n}function b(){let n=(0,c.Z)(["\n  margin-top: -1px;\n  background-color: ",";\n  border-bottom-left-radius: ",";\n  border-bottom-right-radius: ",";\n  border-top-right-radius: ",";\n\n  ",";\n\n  ",";\n"]);return b=function(){return n},n}let w="#f5f6fa",v=(0,a.ZP)(u.x).withConfig({componentId:"sc-dae84234-0"})(p(),n=>{let{theme:e}=n;return e.spacing.xx_large},n=>{let{theme:e}=n;return e.colors.secondary},n=>{let{theme:e}=n;return[s.O3.lovelystay,s.O3.madeira].includes(e.currentCompany)?(0,a.iv)(d()):null},n=>{let{theme:e}=n;return e.currentCompany===s.O3.ferienhaus?(0,a.iv)(f(),w):null}),y=a.ZP.div.withConfig({componentId:"sc-dae84234-1"})(h(),n=>{let{theme:e}=n;return e.spacing.large},n=>{let{theme:e}=n;return e.colors.secondary},n=>{let{theme:e}=n;return e.spacing.xx_large},n=>{let{theme:e}=n;return e.currentCompany===s.O3.ferienhaus?(0,a.iv)(m(),w):null}),Z=a.ZP.div.withConfig({componentId:"sc-dae84234-2"})(b(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.currentCompany!==s.O3.lovelystay&&e.currentCompany!==s.O3.madeira?(0,a.iv)(g(),e.radii.large):null},n=>{let{theme:e}=n;return e.currentCompany===s.O3.ferienhaus?(0,a.iv)(x()):null}),j=n=>{let{submitCallback:e,onFilter:t,isLoading:c}=n,{isLovelyStay:a,isMadeira:u,isLisbonne:s}=(0,l.M)();return(0,r.jsx)(y,{children:(0,r.jsxs)(v,{height:"initial",width:"initial",children:[(a||u||s)&&(0,r.jsx)(o.K,{view:"apartments"}),(0,r.jsx)(Z,{children:(0,r.jsx)(i.R,{view:"apartments",submitCallback:e,onFilter:t,isLoading:c})})]})})};var C=j},63102:function(n,e,t){t.d(e,{f:function(){return R}});var r=t(85893),i=t(67294),o=t(37303),l=t(59851),c=t(7297),a=t(85444),u=t(92136),s=t(79920);function d(){let n=(0,c.Z)(["\n          right: -21px;\n        "]);return d=function(){return n},n}function f(){let n=(0,c.Z)(["\n          left: -21px;\n        "]);return f=function(){return n},n}function p(){let n=(0,c.Z)(["\n  width: 32px;\n  height: 32px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  border-radius: 100%;\n  border: 2px solid ",";\n  position: absolute;\n  top: 50%;\n  ",";\n  transition: ",";\n\n  &:hover {\n    transform: scale(1.1);\n  }\n\n  svg {\n    color: ",";\n  }\n"]);return p=function(){return n},n}let m=a.ZP.button.withConfig({componentId:"sc-a8259b8d-0"})(p(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{direction:e}=n;return"next"===e?(0,a.iv)(d()):(0,a.iv)(f())},n=>{let{theme:e}=n;return e.transitions.regular},n=>{let{theme:e}=n;return e.colors.secondary}),h=n=>{let{className:e,direction:t,iconSize:i=22,disabled:o,onClick:l}=n;return(0,r.jsx)(m,{className:e,direction:t,disabled:o,onClick:l,children:"next"===t?(0,r.jsx)(s.P.ArrowRight,{size:i,color:u.TV.colors.white}):(0,r.jsx)(s.P.ArrowLeft,{size:i,color:u.TV.colors.white})})};var g=t(85909);function x(){let n=(0,c.Z)(["\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  position: absolute;\n  top: ",";\n  gap: ",";\n\n  @media (max-width: 950px) {\n    top: 90%;\n  }\n"]);return x=function(){return n},n}function b(){let n=(0,c.Z)(["\n          background-color: ",";\n          scale: 1.2;\n        "]);return b=function(){return n},n}function w(){let n=(0,c.Z)(["\n          background-color: ",";\n        "]);return w=function(){return n},n}function v(){let n=(0,c.Z)(["\n  width: 6px;\n  height: 6px;\n  border-radius: 100%;\n\n  ",";\n\n  &:hover {\n    scale: 1.2;\n  }\n"]);return v=function(){return n},n}function y(){let n=(0,c.Z)(["\n  top: ",";\n\n  opacity: 0;\n\n  &:hover {\n    opacity: 0.7;\n  }\n\n  &[direction='next'] {\n    right: 1%;\n  }\n\n  &[direction='previous'] {\n    left: 1%;\n  }\n  @media (max-width: 975px) {\n    top: 40%;\n  }\n\n  @media "," {\n    display: none;\n  }\n"]);return y=function(){return n},n}function Z(){let n=(0,c.Z)(["\n  &:hover {\n    button {\n      opacity: 0.7;\n    }\n  }\n"]);return Z=function(){return n},n}function j(){let n=(0,c.Z)(["\n          border-radius: 0;\n\n          @media (max-width: 950px) {\n            border-radius: 0;\n          }\n        "]);return j=function(){return n},n}function C(){let n=(0,c.Z)(["\n  overflow: hidden;\n  border-top-left-radius: ",";\n  border-bottom-left-radius: ",";\n  border-top-right-radius: ",";\n\n  @media (max-width: 950px) {\n    border-top-right-radius: 0;\n    border-top-left-radius: ",";\n    border-bottom-left-radius: ",";\n  }\n\n  ",";\n"]);return C=function(){return n},n}function P(){let n=(0,c.Z)(["\n  backface-visibility: hidden;\n  display: flex;\n  touch-action: pan-y;\n  flex-direction: row;\n  height: auto;\n"]);return P=function(){return n},n}function z(){let n=(0,c.Z)(["\n          width: 170px;\n        "]);return z=function(){return n},n}function I(){let n=(0,c.Z)([""]);return I=function(){return n},n}function k(){let n=(0,c.Z)(["\n  flex: 0 0 100%;\n  min-width: 0;\n  position: relative;\n  overflow: hidden;\n\n  ",";\n"]);return k=function(){return n},n}function S(){let n=(0,c.Z)(["\n  display: block;\n  height: 200px;\n  width: 100%;\n  object-fit: cover;\n  transform: scale(1.2);\n  border-top-left-radius: ",";\n  border-top-right-radius: ",";\n  border-bottom-right-radius: ",";\n\n  @media "," {\n    width: 100%;\n  }\n\n  @media "," {\n    width: 180px;\n  }\n"]);return S=function(){return n},n}function O(){let n=(0,c.Z)(["\n  z-index: 1;\n  bottom: 1.2rem;\n  position: absolute;\n  left: 0;\n  right: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return O=function(){return n},n}let M=a.ZP.div.withConfig({componentId:"sc-6f83ba07-0"})(x(),n=>{let{$isMapOpen:e}=n;return e?"90%":"46%"},n=>{let{theme:e}=n;return e.spacing.x_small}),_=a.ZP.button.withConfig({componentId:"sc-6f83ba07-1"})(v(),n=>{let{isSelected:e,theme:t}=n;return e?(0,a.iv)(b(),t.colors.white):(0,a.iv)(w(),t.colors.grey2)}),N=(0,a.ZP)(h).withConfig({componentId:"sc-6f83ba07-2"})(y(),n=>{let{$isMapOpen:e}=n;return e?"40%":"20%"},u.Hb.tablet),L=a.ZP.div.withConfig({componentId:"sc-6f83ba07-3"})(Z()),T=a.ZP.div.withConfig({componentId:"sc-6f83ba07-4"})(C(),n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e,$isMapOpen:t}=n;return t?e.radii.medium:0},n=>{let{theme:e,$isMapOpen:t}=n;return t?0:e.radii.medium},n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.currentCompany===g.O3.ferienhaus?(0,a.iv)(j()):null}),E=a.ZP.div.withConfig({componentId:"sc-6f83ba07-5"})(P()),B=a.ZP.div.withConfig({componentId:"sc-6f83ba07-6"})(k(),n=>{let{$isMapOpen:e}=n;return e?(0,a.iv)(z()):(0,a.iv)(I())}),F=a.ZP.img.withConfig({componentId:"sc-6f83ba07-7"})(S(),n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.radii.medium},u.Hb.tablet,u.Hb.mobile);a.ZP.div.withConfig({componentId:"sc-6f83ba07-8"})(O());let R=n=>{let{photos:e,photosMaxQtd:t=5,isMapOpen:c}=n,{t:a}=(0,o.$G)(),{emblaRef:u,emblaApi:s,scrollPrev:d,scrollNext:f,scrollTo:p,onSelect:m,onInit:h,scrollSnaps:g,prevBtnEnabled:x,nextBtnEnabled:b,selectedIndex:w}=(0,l.v)();(0,i.useEffect)(()=>{s&&(h(),m(),s.on("reInit",h),s.on("reInit",m),s.on("select",m))},[s,m,h]);let v=Array.from(Array(t).keys()),y=n=>e[n%e.length];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(L,{id:"slider-container",children:[(0,r.jsx)(T,{id:"slider-size",$isMapOpen:c,ref:u,children:(0,r.jsx)(E,{id:"limit-area",children:v.map(n=>(0,r.jsx)(B,{$isMapOpen:c,children:(0,r.jsx)(F,{id:"card-image",src:y(n),alt:a("apartments:cards.apartmentAlt")})},n))})}),(0,r.jsx)(N,{direction:"next",disabled:!b,onClick:f,$isMapOpen:c}),(0,r.jsx)(N,{direction:"previous",disabled:!x,$isMapOpen:c,onClick:d})]}),(0,r.jsx)(M,{id:"dots-container",$isMapOpen:c,children:g.map((n,e)=>(0,r.jsx)(_,{isSelected:e===w,onClick:()=>p(e)},e))})]})}},52651:function(n,e,t){t.d(e,{N5:function(){return es},yB:function(){return eM},SX:function(){return rh},ub:function(){return eG},D5:function(){return rl},J9:function(){return rK}});var r=t(85893),i=t(37303),o=t(31741),l=t(50918),c=t(35592),a=t(67294),u=t(11163),s=t(85444),d=t(92136),f=t(28609),p=t(30002),m=t(79920),h=t(37576),g=t(1680),x=t(4498),b=t(76709),w=t(68139),v=t(5644),y=t(63102),Z=t(7297),j=t(85909);function C(){let n=(0,Z.Z)(["\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n"]);return C=function(){return n},n}function P(){let n=(0,Z.Z)(["\n  display: flex;\n  margin: "," 0;\n"]);return P=function(){return n},n}function z(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  display: flex;\n  align-items: center;\n  margin-right: ",";\n  color: ",";\n\n  @media "," {\n    font-size: ",";\n  }\n"]);return z=function(){return n},n}function I(){let n=(0,Z.Z)(["\n          color: ",";\n        "]);return I=function(){return n},n}function k(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n\n  ",";\n\n  @media "," {\n    font-size: ",";\n  }\n"]);return k=function(){return n},n}function S(){let n=(0,Z.Z)(["\n          font-weight: ",";\n        "]);return S=function(){return n},n}function O(){let n=(0,Z.Z)(["\n          color: ",";\n        "]);return O=function(){return n},n}function M(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n\n  ",";\n\n  ",";\n"]);return M=function(){return n},n}function _(){let n=(0,Z.Z)(["\n  font-size: ",";\n  color: ",";\n"]);return _=function(){return n},n}let N=s.ZP.div.withConfig({componentId:"sc-cc81691c-0"})(C()),L=s.ZP.div.withConfig({componentId:"sc-cc81691c-1"})(P(),n=>{let{theme:e}=n;return e.spacing.x_small}),T=s.ZP.p.withConfig({componentId:"sc-cc81691c-2"})(z(),n=>{let{theme:e}=n;return e.fontSizes.middle},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.spacing.xx_small},n=>{let{theme:e}=n;return e.colors.primary},d.Hb.tablet,n=>{let{theme:e}=n;return e.fontSizes.small}),E=s.ZP.p.withConfig({componentId:"sc-cc81691c-3"})(k(),n=>{let{theme:e}=n;return e.fontSizes.xx_large},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(I(),e.colors.text):null},d.Hb.x_desktop,n=>{let{theme:e}=n;return e.fontSizes.large}),B=s.ZP.p.withConfig({componentId:"sc-cc81691c-4"})(M(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)(S(),e.weights.regular):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(O(),e.colors.grey3):null}),F=s.ZP.p.withConfig({componentId:"sc-cc81691c-5"})(_(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.colors.grey}),R=n=>{let{minimumPricePerMonth:e}=n,{t}=(0,i.$G)();return(0,r.jsxs)(N,{children:[(0,r.jsx)(F,{children:t("apartments:cards.from")}),(0,r.jsxs)(L,{children:[(0,r.jsx)(T,{children:"€"}),(0,r.jsx)(E,{children:(0,c.q2)(e)})]}),(0,r.jsx)(B,{children:t("apartments:cards.perMonth")})]})};function $(){let n=(0,Z.Z)(["\n          background-color: ",";\n        "]);return $=function(){return n},n}function A(){let n=(0,Z.Z)(["\n          border-radius: 0;\n          background-color: ",";\n          box-shadow: 12px 12px 20px ",";\n\n          .skeleton {\n            border-radius: 0;\n          }\n\n          .toggle,\n          .favourite {\n            background-color: ",";\n            border-radius: ",";\n            height: 22px;\n          }\n\n          .favourite {\n            top: 12px;\n          }\n\n          .share-button {\n            top: 12px;\n            right: 46px;\n\n            > button {\n              background-color: ",";\n              border-radius: ",";\n              height: 22px;\n            }\n          }\n        "]);return A=function(){return n},n}function D(){let n=(0,Z.Z)(["\n  width: 23%;\n  max-width: 340px;\n  height: 410px;\n  border-radius: ",";\n  box-shadow: ",";\n  background-color: ",";\n  position: relative;\n  line-height: 1;\n\n  @media (max-width: 1570px) {\n    width: 30%;\n  }\n\n  @media "," {\n    width: 45%;\n  }\n\n  // share button\n  .share-button {\n    top: 6px;\n    right: 45px;\n  }\n\n  // like button\n  & > button {\n    position: absolute;\n    top: 6px;\n    right: 10px;\n    z-index: 1;\n    & svg {\n      &[data-testid='heart-fill'],\n      &[data-testid='heart-line'] {\n        display: flex;\n        width: 18px;\n        height: 18px;\n      }\n    }\n  }\n\n  .skeleton {\n    height: 100%;\n    border-radius: ",";\n  }\n\n  ",";\n\n  ",";\n"]);return D=function(){return n},n}function H(){let n=(0,Z.Z)(["\n          padding: "," "," 0;\n          background-color: ",";\n        "]);return H=function(){return n},n}function V(){let n=(0,Z.Z)(["\n  padding: 0 ",";\n\n  ",";\n"]);return V=function(){return n},n}function G(){let n=(0,Z.Z)(["\n          font-size: ",";\n          font-weight: ",";\n          font-family: ",";\n        "]);return G=function(){return n},n}function q(){let n=(0,Z.Z)(["\n          font-size: ",";\n          font-weight: ",";\n          margin-top: ",";\n        "]);return q=function(){return n},n}function K(){let n=(0,Z.Z)(["\n  width: 100%;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  margin-top: ",";\n  font-size: ",";\n  font-weight: ",";\n  font-family: ",";\n\n  ",";\n\n  ",";\n"]);return K=function(){return n},n}function W(){let n=(0,Z.Z)(["\n  height: 50px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n"]);return W=function(){return n},n}function U(){let n=(0,Z.Z)(["\n          svg {\n            color: ",";\n          }\n        "]);return U=function(){return n},n}function Q(){let n=(0,Z.Z)(["\n          align-items: center;\n          font-size: ",";\n          font-weight: ",";\n\n          svg {\n            color: ",";\n          }\n        "]);return Q=function(){return n},n}function X(){let n=(0,Z.Z)(["\n  height: 20px;\n  font-size: ",";\n  color: ",";\n  display: flex;\n  align-items: center;\n\n  svg {\n    margin-right: ",";\n    color: ",";\n  }\n\n  .building {\n    cursor: pointer;\n\n    &:hover {\n      text-decoration: underline;\n    }\n  }\n\n  span {\n    display: flex;\n    align-items: center;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    overflow: hidden;\n  }\n\n  ",";\n\n  ",";\n"]);return X=function(){return n},n}function Y(){let n=(0,Z.Z)(["\n          margin: 0 -",";\n          border-color: ",";\n          background-color: ",";\n        "]);return Y=function(){return n},n}function J(){let n=(0,Z.Z)(["\n  height: 60px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid rgba(204, 204, 204, 0.3);\n  border-bottom: 1px solid rgba(204, 204, 204, 0.3);\n  padding: 0;\n  gap: ",";\n  text-align: center;\n\n  ",";\n"]);return J=function(){return n},n}function nn(){let n=(0,Z.Z)(["\n          background-color: ",";\n          padding: ",";\n          margin: 0 -",";\n        "]);return nn=function(){return n},n}function ne(){let n=(0,Z.Z)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding-top: ",";\n  column-gap: ",";\n\n  ",";\n"]);return ne=function(){return n},n}function nt(){let n=(0,Z.Z)(["\n  width: ",";\n"]);return nt=function(){return n},n}function nr(){let n=(0,Z.Z)(["\n          height: 30px;\n          font-weight: ",";\n          background: ",";\n        "]);return nr=function(){return n},n}function ni(){let n=(0,Z.Z)(["\n          border-radius: 0;\n          font-weight: ",";\n          background: ",";\n          text-transform: uppercase;\n          font-weight: ",";\n          padding: "," ",";\n        "]);return ni=function(){return n},n}function no(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 36px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-shadow: ",";\n  border-radius: ",";\n  font-size: ",";\n  font-weight: ",";\n  padding: ",";\n  background: ",";\n  color: ",";\n  transition: ",";\n  text-decoration: none;\n\n  &:hover {\n    opacity: 0.7;\n  }\n\n  ",";\n\n  ",";\n\n  @media (max-width: 1570px) {\n    padding: ",";\n  }\n"]);return no=function(){return n},n}function nl(){let n=(0,Z.Z)(["\n  width: 100%;\n  display: flex;\n  position: relative;\n"]);return nl=function(){return n},n}function nc(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n  text-decoration: line-through;\n  position: absolute;\n  right: 44px;\n  top: 1px;\n"]);return nc=function(){return n},n}function na(){let n=(0,Z.Z)(["\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n"]);return na=function(){return n},n}function nu(){let n=(0,Z.Z)(["\n  display: flex;\n"]);return nu=function(){return n},n}function ns(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  display: flex;\n  align-items: center;\n  margin-right: 2px;\n  color: ",";\n"]);return ns=function(){return n},n}function nd(){let n=(0,Z.Z)(["\n          color: ",";\n        "]);return nd=function(){return n},n}function nf(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n\n  ",";\n"]);return nf=function(){return n},n}function np(){let n=(0,Z.Z)(["\n          font-weight: ",";\n        "]);return np=function(){return n},n}function nm(){let n=(0,Z.Z)(["\n          color: ",";\n        "]);return nm=function(){return n},n}function nh(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n\n  ",";\n\n  ",";\n"]);return nh=function(){return n},n}let ng="#f3f4f8",nx=s.ZP.div.withConfig({componentId:"sc-88ddbc03-0"})(D(),n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.colors.white},d.Hb.x_desktop,n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)($(),e.colors.tertiary):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(A(),ng,e.shadows.color,e.colors.text,e.radii.small,e.colors.text,e.radii.small):null}),nb=s.ZP.div.withConfig({componentId:"sc-88ddbc03-1"})(V(),n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(H(),e.spacing.middle,e.spacing.medium,e.colors.white):null}),nw=s.ZP.p.withConfig({componentId:"sc-88ddbc03-2"})(K(),n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.weights.medium},n=>{let{theme:e}=n;return e.fonts.primary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)(G(),e.fontSizes.medium,e.weights.regular,e.fonts.secondary):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(q(),e.fontSizes.medium,e.weights.semiBold,n=>{let{theme:e}=n;return e.spacing.small}):null}),nv=s.ZP.div.withConfig({componentId:"sc-88ddbc03-3"})(W()),ny=s.ZP.p.withConfig({componentId:"sc-88ddbc03-4"})(X(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.colors.grey},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.colors.secondary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)(U(),e.colors.primary):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(Q(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.weights.semiBold},e.colors.text):null}),nZ=s.ZP.div.withConfig({componentId:"sc-88ddbc03-5"})(J(),n=>{let{theme:e}=n;return e.spacing.small},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(Y(),e.spacing.medium,e.colors.grey2,e.colors.tertiary):null}),nj=s.ZP.div.withConfig({componentId:"sc-88ddbc03-6"})(ne(),n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.spacing.small},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(nn(),ng,e.spacing.middle,e.spacing.medium):null}),nC=s.ZP.div.withConfig({componentId:"sc-88ddbc03-7"})(nt(),n=>{let{isMidTerm:e}=n;return e?"100%":"120px"}),nP=s.ZP.button.withConfig({componentId:"sc-88ddbc03-8"})(no(),n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.radii.xx_large},n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.weights.medium},n=>{let{theme:e}=n;return"".concat(e.spacing.x_small," ").concat(e.spacing.xx_large)},n=>{let{theme:e}=n;return e.colors.gradientBackground},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.transitions.regular},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)(nr(),e.weights.regular,e.colors.secondary):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(ni(),e.weights.regular,e.colors.secondary,e.weights.medium,e.spacing.x_small,e.spacing.large):null},n=>{let{theme:e}=n;return"".concat(e.spacing.x_small," ").concat(e.spacing.large)}),nz=s.ZP.div.withConfig({componentId:"sc-88ddbc03-9"})(nl()),nI=s.ZP.p.withConfig({componentId:"sc-88ddbc03-10"})(nc(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.colors.grey2}),nk=s.ZP.div.withConfig({componentId:"sc-88ddbc03-11"})(na()),nS=s.ZP.div.withConfig({componentId:"sc-88ddbc03-12"})(nu()),nO=s.ZP.p.withConfig({componentId:"sc-88ddbc03-13"})(ns(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.weights.medium},n=>{let{theme:e}=n;return e.colors.primary}),nM=s.ZP.p.withConfig({componentId:"sc-88ddbc03-14"})(nf(),n=>{let{theme:e}=n;return e.fontSizes.medium},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(nd(),e.colors.text):null}),n_=s.ZP.p.withConfig({componentId:"sc-88ddbc03-15"})(nh(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.weights.medium},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)(np(),e.weights.regular):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(nm(),e.colors.grey3):null}),nN=n=>{let{averagePricePerNight:e}=n,{t}=(0,i.$G)();return(0,r.jsxs)(nk,{children:[(0,r.jsxs)(nS,{children:[(0,r.jsx)(nO,{children:"€"}),(0,r.jsx)(nM,{children:e})]}),(0,r.jsx)(n_,{children:t("apartments:cards.perNight")})]})},nL=n=>{let{aptId:e,aptTitle:t,aptStreetName:l,aptMunicipality:Z,aptNeighbourhood:j,photos:C,maxOccupancy:P,bedrooms:z,bathrooms:I,area:k,averagePricePerNight:S,minimumPricePerMonth:O,oldPrice:M,buildingId:_,buildingName:N,buildingNeighbourhood:L,containerClassName:T,isLoading:E,onClick:B}=n,{t:F}=(0,i.$G)(),{query:$,push:A}=(0,u.useRouter)(),{isFerienHaus:D}=(0,o.M)(),{currentCompany:H,colors:V}=(0,s.Fg)(),G=(0,v.S)(n=>n.rentalType),[q,K]=(0,a.useState)(!1),W=E?"":"".concat(window.location.origin).concat(w.Z6.apartment,"/").concat(e),U=()=>{_&&A({query:{...$,buildingId:_}},void 0,{shallow:!0})},Q=()=>{A({pathname:"".concat(w.Z6.apartment,"/").concat(e),query:(0,c.dI)($)})},X=null!=j?j:L,Y="".concat(Z).concat(X?", ".concat(X):""," | ").concat(l),J={url:W,title:t,image:null==C?void 0:C[0],aptStreetName:l,aptMunicipality:Z,aptNeighbourhood:j,buildingName:N,buildingNeighbourhood:L,buildingId:_};return(0,r.jsx)(nx,{className:T,children:E?(0,r.jsx)(x.O,{className:"skeleton"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.T,{className:"share-button",sharedData:J}),(0,r.jsx)(p.A,{aptId:e,className:"favourite",category:H}),(0,r.jsx)(y.f,{photos:C}),(0,r.jsxs)(nb,{children:[(0,r.jsx)(nw,{title:t,children:t}),(0,r.jsxs)(nv,{children:[(0,r.jsxs)(ny,{title:Y,children:[(0,r.jsx)(m.P.FilledLocation,{size:14}),(0,r.jsx)("span",{children:Y})]}),_&&!D&&(0,r.jsxs)(ny,{title:N,children:[(0,r.jsx)(m.P.Building,{size:12}),(0,r.jsx)("span",{className:"building",onClick:U,children:N})]})]}),(0,r.jsx)(nZ,{children:(0,r.jsx)(f.z,{guest:P,bathrooms:I,bedrooms:z,area:k,iconGuestSize:16,iconBedSize:16,iconAreaSize:13,iconBathSize:13,fontSize:d.TV.fontSizes.x_small})}),(0,r.jsxs)(nj,{children:[(0,r.jsx)(nC,{isMidTerm:G===b.m.midTerm,children:(0,r.jsx)(nP,{"data-testid":"apartment-card-book-button",disabled:q,onClick:()=>{Q(),B&&B(),K(!0)},children:q?(0,r.jsx)(h.T,{size:20,color:V.white}):F(D?"apartments:cards.info":"apartments:cards.book")})}),S&&G!==b.m.midTerm?(0,r.jsxs)(nz,{children:[M>0?(0,r.jsxs)(nI,{children:["€ ",M]}):null,(0,r.jsx)(nN,{averagePricePerNight:S})]}):null,O&&G===b.m.midTerm?(0,r.jsx)(nz,{children:(0,r.jsx)(R,{minimumPricePerMonth:O})}):null]})]})]})})};var nT=t(41664),nE=t.n(nT);function nB(){let n=(0,Z.Z)(["\n          background-color: ",";\n        "]);return nB=function(){return n},n}function nF(){let n=(0,Z.Z)(["\n          border-radius: 0;\n          background-color: ",";\n\n          .skeleton {\n            border-radius: 0;\n          }\n\n          .favourite {\n            top: 12px;\n            background-color: ",";\n            border-radius: ",";\n            height: 22px;\n          }\n\n          .share-button {\n            top: 12px;\n            right: 46px;\n\n            > button {\n              background-color: ",";\n              border-radius: ",";\n              height: 22px;\n            }\n          }\n        "]);return nF=function(){return n},n}function nR(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 200px;\n  display: flex;\n  flex-direction: row;\n  line-height: 1;\n  border-radius: ",";\n  box-shadow: ",";\n  background-color: ",";\n\n  .skeletonContainer {\n    flex: 1;\n  }\n\n  .skeleton {\n    height: 100%;\n    border-radius: ",";\n  }\n\n  ",";\n\n  .share-button {\n    top: 8px;\n    right: 45px;\n  }\n\n  ",";\n"]);return nR=function(){return n},n}function n$(){let n=(0,Z.Z)(["\n  width: 180px;\n  position: relative;\n\n  // like button\n  & > button {\n    position: absolute;\n    top: 8px;\n    right: 10px;\n    z-index: 1;\n    & svg {\n      &[data-testid='heart-fill'],\n      &[data-testid='heart-line'] {\n        display: flex;\n        width: 18px;\n        height: 18px;\n      }\n    }\n  }\n\n  @media (min-width: 950px) {\n    width: 220px;\n  }\n\n  @media "," {\n    width: 220px;\n  }\n\n  @media "," {\n    width: ",";\n  }\n"]);return n$=function(){return n},n}function nA(){let n=(0,Z.Z)(["\n          width: calc(100% - 220px);\n        "]);return nA=function(){return n},n}function nD(){let n=(0,Z.Z)(["\n          width: calc(100% - 140px);\n        "]);return nD=function(){return n},n}function nH(){let n=(0,Z.Z)(["\n          justify-content: normal;\n          padding: "," "," 0;\n          background-color: ",";\n        "]);return nH=function(){return n},n}function nV(){let n=(0,Z.Z)(["\n  padding: 0 ",";\n  padding-top: ",";\n\n  ",";\n\n  display: flex;\n  flex-direction: column;\n  justify-content: space-around;\n  text-decoration: none;\n  color: black;\n\n  @media (max-width: 950px) {\n    width: calc(100% - 180px);\n  }\n\n  @media "," {\n    width: calc(100% - 220px);\n  }\n\n  @media "," {\n    padding: ",";\n    width: calc(100% - 140px);\n  }\n\n  ",";\n"]);return nV=function(){return n},n}function nG(){let n=(0,Z.Z)(["\n          font-size: ",";\n          font-weight: ",";\n          font-family: ",";\n        "]);return nG=function(){return n},n}function nq(){let n=(0,Z.Z)(["\n          font-size: ",";\n          font-weight: ",";\n          font-family: ",";\n        "]);return nq=function(){return n},n}function nK(){let n=(0,Z.Z)(["\n            font-size: ",";\n          "]);return nK=function(){return n},n}function nW(){let n=(0,Z.Z)(["\n            font-size: ",";\n          "]);return nW=function(){return n},n}function nU(){let n=(0,Z.Z)(["\n  width: 100%;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  margin: 6px 0;\n\n  ",";\n\n  @media "," {\n    ",";\n  }\n"]);return nU=function(){return n},n}function nQ(){let n=(0,Z.Z)(["\n  height: 50px;\n  display: flex;\n  flex-direction: column;\n"]);return nQ=function(){return n},n}function nX(){let n=(0,Z.Z)(["\n  font-size: ",";\n  color: ",";\n  margin: "," 0;\n  display: flex;\n\n  svg {\n    min-width: 14px;\n    min-height: 14px;\n    margin-right: ",";\n    color: ",";\n  }\n\n  .building {\n    cursor: pointer;\n\n    &:hover {\n      text-decoration: underline;\n    }\n  }\n\n  span {\n    display: flex;\n    align-items: center;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  }\n"]);return nX=function(){return n},n}function nY(){let n=(0,Z.Z)(["\n          margin: 0 -",";\n          width: calc(100% + ",");\n          border-color: ",";\n          background-color: ",";\n\n          @media (max-width: 650px) {\n            padding: "," ",";\n          }\n\n          @media "," {\n            margin: 0 -20px;\n          }\n        "]);return nY=function(){return n},n}function nJ(){let n=(0,Z.Z)(["\n  width: 100%;\n  display: flex;\n  justify-content: space-between;\n  border-top: 1px solid rgba(204, 204, 204, 0.3);\n  border-bottom: 1px solid rgba(204, 204, 204, 0.3);\n  padding: "," 0;\n\n  ",";\n"]);return nJ=function(){return n},n}function n0(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-between;\n  margin: "," 0;\n\n  svg {\n    color: ",";\n  }\n"]);return n0=function(){return n},n}function n1(){let n=(0,Z.Z)(["\n  font-size: ",";\n  color: ",";\n"]);return n1=function(){return n},n}function n3(){let n=(0,Z.Z)(["\n          background-color: ",";\n          padding: ",";\n          margin: 0 -",";\n          height: 100%;\n\n          @media (max-width: 950px) {\n            min-height: 56px;\n          }\n\n          @media (max-width: 812px) {\n            min-height: 50px;\n          }\n\n          @media "," {\n            min-height: 56px;\n          }\n\n          @media "," {\n            margin: 0 -",";\n          }\n        "]);return n3=function(){return n},n}function n2(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  column-gap: ",";\n  margin: "," 0;\n\n  span {\n    text-align: end;\n    font-size: ",";\n    font-weight: ",";\n    margin-left: ",";\n    color: ",";\n  }\n\n  ",";\n"]);return n2=function(){return n},n}function n4(){let n=(0,Z.Z)(["\n  width: 100%;\n  display: flex;\n  justify-content: end;\n  align-items: center;\n"]);return n4=function(){return n},n}function n5(){let n=(0,Z.Z)(["\n  display: flex;\n  font-size: ",";\n  font-weight: ",";\n  justify-content: flex-start;\n  align-items: center;\n  color: ",";\n"]);return n5=function(){return n},n}function n8(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n  text-decoration: line-through;\n  margin-right: 10px;\n"]);return n8=function(){return n},n}let n6="#f3f4f8",n9=s.ZP.div.withConfig({componentId:"sc-61736fff-0"})(nR(),n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.radii.medium},n=>{let{theme:e}=n;return e.currentCompany===j.O3.andoliving?(0,s.iv)(nB(),e.colors.tertiary):null},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(nF(),n6,e.colors.text,e.radii.small,e.colors.text,e.radii.small):null}),n7=s.ZP.div.withConfig({componentId:"sc-61736fff-1"})(n$(),d.Hb.tablet,d.Hb.mobile,n=>{let{$isMapOpen:e}=n;return e?"116px":"140px"}),en=(0,s.ZP)(nE()).withConfig({componentId:"sc-61736fff-2"})(nV(),n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{$isMapOpen:e}=n;return e?(0,s.iv)(nA()):(0,s.iv)(nD())},d.Hb.tablet,d.Hb.mobile,n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(nH(),e.spacing.middle,e.spacing.medium,e.colors.white):null}),ee=s.ZP.p.withConfig({componentId:"sc-61736fff-3"})(nU(),n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?(0,s.iv)(nG(),e.fontSizes.middle,e.weights.medium,e.fonts.primary):(0,s.iv)(nq(),e.fontSizes.medium,e.weights.regular,e.fonts.secondary)},d.Hb.mobile,n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?(0,s.iv)(nK(),e.fontSizes.small):(0,s.iv)(nW(),e.fontSizes.medium)}),et=s.ZP.div.withConfig({componentId:"sc-61736fff-4"})(nQ()),er=s.ZP.p.withConfig({componentId:"sc-61736fff-5"})(nX(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.colors.grey},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?e.colors.secondary:e.colors.primary}),ei=s.ZP.div.withConfig({componentId:"sc-61736fff-6"})(nJ(),n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(nY(),e.spacing.medium,e.spacing.x_large,e.colors.grey2,e.colors.tertiary,e.spacing.small,e.spacing.middle,d.Hb.mobile):null});s.ZP.div.withConfig({componentId:"sc-61736fff-7"})(n0(),n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.colors.secondary}),s.ZP.p.withConfig({componentId:"sc-61736fff-8"})(n1(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.colors.grey});let eo=s.ZP.div.withConfig({componentId:"sc-61736fff-9"})(n2(),n=>{let{theme:e}=n;return e.spacing.small},n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.colors.primary},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(n3(),n6,e.spacing.middle,e.spacing.medium,d.Hb.tablet,d.Hb.mobile,e.spacing.middle):null}),el=s.ZP.div.withConfig({componentId:"sc-61736fff-10"})(n4()),ec=s.ZP.div.withConfig({componentId:"sc-61736fff-11"})(n5(),n=>{let{theme:e}=n;return e.fontSizes.medium},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.colors.primary}),ea=s.ZP.p.withConfig({componentId:"sc-61736fff-12"})(n8(),n=>{let{theme:e}=n;return e.fontSizes.x_small},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.colors.grey2}),eu=n=>{let{aptId:e,aptTitle:t,aptStreetName:a,aptMunicipality:h,aptNeighbourhood:Z,photos:j,maxOccupancy:C,bedrooms:P,bathrooms:z,area:I,averagePricePerNight:k,minimumPricePerMonth:S,oldPrice:O,buildingId:M,buildingName:_,buildingNeighbourhood:N,isMapOpen:L,containerClassName:T,isBuildingsApartments:E=!1,isLoading:B,onClick:F}=n,{t:$}=(0,i.$G)(),{currentCompany:A}=(0,s.Fg)(),{query:D,push:H}=(0,u.useRouter)(),{isFerienHaus:V}=(0,o.M)(),G=(0,v.S)(n=>n.rentalType),q=(0,l.Z)(E?"(max-width: 949px) and (min-width: 768px), (max-width: 600px)":"(max-width: 650px)"),K=B?"":"".concat(window.location.origin).concat(w.Z6.apartment,"/").concat(e),W=n=>{n.stopPropagation(),n.preventDefault(),M&&H({query:{...D,buildingId:M}},void 0,{shallow:!0})},U=null!=Z?Z:N,Q="".concat(h).concat(U?", ".concat(U):""," | ").concat(a),X={url:K,title:t,image:null==j?void 0:j[0],aptStreetName:a,aptMunicipality:h,aptNeighbourhood:Z,buildingName:_,buildingNeighbourhood:N,buildingId:M};return(0,r.jsx)(n9,{className:T,children:B?(0,r.jsx)(x.O,{containerClassName:"skeletonContainer",className:"skeleton"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n7,{$isMapOpen:L,children:[(0,r.jsx)(g.T,{className:"share-button",sharedData:X}),(0,r.jsx)(p.A,{aptId:e,className:"favourite",category:A}),(0,r.jsx)(y.f,{isMapOpen:L,photos:j})]}),(0,r.jsxs)(en,{href:{pathname:"".concat(w.Z6.apartment,"/").concat(e),query:(0,c.dI)(D)},onClick:F,$isMapOpen:L,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(ee,{children:t}),(0,r.jsxs)(et,{children:[(0,r.jsxs)(er,{title:Q,children:[(0,r.jsx)(m.P.FilledLocation,{size:14}),(0,r.jsx)("span",{children:Q})]}),M&&!V&&(0,r.jsxs)(er,{children:[(0,r.jsx)(m.P.Building,{size:14}),(0,r.jsx)("span",{className:"building",onClick:W,children:_})]})]})]}),(0,r.jsx)(ei,{children:(0,r.jsx)(f.z,{isMobile:q,guest:C,bathrooms:z,bedrooms:P,area:I,iconGuestSize:18,iconBedSize:18,iconAreaSize:14,iconBathSize:14,fontSize:d.TV.fontSizes.x_small})}),k&&G!==b.m.midTerm?(0,r.jsxs)(eo,{children:[(0,r.jsxs)(el,{children:[O?(0,r.jsxs)(ea,{children:["€ ",O]}):null,(0,r.jsx)(ec,{children:$("apartment:summary.price",{currency:"€",price:k})})]}),(0,r.jsx)("span",{children:$("apartment:summary:night")})]}):null,S&&G===b.m.midTerm?(0,r.jsx)(eo,{children:(0,r.jsx)(el,{children:(0,r.jsx)(R,{minimumPricePerMonth:S})})}):null]})]})})},es=n=>{var e;let{aptId:t,aptTitle:a,aptTitlePt:u,aptStreetName:s,aptMunicipality:d,aptNeighbourhood:f,photos:p,maxOccupancy:m,bedrooms:h,bathrooms:g,area:x,averagePricePerNight:b,minimumPricePerMonth:w,oldPrice:v,buildingId:y,buildingName:Z,buildingNeighbourhood:j,isMapOpen:C,containerClassName:P,isBuildingsApartments:z,isLoading:I=!1,onClick:k}=n,{i18n:S}=(0,i.$G)(),O=null!==(e=S.language)&&void 0!==e?e:"en",{isAndoLiving:M}=(0,o.M)(),_=(0,l.Z)("(max-width: 950px)"),N=I?"":(0,c.jT)({isAndoLiving:M,aptTitle:"en"===O?a:null!=u?u:a});return(0,r.jsx)(r.Fragment,{children:C||_?(0,r.jsx)(eu,{isMapOpen:C,aptId:t,aptTitle:N,aptStreetName:s,aptMunicipality:d,aptNeighbourhood:f,photos:p,maxOccupancy:m,bedrooms:h,bathrooms:g,area:x,averagePricePerNight:b,minimumPricePerMonth:w,oldPrice:v,buildingId:y,buildingName:Z,buildingNeighbourhood:j,containerClassName:P,isBuildingsApartments:z,isLoading:I,onClick:k}):(0,r.jsx)(nL,{aptId:t,aptTitle:N,aptStreetName:s,aptMunicipality:d,aptNeighbourhood:f,photos:p,maxOccupancy:m,bedrooms:h,bathrooms:g,area:x,averagePricePerNight:b,minimumPricePerMonth:w,oldPrice:v,buildingId:y,buildingName:Z,buildingNeighbourhood:j,containerClassName:P,isLoading:I,onClick:k})})};var ed=t(86916),ef=t(96486),ep=t(19912),em=t(25443);function eh(){let n=(0,Z.Z)(["\n  display: flex;\n  justify-content: center;\n"]);return eh=function(){return n},n}function eg(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: column;\n  width: ",";\n\n  @media "," {\n    width: ",";\n  }\n\n  @media (max-width: 950px) {\n    width: 100%;\n  }\n"]);return eg=function(){return n},n}function ex(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  align-items: center;\n  align-content: ",";\n  justify-content: flex-start;\n  column-gap: ",";\n  row-gap: ",";\n  width: 100%;\n  padding: ",";\n  padding-right: ",";\n\n  @media "," {\n    margin: 0;\n    row-gap: ",";\n  }\n"]);return ex=function(){return n},n}function eb(){let n=(0,Z.Z)(["\n  width: calc(\n    (("," - ",") - ",") / 2\n  );\n  padding-top: ",";\n  padding-left: ",";\n"]);return eb=function(){return n},n}function ew(){let n=(0,Z.Z)(["\n  margin: 0;\n  width: 100%;\n  margin-top: ",";\n  overflow: hidden;\n  height: ",";\n"]);return ew=function(){return n},n}function ev(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 100%;\n  display: flex;\n\n  > div {\n    display: flex !important;\n  }\n"]);return ev=function(){return n},n}function ey(){let n=(0,Z.Z)(["\n  display: flex;\n  user-select: none;\n  touch-action: none;\n  padding: ",";\n  background: ",";\n  transition: background 160ms ease-out;\n  border-radius: ",";\n\n  &[data-orientation='vertical'] {\n    width: 10px;\n  }\n"]);return ey=function(){return n},n}function eZ(){let n=(0,Z.Z)(["\n  flex: 1;\n  background: ",";\n  border-radius: ",";\n  position: relative;\n\n  /* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */\n  &::before {\n    content: '';\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    width: 100%;\n    height: 100%;\n    min-width: 44px;\n    min-height: 44px;\n  }\n"]);return eZ=function(){return n},n}let ej=s.ZP.div.withConfig({componentId:"sc-5b5f491d-0"})(eh()),eC=s.ZP.div.withConfig({componentId:"sc-5b5f491d-1"})(eg(),n=>{let{$mapOpened:e}=n;return e?"50%":"100%"},d.Hb.desktop,n=>{let{$mapOpened:e}=n;return e?"55%":"100%"}),eP=s.ZP.div.withConfig({componentId:"sc-5b5f491d-2"})(ex(),n=>{let{$mapOpened:e}=n;return e?"flex-start":"normal"},n=>{let{theme:e}=n;return e.spacing.x_large},n=>{let{theme:e}=n;return e.spacing.large},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{$mapOpened:e,theme:t}=n;return e?t.spacing.large:t.spacing.x_small},d.Hb.tablet,n=>{let{theme:e}=n;return e.spacing.large}),ez=s.ZP.div.withConfig({componentId:"sc-5b5f491d-3"})(eb(),"100vw","350px",n=>{let{theme:e}=n;return e.spacing.large},n=>{let{theme:e}=n;return e.spacing.large},n=>{let{theme:e}=n;return e.spacing.middle}),eI=(0,s.ZP)(em.fC).withConfig({componentId:"sc-5b5f491d-4"})(ew(),n=>{let{theme:e}=n;return e.spacing.large},n=>{let{theme:e,$mapOpened:t}=n;return t?e.currentCompany===j.O3.lovelystay?"calc(100vh - 30px)":"calc(100vh - 180px)":"auto"}),ek=(0,s.ZP)(em.l_).withConfig({componentId:"sc-5b5f491d-5"})(ev()),eS=(0,s.ZP)(em.LW).withConfig({componentId:"sc-5b5f491d-6"})(ey(),n=>{let{theme:e}=n;return e.spacing.xx_small},n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?"#EAEAEA":e.colors.tertiary},n=>{let{theme:e}=n;return e.radii.middle}),eO=(0,s.ZP)(em.bU).withConfig({componentId:"sc-5b5f491d-7"})(eZ(),n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?"#d0cdcd":"#d8cec1"},n=>{let{theme:e}=n;return e.radii.middle}),eM=n=>{var e;let{itemsPerPage:t,totalApartments:o,currentData:a,currentPage:u,currentMapData:s,handlePageChange:d,pageRangeDisplayed:f,isMapOpen:p=!1,isLoading:m=!1,isSuccess:h=!1,newSearch:g=!1,updateCoordinates:x}=n,{i18n:b}=(0,i.$G)(),v=(0,l.Z)("(max-width: 950px)"),y=Array(12).fill(""),Z=null!==(e=b.language)&&void 0!==e?e:"en";return(0,r.jsxs)(ej,{children:[!m&&(0,ef.isEmpty)(a)&&h?(0,r.jsx)(eG,{}):(0,r.jsxs)(eC,{$mapOpened:p,children:[(0,r.jsxs)(eI,{$mapOpened:p,type:"auto",children:[(0,r.jsx)(ek,{children:(0,r.jsx)(eP,{$mapOpened:p,children:(m?y:a).map((n,e)=>{let t=(0,c.$d)(n,Z),i=Math.round(n.averagePricePerNight),o=()=>{ed.L.BookApartmentCardClicked({screen:w.Z6.apartments,apartment_id:n.aptId})};return(0,r.jsx)(es,{isLoading:m,isMapOpen:p,aptId:t,aptTitle:n.aptTitle,aptTitlePt:n.aptTitlePt,aptStreetName:n.aptStreetName,aptMunicipality:n.aptMunicipality,aptNeighbourhood:n.aptNeighbourhood,photos:n.photos,maxOccupancy:n.maxOccupancy,bedrooms:n.bedrooms,bathrooms:n.bathrooms,area:n.area,averagePricePerNight:i,minimumPricePerMonth:n.minimumPricePerMonth,oldPrice:n.oldPrice,buildingId:n.buildingId,buildingName:n.buildingName,buildingNeighbourhood:n.buildingNeighbourhood,onClick:o},e)})})}),(0,r.jsx)(eS,{orientation:"vertical",children:(0,r.jsx)(eO,{})})]}),t<=o&&(0,r.jsx)(ep._,{pageCount:Math.ceil(o/t),onPageChange:d,currentPage:u,pageRangeDisplayed:f})]}),p&&s&&!v&&(0,r.jsx)(ez,{children:(0,r.jsx)(rl,{isLoading:m,apartmentList:s,onZoomChanged:x,onDragend:x,newSearch:g})})]})};t(39777);var e_=t(25675),eN=t.n(e_),eL={src:"/_next/static/media/not-found.8c6436ac.svg",height:228,width:246,blurWidth:0,blurHeight:0},eT=t(54237);function eE(){let n=(0,Z.Z)(["\n  width: 55%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  place-items: center;\n  padding: "," 0;\n"]);return eE=function(){return n},n}function eB(){let n=(0,Z.Z)(["\n  text-align: center;\n  padding-top: ",";\n  padding-bottom: ",";\n  font-weight: ",";\n  font-size: ",";\n  font-family: ",";\n"]);return eB=function(){return n},n}function eF(){let n=(0,Z.Z)(["\n  color: ",";\n  padding: 0;\n"]);return eF=function(){return n},n}function eR(){let n=(0,Z.Z)(["\n          &:first-of-type {\n            text-transform: uppercase;\n            color: ",";\n            font-weight: ",";\n          }\n        "]);return eR=function(){return n},n}function e$(){let n=(0,Z.Z)(["\n  text-align: center;\n  font-size: ",";\n  padding-bottom: ",";\n  max-width: 250px;\n\n  ",";\n"]);return e$=function(){return n},n}let eA=s.ZP.div.withConfig({componentId:"sc-d904cb13-0"})(eE(),n=>{let{theme:e}=n;return e.spacing.xxx_large}),eD=s.ZP.span.withConfig({componentId:"sc-d904cb13-1"})(eB(),n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.fontSizes.xxx_large},n=>{let{theme:e}=n;return e.fonts.primary}),eH=(0,s.ZP)(eD).withConfig({componentId:"sc-d904cb13-2"})(eF(),n=>{let{theme:e}=n;return e.colors.primary}),eV=s.ZP.p.withConfig({componentId:"sc-d904cb13-3"})(e$(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.spacing.small},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(eR(),e.colors.secondary,e.weights.semiBold):null}),eG=()=>{let{t:n}=(0,i.$G)(),{isAndoLiving:e}=(0,o.M)();return(0,r.jsxs)(eA,{children:[(0,r.jsx)(eN(),{src:e?eL:eT.Z,alt:n("apartments:filters.noResultsSubtitle"),height:150}),(0,r.jsx)(eD,{children:(0,r.jsx)(i.cC,{i18nKey:"apartments:filters.noResults",components:{highlight:(0,r.jsx)(eH,{})}})}),(0,r.jsx)(eV,{children:n("apartments:filters.noResultsSubtitle")}),(0,r.jsx)(eV,{children:n("apartments:filters.noResultsDescription")})]})};var eq=t(24284),eK=t(76100),eW=t(37212),eU=t(27166),eQ=t(66609),eX=t(86419),eY=t(9477),eJ=t(89382);function e0(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return e0=function(){return n},n}function e1(){let n=(0,Z.Z)(["\n  width: 240px;\n  height: auto;\n  overflow: hidden;\n  border-radius: ",";\n  position: relative;\n  box-shadow: ",";\n\n  ",";\n"]);return e1=function(){return n},n}function e3(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return e3=function(){return n},n}function e2(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-bottom-left-radius: ",";\n  border-bottom-right-radius: ",";\n\n  ",";\n"]);return e2=function(){return n},n}function e4(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: row;\n  height: 85%;\n  position: relative;\n"]);return e4=function(){return n},n}function e5(){let n=(0,Z.Z)(["\n  position: relative;\n  flex: 0 0 100%;\n"]);return e5=function(){return n},n}function e8(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return e8=function(){return n},n}function e6(){let n=(0,Z.Z)(["\n  width: 102%;\n  height: 135px;\n  margin-left: -2px;\n  background-image: url(",");\n  background-size: 125%;\n  background-position: center;\n  flex: none;\n  border-radius: ",";\n  z-index: 1;\n  position: relative;\n\n  ",";\n"]);return e6=function(){return n},n}function e9(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return e9=function(){return n},n}function e7(){let n=(0,Z.Z)(["\n  width: 100%;\n  border-radius: ",";\n  display: flex;\n\n  ",";\n"]);return e7=function(){return n},n}function tn(){let n=(0,Z.Z)(["\n  width: 100%;\n  padding: 10px;\n  font-family: ",";\n"]);return tn=function(){return n},n}function te(){let n=(0,Z.Z)(["\n  font-size: ",";\n  color: ",";\n  font-weight: ",";\n  margin-bottom: ",";\n  overflow: hidden;\n"]);return te=function(){return n},n}function tt(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n\n  span {\n    font-size: ",";\n    color: ",";\n    font-weight: ",";\n  }\n"]);return tt=function(){return n},n}function tr(){let n=(0,Z.Z)(["\n  font-size: ",";\n  margin-top: ",";\n  color: ",";\n"]);return tr=function(){return n},n}function ti(){let n=(0,Z.Z)(["\n  ",";\n"]);return ti=function(){return n},n}function to(){let n=(0,Z.Z)(["\n  height: 1px;\n  width: 108%;\n  margin-left: -10px;\n  background: rgba(0, 0, 0, 0.16);\n"]);return to=function(){return n},n}function tl(){let n=(0,Z.Z)(["\n  height: 30px;\n\n  ul {\n    margin: 9px;\n\n    li {\n      width: 20px;\n      height: 20px;\n    }\n  }\n"]);return tl=function(){return n},n}let tc=s.ZP.div.withConfig({componentId:"sc-aad31f48-0"})(e1(),n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(e0()):null}),ta=s.ZP.div.withConfig({componentId:"sc-aad31f48-1"})(e2(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(e3()):null}),tu=s.ZP.div.withConfig({componentId:"sc-aad31f48-2"})(e4()),ts=s.ZP.div.withConfig({componentId:"sc-aad31f48-3"})(e5()),td=s.ZP.div.withConfig({componentId:"sc-aad31f48-4"})(e6(),n=>{let{image:e}=n;return e},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(e8()):null}),tf=s.ZP.div.withConfig({componentId:"sc-aad31f48-5"})(e7(),n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(e9()):null}),tp=(0,s.ZP)(nE()).withConfig({componentId:"sc-aad31f48-6"})(tn(),n=>{let{theme:e}=n;return e.fonts.primary}),tm=s.ZP.h6.withConfig({componentId:"sc-aad31f48-7"})(te(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.colors.text},n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{marginBottom:e}=n;return e}),th=s.ZP.p.withConfig({componentId:"sc-aad31f48-8"})(tt(),n=>{let{theme:e}=n;return e.fontSizes.medium},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.colors.text},n=>{let{theme:e}=n;return e.weights.regular}),tg=s.ZP.p.withConfig({componentId:"sc-aad31f48-9"})(tr(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.colors.secondary}),tx=s.ZP.span.withConfig({componentId:"sc-aad31f48-10"})(ti(),n=>{let{showDot:e}=n;return e&&"\n      &::before {\n        content: '•';\n        padding: 0 5px;\n      }\n    "}),tb=s.ZP.div.withConfig({componentId:"sc-aad31f48-11"})(to()),tw=s.ZP.div.withConfig({componentId:"sc-aad31f48-12"})(tl()),tv=n=>{var e;let{apartments:t}=n,o=(0,u.useRouter)(),{t:l}=(0,i.$G)(),[s,f]=(0,eJ.Z)(),[p,m]=(0,a.useState)(0),h=(0,a.useCallback)(()=>{f&&m(f.selectedScrollSnap())},[f]);(0,a.useEffect)(()=>{f&&f.on("select",h)},[f,h]);let g=n=>{null==f||f.scrollTo(n),m(n)},x=n=>null!==(e=n.averagePricePerNight)&&void 0!==e?e:n.minimumPricePerMonth;return(0,r.jsx)(tc,{children:(0,r.jsxs)(ta,{ref:s,children:[(0,r.jsx)(tu,{children:t.map((n,e)=>(0,r.jsxs)(ts,{children:[(0,r.jsx)(td,{image:n.photos[0]}),(0,r.jsx)(tf,{children:(0,r.jsxs)(tp,{href:{pathname:"".concat(w.Z6.apartment,"/").concat(n.aptId),query:(0,c.dI)(o.query)},children:[(0,r.jsx)(tm,{marginBottom:x(n)?d.TV.spacing.middle:d.TV.spacing.x_small,children:n.aptTitle}),(0,r.jsxs)(th,{children:[n.averagePricePerNight&&(0,r.jsx)(i.cC,{i18nKey:"common:map.averagePricePerNight",values:{currency:"€",price:n.averagePricePerNight},components:{text:(0,r.jsx)("span",{})}}),n.minimumPricePerMonth&&(0,r.jsx)(i.cC,{i18nKey:"common:map.perMonth",values:{currency:"€",price:(0,c.q2)(n.minimumPricePerMonth)},components:{text:(0,r.jsx)("span",{})}}),(0,r.jsx)(tx,{showDot:!!x(n),children:l("common:map.guests",{count:n.maxOccupancy})}),(0,r.jsx)(tx,{showDot:!0,children:l("common:map.numberOfBeds",{count:n.numBedTotal})})]}),x(n)&&(0,r.jsx)(tg,{children:l("common:map.excludeTax")})]})})]},e))}),(0,r.jsx)(tb,{}),(0,r.jsx)(tw,{children:(0,r.jsx)(ep._,{marginPagesDisplayed:1,pageRangeDisplayed:1,currentPage:p,pageCount:t.length,onPageChange:g,forcePage:p})})]})})};function ty(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return ty=function(){return n},n}function tZ(){let n=(0,Z.Z)(["\n  width: 240px;\n  height: auto;\n  overflow: hidden;\n  border-radius: ",";\n  position: relative;\n  box-shadow: ",";\n\n  ",";\n"]);return tZ=function(){return n},n}function tj(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return tj=function(){return n},n}function tC(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-bottom-left-radius: ",";\n  border-bottom-right-radius: ",";\n\n  ",";\n"]);return tC=function(){return n},n}function tP(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return tP=function(){return n},n}function tz(){let n=(0,Z.Z)(["\n  width: 102%;\n  height: 135px;\n  margin-left: -",";\n  background-image: url(",");\n  background-size: 125%;\n  background-position: center;\n  flex: none;\n  z-index: 1;\n  position: relative;\n\n  ",";\n"]);return tz=function(){return n},n}function tI(){let n=(0,Z.Z)(["\n          border-radius: 0;\n        "]);return tI=function(){return n},n}function tk(){let n=(0,Z.Z)(["\n  width: 100%;\n  border-radius: ",";\n  display: flex;\n\n  ",";\n"]);return tk=function(){return n},n}function tS(){let n=(0,Z.Z)(["\n  width: 100%;\n  padding: ",";\n  font-family: ",";\n"]);return tS=function(){return n},n}function tO(){let n=(0,Z.Z)(["\n  font-size: ",";\n  color: ",";\n  font-weight: ",";\n  margin-bottom: ",";\n  overflow: hidden;\n"]);return tO=function(){return n},n}function tM(){let n=(0,Z.Z)(["\n  font-size: ",";\n  font-weight: ",";\n\n  span {\n    font-size: ",";\n    color: ",";\n    font-weight: ",";\n  }\n"]);return tM=function(){return n},n}function t_(){let n=(0,Z.Z)(["\n  font-size: ",";\n  margin-top: ",";\n  color: ",";\n"]);return t_=function(){return n},n}function tN(){let n=(0,Z.Z)(["\n      &::before {\n        content: '•';\n        padding: 0 ",";\n      }\n    "]);return tN=function(){return n},n}function tL(){let n=(0,Z.Z)(["\n  ",";\n"]);return tL=function(){return n},n}function tT(){let n=(0,Z.Z)(["\n  height: 1px;\n  width: 108%;\n  margin-left: -",";\n  background: rgba(0, 0, 0, 0.16);\n"]);return tT=function(){return n},n}let tE=s.ZP.div.withConfig({componentId:"sc-6dba872-0"})(tZ(),n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(ty()):null}),tB=s.ZP.div.withConfig({componentId:"sc-6dba872-1"})(tC(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(tj()):null}),tF=s.ZP.div.withConfig({componentId:"sc-6dba872-2"})(tz(),n=>{let{theme:e}=n;return e.spacing.xx_small},n=>{let{image:e}=n;return e},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(tP()):null}),tR=s.ZP.div.withConfig({componentId:"sc-6dba872-3"})(tk(),n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(tI()):null}),t$=(0,s.ZP)(nE()).withConfig({componentId:"sc-6dba872-4"})(tS(),n=>{let{theme:e}=n;return e.spacing.middle},n=>{let{theme:e}=n;return e.fonts.primary}),tA=s.ZP.h6.withConfig({componentId:"sc-6dba872-5"})(tO(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.colors.text},n=>{let{theme:e}=n;return e.weights.semiBold},n=>{let{marginBottom:e}=n;return e}),tD=s.ZP.p.withConfig({componentId:"sc-6dba872-6"})(tM(),n=>{let{theme:e}=n;return e.fontSizes.medium},n=>{let{theme:e}=n;return e.weights.bold},n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.colors.text},n=>{let{theme:e}=n;return e.weights.regular}),tH=s.ZP.p.withConfig({componentId:"sc-6dba872-7"})(t_(),n=>{let{theme:e}=n;return e.fontSizes.small},n=>{let{theme:e}=n;return e.spacing.x_small},n=>{let{theme:e}=n;return e.colors.secondary}),tV=s.ZP.span.withConfig({componentId:"sc-6dba872-8"})(tL(),n=>{let{showDot:e}=n;return e&&(0,s.iv)(tN(),n=>{let{theme:e}=n;return e.spacing.x_small})});s.ZP.div.withConfig({componentId:"sc-6dba872-9"})(tT(),n=>{let{theme:e}=n;return e.spacing.small});let tG=n=>{var e;let{apartment:t}=n,{t:o}=(0,i.$G)(),l=(0,u.useRouter)(),a=n=>null!==(e=n.averagePricePerNight)&&void 0!==e?e:n.minimumPricePerMonth;return(0,r.jsx)(tE,{children:(0,r.jsxs)(tB,{children:[(0,r.jsx)(tF,{image:t.photos[0]}),(0,r.jsx)(tR,{children:(0,r.jsxs)(t$,{href:{pathname:"".concat(w.Z6.apartment,"/").concat(t.aptId),query:(0,c.dI)(l.query)},children:[(0,r.jsx)(tA,{marginBottom:a(t)?d.TV.spacing.middle:d.TV.spacing.x_small,children:t.aptTitle}),(0,r.jsxs)(tD,{children:[t.averagePricePerNight&&(0,r.jsx)(i.cC,{i18nKey:"common:map.averagePricePerNight",values:{currency:"€",price:t.averagePricePerNight},components:{text:(0,r.jsx)("span",{})}}),t.minimumPricePerMonth&&(0,r.jsx)(i.cC,{i18nKey:"common:map.perMonth",values:{currency:"€",price:(0,c.q2)(t.minimumPricePerMonth)},components:{text:(0,r.jsx)("span",{})}}),(0,r.jsx)(tV,{showDot:!!a(t),children:o("common:map.guests",{count:t.maxOccupancy})}),(0,r.jsx)(tV,{showDot:!0,children:o("common:map.numberOfBeds",{count:t.numBedTotal})})]}),t.averagePricePerNight&&(0,r.jsx)(tH,{children:o("common:map.excludeTax")})]})})]})})};var tq=t(13135);function tK(){let n=(0,Z.Z)(["\n          border-radius: 0;\n          color: ",";\n          background-color: ",";\n          font-weight: ",";\n        "]);return tK=function(){return n},n}function tW(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: column;\n  cursor: pointer;\n  user-select: none;\n  text-align: center;\n  border-radius: 35%;\n  color: ",";\n  background-color: ",";\n  font-size: ",";\n  padding: ",";\n  border-radius: ",";\n  box-shadow: ",";\n\n  ",";\n\n  span {\n    font-size: ",";\n  }\n"]);return tW=function(){return n},n}function tU(){let n=(0,Z.Z)(["\n  width: 30px;\n  height: 30px;\n  background-image: ",";\n  background-position: center;\n  background-size: contain;\n  background-repeat: no-repeat;\n  cursor: pointer;\n"]);return tU=function(){return n},n}let tQ="".concat(tq.Mx,"/icons/map/"),tX="".concat(tQ,"andoliving-marker.png"),tY="".concat(tQ,"lovelystay-marker.png"),tJ=s.ZP.button.withConfig({componentId:"sc-8c728066-0"})(tW(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.colors.secondary},n=>{let{theme:e}=n;return e.fontSizes.middle},n=>{let{theme:e}=n;return"".concat(e.spacing.x_small," ").concat(e.spacing.small)},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(tK(),e.colors.text,e.colors.white,e.weights.medium):null},n=>{let{theme:e}=n;return e.fontSizes.x_small}),t0=s.ZP.div.withConfig({componentId:"sc-8c728066-1"})(tU(),n=>{let{isAndoLiving:e}=n;return e?"url(".concat(tX,")"):"url(".concat(tY,")")}),t1=n=>{let{apartment:e,apartments:t,map:l,showMarker:u,showMarkerDetails:s,totalApartments:d,onClick:f,center:p}=n,{t:m}=(0,i.$G)(),{isAndoLiving:h}=(0,o.M)(),[g,x]=(0,a.useState)(!1),b=(0,a.useMemo)(()=>e.minimumPricePerMonth?(0,c.q2)(e.minimumPricePerMonth):e.averagePricePerNight,[e]),w=(0,a.useMemo)(()=>{if(d)return d>1},[d]),v=()=>{f&&d&&(d>1?f(t):f(e))},y=(0,a.useCallback)(()=>{x(!0)},[]),Z=(0,a.useCallback)(()=>{x(!1)},[]);return(0,r.jsx)(r.Fragment,{children:l&&u&&(0,r.jsx)(eY.Z,{position:p,map:l,zIndex:g?99:0,children:(0,r.jsxs)(eX.fC,{children:[(0,r.jsx)(eX.xz,{asChild:!0,children:b?(0,r.jsx)(tJ,{onClick:v,onMouseEnter:y,onMouseLeave:Z,children:w?m("common:map.multiMarker",{quantity:d}):e.minimumPricePerMonth?(0,r.jsx)(i.cC,{i18nKey:"common:map.monthlyUniqueMarker",values:{currency:"€",price:(0,c.q2)(e.minimumPricePerMonth)},components:{text:(0,r.jsx)("span",{})}}):m("common:map.uniqueMarker",{currency:"€",price:b})}):(0,r.jsx)(t0,{isAndoLiving:h,onClick:v,onMouseEnter:y,onMouseLeave:Z})}),(0,r.jsx)(eX.h_,{children:s&&(0,r.jsx)(eX.VY,{sideOffset:5,style:{zIndex:202},children:w?(0,r.jsx)(tv,{apartments:t}):(0,r.jsx)(tG,{apartment:e})})})]})})})},t3=n=>{let e=new Map,t=new Set;for(let i of n){var r;let{coordLongitude:o,coordLatitude:l}=i,c="".concat(o,",").concat(l),a=null!==(r=e.get(c))&&void 0!==r?r:n.filter(n=>n.coordLatitude===l&&n.coordLongitude===o);e.set(c,a),i.totalApartmentToShowInLabel=a.length,t.has(c)?(i.renderMarker=!1,i.multiLabel=!0):(i.renderMarker=!0,a.length>1?(i.multiLabel=!0,t.add(c)):(i.multiLabel=!1,t.add(c)))}return{apartmentsTagged:n,coordsToApartmentsMap:e}};var t2=t(65703);function t4(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 100%;\n\n  & > div {\n    width: 100%;\n    height: 100%;\n    z-index: 100;\n  }\n"]);return t4=function(){return n},n}let t5=s.ZP.div.withConfig({componentId:"sc-b32f90a6-0"})(t4()),t8=()=>(0,r.jsx)(eU.Z,{}),t6=n=>{let{apiKey:e,onIdle:t,onDragend:i,onZoomChanged:o,zoom:l,center:c,markers:u,onMarkerClick:s,showMarkerDetails:d}=n,[f,p]=(0,a.useState)([]),[m,h]=(0,a.useState)();(0,a.useEffect)(()=>{if(!u)return;let{apartmentsTagged:n,coordsToApartmentsMap:e}=t3(u);p(n),h(e)},[u]);let g=(0,a.useCallback)(n=>{s&&s(n)},[s]),x=(0,a.useCallback)(n=>(null==m?void 0:m.get(n))||[],[m]);return(0,r.jsx)(t5,{children:(0,r.jsx)(eW.Wrapper,{id:"google-maps",apiKey:e,render:t8,language:"en",children:(0,r.jsx)(eQ.D,{styles:t2.B,center:c,zoom:l,minZoom:7,maxZoom:24,onIdle:t,onDragend:i,onZoomChanged:o,fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,zoomControl:!1,clickableIcons:!1,scrollwheel:!0,disableDefaultUI:!1,children:null==f?void 0:f.map(n=>(0,r.jsx)(t1,{center:{lat:Number(n.coordLatitude),lng:Number(n.coordLongitude)},totalApartments:n.totalApartmentToShowInLabel,showMarker:n.renderMarker,isMultiLabel:n.multiLabel,showMarkerDetails:d,apartment:n,apartments:x("".concat(n.coordLongitude,",").concat(n.coordLatitude)),onClick:g},n.aptId))})})})};var t9=t(12124);function t7(){let n=(0,Z.Z)(["\n  position: relative;\n  width: ",";\n  height: ",";\n  padding: 0;\n  display: inline-block;\n  overflow: hidden;\n\n  @media "," {\n    position: relative;\n    z-index: 201;\n  }\n"]);return t7=function(){return n},n}function rn(){let n=(0,Z.Z)(["\n  z-index: 1;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.4);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding-top: ",";\n"]);return rn=function(){return n},n}function re(){let n=(0,Z.Z)(["\n  width: 80px;\n  height: ",";\n\n  img {\n    color: transparent;\n    width: 40px;\n    height: 40px;\n    top: ",";\n    position: relative;\n    left: 5px;\n  }\n"]);return re=function(){return n},n}let rt=(0,s.ZP)(t9.x).withConfig({componentId:"sc-629e23b1-0"})(t7(),n=>{let{width:e}=n;return e},n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?"calc(100vh - 30px)":"calc(100vh - 180px)"},d.Hb.tablet),rr=s.ZP.div.withConfig({componentId:"sc-629e23b1-1"})(rn(),n=>{let{theme:e}=n;return e.spacing.medium}),ri=(0,s.ZP)(t9.x).withConfig({componentId:"sc-629e23b1-2"})(re(),n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?"30px":"40px"},n=>{let{theme:e}=n;return e.currentCompany===j.O3.lovelystay?"-20px":"-16px"});var ro=t(83454);let rl=n=>{let{apartmentList:e,isLoading:t=!1,onZoomChanged:l,onDragend:c,newSearch:u}=n,{t:s}=(0,i.$G)(),{isLovelyStay:d,isLisbonne:f}=(0,o.M)(),[p,m]=(0,a.useState)(14),[h,g]=(0,a.useState)(null),x=(0,a.useCallback)(n=>n.reduce((n,e)=>(n.coordLatitude+=Number(e.coordLatitude),n.coordLongitude+=Number(e.coordLongitude),n),{coordLatitude:0,coordLongitude:0}),[]);(0,a.useEffect)(()=>{if(0!==e.length&&(u||!h)&&(e[0].averagePricePerNight||e[0].minimumPricePerMonth)){let n=e.length,{coordLatitude:t,coordLongitude:r}=x(e);g({lat:t/n,lng:r/n})}},[e,u]);let b=n=>{let e=n.getZoom(),t=n.getCenter();e&&t&&(m(e),g(t.toJSON()))};return(0,r.jsx)(r.Fragment,{children:h&&(0,r.jsxs)(rt,{width:"".concat(100,"%"),children:[t&&(0,r.jsx)(rr,{children:(0,r.jsx)(ri,{children:(0,r.jsx)(eN(),{src:d||f?eK.Z:eq.Z,alt:s("common:loading"),width:75,height:75})})}),(0,r.jsx)(t6,{apiKey:ro.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY,center:h,zoom:p,markers:e,onIdle:b,onZoomChanged:l,onDragend:c,showMarkerDetails:!0})]})})};var rc=t(16467),ra=t(9514);function ru(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n  min-width: ",";\n  width: ",";\n  padding-left: ",";\n"]);return ru=function(){return n},n}function rs(){let n=(0,Z.Z)(["\n          border-radius: 0;\n          background-color: ",";\n          box-shadow: none;\n        "]);return rs=function(){return n},n}function rd(){let n=(0,Z.Z)(["\n  margin-top: ",";\n  width: 100%;\n  max-width: 320px;\n\n  ",";\n"]);return rd=function(){return n},n}let rf="350px",rp=s.ZP.div.withConfig({componentId:"sc-5607b039-0"})(ru(),rf,rf,n=>{let{theme:e}=n;return e.spacing.x_large}),rm=(0,s.ZP)(t9.x).withConfig({componentId:"sc-5607b039-1"})(rd(),n=>{let{theme:e}=n;return e.spacing.large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(rs(),e.colors.background2):null}),rh=n=>{let{onFilter:e}=n,{isLovelyStay:t}=(0,o.M)(),i=(0,v.S)(n=>n.rentalType);return(0,r.jsx)(rp,{children:(0,r.jsxs)(rm,{children:[i!==b.m.midTerm&&(0,r.jsx)(ra.M,{onFilter:e}),t&&(0,r.jsx)(rc.W,{onFilter:e})]})})};var rg=t(42298),rx=t(70420),rb=t(67244);function rw(){let n=(0,Z.Z)(["\n          background-color: ",";\n        "]);return rw=function(){return n},n}function rv(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 56px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: ",";\n  color: ",";\n\n  ",";\n"]);return rv=function(){return n},n}function ry(){let n=(0,Z.Z)(["\n          border: 1px solid ",";\n          border-radius: 0;\n        "]);return ry=function(){return n},n}function rZ(){let n=(0,Z.Z)(["\n  position: relative;\n  height: 40px;\n  background-color: ",";\n  border-radius: ",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: ",";\n\n  & > div {\n    width: calc(100vw - ",");\n    max-width: 480px;\n    display: flex;\n  }\n\n  ",";\n"]);return rZ=function(){return n},n}function rj(){let n=(0,Z.Z)(["\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: space-between;\n  gap: ",";\n"]);return rj=function(){return n},n}function rC(){let n=(0,Z.Z)(["\n  position: fixed;\n  top: 0;\n  right: 0;\n  width: 100%;\n  height: 100%;\n  background-color: transparent;\n  z-index: 300;\n  background-color: rgba(0, 0, 0, 0.4);\n"]);return rC=function(){return n},n}function rP(){let n=(0,Z.Z)(["\n          background-color: ",";\n          border-radius: 0;\n        "]);return rP=function(){return n},n}function rz(){let n=(0,Z.Z)(["\n  display: flex;\n  flex-direction: column;\n  background: ",";\n  box-shadow: ",";\n  border-radius: ",";\n  padding-bottom: ",";\n\n  @media (max-width: 890px) {\n    width: 550px;\n    max-width: 90vw;\n  }\n\n  @media "," {\n    width: ",";\n  }\n\n  ",";\n"]);return rz=function(){return n},n}function rI(){let n=(0,Z.Z)(["\n  background: transparent;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  font-size: ",";\n"]);return rI=function(){return n},n}function rk(){let n=(0,Z.Z)(["\n          border-right: 1px solid ",";\n          box-shadow: none;\n          border-radius: 0;\n        "]);return rk=function(){return n},n}function rS(){let n=(0,Z.Z)(["\n  ","\n  padding: ",";\n  box-shadow: ",";\n  border-radius: ",";\n  text-align: center;\n\n  ",";\n"]);return rS=function(){return n},n}function rO(){let n=(0,Z.Z)(["\n  ","\n  text-align: center;\n"]);return rO=function(){return n},n}function rM(){let n=(0,Z.Z)(["\n  ","\n  padding: ",";\n  font-size: ",";\n"]);return rM=function(){return n},n}function r_(){let n=(0,Z.Z)(["\n  ","\n  font-size: ",";\n  padding: ",";\n"]);return r_=function(){return n},n}function rN(){let n=(0,Z.Z)(["\n          position: relative;\n          width: 100%;\n          margin: -19px 0 ",";\n          height: 50px;\n          background-color: ",";\n          color: ",";\n          letter-spacing: 3.2px;\n          text-transform: uppercase;\n          padding: "," ",";\n\n          h1 {\n            font-size: ",";\n          }\n        "]);return rN=function(){return n},n}function rL(){let n=(0,Z.Z)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-right: ",";\n\n  h1 {\n    font-weight: ",";\n    font-family: ",";\n    font-size: ",";\n  }\n\n  ",";\n"]);return rL=function(){return n},n}let rT="#dededf",rE=s.ZP.div.withConfig({componentId:"sc-5a01ec19-0"})(rv(),n=>{let{theme:e}=n;return e.colors.secondary},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(rw(),e.colors.background):null}),rB=s.ZP.div.withConfig({componentId:"sc-5a01ec19-1"})(rZ(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.radii.xxx_large},n=>{let{theme:e}=n;return e.colors.text},n=>{let{theme:e}=n;return e.spacing.xx_large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(ry(),rT):null}),rF=s.ZP.div.withConfig({componentId:"sc-5a01ec19-2"})(rj(),n=>{let{theme:e}=n;return e.spacing.middle}),rR=s.ZP.div.withConfig({componentId:"sc-5a01ec19-3"})(rC()),r$=(0,s.ZP)(eX.VY).withConfig({componentId:"sc-5a01ec19-4"})(rz(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.radii.large},n=>{let{theme:e}=n;return e.spacing.large},d.Hb.mobile,n=>{let{theme:e}=n;return"calc(100vw - ".concat(e.spacing.x_large,")")},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(rP(),e.colors.background2):null}),rA=(0,s.iv)(rI(),n=>{let{theme:e}=n;return e.fontSizes.small}),rD=s.ZP.div.withConfig({componentId:"sc-5a01ec19-5"})(rS(),rA,n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.shadows.boxShadow},n=>{let{theme:e}=n;return e.radii.xxx_large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(rk(),rT):null}),rH=s.ZP.div.withConfig({componentId:"sc-5a01ec19-6"})(rO(),rA),rV=s.ZP.div.withConfig({componentId:"sc-5a01ec19-7"})(rM(),rA,n=>{let{theme:e}=n;return"".concat(e.spacing.x_small," ").concat(e.spacing.medium," ").concat(e.spacing.x_small," ").concat(e.spacing.x_small)},n=>{let{theme:e}=n;return e.fontSizes.xx_large}),rG=s.ZP.div.withConfig({componentId:"sc-5a01ec19-8"})(r_(),rA,n=>{let{theme:e}=n;return e.fontSizes.medium},n=>{let{theme:e}=n;return e.spacing.medium}),rq=s.ZP.header.withConfig({componentId:"sc-5a01ec19-9"})(rL(),n=>{let{theme:e}=n;return e.spacing.medium},n=>{let{theme:e}=n;return e.weights.regular},n=>{let{theme:e}=n;return e.fonts.secondary},n=>{let{theme:e}=n;return e.fontSizes.xxx_large},n=>{let{theme:e}=n;return e.currentCompany===j.O3.ferienhaus?(0,s.iv)(rN(),e.spacing.middle,e.colors.lightBlue,e.colors.white,e.spacing.medium,e.spacing.x_large,e.fontSizes.small):null}),rK=n=>{let{onFilter:e,isLoading:t}=n,{t:l}=(0,i.$G)(),{isFerienHaus:c,isLovelyStay:u,isMadeira:s,isLisbonne:d}=(0,o.M)(),f=(0,a.useRef)(null),p=(0,v.S)(n=>n.bookWithUs),{checkIn:h,checkOut:g,destination:x,guests:b}=p,w=()=>{f.current&&f.current.click()},y=h&&(0,rg.default)(h,"MMM dd"),Z=g&&(0,rg.default)(g,"MMM dd");return(0,r.jsx)(rE,{children:(0,r.jsx)(rB,{children:(0,r.jsxs)(eX.fC,{children:[(0,r.jsx)(eX.xz,{asChild:!0,children:(0,r.jsxs)(rF,{children:[h||g||x||b.adults?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(rD,{children:c?"Madeira, Portugal":x||l("common:apartmentsMainFilter.fields.destinationPlaceholder")}),y&&Z&&(0,r.jsx)(rH,{children:"".concat(y," - ").concat(Z)}),(0,r.jsxs)(rH,{children:[l("common:apartmentsMainFilter.fields.guests",{count:(b.adults||1)+(b.children||0)}),b.infants?", ".concat(l("common:apartmentsMainFilter.fields.infants",{count:b.infants})):""]})]}):(0,r.jsx)(rG,{children:l("common:apartmentsMainFilter.title")}),(0,r.jsx)(rV,{children:(0,r.jsx)(m.P.Search,{})})]})}),(0,r.jsx)(eX.h_,{children:(0,r.jsx)(rR,{children:(0,r.jsxs)(r$,{align:"center",className:"PopoverContent",sideOffset:4,children:[(0,r.jsx)(eX.x8,{ref:f}),c&&(0,r.jsx)(rq,{children:(0,r.jsx)("h1",{children:l("common:apartmentsMainFilter.title")})}),(u||s||d)&&(0,r.jsx)(rb.K,{view:"apartments"}),(0,r.jsx)(rx.R,{view:"apartments",submitCallback:w,onFilter:e,isLoading:t})]})})})]})})})}},65703:function(n,e,t){t.d(e,{B:function(){return r}});let r=[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}]}}]);