1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3832],{13919:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buildings",function(){return n(32475)}])},86278:function(e,t,n){"use strict";n.d(t,{L:function(){return Dropdown}});var r=n(85893),i=n(86419),o=n(59886),l=n(82729),a=n(85444),s=n(53182),c=n(45177);function _templateObject(){let e=(0,l._)(["\n &.disabled {\n cursor: not-allowed;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,l._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n column-gap: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n\n svg {\n color: ",";\n }\n\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n\n & svg {\n width: ",";\n height: ",";\n color: ",";\n }\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,l._)(["\n position: fixed;\n top: 0;\n right: 0;\n background-color: ",";\n z-index: 1000;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,l._)(["\n background-color: ",";\n border-radius: 0;\n "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,l._)(["\n background-color: ",";\n border-radius: ",";\n padding: ",";\n box-shadow: ",";\n\n &.fullWidth {\n width: 100vw;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,l._)(["\n display: none;\n font-size: 28px;\n color: ",";\n\n @media "," {\n display: inline-block;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,l._)(["\n display: none;\n"]);return _templateObject6=function(){return e},e}let u=a.ZP.div.withConfig({componentId:"sc-36f37f72-0"})(_templateObject()),d=a.ZP.button.withConfig({componentId:"sc-36f37f72-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.weights[t.currentCompany===c.O3.lovelystay?"medium":"regular"]},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.colors.secondary},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.colors.secondary}),p=a.ZP.div.withConfig({componentId:"sc-36f37f72-2"})(_templateObject2(),e=>{let{overlay:t}=e;return t?"rgba(0, 0, 0, 0.4)":"transparent"}),f=(0,a.ZP)(i.VY).withConfig({componentId:"sc-36f37f72-3"})(_templateObject4(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t,compact:n}=e;return n?t.radii.large:t.radii.x_large},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.shadows.boxShadow},e=>{let{theme:t}=e;return t.currentCompany===c.O3.ferienhaus?(0,a.iv)(_templateObject3(),t.colors.background2):null}),m=(0,a.ZP)(i.x8).withConfig({componentId:"sc-36f37f72-4"})(_templateObject5(),e=>{let{theme:t}=e;return t.colors.primary},s.Hb.mobile),g=a.ZP.div.withConfig({componentId:"sc-36f37f72-5"})(_templateObject6()),Dropdown=e=>{let{icon:t,title:n,customTrigger:l,overlay:a=!1,compact:s,align:c="start",side:h="bottom",sideOffset:b=5,handleChange:y,open:x,children:j,hideCloseButton:v=!1,showArrow:_=!0,fullWidth:w=!1,ignoreCollisions:O=!0,className:P,contentStyle:C,onInteractOutside:S,onPointerDownOutside:k,disabled:A=!1}=e;return(0,r.jsx)(u,{className:"".concat(P," ").concat(A?"disabled":""),children:(0,r.jsxs)(i.fC,{onOpenChange:y,open:x,children:[(0,r.jsx)(i.xz,{asChild:!0,disabled:A,children:l||(0,r.jsxs)(d,{type:"button",disabled:A,children:[t&&(0,r.jsx)("span",{className:"icon",children:t}),n,_&&(0,r.jsx)(o.P.ArrowDown,{size:18})]})}),(0,r.jsx)(i.h_,{children:(0,r.jsx)(p,{overlay:a,children:(0,r.jsxs)(f,{align:c,className:"PopoverContent ".concat(w?"fullWidth":""),sideOffset:b,side:h,compact:s?1:0,collisionPadding:O?{top:2e3}:void 0,style:C,onInteractOutside:S,onPointerDownOutside:k,children:[!v&&(0,r.jsx)(g,{children:(0,r.jsx)(()=>(0,r.jsx)(m,{"aria-label":"Close",title:"Close",children:(0,r.jsx)(o.P.Close,{})}),{})}),j]})})})]})})}},62919:function(e,t,n){"use strict";n.d(t,{u:function(){return ScrollUpButton}});var r=n(85893),i=n(67294),o=n(59886),l=n(20436);let ScrollUpButton=()=>{let[e,t]=(0,i.useState)(!1),toggleVisible=()=>{let e=document.documentElement.scrollTop;e>100?t(!0):t(!1)};return(0,i.useEffect)(()=>(window.addEventListener("scroll",toggleVisible),()=>{window.addEventListener("scroll",toggleVisible)}),[]),e?(0,r.jsx)(l.z,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,r.jsx)(o.P.ScrollUp,{})}):null}},20436:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(82729),i=n(85444),o=n(53182);
1function _templateObject(){let e=(0,r._)(["\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: 150px;\n }\n"]);return _templateObject=function(){return e},e}let l=i.ZP.button.withConfig({componentId:"sc-ea5d9c4d-0"})(_templateObject(),e=>{let{theme:t}=e;return t.fontSizes.xxx_large},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.shadows.boxShadow},e=>{let{theme:t}=e;return t.radii.medium},o.Hb.tablet)},15329:function(e,t,n){"use strict";n.d(t,{O:function(){return Skeleton}});var r=n(85893),i=n(50549);n(97480);let Skeleton=e=>{let{...t}=e;return(0,r.jsx)(i.Z,{...t})}},29420:function(e,t,n){"use strict";n.d(t,{W:function(){return BrandFilter}});var r=n(85893),i=n(67294),o=n(37303),l=n(39524),a=n(62883),s=n(82729),c=n(85444);function _templateObject(){let e=(0,s._)(["\n max-width: 100%;\n width: 300px;\n margin-top: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,s._)(["\n font-size: ",";\n font-weight: ",";\n text-transform: uppercase;\n color: ",";\n margin-bottom: ",";\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,s._)(["\n position: relative;\n display: flex;\n align-items: center;\n background-color: ",";\n border-radius: ",";\n margin: "," 0;\n height: 48px;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,s._)(["\n transform: translateX(\n calc(100% + ",")\n );\n "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,s._)(["\n position: absolute;\n top: ",";\n left: ",";\n width: calc(50% - ",");\n height: calc(100% - ",");\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n transition: ",";\n z-index: 1;\n\n ","\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,s._)(["\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n "]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,s._)(["\n flex: 1;\n position: relative;\n z-index: 2;\n background: transparent;\n border: none;\n font-size: ",";\n font-weight: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n text-align: center;\n\n &:hover {\n color: ",";\n }\n\n ","\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,s._)(["\n margin: ",";\n font-size: ",";\n color: ",";\n line-height: 1.4;\n"]);return _templateObject7=function(){return e},e}let u=c.ZP.div.withConfig({componentId:"sc-4d6e7b66-0"})(_templateObject(),e=>{let{theme:t}=e;return t.spacing.medium}),d=c.ZP.h5.withConfig({componentId:"sc-4d6e7b66-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.weights.semiBold},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.spacing.small}),p=c.ZP.div.withConfig({componentId:"sc-4d6e7b66-2"})(_templateObject2(),e=>{let{theme:t}=e;return t.colors.background2},e=>{let{theme:t}=e;return t.radii.large},e=>{let{theme:t}=e;return t.spacing.medium}),f=c.ZP.div.withConfig({componentId:"sc-4d6e7b66-3"})(_templateObject4(),e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.radii.medium},e=>{let{theme:t}=e;return t.shadows.boxShadow},e=>{let{theme:t}=e;return t.transitions.regular},e=>{let{position:t}=e;return"right"===t&&(0,c.iv)(_templateObject3(),e=>{let{theme:t}=e;return t.spacing.x_small})}),m=c.ZP.button.withConfig({componentId:"sc-4d6e7b66-4"})(_templateObject6(),e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.weights.medium},e=>{let{theme:t,active:n}=e;return n?t.colors.text:t.colors.grey},e=>{let{theme:t}=e;return t.transitions.regular},e=>{let{theme:t}=e;return t.colors.text},e=>{let{disabled:t}=e;
1return t&&(0,c.iv)(_templateObject5())}),g=c.ZP.p.withConfig({componentId:"sc-4d6e7b66-5"})(_templateObject7(),e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.colors.grey}),BrandFilter=e=>{let{onFilter:t,showDescription:n=!0,value:s,disabled:c=!1}=e,{t:h}=(0,o.$G)(),{brand:b,isFiltersLoading:y}=(0,a.Sr)(e=>({brand:e.brand,isFiltersLoading:e.isFiltersLoading})),x=void 0!==s?s:b,[j,v]=(0,i.useState)(x);(0,i.useEffect)(()=>{v(x)},[x]);let _=c||y,handleSelect=e=>{!_&&e!==j&&(v(e),t&&t({brand:e}))};return(0,r.jsxs)(u,{children:[n&&(0,r.jsx)(d,{children:h("apartments:filters.brand.title")}),(0,r.jsxs)(p,{children:[(0,r.jsx)(f,{position:j===l.Q.andoliving?"right":"left"}),(0,r.jsx)(m,{active:j===l.Q.all,onClick:()=>handleSelect(l.Q.all),"data-testid":"all-option",position:"left",disabled:_,children:h("apartments:filters.brand.all.title")}),(0,r.jsx)(m,{active:j===l.Q.andoliving,onClick:()=>handleSelect(l.Q.andoliving),"data-testid":"andoliving-option",position:"right",disabled:_,children:h("apartments:filters.brand.andoLiving.title")})]}),n&&(0,r.jsx)(g,{children:h(j===l.Q.andoliving?"apartments:filters.brand.andoLiving.description":"apartments:filters.brand.all.description")})]})}},32475:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ei},default:function(){return eo}});var r=n(85893),i=n(67294),o=n(37303),l=n(2962),a=n(11163),s=n(76248),c=n(59886),u=n(15329),d=n(79362),p=n(52165),f=n(82729),m=n(41664),g=n.n(m),h=n(85444),b=n(45177);function _templateObject(){let e=(0,f._)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n overflow: hidden;\n background: ",";\n border-radius: ",";\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n transition: box-shadow 0.2s ease, transform 0.2s ease;\n\n &:hover {\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n transform: translateY(-2px);\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,f._)(["\n position: relative;\n width: 100%;\n aspect-ratio: 16 / 10;\n overflow: hidden;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,f._)(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,f._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n flex: 1;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,f._)(["\n font-size: ",";\n font-weight: ",";\n color: ",";\n margin: 0;\n line-height: 1.3;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,f._)(["\n display: flex;\n align-items: center;\n gap: ",";\n color: ",";\n font-size: ",";\n line-height: 1.4;\n margin-bottom: ",";\n\n svg {\n color: ",";\n flex-shrink: 0;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,f._)(["\n font-weight: ",";\n background: ",";\n "]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,f._)(["\n border-radius: 0;\n background: ",";\n text-transform: uppercase;\n font-weight: ",";\n "]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,f._)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n background: ",";\n color: ",";\n border: none;\n border-radius: ",";\n padding: ",";\n font-size: ",";\n font-weight: ",";\n cursor: ",";\n transition: opacity 0.2s ease;\n white-space: nowrap;\n width: 100%;\n margin-top: auto;\n opacity: ",";\n pointer-events: ",";\n\n &:hover {\n opacity: ",";\n }\n\n ",";\n\n ",";\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,f._)(["\n width: 100%;\n aspect-ratio: 16 / 10;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,f._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n flex: 1;\n"]);
1return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,f._)(["\n margin-bottom: ",";\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,f._)(["\n margin-bottom: ",";\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,f._)(["\n margin-top: auto;\n"]);return _templateObject13=function(){return e},e}let y=h.ZP.div.withConfig({componentId:"sc-9dfe6938-0"})(_templateObject(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.radii.middle}),x=h.ZP.div.withConfig({componentId:"sc-9dfe6938-1"})(_templateObject1()),j=h.ZP.img.withConfig({componentId:"sc-9dfe6938-2"})(_templateObject2()),v=h.ZP.div.withConfig({componentId:"sc-9dfe6938-3"})(_templateObject3(),e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.spacing.medium}),_=h.ZP.h3.withConfig({componentId:"sc-9dfe6938-4"})(_templateObject4(),e=>{let{theme:t}=e;return t.fontSizes.medium},e=>{let{theme:t}=e;return t.weights.semiBold},e=>{let{theme:t}=e;return t.colors.text}),w=h.ZP.div.withConfig({componentId:"sc-9dfe6938-5"})(_templateObject5(),e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.colors.primary}),O=(0,h.ZP)(g()).withConfig({componentId:"sc-9dfe6938-6"})(_templateObject8(),e=>{let{theme:t}=e;return t.colors.gradientBackground},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.radii.large},e=>{let{theme:t}=e;return"".concat(t.spacing.small," ").concat(t.spacing.medium)},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.weights.medium},e=>{let{disabled:t}=e;return t?"not-allowed":"pointer"},e=>{let{disabled:t}=e;return t?.5:1},e=>{let{disabled:t}=e;return t?"none":"auto"},e=>{let{disabled:t}=e;return t?.5:.85},e=>{let{theme:t}=e;return t.currentCompany===b.O3.andoliving?(0,h.iv)(_templateObject6(),t.weights.regular,t.colors.secondary):null},e=>{let{theme:t}=e;return t.currentCompany===b.O3.ferienhaus?(0,h.iv)(_templateObject7(),t.colors.secondary,t.weights.medium):null}),P=h.ZP.div.withConfig({componentId:"sc-9dfe6938-7"})(_templateObject9()),C=h.ZP.div.withConfig({componentId:"sc-9dfe6938-8"})(_templateObject10(),e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.spacing.medium}),S=h.ZP.div.withConfig({componentId:"sc-9dfe6938-9"})(_templateObject11(),e=>{let{theme:t}=e;return t.spacing.x_small}),k=h.ZP.div.withConfig({componentId:"sc-9dfe6938-10"})(_templateObject12(),e=>{let{theme:t}=e;return t.spacing.small}),A=h.ZP.div.withConfig({componentId:"sc-9dfe6938-11"})(_templateObject13()),BuildingCard=e=>{let{propertyGroup:t,isLoading:n=!1,href:i,onClick:l,disabled:a}=e,{t:s}=(0,o.$G)();if(n)return(0,r.jsxs)(y,{children:[(0,r.jsx)(P,{children:(0,r.jsx)(u.O,{height:200,borderRadius:8})}),(0,r.jsxs)(C,{children:[(0,r.jsx)(S,{children:(0,r.jsx)(u.O,{height:20,width:"80%"})}),(0,r.jsx)(k,{children:(0,r.jsx)(u.O,{height:16,width:"60%"})}),(0,r.jsx)(A,{children:(0,r.jsx)(u.O,{height:40,borderRadius:20})})]})]});let f=t.coverPhoto||d.IM,m=[t.address,t.municipality].filter(Boolean).join(", ");return(0,r.jsxs)(y,{children:[(0,r.jsx)(x,{children:(0,r.jsx)(j,{src:f,alt:t.title,onError:(0,p.M)()})}),(0,r.jsxs)(v,{children:[(0,r.jsx)(_,{children:t.title}),(0,r.jsxs)(w,{children:[(0,r.jsx)(c.P.FilledLocation,{size:14}),(0,r.jsx)("span",{children:m})]}),(0,r.jsx)(O,{href:null!=i?i:"",onClick:l,disabled:a,children:s("buildings:card.button")})]})]})};function styles_templateObject(){let e=(0,f._)(["\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n margin-bottom: ",";\n"]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){let e=(0,f._)(["\n cursor: ",";\n min-width: 100px;\n text-align: center;\n color: ",";\n border: 1px solid ",";\n padding: ",";\n font-size: ",";\n border-radius: ",";\n opacity: ",";\n transition: ",";\n\n &.selected {\n color: ",";\n background: ",";\n }\n\n &.disabled {\n pointer-events: none;\n }\n"]);
1return styles_templateObject1=function(){return e},e}function styles_templateObject2(){let e=(0,f._)(["\n display: inline-block;\n"]);return styles_templateObject2=function(){return e},e}let R=h.ZP.div.withConfig({componentId:"sc-9ff23838-0"})(styles_templateObject(),e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.spacing.x_large}),I=h.ZP.div.withConfig({componentId:"sc-9ff23838-1"})(styles_templateObject1(),e=>{let{disabled:t}=e;return t?"not-allowed":"pointer"},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return"".concat(t.spacing.small," ").concat(t.spacing.medium)},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.radii.xx_large},e=>{let{disabled:t}=e;return t?.5:1},e=>{let{theme:t}=e;return t.transitions.regular},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.currentCompany===b.O3.lovelystay?"transparent linear-gradient(180deg, #2d7471 0%, #173a39 100%) 0% 0% no-repeat padding-box":t.colors.black}),Z=h.ZP.div.withConfig({componentId:"sc-9ff23838-2"})(styles_templateObject2());var tags_Tags=e=>{let{locations:t,tagSelected:n,setTagSelected:i,isLoading:l,disabled:a}=e,{t:s}=(0,o.$G)();return l?(0,r.jsx)(R,{children:Array.from({length:5}).map((e,t)=>(0,r.jsx)(Z,{children:(0,r.jsx)(u.O,{height:32,width:80,borderRadius:16})},t))}):(0,r.jsxs)(R,{children:[(0,r.jsx)(I,{onClick:()=>!a&&i("all"),className:"".concat("all"===n?"selected":""," ").concat(a?"disabled":""),"data-testid":"tag-all",disabled:a,children:s("buildings:all")}),t.map(e=>(0,r.jsx)(I,{onClick:()=>!a&&i(e),className:"".concat(n===e?"selected":""," ").concat(a?"disabled":""),disabled:a,children:e},e))]})},z=n(86278),D=n(29420),M=n(43627),N=n(62919),B=n(51195),E=n(39524),F=n(62195),$=n(45504),T=n(17e3),L=n(34487);n(48303);var G=n(89206);n(13009);var W=n(56420);let fetchBuildingsSections=async e=>{let t={},n="/buildings?locale=".concat(e,"&populate=deep");try{let{data:e}=await W.V.get(n);return(e.data||[]).forEach(e=>{var n;let{attributes:r}=e,i=r.sectionName;t[i]=null===(n=r.sections)||void 0===n?void 0:n[0]}),{...t}}catch(e){return(0,G.S)({error:e,endpoint:n})}},useBuildingsSectionsQuery=(e,t)=>(0,T.a)({queryKey:["buildings-sections",e],queryFn:()=>fetchBuildingsSections(e),refetchOnWindowFocus:!1,keepPreviousData:!0,retry:!1,staleTime:L.no,cacheTime:L.fz,initialData:t});var H=n(62883),V=n(53182);function buildings_styles_templateObject(){let e=(0,f._)(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n background-color: ",";\n\n @media "," {\n padding: ",";\n }\n"]);return buildings_styles_templateObject=function(){return e},e}function buildings_styles_templateObject1(){let e=(0,f._)(["\n width: 100%;\n max-width: ",";\n display: flex;\n flex-direction: column;\n"]);return buildings_styles_templateObject1=function(){return e},e}function buildings_styles_templateObject2(){let e=(0,f._)(["\n margin-bottom: ",";\n width: 100%;\n max-width: 300px;\n\n &:hover {\n span,\n svg {\n color: ",";\n }\n }\n"]);return buildings_styles_templateObject2=function(){return e},e}function styles_templateObject3(){let e=(0,f._)(["\n font-size: ",";\n\n &:hover {\n color: ",";\n }\n"]);return styles_templateObject3=function(){return e},e}function styles_templateObject4(){let e=(0,f._)(["\n max-width: 430px;\n margin-bottom: ",";\n font-family: ",";\n font-size: 3.2rem;\n\n @media "," {\n font-size: ",";\n }\n"]);return styles_templateObject4=function(){return e},e}function styles_templateObject5(){let e=(0,f._)(["\n margin: "," 0;\n font-size: ",";\n font-weight: ",";\n\n span {\n font-weight: ",";\n }\n"]);return styles_templateObject5=function(){return e},e}function styles_templateObject6(){let e=(0,f._)(["\n display: grid;\n gap: ",";\n padding: ",";\n margin-bottom: ",";\n grid-template-columns: repeat(3, 1fr);\n\n .card {\n margin-bottom: ",";\n }\n\n @media "," {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media "," {\n grid-template-columns: 1fr;\n }\n"]);
1return styles_templateObject6=function(){return e},e}function styles_templateObject7(){let e=(0,f._)(["\n margin-bottom: ",";\n"]);return styles_templateObject7=function(){return e},e}function styles_templateObject8(){let e=(0,f._)(["\n margin-bottom: ",";\n width: 100%;\n max-width: 300px;\n"]);return styles_templateObject8=function(){return e},e}function styles_templateObject9(){let e=(0,f._)(["\n margin: "," 0;\n"]);return styles_templateObject9=function(){return e},e}function styles_templateObject10(){let e=(0,f._)(["\n display: grid;\n gap: ",";\n padding: ",";\n margin-bottom: ",";\n grid-template-columns: repeat(3, 1fr);\n\n @media "," {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media "," {\n grid-template-columns: 1fr;\n }\n"]);return styles_templateObject10=function(){return e},e}let q=h.ZP.div.withConfig({componentId:"sc-f790fe99-0"})(buildings_styles_templateObject(),e=>{let{theme:t}=e;return"".concat(t.spacing.xx_large," ").concat(t.spacing.x_large)},e=>{let{theme:t}=e;return t.colors.white},V.Hb.tablet,e=>{let{theme:t}=e;return"".concat(t.spacing.x_large," ").concat(t.spacing.large)}),Q=h.ZP.div.withConfig({componentId:"sc-f790fe99-1"})(buildings_styles_templateObject1(),e=>{let{theme:t}=e;return t.baseContentWidth}),Y=h.ZP.div.withConfig({componentId:"sc-f790fe99-2"})(buildings_styles_templateObject2(),e=>{let{theme:t}=e;return t.spacing.x_large},e=>{let{theme:t}=e;return t.colors.primary}),X=h.ZP.span.withConfig({componentId:"sc-f790fe99-3"})(styles_templateObject3(),e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.colors.primary}),K=h.ZP.h1.withConfig({componentId:"sc-f790fe99-4"})(styles_templateObject4(),e=>{let{theme:t}=e;return t.spacing.x_large},e=>{let{theme:t}=e;return t.fonts.secondary},V.Hb.tablet,e=>{let{theme:t}=e;return t.fontSizes.x_large}),U=h.ZP.h2.withConfig({componentId:"sc-f790fe99-5"})(styles_templateObject5(),e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.fontSizes.medium},e=>{let{theme:t}=e;return t.weights.regular},e=>{let{theme:t}=e;return t.weights.semiBold}),J=h.ZP.div.withConfig({componentId:"sc-f790fe99-6"})(styles_templateObject6(),e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.spacing.xx_large},e=>{let{theme:t}=e;return t.spacing.x_large},V.Hb.x_desktop,V.Hb.tablet),ee=h.ZP.div.withConfig({componentId:"sc-f790fe99-7"})(styles_templateObject7(),e=>{let{theme:t}=e;return t.spacing.x_large}),et=h.ZP.div.withConfig({componentId:"sc-f790fe99-8"})(styles_templateObject8(),e=>{let{theme:t}=e;return t.spacing.x_large}),en=h.ZP.div.withConfig({componentId:"sc-f790fe99-9"})(styles_templateObject9(),e=>{let{theme:t}=e;return t.spacing.medium}),er=h.ZP.div.withConfig({componentId:"sc-f790fe99-10"})(styles_templateObject10(),e=>{let{theme:t}=e;return t.spacing.large},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.spacing.xx_large},V.Hb.x_desktop,V.Hb.tablet),Buildings=e=>{var t,n;let{geozones:c,buildingSections:d}=e,{query:p}=(0,a.useRouter)(),{t:f,i18n:m}=(0,o.$G)(),g=null!==(t=m.language)&&void 0!==t?t:"en",{isAndoLiving:h,isLovelyStay:y}=(0,B.M)(),[x,j]=(0,i.useState)("all"),[v,_]=(0,i.useState)(),{brand:w,setBrand:O}=(0,H.Sr)(e=>({brand:e.brand,setBrand:e.setBrand}),s.X),P=(0,i.useMemo)(()=>({queryParams:{propertyGroupType:"building",brand:h?b.O3.andoliving:w,skipRentalTypeFilter:!0}}),[w,h]),{data:C,isSuccess:S,isLoading:k}=(0,$.C)(P),{data:A}=useBuildingsSectionsQuery(null!==(n=m.language)&&void 0!==n?n:"en",d),R=null==A?void 0:A.seo;(0,i.useEffect)(()=>{if(S&&C){let e={};C.propertyGroups.map(t=>{let n=t.geoZoneId?c[t.geoZoneId].geoZoneName:"";e[n]?e[n].push(t):e[n]=[t]}),_(e)}},[C,c,S]),(0,i.useEffect)(()=>{j("all")},[w,h]);let getBuildingHref=e=>{var t,n;let r=null===(n=e.seoData)||void 0===n?void 0:null===(t=n.find(e=>{let{language:t}=e;return g===(null==t?void 0:t.toLowerCase())}))||void 0===t?void 0:t.urlSlug,i=null!=r?r:e.propertyGroupId,o=new URLSearchParams(p).toString(),l="".concat(F.Z6.building,"/").concat(i);return o?"".concat(l,"?").concat(o):l};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.PB,{title:(null==R?void 0:R.title)?R.title:f("common:navbar.buildings"),description:null==R?void 0:R.description,openGraph:{}}),(0,r.jsx)(N.u,{}),(0,r.jsx)(q,{children:(0,r.jsxs)(Q,{children:[k?(0,r.jsx)(ee,{children:(0,r.jsx)(u.O,{height:32,width:"40%"})}):(0,r.jsx)(K,{children:f("buildings:title")}),k?(0,r.jsxs)(r.Fragment,{children:[y&&(0,r.jsx)(et,{children:(0,r.jsx)(u.O,{height:40,width:"100%",borderRadius:8})}),(0,r.jsx)(tags_Tags,{locations:[],tagSelected:x,setTagSelected:()=>void 0,isLoading:!0,disabled:!0}),(0,r.jsx)(en,{children:(0,r.jsx)(u.O,{height:20,width:120})}),(0,r.jsx)(er,{children:Array.from({length:6}).map((e,t)=>(0,r.jsx)(BuildingCard,{propertyGroup:{},isLoading:!0},t))})]}):v?(0,r.jsxs)(r.Fragment,{children:[y&&(0,r.jsx)(Y,{children:(0,r.jsx)(z.L,{align:"start",sideOffset:0,disabled:k,title:(0,r.jsxs)(X,{children:[f("buildings:filter"),w===E.Q.andoliving&&" ⢠".concat(f("apartments:filters.brand.andoLiving.title"))]}),children:(0,r.jsx)(D.W,{showDescription:!1,onFilter:e=>{O(e.brand)},disabled:k})})}),(0,r.jsx)(tags_Tags,{locations:Object.keys(v),tagSelected:x,setTagSelected:j,disabled:k}),Object.entries(v).filter(e=>{let[t]=e;return"all"===x||t===x}).map(e=>{let[t,n]=e;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(U,{children:[(0,r.jsxs)("span",{children:[f("buildings:location"),":"]})," ",t]}),(0,r.jsx)(J,{children:n.map((e,t)=>(0,r.jsx)(BuildingCard,{propertyGroup:e,isLoading:!1,href:getBuildingHref(e),disabled:k},t))})]},t)})]}):null]})})]})};Buildings.getLayout=e=>(0,r.jsx)(M.A,{children:e});var ei=!0,eo=Buildings},13072:function(e,t,n){"use strict";n.d(t,{Bk:function(){return getPropertyGroupAvailabilityAndPrices},V9:function(){return fetchPropertyAvailability},Xx:function(){return fetchNearbyDates},es:function(){return fetchNearbySearchDates},gb:function(){return fetchStripePublishableKeyByPropertyGroup},jT:function(){return getPropertyTypeCalendarByMonth},jl:function(){return getPropertyGroupCalendarByMonth},tS:function(){return fetchPropertiesAvailable}});var r=n(29422),i=n(8432),o=n(13719),l=n(89206),a=n(34487),s=n(48303),c=n(13009);let u={propertyGroups:[],totalItems:0}
1,d={checkInAvailable:!1,checkOutAvailable:!1,minimumStay:0},getDefaultPropertyAvailabilityResponse=e=>({propertyGroupId:e,totalPrice:"0",averagePricePerNight:"0",totalMaxOccupancy:0,title:"",address:"",municipality:"",neighbourhoodOverview:"",coordLatitude:"0",coordLongitude:"0",photos:[],seoData:[],propertyTypes:[],availablePropertyTypes:{},coverPhoto:""}),getDefaultAvailabilityResponse=(e,t)=>{let n=(0,o.Oe)(e,t);return Object.fromEntries(n.map(e=>[e,d]))},fetchPropertiesAvailable=async e=>{var t;let{queryParams:n,currentPage:r=0}=e;if(!n)return u;let o=(0,i.rT)(n,r),a="";a=(null==n?void 0:null===(t=n.dates)||void 0===t?void 0:t.checkIn)?"/website/availability/search".concat(o):"/website/propertyGroup/list".concat(o);try{let{data:e}=await s.Z.get(a);return e}catch(e){return(0,l.S)({error:e,endpoint:a}),u}},fetchPropertyAvailability=async e=>{let{propertyGroupId:t,queryParams:n}=e,r=n?(0,i.BF)(n):"visibleOnWebsite=true",o="/website/availability/propertyGroup/".concat(t,"?").concat(r);try{let{data:e}=await s.Z.get(o);return{...getDefaultPropertyAvailabilityResponse(t),...e}}catch(e){throw(0,l.S)({error:e,endpoint:o}),e}},fetchNearbyDates=async e=>{let{propertyGroupId:t,queryParams:n}=e,r=(0,i.BF)(n),o="/website/availability/propertyGroup/".concat(t,"/nearbyDates?").concat(r);try{var a;let{data:e}=await s.Z.get(o);return{nearbyDates:null!==(a=null==e?void 0:e.nearbyDates)&&void 0!==a?a:[],minimumStay:null==e?void 0:e.minimumStay}}catch(e){return(0,l.S)({error:e,endpoint:o}),{nearbyDates:[]}}},fetchNearbySearchDates=async e=>{let{queryParams:t}=e;if(!t)return[];let n=(0,i.rT)({...t,skipRentalTypeFilter:!1},0),r="/website/availability/nearbyDates".concat(n);try{var o;let{data:e}=await s.Z.get(r);return null!==(o=null==e?void 0:e.nearbyDates)&&void 0!==o?o:[]}catch(e){return(0,l.S)({error:e,endpoint:r}),[]}},getPropertyGroupCalendarByMonth=async(e,t,n)=>{let a=(0,o.p6)(new Date(t),"yyyy-MM"),c=(0,o.p6)((0,r.Z)(new Date(t),{months:1}),"yyyy-MM"),u=(0,i.BF)(n),d="/website/availability/propertyGroup/".concat(e,"/calendar?fromMonth=").concat(a,"&toMonth=").concat(c,"&").concat(u);try{let{data:e}=await s.Z.get(d),t=getDefaultAvailabilityResponse(a,c);return{...t,...e}}catch(e){throw(0,l.S)({error:e,endpoint:d}),e}},getPropertyTypeCalendarByMonth=async(e,t,n)=>{let a=(0,o.p6)(new Date(t),"yyyy-MM"),c=(0,o.p6)((0,r.Z)(new Date(t),{months:1}),"yyyy-MM"),u=(0,i.BF)(n),d="/website/availability/propertyType/".concat(e,"/calendar?fromMonth=").concat(a,"&toMonth=").concat(c,"&").concat(u);try{let{data:e}=await s.Z.get(d),t=getDefaultAvailabilityResponse(a,c);return{...t,...e}}catch(e){throw(0,l.S)({error:e,endpoint:d}),e}},fetchStripePublishableKeyByPropertyGroup=async e=>{let t="/website/propertyGroup/".concat(e,"/stripePublishableKey");try{if(e){let{data:e}=await s.Z.get(t);return null==e?void 0:e.stripePublishableKey}return null}catch(e){throw(0,l.S)({error:e,endpoint:t}),(0,c.U)(),e}},getPropertyGroupAvailabilityAndPrices=async e=>{let{propertyGroupId:t,bookingRooms:n,dates:r,discountCode:i}=e,o=n.map(e=>{let{propertyTypeName:t,...n}=e;return n}),c={propertyTypes:o,dates:{checkIn:r.checkIn,checkOut:r.checkOut}};i&&(c.discountCode=i);let u=(0,a.Y$)(c),d="/website/availability/propertyGroup/".concat(t,"/quote?").concat(u,"&visibleOnWebsite=true");try{let{data:e}=await s.Z.get(d);return e}catch(e){throw(0,l.S)({error:e,endpoint:d}),e}}},48303:function(e,t,n){"use strict";var r=n(87066);let i=r.default.create({baseURL:"https://dashboard.lovelystay.com/api",withCredentials:!0});t.Z=i},45504:function(e,t,n){"use strict";n.d(t,{C:function(){return usePropertiesAvailableQuery}});var r=n(17e3),i=n(13072);let usePropertiesAvailableQuery=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({queryKey:["availability",e],queryFn:()=>(0,i.tS)(e),keepPreviousData:!0,refetchOnWindowFocus:!1,enabled:t})}},52165:function(e,t,n){"use strict";n.d(t,{M:function(){return handleImageError}});var r=n(79362);let handleImageError=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.IM;return t=>{let{currentTarget:n}=t;n.src.endsWith(e)||(n.src=e)}}},97480:function(){},86419:function(e,t,n){"use strict";n.d(t,{VY:function(){return L},fC:function(){return F},h_:function(){return T},x8:function(){return G},xz:function(){return $}});var r=n(67294),i=n(36206),o=n(28771),l=n(25360),a=n(46063),s=n(27552),c=n(95420),u=n(91276),d=n(97031),p=n(42651),f=n(29115),m=n(75320),g=n(88426),h=n(77342),b=n(23541),y=n(6223),x=n(85893),j="Popover",[v,_]=(0,l.b)(j,[d.D7]),w=(0,d.D7)(),[O,P]=v(j),Popover=e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:a=!1}=e,s=w(t),c=r.useRef(null),[p,f]=r.useState(!1),[m=!1,g]=(0,h.T)({prop:i,defaultProp:o,onChange:l});return(0,x.jsx)(d.fC,{...s,children:(0,x.jsx)(O,{scope:t,contentId:(0,u.M)(),triggerRef:c,open:m,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:a,children:n})})};Popover.displayName=j;var C="PopoverAnchor";r.forwardRef((e,t)=>
1{let{__scopePopover:n,...i}=e,o=P(C,n),l=w(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return r.useEffect(()=>(a(),()=>s()),[a,s]),(0,x.jsx)(d.ee,{...l,...i,ref:t})}).displayName=C;var S="PopoverTrigger",k=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=P(S,n),a=w(n),s=(0,o.e)(t,l.triggerRef),c=(0,x.jsx)(m.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":getState(l.open),...r,ref:s,onClick:(0,i.M)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?c:(0,x.jsx)(d.ee,{asChild:!0,...a,children:c})});k.displayName=S;var A="PopoverPortal",[R,I]=v(A,{forceMount:void 0}),PopoverPortal=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=P(A,t);return(0,x.jsx)(R,{scope:t,forceMount:n,children:(0,x.jsx)(f.z,{present:n||o.open,children:(0,x.jsx)(p.h,{asChild:!0,container:i,children:r})})})};PopoverPortal.displayName=A;var Z="PopoverContent",z=r.forwardRef((e,t)=>{let n=I(Z,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=P(Z,e.__scopePopover);return(0,x.jsx)(f.z,{present:r||o.open,children:o.modal?(0,x.jsx)(D,{...i,ref:t}):(0,x.jsx)(M,{...i,ref:t})})});z.displayName=Z;var D=r.forwardRef((e,t)=>{let n=P(Z,e.__scopePopover),l=r.useRef(null),a=(0,o.e)(t,l),s=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,b.Ry)(e)},[]),(0,x.jsx)(y.Z,{as:g.g7,allowPinchZoom:!0,children:(0,x.jsx)(N,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),M=r.forwardRef((e,t)=>{let n=P(Z,e.__scopePopover),i=r.useRef(!1),o=r.useRef(!1);return(0,x.jsx)(N,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let r=t.target,l=n.triggerRef.current?.contains(r);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),N=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:m,...g}=e,h=P(Z,n),b=w(n);return(0,s.EW)(),(0,x.jsx)(c.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,x.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:(0,x.jsx)(d.VY,{"data-state":getState(h.open),role:"dialog",id:h.contentId,...b,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose",E=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=P(B,n);return(0,x.jsx)(m.WV.button,{type:"button",...r,ref:t,onClick:(0,i.M)(e.onClick,()=>o.onOpenChange(!1))})});function getState(e){return e?"open":"closed"}E.displayName=B,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=w(n);return(0,x.jsx)(d.Eh,{...i,...r,ref:t})}).displayName="PopoverArrow";var F=Popover,$=k,T=PopoverPortal,L=z,G=E},97031:function(e,t,n){"use strict";n.d(t,{ee:function(){return A},Eh:function(){return I},VY:function(){return R},fC:function(){return k},D7:function(){return h}});var r=n(67294),i=n(18573),o=n(73935),l="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function deepEqual(e,t){let n,r,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!deepEqual(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function getDPR(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function roundByDPR(e,t){let n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){let t=r.useRef(e);return l(()=>{t.current=e}),t}let arrow$1=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,i.x7)({element:n.current,padding:r}).fn(t):{}:n?(0,i.x7)({element:n,padding:r}).fn(t):{}}}),offset=(e,t)=>({...(0,i.cv)(e),options:[e,t]}),shift=(e,t)=>({...(0,i.uY)(e),options:[e,t]}),limitShift=(e,t)=>({...(0,i.dr)(e),options:[e,t]}),flip=(e,t)=>({...(0,i.RR)(e),options:[e,t]}),size=(e,t)=>({...(0,i.dp)(e),options:[e,t]}),hide=(e,t)=>({...(0,i.Cp)(e),options:[e,t]}),floating_ui_react_dom_arrow=(e,t)=>({...arrow$1(e),options:[e,t]});var a=n(75320),s=n(85893),c=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,s.jsx)(a.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});c.displayName="Arrow";var u=n(28771),d=n(79698),p=n(9981),f=n(7546),m="Popper",[g,h]=function(e,t=[]){let n=[],createScope=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return createScope.scopeName=e,[function(t,i){let o=r.createContext(i),l=n.length;function Provider(t){let{scope:n,children:i,...a}=t,c=n?.[e][l]||o,u=r.useMemo(()=>a,Object.values(a));return(0,s.jsx)(c.Provider,{value:u,children:i})}return n=[...n,i],Provider.displayName=t+"Provider",[Provider,function(n,a){let s=a?.[e][l]||o,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let createScope=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return createScope.scopeName=t.scopeName,createScope}(createScope,...t)]}(m),[b,y]=g(m),Popper=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,s.jsx)(b,{scope:t,anchor:i,onAnchorChange:o,children:n})};Popper.displayName=m;var x="PopperAnchor",j=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=y(x,n),c=r.useRef(null),d=(0,u.e)(t,c);return r.useEffect(()=>{l.onAnchorChange(i?.current||c.current)}),i?null:(0,s.jsx)(a.WV.div,{...o,ref:d})});j.displayName=x;var v="PopperContent",[_,w]=g(v),O=r.forwardRef((e,t)=>{let{__scopePopper:n,side:c="bottom",sideOffset:m=0,align:g="center",alignOffset:h=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:j=[],collisionPadding:w=0,sticky:O="partial",hideWhenDetached:P=!1,updatePositionStrategy:C="optimized",onPlaced:S,...k}=e,A=y(v,n),[R,I]=r.useState(null),Z=(0,u.e)(t,e=>I(e)),[z,D]=r.useState(null),M=(0,f.t)(z),N=M?.width??0,B=M?.height??0,E="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},F=Array.isArray(j)?j:[j],$=F.length>0,T={padding:E,boundary:F.filter(isNotNull),altBoundary:$},{refs:L,floatingStyles:G,placement:W,isPositioned:H,middlewareData:V}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:s,elements:{reference:c,floating:u}={},transform:d=!0,whileElementsMounted:p,open:f}=e,[m,g]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,b]=r.useState(a);deepEqual(h,a)||b(a);let[y,x]=r.useState(null),[j,v]=r.useState(null),_=r.useCallback(e=>
1{e!==C.current&&(C.current=e,x(e))},[]),w=r.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),O=c||y,P=u||j,C=r.useRef(null),S=r.useRef(null),k=r.useRef(m),A=null!=p,R=useLatestRef(p),I=useLatestRef(s),Z=useLatestRef(f),z=r.useCallback(()=>{if(!C.current||!S.current)return;let e={placement:t,strategy:n,middleware:h};I.current&&(e.platform=I.current),(0,i.oo)(C.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==Z.current};D.current&&!deepEqual(k.current,t)&&(k.current=t,o.flushSync(()=>{g(t)}))})},[h,t,n,I,Z]);l(()=>{!1===f&&k.current.isPositioned&&(k.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[f]);let D=r.useRef(!1);l(()=>(D.current=!0,()=>{D.current=!1}),[]),l(()=>{if(O&&(C.current=O),P&&(S.current=P),O&&P){if(R.current)return R.current(O,P,z);z()}},[O,P,z,R,A]);let M=r.useMemo(()=>({reference:C,floating:S,setReference:_,setFloating:w}),[_,w]),N=r.useMemo(()=>({reference:O,floating:P}),[O,P]),B=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=roundByDPR(N.floating,m.x),r=roundByDPR(N.floating,m.y);return d?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,d,N.floating,m.x,m.y]);return r.useMemo(()=>({...m,update:z,refs:M,elements:N,floatingStyles:B}),[m,z,M,N,B])}({strategy:"fixed",placement:c+("center"!==g?"-"+g:""),whileElementsMounted:(...e)=>{let t=(0,i.Me)(...e,{animationFrame:"always"===C});return t},elements:{reference:A.anchor},middleware:[offset({mainAxis:m+B,alignmentAxis:h}),x&&shift({mainAxis:!0,crossAxis:!1,limiter:"partial"===O?limitShift():void 0,...T}),x&&flip({...T}),size({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),z&&floating_ui_react_dom_arrow({element:z,padding:b}),transformOrigin({arrowWidth:N,arrowHeight:B}),P&&hide({strategy:"referenceHidden",...T})]}),[q,Q]=getSideAndAlignFromPlacement(W),Y=(0,d.W)(S);(0,p.b)(()=>{H&&Y?.()},[H,Y]);let X=V.arrow?.x,K=V.arrow?.y,U=V.arrow?.centerOffset!==0,[J,ee]=r.useState();return(0,p.b)(()=>{R&&ee(window.getComputedStyle(R).zIndex)},[R]),(0,s.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:H?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(_,{scope:n,placedSide:q,onArrowChange:D,arrowX:X,arrowY:K,shouldHideArrow:U,children:(0,s.jsx)(a.WV.div,{"data-side":q,"data-align":Q,...k,ref:Z,style:{...k.style,animation:H?void 0:"none"}})})})});O.displayName=v;var P="PopperArrow",C={top:"bottom",right:"left",bottom:"top",left:"right"},S=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=w(P,n),o=C[i.placedSide];return(0,s.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(c,{...r,ref:t,style:{...r.style,display:"block"}})})});function isNotNull(e){return null!==e}S.displayName=P;var transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,c]=getSideAndAlignFromPlacement(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+l/2,p=(i.arrow?.y??0)+a/2,f="",m="";return"bottom"===s?(f=o?u:`${d}px`,m=`${-a}px`):"top"===s?(f=o?u:`${d}px`,m=`${r.floating.height+a}px`):"right"===s?(f=`${-a}px`,m=o?u:`${p}px`):"left"===s&&(f=`${r.floating.width+a}px`,m=o?u:`${p}px`),{data:{x:f,y:m}}}});function getSideAndAlignFromPlacement(e){let[t,n="center"]=e.split("-");return[t,n]}var k=Popper,A=j,R=O,I=S},7546:function(e,t,n){"use strict";n.d(t,{t:function(){return useSize}});var r=n(67294),i=n(9981);function useSize(e){let[t,n]=r.useState(void 0);return(0,i.b)(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},50549:function(e,t,n){"use strict";n.d(t,{Z:function(){return Skeleton}});var r=n(67294);let i=r.createContext({});function Skeleton({count:e=1,wrapper:t,className:n,containerClassName:o,containerTestId:l,circle:a=!1,style:s,...c}){var u,d,p;let f=r.useContext(i),m={...c};for(let[e,t]of Object.entries(c))void 0===t&&delete m[e];let g={...f,...m,circle:a},h={...s,...function({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:i,circle:o,direction:l,duration:a,enableAnimation:s=!0,customHighlightBackground:c}){let u={};return"rtl"===l&&(u["--animation-direction"]="reverse"),"number"==typeof a&&(u["--animation-duration"]=`${a}s`),s||(u["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(u.width=n),("string"==typeof r||"number"==typeof r)&&(u.height=r),("string"==typeof i||"number"==typeof i)&&(u.borderRadius=i),o&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof c&&(u["--custom-highlight-background"]=c),u}(g)},b="react-loading-skeleton";n&&(b+=` ${n}`);let y=null!==(u=g.inline)&&void 0!==u&&u,x=[],j=Math.ceil(e);for(let t=0;t<j;t++){let n=h;if(j>e&&t===j-1){let t=null!==(d=n.width)&&void 0!==d?d:"100%",r=e%1,i="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:i}}let i=r.createElement("span",{className:b,style:n,key:t},"â");y?x.push(i):x.push(r.createElement(r.Fragment,{key:t},i,r.createElement("br",null)))}return r.createElement("span",{className:o,"data-testid":l,"aria-live":"polite","aria-busy":null===(p=g.enableAnimation)||void 0===p||p},t?x.map((e,n)=>r.createElement(t,{key:n},e)):x)}},76248:function(e,t,n){"use strict";function shallow$1(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{X:function(){return shallow$1}})}},function(e){e.O(0,[4980,7627,8907,4774,1228,2013,1778,5937,5445,260,3874,4617,955,9866,8941,1057,3609,4090,9401,7237,6556,9483,8434,5860,9382,6466,1773,760,2376,1933,9268,2884,3627,8432,9774,2888,179],function(){return e(e.s=13919)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.