PageSourceSearch

https://book.hotellkust.se/_next/static/chunks/18-8e40f79yz2.js

js hotellkust.se collected 2026-10-06 23:51:52 UTC 178,935 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,872364,(e,o,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="expand",r=[],i="f065",n="M136 32c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0 0 88c0 13.3-10.7 24-24 24S0 181.3 0 168L0 56C0 42.7 10.7 32 24 32l112 0zM0 344c0-13.3 10.7-24 24-24s24 10.7 24 24l0 88 88 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24L0 344zM424 32c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-88-88 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l112 0zM400 344c0-13.3 10.7-24 24-24s24 10.7 24 24l0 112c0 13.3-10.7 24-24 24l-112 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l88 0 0-88z";t.definition={prefix:"far",iconName:a,icon:[448,512,r,i,n]},t.faExpand=t.definition,t.prefix="far",t.iconName=a,t.width=448,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=n,t.aliases=r},128365,494958,765192,e=>{"use strict";var o=e.i(843476),t=e.i(500932),a=e.i(271645),r=e.i(672464),i=e.i(707690),n=e.i(56989),l=e.i(906554),s=e.i(58840),c=e.i(66768),m=e.i(825438),d=e.i(775911),b=e.i(18803),v=e.i(568159),u=e.i(331378),p=e.i(736382),h=e.i(479604),f=e.i(895449);let x=(e,o)=>{let r,i,n,l,c,m,d,b=(0,t.c)(20),x=(0,s.useAccommodationTranslations)();b[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:["accommodationsearch"]},b[0]=r):r=b[0];let g=(0,u.useIsFetching)(r)>0;b[1]!==x?(i=x("EA4H.General.NotAvailableForSelectedDates"),b[1]=x,b[2]=i):i=b[2];let y=i,{withPrices:_,singleSearch:C}=(0,a.useContext)(v.RoomListContext),j=o?.[0]?.ratesPerRoomConfig?.[0].hitKey;b[3]===Symbol.for("react.memo_cache_sentinel")?(n=["addToBasket"],b[3]=n):n=b[3],b[4]!==j?(l=(0,f.typedVariablesEquals)(e=>e.request.hitkey===j),b[4]=j,b[5]=l):l=b[5],b[6]!==l?(c={mutationKey:n,predicate:l},b[6]=l,b[7]=c):c=b[7];let R=(0,p.useIsMutating)(c)>0,A=e.availableRooms&&e.availableRooms.length>0,S=_&&A;b[8]!==e.allImageIds?(m=(0,h.imageIdsToImageInfo)(e.allImageIds),b[8]=e.allImageIds,b[9]=m):m=b[9];let N=m,w=e.roomGroupId;return b[10]!==y||b[11]!==A||b[12]!==S||b[13]!==N||b[14]!==R||b[15]!==g||b[16]!==w||b[17]!==C||b[18]!==x?(d={translations:x,hasAvailableRooms:A,images:N,hasPrices:S,disabledMessage:y,singleSearch:C,isSearching:g,isAddingToBasket:R,roomGroupId:w},b[10]=y,b[11]=A,b[12]=S,b[13]=N,b[14]=R,b[15]=g,b[16]=w,b[17]=C,b[18]=x,b[19]=d):d=b[19],d};var g=e.i(806264),y=e.i(938266),_=e.i(43454),C=e.i(811488),j=e.i(580013),R=e.i(872364),A=e.i(415550),S=e.i(119599),N=e.i(605458);let w=({src:e,alt:t,open:r,onClose:i})=>{let n=(0,s.useAccommodationTranslations)(),[l,c]=(0,a.useState)(!1),[m,d]=(0,a.useState)(!1),[b,v]=(0,a.useState)(1),u=(0,a.useRef)(null),p=(0,a.useRef)(null),h=(0,a.useRef)(1),f=(0,a.useRef)(1),x=(0,a.useRef)(0);(0,a.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");d(e.matches);let o=e=>d(e.matches);return e.addEventListener("change",o),()=>e.removeEventListener("change",o)},[]),(0,a.useEffect)(()=>{r&&!l&&(v(1),h.current=1,f.current=1,u.current?.focus())},[r,l]),(0,a.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"!==e.key||l||g()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,l]);let g=()=>{m?i():c(!0)},y=e=>Math.hypot(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY);return((0,a.useEffect)(()=>{f.current=b},[b]),r)?(0,o.jsxs)("div",{className:(0,N.cn)("bv:fixed bv:inset-0 bv:z-100010 bv:flex bv:flex-col bv:bg-black/90","bv:motion-safe:duration-150",l?"bv:motion-safe:animate-out bv:motion-safe:fade-out":"bv:motion-safe:animate-in bv:motion-safe:fade-in"),role:"dialog","aria-modal":"true","aria-label":t,onClick:g,onAnimationEnd:()=>{l&&(c(!1),i())},children:[(0,o.jsx)("div",{className:"bv:absolute bv:right-[12px] bv:top-[12px] bv:z-10",children:(0,o.jsx)("button",{ref:u,type:"button",onClick:e=>{e.stopPropagation(),g()},className:"bv:flex bv:h-[40px] bv:w-[40px] bv:items-center bv:justify-center bv:rounded-full bv:border-0 bv:bg-white/10 bv:text-white bv:transition-colors bv:hover:bg-white/20 bv:focus:outline-hidden bv:focus:ring-2 bv:focus:ring-white","aria-label":n("EA4H.General.Close"),children:(0,o.jsx)(C.FontAwesomeIcon,{icon:j.faXmark,className:"bv:text-[20px]"})})}),(0,o.jsx)("div",{className:(0,N.cn)("bv:flex bv:h-full bv:w-full bv:items-center bv:ju
1stify-center bv:p-[16px] bv:overflow-auto bv:touch-none","bv:motion-safe:duration-150",l?"bv:motion-safe:animate-out bv:motion-safe:zoom-out-95":"bv:motion-safe:animate-in bv:motion-safe:zoom-in-95"),onClick:e=>e.stopPropagation(),onTouchStart:e=>{2===e.touches.length&&(p.current=y(e.touches),h.current=f.current)},onTouchMove:e=>{2===e.touches.length&&p.current&&v(Math.min(Math.max(y(e.touches)/p.current*h.current,1),4))},onTouchEnd:e=>{if(p.current&&(p.current=null),0===e.touches.length&&1===e.changedTouches.length){let e=Date.now();e-x.current<300&&v(1),x.current=e}},children:(0,o.jsx)("img",{src:e,alt:t,className:"bv:max-h-full bv:max-w-full bv:object-contain bv:transition-transform bv:duration-100",style:{transform:`scale(${b})`},draggable:!1})})]}):null};var I=e.i(956058);let k=e=>{let r,i,n,l,s,c=(0,t.c)(13),{src:m,alt:d,className:b}=e,[v,u]=(0,a.useState)(!1);c[0]!==v?(r=!v&&(0,o.jsx)(I.default,{simple:!0,className:"bv:absolute bv:inset-0 bv:h-full bv:w-full"}),c[0]=v,c[1]=r):r=c[1];let p=v?"bv:opacity-100":"bv:opacity-0";return c[2]!==b||c[3]!==p?(i=(0,N.cn)(b,"bv:transition-opacity bv:duration-300",p),c[2]=b,c[3]=p,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(n=()=>u(!0),c[5]=n):n=c[5],c[6]!==d||c[7]!==m||c[8]!==i?(l=(0,o.jsx)("img",{src:m,alt:d,className:i,onLoad:n}),c[6]=d,c[7]=m,c[8]=i,c[9]=l):l=c[9],c[10]!==r||c[11]!==l?(s=(0,o.jsxs)(o.Fragment,{children:[r,l]}),c[10]=r,c[11]=l,c[12]=s):s=c[12],s},F=e=>{let r,i,n,l,c,m,d,b,v,u,p,h,f,x,I,F,G,T,E,B,L,H,O,M,z,D,$,W,V,U,q,K,Y=(0,t.c)(77),{open:Q,onClose:X,roomGroup:J,images:Z,mapImageUrl:ee,defaultTab:eo}=e,et=void 0===eo?"about":eo,ea=(0,s.useAccommodationTranslations)(),[er,ei]=(0,a.useState)(et),[en,el]=(0,a.useState)(!1),[es,ec]=(0,a.useState)(Q),[em,ed]=(0,a.useState)(!1),eb=(0,a.useRef)(null),ev=(0,a.useRef)(null),eu=(0,a.useRef)(null),ep=Z.length>0,eh=!!ee,ef="about"===er&&ep;Y[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e,o=()=>el(window.innerWidth<768);o();let t=()=>{clearTimeout(e),e=setTimeout(o,150)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(e)}},i=[],Y[0]=r,Y[1]=i):(r=Y[0],i=Y[1]),(0,a.useEffect)(r,i),Y[2]!==et||Y[3]!==Q?(n=()=>{Q&&(ec(!0),ei(et))},l=[Q,et],Y[2]=et,Y[3]=Q,Y[4]=n,Y[5]=l):(n=Y[4],l=Y[5]),(0,a.useEffect)(n,l),Y[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>()=>{eb.current&&clearTimeout(eb.current)},m=[],Y[6]=c,Y[7]=m):(c=Y[6],m=Y[7]),(0,a.useEffect)(c,m),Y[8]!==X?(d=e=>{e||(ec(!1),eb.current&&clearTimeout(eb.current),eb.current=setTimeout(()=>{X?.()},300))},Y[8]=X,Y[9]=d):d=Y[9];let ex=d;Y[10]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{ed(!1),eu.current?.focus()},Y[10]=b):b=Y[10];let eg=b,ey=en?"bottom":"right",e_=en?"bv:h-[90vh] bv:max-h-[90vh]":"";Y[11]!==e_?(v=(0,N.cn)("bv:bg-bv_frameworkBackground bv:p-0",e_,"bv:flex bv:flex-col bv:overflow-hidden"),Y[11]=e_,Y[12]=v):v=Y[12],Y[13]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(g.SheetTitle,{children:"Room Group Details"}),p=(0,o.jsx)(g.SheetDescription,{children:"View room group details and photos"}),Y[13]=u,Y[14]=p):(u=Y[13],p=Y[14]),Y[15]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsxs)(y.DialogClose,{className:"bv:text-bv_bodyColor bv:absolute bv:right-[12px] bv:top-[12px] bv:z-50 bv:m-0 bv:grid bv:h-[40px] bv:w-[40px] bv:place-content-center bv:rounded-[30px] bv:border-0 bv:bg-bv_frameworkBackground bv:bv_hover","aria-label":"Close sheet",children:[(0,o.jsx)(C.FontAwesomeIcon,{icon:j.faXmark,className:"bv:h-[20px] bv:w-[15px]","aria-hidden":"true"}),(0,o.jsx)("span",{className:"bv:sr-only",children:"Close"})]}),Y[15]=h):h=Y[15];let eC=ef?"bv:h-[300px] bv:opacity-100":"bv:h-0 bv:opacity-0";return Y[16]!==eC?(f=(0,N.cn)("bv:sticky bv:left-0 bv:right-0 bv:top-0 bv:z-0 bv:overflow-hidden bv:bg-bv_frameworkBackground","bv:transition-[height,opacity] bv:duration-500",eC),Y[16]=eC,Y[17]=f):f=Y[17],Y[18]!==Z?(x=Z.map(P),Y[18]=Z,Y[19]=x):x=Y[19],Y[20]!==J.name||Y[21]!==x?(I=(0,o.jsx)("div",{className:"bv:h-[300px]",children:(0,o.jsx)(A.SimpleImageCarousel,{contain:!0,height:300,images:x,altLabel:J.name})}),Y[20]=J.name,Y[21]=x,Y[22]=I):I=Y[22],Y[23]!==f||Y[24]!==I?(F=(0,o.jsx)("div",{className:f,role:"region","aria-label":"Room group images",children:I}),Y[23]=f,Y[24]=I,Y[25]=F):F=Y[25],Y[26]===Symbol.for("react.memo_cache_sentinel")?(G=e=>{ei(e),("photos"===e||"area-map"===e)&&ev.current&&setTimeout(()=>{ev.current?.scrollTo({top:0,behavior:"smooth"})},100)},Y[26]=G):G=Y[26],Y[27]===Symbol.for("react.memo_cache_sentinel")?(T=(0,N.cn)("bv:relative bv:h-full bv:cursor-pointer bv:px-4 bv:py-4","bv:flex bv:items-center bv:ju
1stify-center bv:transition-colors","bv:whitespace-nowrap bv:rounded-none bv:border-0","bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight","bv:data-[state=inactive]:opacity-bv_bodyMutedOpacity","bv:bg-transparent","bv:after:absolute bv:after:bottom-0 bv:after:left-4 bv:after:right-4 bv:after:h-[3px] bv:after:content-['']","bv:after:rounded-tl-bv_frameworkBorderRadius bv:after:rounded-tr-bv_frameworkBorderRadius bv:after:bg-bv_darkAccentColor","bv:after:opacity-0 bv:data-[state=active]:after:opacity-100","bv:after:transition-all bv:after:duration-300","bv:hover:after:scale-x-110 bv:hover:after:opacity-100"),Y[27]=T):T=Y[27],Y[28]!==ea?(E=ea("EA4H.General.About"),Y[28]=ea,Y[29]=E):E=Y[29],Y[30]!==E?(B=(0,o.jsx)(_.TabsTrigger,{value:"about",unstyled:!0,className:T,children:E}),Y[30]=E,Y[31]=B):B=Y[31],Y[32]!==ep||Y[33]!==ea?(L=ep&&(0,o.jsx)(_.TabsTrigger,{value:"photos",unstyled:!0,className:(0,N.cn)("bv:relative bv:h-full bv:cursor-pointer bv:px-4 bv:py-4","bv:flex bv:items-center bv:justify-center bv:transition-colors","bv:whitespace-nowrap bv:rounded-none bv:border-0","bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight","bv:data-[state=inactive]:opacity-bv_bodyMutedOpacity","bv:bg-transparent","bv:after:absolute bv:after:bottom-0 bv:after:left-4 bv:after:right-4 bv:after:h-[3px] bv:after:content-['']","bv:after:rounded-tl-bv_frameworkBorderRadius bv:after:rounded-tr-bv_frameworkBorderRadius bv:after:bg-bv_darkAccentColor","bv:after:opacity-0 bv:data-[state=active]:after:opacity-100","bv:after:transition-all bv:after:duration-300","bv:hover:after:scale-x-110 bv:hover:after:opacity-100"),children:ea("EA4H.General.Photos")}),Y[32]=ep,Y[33]=ea,Y[34]=L):L=Y[34],Y[35]!==eh||Y[36]!==ea?(H=eh&&(0,o.jsx)(_.TabsTrigger,{value:"area-map",unstyled:!0,className:(0,N.cn)("bv:relative bv:h-full bv:cursor-pointer bv:px-4 bv:py-4","bv:flex bv:items-center bv:justify-center bv:transition-colors","bv:whitespace-nowrap bv:rounded-none bv:border-0","bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight","bv:data-[state=inactive]:opacity-bv_bodyMutedOpacity","bv:bg-transparent","bv:after:absolute bv:after:bottom-0 bv:after:left-4 bv:after:right-4 bv:after:h-[3px] bv:after:content-['']","bv:after:rounded-tl-bv_frameworkBorderRadius bv:after:rounded-tr-bv_frameworkBorderRadius bv:after:bg-bv_darkAccentColor","bv:after:opacity-0 bv:data-[state=active]:after:opacity-100","bv:after:transition-all bv:after:duration-300","bv:hover:after:scale-x-110 bv:hover:after:opacity-100"),children:ea("EA4H.Online.AreaMap")}),Y[35]=eh,Y[36]=ea,Y[37]=H):H=Y[37],Y[38]!==B||Y[39]!==L||Y[40]!==H?(O=(0,o.jsx)("div",{className:"bv:sticky bv:top-0 bv:z-10 bv:h-[64px] bv:overflow-x-auto bv:overflow-y-hidden bv:border-b-bv_dividerBorderWidth bv:border-l-0 bv:border-r-0 bv:border-t-0 bv:border-solid bv:border-bv_dividerBorderColor bv:bg-bv_frameworkBackground bv:[-ms-overflow-style:none] bv:scrollbar-none bv:[&::-webkit-scrollbar]:hidden",children:(0,o.jsxs)(_.TabsList,{className:"bv:h-full bv:w-full bv:flex-nowrap bv:justify-start bv:rounded-none bv:bg-transparent bv:p-0","aria-label":"Room group navigation",children:[B,L,H]})}),Y[38]=B,Y[39]=L,Y[40]=H,Y[41]=O):O=Y[41],Y[42]!==J?(M=(0,o.jsx)(_.TabsContent,{value:"about",className:"bv:m-0 bv:animate-fade-in bv:bg-bv_frameworkBackground bv:p-[30px]",children:(0,o.jsx)(S.RoomGroupAboutTab,{roomGroup:J})}),Y[42]=J,Y[43]=M):M=Y[43],Y[44]!==ep||Y[45]!==Z||Y[46]!==J.name?(z=ep&&(0,o.jsx)(_.TabsContent,{value:"photos",className:"bv:m-0 bv:animate-fade-in bv:bg-bv_frameworkBackground bv:p-[8px] bv:bv_medium:p-[30px]",children:(0,o.jsx)("div",{className:"bv:flex bv:flex-col bv:gap-[8px] bv:bv_medium:gap-4",children:Z.map((e,t)=>(0,o.jsx)("div",{className:"bv:relative bv:aspect-4/3 bv:overflow-hidden bv:rounded-bv_frameworkBorderRadius",children:(0,o.jsx)(k,{src:e,alt:`${J.name} - Photo ${t+1}`,className:"bv:h-full bv:w-full bv:object-cover"})},t))})}),Y[44]=ep,Y[45]=Z,Y[46]=J.name,Y[47]=z):z=Y[47],Y[48]!==eh||Y[49]!==ee||Y[50]!==J.name||Y[51]!==ea?(D=eh&&(0,o.jsx)(_.TabsContent,{value:"area-map",className:"bv:m-0 bv:animate-fade-in bv:bg
1-bv_frameworkBackground bv:p-[8px] bv:bv_medium:p-[30px]",children:(0,o.jsxs)("button",{ref:eu,type:"button",onClick:()=>ed(!0),className:"bv:group bv:relative bv:block bv:w-full bv:cursor-pointer bv:overflow-hidden bv:rounded-bv_frameworkBorderRadius bv:border-0 bv:bg-transparent bv:p-0 bv:text-left","aria-label":ea("EA4H.Online.AreaMap"),"aria-haspopup":"dialog",children:[(0,o.jsx)("div",{className:"bv:relative bv:min-h-[200px]",children:(0,o.jsx)(k,{src:ee,alt:`${J.name} - Area Map`,className:"bv:h-auto bv:w-full bv:object-contain"})}),(0,o.jsxs)("div",{className:"bv:absolute bv:bottom-[8px] bv:right-[8px] bv:flex bv:h-[32px] bv:items-center bv:gap-[6px] bv:rounded-[3px] bv:bg-black/70 bv:px-[10px] bv:text-white bv:transition-all bv:duration-300 bv:group-hover:bg-black/90",children:[(0,o.jsx)(C.FontAwesomeIcon,{icon:R.faExpand,className:"bv:text-[14px]","aria-hidden":"true"}),(0,o.jsx)("span",{className:"bv:text-bv_smallFontSize bv:font-medium",children:ea("EA4H.General.ViewMap")})]})]})}),Y[48]=eh,Y[49]=ee,Y[50]=J.name,Y[51]=ea,Y[52]=D):D=Y[52],Y[53]!==M||Y[54]!==z||Y[55]!==D?($=(0,o.jsxs)("div",{className:"bv:bg-bv_frameworkBackground",children:[M,z,D]}),Y[53]=M,Y[54]=z,Y[55]=D,Y[56]=$):$=Y[56],Y[57]!==er||Y[58]!==O||Y[59]!==$?(W=(0,o.jsxs)(_.Tabs,{value:er,onValueChange:G,className:"bv:relative bv:z-10 bv:bg-bv_frameworkBackground",children:[O,$]}),Y[57]=er,Y[58]=O,Y[59]=$,Y[60]=W):W=Y[60],Y[61]!==F||Y[62]!==W?(V=(0,o.jsxs)("div",{ref:ev,className:"bv:custom-scrollbar bv:flex-1 bv:overflow-y-auto bv:bg-bv_frameworkBackground",children:[F,W]}),Y[61]=F,Y[62]=W,Y[63]=V):V=Y[63],Y[64]!==ee||Y[65]!==J.name||Y[66]!==em?(U=ee&&(0,o.jsx)(w,{src:ee,alt:`${J.name} - Area Map`,open:em,onClose:eg}),Y[64]=ee,Y[65]=J.name,Y[66]=em,Y[67]=U):U=Y[67],Y[68]!==ey||Y[69]!==v||Y[70]!==V||Y[71]!==U?(q=(0,o.jsxs)(g.SheetContent,{side:ey,useDefaultOverlay:!0,className:v,children:[u,p,h,V,U]}),Y[68]=ey,Y[69]=v,Y[70]=V,Y[71]=U,Y[72]=q):q=Y[72],Y[73]!==ex||Y[74]!==es||Y[75]!==q?(K=(0,o.jsx)(g.Sheet,{open:es,onOpenChange:ex,children:q}),Y[73]=ex,Y[74]=es,Y[75]=q,Y[76]=K):K=Y[76],K};function P(e){return{url:e}}var G=e.i(618566),T=e.i(298533),E=e.i(619837),B=e.i(268548);let L=e=>{let o,a=(0,t.c)(5),{forSpecificPackage:r}=e,i=(0,c.useTheme)(),n=(0,G.useSearchParams)(),{push:l}=(0,E.useNavigationManager)();return a[0]!==r||a[1]!==l||a[2]!==n||a[3]!==i.css.viewType?(o=(e,o)=>{let t=(0,B.GetSearchParamSync)({searchParams:n,paramKey:"roomConfig"}),a=(t?.split("|").length??0)<=1;i.css.viewType===T.ViewType.SearchBarTop&&a&&!r?l("room group info",{detailsPageParam:{paramName:"roomtypegroupid",paramValue:e}}):o()},a[0]=r,a[1]=l,a[2]=n,a[3]=i.css.viewType,a[4]=o):o=a[4],o};var H=e.i(139054),O=e.i(89819),M=e.i(430092),z=e.i(569219),D=e.i(455750);let $=e=>{let i,n,s,c,m,d,b,v,u,p,f,g,y,_,C,j,R,A=(0,t.c)(58);if(A[0]!==e){let{roomGroup:o,forPackageId:t,forPackageName:a,...r}=e;s=o,i=t,n=r,A[0]=e,A[1]=i,A[2]=n,A[3]=s}else i=A[1],n=A[2],s=A[3];let{channelId:S}=(0,l.useSinglePropertyContext)(),N=(()=>{let e,r,i,n=(0,t.c)(5),[l,s]=(0,a.useState)(!1),[c,m]=(0,a.useState)(null);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let{roomGroup:o,images:t,mapImageUrl:a,defaultTab:r}=e;m({roomGroup:o,images:t,mapImageUrl:a,defaultTab:void 0===r?"about":r}),s(!0)},n[0]=e):e=n[0];let d=e;n[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{s(!1)},n[1]=r):r=n[1];let b=r;return n[2]!==l||n[3]!==c?(i={open:d,close:b,Sheet:()=>l&&c?(0,o.jsx)(F,{open:l,onClose:b,roomGroup:c.roomGroup,images:c.images,mapImageUrl:c.mapImageUrl,defaultTab:c.defaultTab}):null},n[2]=l,n[3]=c,n[4]=i):i=n[4],i})(),w=!!i;A[4]!==w?(c={forSpecificPackage:w},A[4]=w,A[5]=c):c=A[5];let I=L(c),k=s.availableRooms?.map(W)??[],P=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:k,channelId:S}))?.rates??[],G=P[0]?.cheapestRateAlternative;A[6]!==G?(m=[G],A[6]=G,A[7]=m):m=A[7];let{images:T}=x(s,m);A[8]!==s.mapImageId?(d=s?.mapImageId?(0,h.imageIdsToImageInfo)([s.mapImageId])[0].url:void 0,A[8]=s.mapImageId,A[9]=d):d=A[9];let E=d,B=`room-group-title-${s.roomGroupId}`;A[10]!==T?(b=T?.map(V).filter(U)||[],A[10]=T,A[11]=b):b=A[11];let $=b;A[12]!==$||A[13]!==E||A[14]!==I||A[15]!==s||A[16]!==N?(v=()=>{I(s.roomGroupId,()=>N.open({roomGroup:s,images:$,mapImageUrl:E,defaultTab:"about"}))},A[12]=$,A[13]=E,A[14]=I,A[15]=s,A[16]=N,A[17]=v):v=A[17];let q=v;A[18]!==$||A[19]!==E||A[20]!==I||A[21]!==s||A[22]!==N?(u=()=>{I(s.roomGroupId,()=>N.open({roomGroup:s,images:$,mapImageUrl:E,defaultTab:"photos"}))},A[18]=$,A[19]=E,A[20]=I,A[21]=s,A[22]=N,A[23]=u):u=A[23];let K=u;A[24]!==$||A[25]!==E||A[26]!==I||A[27]!==s||A[28]!==N?(p=()=>{I(s.roomGroupId,()=>N.open({roomGroup:s,images:$,mapImageUrl:E,defaultTab:"area-map"}))},A[24]=$,A[25]=E,A[26]=I,A[27]=s,A[28]=N,A[29]=p):p=A[29];let Y=p,Q=s?.name??"",X=s?.description??"";return A[30]!==Y||A[31]!==E?(f=E&&(0,o.jsx)(z.AreaMapButton,{onAreaMapClick:Y}),A[30]=Y,A[31]=E,A[32]=f):f=A[32],A[33]!==Q||A[34]!==X||A[35]!==f||A[36]!==B?(g=(0,o.jsx)(M.NewClassicBaseInfo,{title:Q,description:X,titleId:B,children:f}),A[33]=Q,A[34]=X,A[35]=f,A[36]=B,A[37]=g):g=A[37],A[38]!==q||A[39]!==K||A[40]!==T||A[41]!==s.name||A[42]!==g||A[43]!==B?(y=(0,o.jsx)(H.ClassicBase,{onClick:q,onImageButtonClick:K,images:T,altLabel:s.name,titleId:B,children:g}),A[38]=q,A[39]=K,A[40]=T,A[41]=s.name,A[42]=g,A[43]=B,A[44]=y):y=A[44],A[45]!==P||A[46]!==s.availableRooms||A[47]!==s.unavailableRooms?(_=(s.availableRooms&&s.availableRooms.length>0||s.unavailableRooms&&s.unavailableRooms.length>0)&&(0,o.jsx)("div",{className:"bv:mt-[24px]",children:(0,o.jsx)(O.RoomGroupRoomList,{rooms:s.availableRooms??[],unavailableRooms:s.unavailableRooms,rates:P??[]})}),A[45]=P,A[46]=s.availableRooms,A[47]=s.unavailableRooms,A[48]=_):_=A[48],A[49]!==n||A[50]!==y||A[51]!==_?(C=(0,o.jsxs)("article",{"data-testid":"room_group_card_new_classic",className:"bv:bv_medium:w-full",...n,children:[y,_]}),A[49]=n,A[50]=y,A[51]=_,A[52]=C):C=A[52],A[53]!==N.Sheet?(j=(0,o.jsx)(N.Sheet,{}),A[53]=N.Sheet,A[54]=j):j=A[54],A[55]!==C||A[56]!==j?(R=(0,o.jsxs)(o.Fragment,{children:[C,j]}),A[55]=C,A[56]=j,A[57]=R):R=A[57],R};function W(e){return e.id}function V(e){return e.url}function U(e){return void 0!==e}var q=e.i(357907),K=e.i(786292),Y=e.i(185225),Q=e.i(669168),X=e.i(910768),J=e.i(694149),Z=e.i(399611),ee=e.i(533940),eo=e.i(602434),et=e.i(178126);function ea(e){return e.rank}function er(e){return e.rank}function ei(e){return e.rank}function en(e){return e.rank}function el(e){return e.rank}function es(e){return(e.availableRooms?.length??0)>0}function ec(e){return(e.availableRooms?.length??0)===0}function em(e){return e.rank}function ed(e){return e.rank}function eb(e){return!e.roomTypeGroupId}var ev=e.i(599258);let eu=e=>{let o,a=(0,t.c)(6),{forSpecificPackage:r}=e,i=(0,c.useTheme)(),n=(0,G.useSearchParams)(),l=(0,ev.default)(),{push:s}=(0,E.useNavigationManager)();return a[0]!==r||a[1]!==s||a[2]!==l||a[3]!==n||a[4]!==i.css.viewT
1ype?(o=e=>{let o=(0,B.GetSearchParamSync)({searchParams:n,paramKey:"roomConfig"}),t=(o?.split("|").length??0)>1;i.css.viewType===T.ViewType.SearchBarTop&&(t||r)?l.open(e):s("accommodation details",{detailsPageParam:{paramName:"roomId",paramValue:e.room.id}})},a[0]=r,a[1]=s,a[2]=l,a[3]=n,a[4]=i.css.viewType,a[5]=o):o=a[5],o};var ep=e.i(480129);function eh(e){return e.url}function ef(e){return void 0!==e}function ex(e){return e.url}function eg(e){return void 0!==e}var ey=e.i(344306),e_=e.i(262035),eC=e.i(621203);let ej=e=>{let r,i,n,l,s,c,m,d,b,v,u,p,h,f,x,_,R=(0,t.c)(31),{open:S,onClose:N,room:w}=e,[I,k]=(0,a.useState)(!1),[F,P]=(0,a.useState)(S),G=(0,a.useRef)(null);R[0]!==w?.images?(r=w?.images||[],R[0]=w?.images,R[1]=r):r=R[1];let T=r,E=T.length>0;R[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{let e,o=()=>k(window.innerWidth<768);o();let t=()=>{clearTimeout(e),e=setTimeout(o,150)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(e)}},n=[],R[2]=i,R[3]=n):(i=R[2],n=R[3]),(0,a.useEffect)(i,n),R[4]!==S?(l=()=>{S&&P(!0)},s=[S],R[4]=S,R[5]=l,R[6]=s):(l=R[5],s=R[6]),(0,a.useEffect)(l,s),R[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>()=>{G.current&&clearTimeout(G.current)},m=[],R[7]=c,R[8]=m):(c=R[7],m=R[8]),(0,a.useEffect)(c,m),R[9]!==N?(d=e=>{e||(P(!1),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{N?.()},300))},R[9]=N,R[10]=d):d=R[10];let B=d,L=I?"bottom":"right",H=`bv:flex bv:flex-col bv:overflow-hidden bv:bg-bv_frameworkBackground bv:p-0 ${I?"bv:h-[90vh] bv:max-h-[90vh]":"bv:w-[500px] bv:max-w-[90vw]"}`;return R[11]===Symbol.for("react.memo_cache_sentinel")?(b=(0,o.jsx)(g.SheetTitle,{children:"Room Details"}),v=(0,o.jsx)(g.SheetDescription,{children:"View room details and amenities"}),R[11]=b,R[12]=v):(b=R[11],v=R[12]),R[13]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsxs)(y.DialogClose,{className:"bv:text-bv_bodyColor bv:absolute bv:right-[12px] bv:top-[12px] bv:z-50 bv:m-0 bv:grid bv:h-[40px] bv:w-[40px] bv:place-content-center bv:rounded-[30px] bv:border-0 bv:bg-bv_frameworkBackground bv:bv_hover","aria-label":"Close sheet",children:[(0,o.jsx)(C.FontAwesomeIcon,{icon:j.faXmark,className:"bv:h-[20px] bv:w-[15px]"}),(0,o.jsx)("span",{className:"bv:sr-only",children:"Close"})]}),R[13]=u):u=R[13],R[14]!==E||R[15]!==w||R[16]!==T?(p=E&&(0,o.jsx)("div",{className:"bv:sticky bv:left-0 bv:right-0 bv:top-0 bv:z-0 bv:h-[300px] bv:overflow-hidden bv:bg-bv_frameworkBackground bv:opacity-100",role:"region","aria-label":"Room images",children:(0,o.jsx)("div",{className:"bv:h-[300px]",children:(0,o.jsx)(A.SimpleImageCarousel,{contain:!0,height:300,images:T,altLabel:w.name})})}),R[14]=E,R[15]=w,R[16]=T,R[17]=p):p=R[17],R[18]!==w?(h=(0,o.jsx)("div",{className:"bv:relative bv:z-10 bv:bg-bv_frameworkBackground",children:(0,o.jsx)("div",{className:"bv:m-0 bv:animate-fade-in bv:bg-bv_frameworkBackground bv:p-[30px]",children:(0,o.jsx)(eC.RoomAboutContent,{room:w})})}),R[18]=w,R[19]=h):h=R[19],R[20]!==p||R[21]!==h?(f=(0,o.jsxs)("div",{className:"bv:custom-scrollbar bv:flex-1 bv:overflow-y-auto bv:bg-bv_frameworkBackground",children:[p,h]}),R[20]=p,R[21]=h,R[22]=f):f=R[22],R[23]!==H||R[24]!==f||R[25]!==L?(x=(0,o.jsxs)(g.SheetContent,{side:L,useDefaultOverlay:!0,className:H,children:[b,v,u,f]}),R[23]=H,R[24]=f,R[25]=L,R[26]=x):x=R[26],R[27]!==B||R[28]!==F||R[29]!==x?(_=(0,o.jsx)(g.Sheet,{open:F,onOpenChange:B,children:x}),R[27]=B,R[28]=F,R[29]=x,R[30]=_):_=R[30],_};var eR=e.i(859951),eA=e.i(253946);let eS=e=>{let r,i,n,l,c,m,d,b,v,u,p,h,f,x,g,y,_,C,j,R,A,S,w,I,k,F,P,G,T,E,B,L,H,O,M=(0,t.c)(108),{roomNumber:z,roomName:D,price:$,guestConfig:W,rateName:V,showFreeCancellation:U,freeCancellationDate:q,cancellationPolicy:K,onChangeRoom:Y,imageUrl:Q,room:X,priceInfo:J,numberOfNights:Z,isNew:ee}=e,eo=(0,s.useAccommodationTranslations)(),et=(0,ey.useCurrencyFormatter)(),ea=(0,e_.default)(),er=(()=>{let e,r,i,n=(0,t.c)(5),[l,s]=(0,a.useState)(!1),[c,m]=(0,a.useState)(null);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let{room:o}=e;m({room:o}),s(!0)},n[0]=e):e=n[0];let d=e;n[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{s(!1)},n[1]=r):r=n[1];let b=r;return n[2]!==l||n[3]!==c?(i={open:d,close:b,Sheet:()=>l&&c?(0,o.jsx)(ej,{open:l,onClose:b,room:c.room}):null},n[2]=l,n[3]=c,n[4]=i):i=n[4],i})();M[0]!==K||M[1]!==J||M[2]!==ea?(r=e=>{e.preventDefault();let o=J?.map(eN);ea.open({cancellationPolicies:K?[K]:void 0,priceBreakdown:o})},M[0]=K,M[1]=J,M[2]=ea,M[3]=r):r=M[3];let ei=r;M[4]!==X||M[5]!==er?(i=e=>{e.preventDefault(),X&&er.open({room:X})},M[4]=X,M[5]=er,M[6]=i):i=M[6];let en=i,el=[1,void 0].includes(Z)?(0,eA.GetTranslation)(eo("EA4H.General.ForNightLOWER"),1):(0,eA.GetTranslation)(eo("EA4H.General.ForNightsLOWER"),Z),es=`${eo("EA4H.General.Room")} ${z} \xb7 ${W}`,ec=`${et.formatCurrency($)} ${et.currencyCode} ${el}`,em=`${ec}, ${W}`;M[7]!==U||M[8]!==eo?(n=eo(U?"EA4H.General.FreeCancellation":"EA4H.General.TermsAndConditions"),M[7]=U,M[8]=eo,M[9]=n):n=M[9];let ed=n;M[10]!==ed||M[11]!==q||M[12]!==U||M[13]!==eo?(l=U&&q?`${ed} ${eo("EA4H.General.Before_LOWER")} ${q}
1`:ed,M[10]=ed,M[11]=q,M[12]=U,M[13]=eo,M[14]=l):l=M[14];let eb=l;M[15]!==en||M[16]!==X||M[17]!==D?(c=(e,t,a)=>X?(0,o.jsx)("button",{type:"button",onClick:en,className:(0,N.cn)("bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:font-bv_bodyFontFamily bv:font-bv_bodyBoldFontWeight bv:text-bv_cardColor bv-underline-fade",e,t,a?"bv:block bv:w-full bv:truncate":"bv:w-fit"),children:D}):(0,o.jsx)("div",{className:(0,N.cn)("bv:font-bv_bodyFontFamily bv:font-bv_bodyBoldFontWeight bv:text-bv_cardColor",e,t,a&&"bv:truncate"),children:D}),M[15]=en,M[16]=X,M[17]=D,M[18]=c):c=M[18];let ev=c;M[19]!==Q||M[20]!==D?(m=Q&&(0,o.jsx)("div",{className:"bv:absolute bv:right-0 bv:top-0 bv:h-[48px] bv:w-[48px] bv:overflow-hidden bv:rounded-bv_cardInnerBorderRadius",children:(0,o.jsx)("img",{src:Q,alt:D,className:"bv:h-full bv:w-full bv:object-cover"})}),M[19]=Q,M[20]=D,M[21]=m):m=M[21];let eu=Q&&"bv:pr-[56px]";M[22]!==eu?(d=(0,N.cn)("bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight bv:opacity-bv_bodyMutedOpacity",eu),M[22]=eu,M[23]=d):d=M[23],M[24]!==es||M[25]!==d?(b=(0,o.jsx)("div",{className:d,children:es}),M[24]=es,M[25]=d,M[26]=b):b=M[26];let ep=Q&&"bv:pr-[56px]";return M[27]!==ep?(v=(0,N.cn)(ep),M[27]=ep,M[28]=v):v=M[28],M[29]!==ev?(u=ev("bv:text-bv_bodyFontSize","bv:leading-bv_bodyLineHeight",!0),M[29]=ev,M[30]=u):u=M[30],M[31]!==v||M[32]!==u?(p=(0,o.jsx)("div",{className:v,children:u}),M[31]=v,M[32]=u,M[33]=p):p=M[33],M[34]!==ei||M[35]!==V?(h=V&&(0,o.jsx)("button",{type:"button",onClick:ei,className:"bv:w-fit bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:text-bv_smallFontSize bv:leading-bv_smallLineHeight bv:text-bv_cardLinkColor bv:underline",children:V}),M[34]=ei,M[35]=V,M[36]=h):h=M[36],M[37]!==ed||M[38]!==K||M[39]!==ei?(f=K&&(0,o.jsx)("button",{type:"button",onClick:ei,className:"bv:w-fit bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:text-bv_smallFontSize bv:leading-bv_smallLineHeight bv:text-bv_cardLinkColor bv:underline",children:ed}),M[37]=ed,M[38]=K,M[39]=ei,M[40]=f):f=M[40],M[41]!==em?(x=(0,o.jsx)("span",{className:"bv:text-bv_smallFontSize bv:text-bv_cardColor",children:em}),M[41]=em,M[42]=x):x=M[42],M[43]!==h||M[44]!==f||M[45]!==x?(g=(0,o.jsxs)("div",{className:"bv:flex bv:min-w-0 bv:flex-1 bv:flex-col bv:pt-[4px]",children:[h,f,x]}),M[43]=h,M[44]=f,M[45]=x,M[46]=g):g=M[46],M[47]!==Y||M[48]!==eo?(y=Y&&(0,o.jsx)(eR.Button,{variant:"secondaryOutline",size:"sm",onClick:Y,className:"bv:min-h-[32px]! bv:shrink-0 bv:px-[14px] bv:py-[6px]! bv:text-[13px]! bv:leading-[16px]! bv:normal-case!",children:eo("EA4H.General.Change")}),M[47]=Y,M[48]=eo,M[49]=y):y=M[49],M[50]!==g||M[51]!==y?(_=(0,o.jsxs)("div",{className:"bv:flex bv:w-full bv:items-end bv:gap-[10px]",children:[g,y]}),M[50]=g,M[51]=y,M[52]=_):_=M[52],M[53]!==p||M[54]!==_||M[55]!==m||M[56]!==b?(C=(0,o.jsxs)("div",{className:"bv:relative bv:flex bv:flex-col bv:bv_medium:hidden",children:[m,b,p,_]}),M[53]=p,M[54]=_,M[55]=m,M[56]=b,M[57]=C):C=M[57],M[58]!==es?(j=(0,o.jsx)("div",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight bv:opacity-bv_bodyMutedOpacity",children:es}),M[58]=es,M[59]=j):j=M[59],M[60]!==ev?(R=ev("bv:text-bv_bodyLargeFontSize","bv:leading-bv_bodyLargeLineHeight",!0),M[60]=ev,M[61]=R):R=M[61],M[62]!==ei||M[63]!==V?(A=V&&(0,o.jsx)("button",{type:"button",onClick:ei,className:"bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:text-bv_bodyFontSize bv:leading-bv_bodyLineHeight bv:text-bv_cardLinkColor bv:underline",children:V}),M[62]=ei,M[63]=V,M[64]=A):A=M[64],M[65]!==K||M[66]!==V?(S=V&&K&&(0,o.jsx)("span",{className:"bv:text-bv_bodyFontSize bv:text-bv_cardColor bv:opacity-bv_bodyMutedOpacity",children:"·"}),M[65]=K,M[66]=V,M[67]=S):S=M[67],M[68]!==K||M[69]!==eb||M[70]!==ei?(w=K&&(0,o.jsx)("button",{type:"button",onClick:ei,className:"bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:text-bv_bodyFontSize bv:leading-bv_bodyLineHeight bv:text-bv_cardLinkColor bv:underline",children:eb}),M[68]=K,M[69]=eb,M[70]=ei,M[71]=w):w=M[71],M[72]!==A||M[73]!==S||M[74]!==w?(I=(0,o.jsxs)("div",{className:"bv:flex bv:flex-wrap bv:items-center bv:gap-[4px]",children:[A,S,w]}),M[72]=A,M[73]=S,M[74]=w,M[75]=I):I=M[75],M[76]!==ec?(k=(0,o.jsx)("span",{className:"bv:text-bv_bodyFontSize bv:text-bv_cardColor",children:ec}),M[76]=ec,M[77]=k):k=M[77],M[78]!==I||M[79]!==k?(F=(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:pt-[4px]",children:[I,k]}),M[78]=I,M[79]=k,M[80]=F):F=M[80],M[81]!==j||M[82]!==R||M[83]!==F?(P=(0,o.jsxs)("div",{className:"bv:flex bv:min-w-0 bv:flex-1 bv:flex-col",children:[j,R,F]}
1),M[81]=j,M[82]=R,M[83]=F,M[84]=P):P=M[84],M[85]!==Q||M[86]!==D?(G=Q&&(0,o.jsx)("div",{className:"bv:min-h-[96px] bv:w-[168px] bv:shrink-0 bv:self-stretch bv:overflow-hidden bv:rounded-bv_cardInnerBorderRadius",children:(0,o.jsx)("img",{src:Q,alt:D,className:"bv:h-full bv:w-full bv:object-cover"})}),M[85]=Q,M[86]=D,M[87]=G):G=M[87],M[88]!==Q||M[89]!==Y||M[90]!==eo?(T=Y&&(Q?(0,o.jsx)("div",{className:"bv:absolute bv:bottom-[12px] bv:right-[12px]",children:(0,o.jsx)(eR.Button,{variant:"invertedBody",size:"sm",onClick:Y,className:"bv:min-h-[32px]! bv:w-auto! bv:px-[14px] bv:py-[6px]! bv:text-[13px]! bv:leading-[16px]! bv:normal-case!",children:eo("EA4H.General.Change")})}):(0,o.jsx)(eR.Button,{variant:"secondaryOutline",size:"sm",onClick:Y,className:"bv:min-h-[32px]! bv:shrink-0 bv:px-[14px] bv:py-[6px]! bv:text-[13px]! bv:leading-[16px]! bv:normal-case!",children:eo("EA4H.General.Change")})),M[88]=Q,M[89]=Y,M[90]=eo,M[91]=T):T=M[91],M[92]!==P||M[93]!==G||M[94]!==T?(E=(0,o.jsxs)("div",{className:"bv:relative bv:hidden bv:flex-row bv:items-center bv:gap-[16px] bv:bv_medium:flex",children:[P,G,T]}),M[92]=P,M[93]=G,M[94]=T,M[95]=E):E=M[95],M[96]!==ee?(B=ee&&(0,o.jsx)("div",{"aria-hidden":!0,className:"bv:animate-outline-pulse bv:pointer-events-none bv:absolute bv:inset-0 bv:rounded-bv_cardBorderRadius bv:border-2 bv:border-solid bv:border-bv_darkSelectedColor"}),M[96]=ee,M[97]=B):B=M[97],M[98]!==ea.Sheet?(L=(0,o.jsx)(ea.Sheet,{}),M[98]=ea.Sheet,M[99]=L):L=M[99],M[100]!==er.Sheet?(H=(0,o.jsx)(er.Sheet,{}),M[100]=er.Sheet,M[101]=H):H=M[101],M[102]!==C||M[103]!==E||M[104]!==B||M[105]!==L||M[106]!==H?(O=(0,o.jsxs)("div",{"data-testid":"booked-room-card",className:"bv:animate-fade-in bv:relative bv:rounded-bv_cardBorderRadius bv:border-bv_cardBorderWidth bv:border-solid bv:border-bv_cardBorderColor bv:bg-bv_cardBackground bv:text-bv_cardColor bv:shadow-bv_cardBoxShadow bv:px-[24px] bv:py-[16px] bv:bv_medium:px-[32px] bv:bv_medium:py-[20px]",children:[C,E,B,L,H]}),M[102]=C,M[103]=E,M[104]=B,M[105]=L,M[106]=H,M[107]=O):O=M[107],O};function eN(e){return{start:e.startDate,end:e.endDate,price:{displayPrice:e.roomPrice,displayOriginalPrice:e.originalPrice,displayVAT:e.vatAmount,displayOriginalVAT:e.originalVAT}}}var ew=e.i(976488),eI=e.i(147305),ek=e.i(48512),eF=e.i(119672);let eP=({bookedRoom:e,roomInfo:t,roomNumber:a,bookingData:r,searchResults:i,isNew:l})=>{let c=(0,eI.useThreeLetterMonths)(),m=(0,s.useAccommodationTranslations)(),d=(0,ek.useBasketOperations)(),b=(0,eF.default)(),{channelId:v}=(0,n.useChannelContext)(),u=(0,ew.useGuestsText)(e),p=r?.ratePlanDescriptions?.find(o=>o.id===e.priceInfo[0]?.ratePlanId),h=r?.cancellationPolicyDescriptions?.find(o=>o.id===e.cancellationPolicyId),f=!h?.nonRefoundable,x=i?.roomsResult?.find(o=>o.roomId===e.roomId),g=x?.rateAlternatives?.find(o=>o.rateplanId===e.priceInfo[0]?.ratePlanId&&o.ratesPerRoomConfig?.[0]?.cancellationPolicyId===e.cancellationPolicyId),y=g?.ratesPerRoomConfig?.[0]?.lastFreeCancellationDate?(0,et.toUTCDate)(new Date(g.ratesPerRoomConfig[0].lastFreeCancellationDate)):void 0,_=y?`${y.getDate()} ${c[y.getMonth()]}`:void 0,C=p?.name||g?.displayName;return(0,o.jsx)(eS,{roomNumber:a,roomName:t.name||"",price:e.totalPrice,guestConfig:u,rateName:C,showFreeCancellation:f,freeCancellationDate:_,cancellationPolicy:h,imageUrl:t.images?.[0]?.url,onChangeRoom:()=>{b.open({question:`${m("EA4H.General.Remove")} ${t.name}?`,confirmFunction:async()=>{try{let o=await d.removeRoomsFromBasket.mutateAsync({request:{roomToRemoveInfos:[{internalBookingId:e.internalBookingId,roomType:T.RoomType.Accommodation}],channelId:v},waitForNewBasket:!0,gtmInfo:{productId:t.id??"N/A",productName:t.name??"N/A",productCategory:"Accommodation room",productQuantity:1,productPrice:e.totalPrice??0}});o.success||console.error("Failed to remove room:",o.errorMessage)}catch(e){console.error("Error removing room:",e)}}})},room:t,priceInfo:e.priceInfo,numberOfNights:i?.accommodationSearch?.numberOfNights,isNew:l})};var eG=e.i(482582);let eT=e=>{let a,r,i,n,l,c,m,d=(0,t.c)(19),{room:b,roomNumber:v,highlight:u}=e,p=(0,s.useAccommodationTranslations)(),h=b?.roomConfig?.adults??0,f=b?.roomConfig?.sharerAge??0,x=f?[...b?.roomConfig?.childAges??[],f]:b?.roomConfig?.childAges??[],g=x.length,y=`${h} ${p(1===h?"EA4H.General.Adult_LOWER":"EA4H.General.Adults_LOWER")}`,_=g>0?`${g} ${p(1===g?"EA4H.General.Child_LOWER":"EA4H.General.Children_LOWER")} (${1===g?`${x[0]}`:[...x].sort(eE).join(", ")})`:null,C=`${y}${_?`, ${_}`:""}`,j=u&&"bv:animate-highlight-fade";return d[0]!==j?(a=(0,N.cn)("bv:sticky bv:top-0 bv:z-100 bv:bg-bv_cardBackgroun
1d bv:rounded-bv_cardBorderRadius bv:border-bv_cardBorderWidth bv:border-solid bv:border-bv_cardBorderColor bv:shadow-bv_cardBoxShadow bv:px-[24px] bv:py-[16px] bv:bv_medium:px-[32px] bv:bv_medium:py-[20px] bv:flex bv:flex-col bv:items-start bv:mb-[24px]",j),d[0]=j,d[1]=a):a=d[1],d[2]!==p?(r=p("EA4H.General.Room"),d[2]=p,d[3]=r):r=d[3],d[4]!==v||d[5]!==r?(i=(0,o.jsxs)(eG.default,{span:!0,className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor bv:opacity-bv_bodyMutedOpacity",children:[r," ",v]}),d[4]=v,d[5]=r,d[6]=i):i=d[6],d[7]!==p?(n=p("EA4H.General.Select"),d[7]=p,d[8]=n):n=d[8],d[9]!==p?(l=p("EA4H.General.For").toLowerCase(),d[9]=p,d[10]=l):l=d[10],d[11]!==C||d[12]!==n||d[13]!==l?(c=(0,o.jsxs)(eG.default,{span:!0,className:"bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight bv:text-bv_cardColor bv:bv_medium:text-bv_bodyLargeFontSize bv:bv_medium:leading-bv_bodyLargeLineHeight!",children:[n," ",l," ",C]}),d[11]=C,d[12]=n,d[13]=l,d[14]=c):c=d[14],d[15]!==a||d[16]!==i||d[17]!==c?(m=(0,o.jsxs)("div",{"data-testid":"choose-next-room-indicator",className:a,children:[i,c]}),d[15]=a,d[16]=i,d[17]=c,d[18]=m):m=d[18],m};function eE(e,o){return e-o}var eB=e.i(421417),eL=e.i(879588),eH=e.i(507234);let eO=e=>{let a,r,i,n,l,c,m,d,b,v,u,p,h,f,x,g,y,_,j,R=(0,t.c)(48),{roomConfig:A,roomNumber:S,totalRooms:N,maxAvailableOccupancy:w}=e,I=(0,s.useAccommodationTranslations)(),k=A?.adults??0,F=A?.sharerAge??0;if(R[0]!==k||R[1]!==A?.childAges||R[2]!==F||R[3]!==I){let e=F?[...A?.childAges??[],F]:A?.childAges??[];n=k+(r=e.length),a=`${k} ${I(1===k?"EA4H.General.Adult":"EA4H.General.Adults")}`,i=r>0?`${r} ${I(1===r?"EA4H.General.Child":"EA4H.General.Children")} (${1===r?`${I("EA4H.General.Age")} ${e[0]}`:`${I("EA4H.General.Ages")} ${[...e].sort(eM).join(", ")}`})`:null,R[0]=k,R[1]=A?.childAges,R[2]=F,R[3]=I,R[4]=a,R[5]=r,R[6]=i,R[7]=n}else a=R[4],r=R[5],i=R[6],n=R[7];let P=i;R[8]!==w||R[9]!==n||R[10]!==I?(l=void 0!==w?`${n} ${1===n?I("EA4H.General.Guest").toLowerCase():I("EA4H.General.Guests").toLowerCase()} - ${(0,eA.GetTranslation)(I("EA4H.General.Max{0}Persons"),w)}`:I("EA4H.General.Unavailable"),R[8]=w,R[9]=n,R[10]=I,R[11]=l):l=R[11];let G=l,T=`${I("EA4H.General.Room")} ${S}: ${I("EA4H.General.Unavailable")}`;R[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)("div",{className:"bv:w-[28px] bv:h-[28px] bv:shrink-0 bv:flex bv:items-center bv:justify-center",children:(0,o.jsx)(C.FontAwesomeIcon,{icon:eB.faCircleXmark,className:"bv:w-[24px] bv:h-[24px] bv:text-amber-500"})}),R[12]=c):c=R[12],R[13]!==I?(m=I("EA4H.General.Room"),R[13]=I,R[14]=m):m=R[14],R[15]!==S||R[16]!==m||R[17]!==N?(d=(0,o.jsxs)(eG.default,{className:"bv:text-amber-800 bv:font-bv_bodyBoldFontWeight",span:!0,children:[m," ",S," / ",N]}),R[15]=S,R[16]=m,R[17]=N,R[18]=d):d=R[18],R[19]!==I?(b=I("EA4H.General.Unavailable"),R[19]=I,R[20]=b):b=R[20],R[21]!==b?(v=(0,o.jsxs)("span",{className:"bv:text-amber-600 bv:text-bv_smallFontSize",children:["(",b,")"]}),R[21]=b,R[22]=v):v=R[22],R[23]!==d||R[24]!==v?(u=(0,o.jsxs)("div",{className:"bv:flex bv:items-center bv:gap-[8px] bv:flex-wrap",children:[d,v]}),R[23]=d,R[24]=v,R[25]=u):u=R[25],R[26]!==k?(p=Array.from({length:(0,eH.getSafeArrayLength)(k)}).map(ez),R[26]=k,R[27]=p):p=R[27],R[28]!==r?(h=Array.from({length:(0,eH.getSafeArrayLength)(r)}).map(eD),R[28]=r,R[29]=h):h=R[29],R[30]!==p||R[31]!==h?(f=(0,o.jsxs)("div",{className:"bv:flex bv:items-center bv:gap-[4px]",children:[p,h]}),R[30]=p,R[31]=h,R[32]=f):f=R[32];let E=P&&`, ${P}`;return R[33]!==a||R[34]!==E?(x=(0,o.jsxs)(eG.default,{className:"bv:text-amber-700 bv:text-bv_smallFontSize",span:!0,children:[a,E]}),R[33]=a,R[34]=E,R[35]=x):x=R[35],R[36]!==f||R[37]!==x?(g=(0,o.jsxs)("div",{className:"bv:flex bv:items-center bv:gap-[8px] bv:flex-wrap",children:[f,x]}),R[36]=f,R[37]=x,R[38]=g):g=R[38],R[39]!==G?(y=(0,o.jsx)(eG.default,{className:"bv:text-amber-600 bv:text-bv_smallFontSize",children:G}),R[39]=G,R[40]=y):y=R[40],R[41]!==g||R[42]!==y||R[43]!==u?(_=(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[4px] bv:flex-1",children:[u,g,y]}),R[41]=g,R[42]=y,R[43]=u,R[44]=_):_=R[44],R[45]!==_||R[46]!==T?(j=(0,o.jsxs)("div",{className:"bv:bg-amber-50 bv:rounded-bv_c
1ardBorderRadius bv:border bv:border-solid bv:border-amber-200 bv:px-[16px] bv:py-[12px] bv:bv_medium:px-[22px] bv:bv_medium:py-[18px] bv:flex bv:items-start bv:gap-[12px] bv:opacity-70",role:"status","aria-label":T,children:[c,_]}),R[45]=_,R[46]=T,R[47]=j):j=R[47],j};function eM(e,o){return e-o}function ez(e,t){return(0,o.jsx)(C.FontAwesomeIcon,{icon:eL.faPersonSimple,className:"bv:w-[6px] bv:h-[16px] bv:text-amber-700"},`adult-${t}`)}function eD(e,t){return(0,o.jsx)(C.FontAwesomeIcon,{icon:eL.faPersonSimple,className:"bv:w-[5px] bv:h-[13px] bv:text-amber-700"},`child-${t}`)}let e$=({bookedRooms:e,skippedRoomConfigs:t,roomConfigs:r,totalRooms:i,nextRoomConfigIndex:n,nextRoomForIndicator:l,rooms:s,guestRooms:c,bookingData:m,searchResults:d,children:b})=>{let v=(0,a.useRef)(new Set(e.map(e=>e.internalBookingId).filter(Boolean))),u=(0,a.useRef)(void 0),p=(0,a.useRef)(0),h=(0,a.useRef)(!1),f=(0,a.useRef)(d),x=new Set(e.map(e=>e.internalBookingId).filter(Boolean));x.size>v.current.size?(u.current=[...x].find(e=>!v.current.has(e)),p.current+=1,h.current=!0):x.size<v.current.size?(u.current=void 0,h.current=!1):d!==f.current&&(p.current+=1,h.current=!0),v.current=x,f.current=d;let g=[];e.forEach(o=>{let t=((e,o,t)=>{if(!o||!e.roomConfig)return -1;let a=e.roomConfig,r=a.adults||0,i=a.childAges?.length||0,n=a.sharerAge||0,l=[];if(o.forEach((e,o)=>{let t=e.adults||0,a=e.childAges?.length||0,s=e.sharerAge||0;t===r&&a===i&&s===n&&l.push(o)}),0===l.length)return -1;if(1===l.length)return l[0];let s=t.filter(e=>{let o=e.roomConfig;if(!o)return!1;let t=o.adults||0,a=o.childAges?.length||0,l=o.sharerAge||0;return t===r&&a===i&&l===n}).findIndex(o=>o.internalBookingId===e.internalBookingId);return s>=0&&s<l.length?l[s]:l[0]})(o,r,e);g.push({type:"booked",configIndex:t,bookedRoom:o})}),t.forEach(e=>{g.push({type:"skipped",configIndex:e})}),g.sort((e,o)=>e.configIndex-o.configIndex);let y=Math.max(...s.map(e=>e.maxOccupancy??0),0),_=e.length+t.length<i&&n>=0;return(0,o.jsxs)("div",{"data-testid":"multi-room-booking-section",children:[g.length>0&&(0,o.jsx)("div",{className:"bv:mb-[24px] bv:flex bv:flex-col bv:gap-[16px]",children:g.map(e=>{if("booked"===e.type){let t=c?.rooms?.find(o=>o.id===e.bookedRoom.roomId);return t?(0,o.jsx)(eP,{bookedRoom:e.bookedRoom,roomInfo:t,roomNumber:e.configIndex+1,bookingData:m,searchResults:d,isNew:e.bookedRoom.internalBookingId===u.current},e.bookedRoom.internalBookingId):null}let t=r[e.configIndex];return(0,o.jsx)(eO,{roomConfig:t,roomNumber:e.configIndex+1,totalRooms:i,maxAvailableOccupancy:y},`skipped-${e.configIndex}`)})}),(0,o.jsxs)("div",{children:[_&&(0,o.jsx)(eT,{room:l,roomNumber:n+1,highlight:h.current},`indicator-${p.current}`),b]})]})};var eW=e.i(940167),eV=e.i(697603);let eU=()=>{let e,a=(0,t.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"bv:flex bv:flex-col bv:gap-[25px]","aria-hidden":"true",children:[1,2,3].map(eK)}),a[0]=e):e=a[0],e},eq=e=>{let r,i,n=(0,t.c)(7),{presentationType:l,isSearchBarTop:s}=e;if(s&&l===T.SearchResultPresentationType.TileLarge){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"bv:grid bv:grid-cols-1 bv:bv_medium:grid-cols-2 bv:gap-[32px]","aria-hidden":"true",children:[1,2,3,4].map(eY)}),n[0]=e):e=n[0],e}if(s&&l!==T.SearchResultPresentationType.Classic){let e;return n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(eV.TileCardSkeletonGroup,{responsive:!0,count:3}),n[1]=e):e=n[1],e}if(s||l===T.SearchResultPresentationType.Classic){let e,t;return n[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(eU,{}),n[2]=e):e=n[2],n[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)(a.Suspense,{fallback:e,children:(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[25px]",children:[(0,o.jsx)(eW.ClassicCardSkeleton,{}),(0,o.jsx)(eW.ClassicCardSkeleton,{}),(0,o.jsx)(eW.ClassicCardSkeleton,{})]})}),n[3]=t):t=n[3],t}if(l===T.SearchResultPresentationType.Tile||l===T.SearchResultPresentationType.TileLarge||l===T.SearchResultPresentationType.Plate){let e;return n[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(eV.TileCardSkeletonGroup,{columnCount:2,count:4}),n[4]=e):e=n[4],e}return n[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(eU,{}),n[5]=r):r=n[5],n[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(a.Suspense,{fallback:r,children:(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[25px]",children:[(0,o.jsx)(eW.ClassicCardSkeleton,{}),(0,o.jsx)(eW.ClassicCardSkeleton,{}),(0,o.jsx)(eW.ClassicCardSkeleton,{})]})}),n[6]=i):i=n[6],i};function eK(e){return(0,o.jsx)("div",{className:"bv:h-[200px] bv:w-full bv:animate-pulse bv:rounded-bv_c
1ardBorderRadius bv:bg-gray-200"},e)}function eY(e){return(0,o.jsx)("div",{className:"bv:min-h-[400px] bv:bv_medium:min-h-[400px] bv:aspect-square bv:bv_medium:aspect-auto bv:w-full bv:animate-pulse bv:rounded-bv_cardBorderRadius bv:bg-gray-200"},e)}e.s(["SkeletonScreen",0,eq],494958);var eQ=e.i(607753),eX=e.i(297638),eJ=e.i(869471),eZ=e.i(16111);let e0=e=>{let r,n,c,m,d,b,v,u,p,h,f,x,g,y,_,C,j,R,A,S,w,I,k,F,P=(0,t.c)(81),{bookingData:G,unfulfillableRoom:T,canSkipRoom:B,onSkipRoom:L}=e,H=(0,s.useAccommodationTranslations)(),O=(0,ey.useCurrencyFormatter)(),{channelInfo:M}=(0,l.useSinglePropertyContext)(),z=(0,i.useAccommodationSearchResult)(),{getUrl:D}=(0,E.useNavigationManager)(),[$,W]=(0,a.useState)(!1);P[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>W(!0),n=()=>W(!1),P[0]=r,P[1]=n):(r=P[0],n=P[1]),P[2]!==G?(c={bookingData:G,onStart:r,onFinish:n},P[2]=G,P[3]=c):c=P[3];let V=(0,Y.useContinueToCheckout)(c);P[4]!==D?(m=D("accommodation list",{clearSearchConfigParams:!0}),P[4]=D,P[5]=m):m=P[5],P[6]!==m?(d={redirectUrl:m},P[6]=m,P[7]=d):d=P[7];let{confirmCancelBooking:U}=(0,eX.default)(d),q=G?.totalPrice??0,K=(0,eQ.useShowVATBreakdown)(G),Q=M?.activeCreditCardTypes?.filter(e1).map(String)||[],X=G?.rooms?.length??0,J=T?G?.rooms?.reduce(e4,0)||0:z?.accommodationSearch?.roomConfigs?.reduce(e2,0)||0,Z=z?.accommodationSearch?.numberOfNights||1;P[8]!==Z||P[9]!==H?(b=1===Z?H("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(H("EA4H.General.ForNightsLOWER"),Z),P[8]=Z,P[9]=H,P[10]=b):b=P[10];let ee=b,eo=1===J?`1 ${H("EA4H.General.Guest_LOWER")}`:`${J} ${H("EA4H.General.Guests_LOWER")}`,et=1===X?`1 ${H("EA4H.General.RoomLOWER")}`:`${X} ${H("EA4H.General.RoomsLower")}`,ea=`${O.formatCurrency(q)} ${O.currencyCode}`,er=`${H("EA4H.General.For")} ${et}, ${Z} ${H(1===Z?"EA4H.General.Night":"EA4H.General.Nights")}`,ei=!!G?.pricesIncludeVAT&&(G?.totalVATAmount??0)>0&&K,[en,el]=(0,a.useState)(!1),es=T?"bv:sticky bv:bottom-0 bv:left-0 bv:right-0 bv:z-10 bv:mt-[24px] bv:shrink-0":"bv:fixed bv:bv_medium:relative bv:bottom-0 bv:left-0 bv:right-0 bv:z-9998 bv:bv_medium:z-10 bv:shrink-0 bv:bv_medium:mt-[24px]",ec=!T&&X>0;P[11]!==ec?(v=ec&&(0,o.jsx)("div",{"aria-hidden":"true",className:"bv:h-[70px] bv:bv_medium:hidden"}),P[11]=ec,P[12]=v):v=P[12];let em=!T&&"bv:hidden bv:bv_medium:block";P[13]!==em?(u=(0,N.cn)("bv:bg-bv_frameworkBackground",em),P[13]=em,P[14]=u):u=P[14];let ed=Q.map(e3);return P[15]!==ed?(p=(0,o.jsx)("div",{className:"bv:flex bv:gap-[4px]",role:"group","aria-label":"Accepted payment methods",children:ed}),P[15]=ed,P[16]=p):p=P[16],P[17]!==H?(h=H("EA4H.General.SecurePayment"),P[17]=H,P[18]=h):h=P[18],P[19]!==h?(f=(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:opacity-bv_bodyMutedOpacity",children:h}),P[19]=h,P[20]=f):f=P[20],P[21]!==p||P[22]!==f?(x=(0,o.jsxs)("div",{className:"bv:hidden bv:flex-col bv:gap-[4px] bv:md:flex",children:[p,f]}),P[21]=p,P[22]=f,P[23]=x):x=P[23],P[24]!==X||P[25]!==ea||P[26]!==eo||P[27]!==ee||P[28]!==et||P[29]!==T?(g=X>0&&(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[4px] bv:text-left bv:md:text-right",role:"group","aria-label":"Total price",children:[(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight bv:md:text-bv_bodyLargeFontSize bv:md:font-bv_bodyBoldFontWeight",children:ea})}),(0,o.jsxs)("div",{className:"bv:opacity-bv_bodyMutedOpacity bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight",children:[T?`${et}, `:"",ee,", ",eo]})]}),P[24]=X,P[25]=ea,P[26]=eo,P[27]=ee,P[28]=et,P[29]=T,P[30]=g):g=P[30],P[31]!==U||P[32]!==H||P[33]!==T?(y=T&&(0,o.jsxs)(eR.Button,{onClick:U,variant:"secondary",className:"bv:h-[44px] bv:min-h-[44px] bv:w-auto bv:max-w-none bv:px-[16px] bv:py-[10px] bv:bv_medium:h-[48px] bv:bv_medium:min-h-[48px] bv:bv_medium:px-[24px]",children:[(0,o.jsx)("span",{className:"bv:hidden bv:bv_medium:inline",children:H("EA4H.General.ChangeSearch")}),(0,o.jsx)("span",{className:"bv:bv_medium:hidden",children:H("EA4H.General.Change")})]}),P[31]=U,P[32]=H,P[33]=T,P[34]=y):y=P[34],P[35]!==B||P[36]!==L||P[37]!==H||P[38]!==T?.roomNumber?(_=B&&L&&(0,o.jsxs)(eR.Button,{onClick:L,variant:"secondary","aria-label":`${H("EA4H.General.Skip")} ${H("EA4H.General.Room")} ${T?.roomNumber??""}`,className:"bv:h-[44px] bv:min-h-[44px] bv:w-auto bv:max-w-none bv:px-[16px] bv:py-[10px] bv:bv_medium:h-[48px] bv:bv_medium:min-h-[48px] bv:bv_medium:px-[24px]",children:[(0,o.jsxs)("span",{className:"bv:hidden bv:bv_medium:inline",children:[H("EA4H.General.Skip")," ",H("EA4H.General.Room")," ",T?.room
1Number]}),(0,o.jsx)("span",{className:"bv:bv_medium:hidden",children:H("EA4H.General.Skip")})]}),P[35]=B,P[36]=L,P[37]=H,P[38]=T?.roomNumber,P[39]=_):_=P[39],P[40]!==X||P[41]!==ea||P[42]!==V||P[43]!==$||P[44]!==H?(C=X>0&&(0,o.jsx)(eR.Button,{onClick:V,isLoading:$,variant:"default","data-testid":"continue_button","data-action":"proceed-to-checkout","aria-label":`${H("EA4H.General.Continue")} - ${ea}`,className:"bv:h-[44px] bv:min-h-[44px] bv:w-auto bv:max-w-none bv:px-[16px] bv:py-[10px] bv:bv_medium:h-[48px] bv:bv_medium:min-h-[48px] bv:bv_medium:px-[24px]",children:H("EA4H.General.Continue")}),P[40]=X,P[41]=ea,P[42]=V,P[43]=$,P[44]=H,P[45]=C):C=P[45],P[46]!==y||P[47]!==_||P[48]!==C?(j=(0,o.jsxs)("div",{className:"bv:flex bv:gap-[8px] bv:bv_medium:gap-[12px]",children:[y,_,C]}),P[46]=y,P[47]=_,P[48]=C,P[49]=j):j=P[49],P[50]!==g||P[51]!==j?(R=(0,o.jsxs)("div",{className:"bv:flex bv:w-full bv:items-center bv:justify-between bv:gap-[12px] bv:md:w-auto bv:md:justify-start bv:bv_medium:gap-[24px]",children:[g,j]}),P[50]=g,P[51]=j,P[52]=R):R=P[52],P[53]!==x||P[54]!==R?(A=(0,o.jsx)("div",{className:"bv:flex bv:min-h-[86px] bv:items-center bv:overflow-hidden bv:border-b-0 bv:border-l-0 bv:border-r-0 bv:border-t-bv_cardBorderWidth bv:border-solid bv:border-bv_cardBorderColor bv:bg-bv_cardBackground bv:px-[16px] bv:bv_medium:rounded-bv_cardBorderRadius bv:bv_medium:px-[32px]",children:(0,o.jsxs)("div",{className:"bv:flex bv:w-full bv:items-center bv:justify-between bv:gap-[16px] bv:bv_medium:gap-[24px]",children:[x,R]})}),P[53]=x,P[54]=R,P[55]=A):A=P[55],P[56]!==u||P[57]!==A?(S=(0,o.jsx)("div",{className:u,children:A}),P[56]=u,P[57]=A,P[58]=S):S=P[58],P[59]!==X||P[60]!==ea||P[61]!==V||P[62]!==$||P[63]!==er||P[64]!==el||P[65]!==ec||P[66]!==ei||P[67]!==H?(w=ec&&(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[12px] bv:rounded-t-bv_cardBorderRadius bv:border-b-0 bv:border-l-0 bv:border-r-0 bv:border-t-bv_cardBorderWidth bv:border-solid bv:border-bv_cardBorderColor bv:bg-bv_cardBackground bv:p-[24px] bv:shadow-[0_-2px_8px_rgba(0,0,0,0.12)] bv:bv_medium:hidden",children:[(0,o.jsxs)("div",{className:"bv:flex bv:items-start bv:justify-between bv:gap-[16px] bv:text-bv_cardColor",children:[(0,o.jsxs)("div",{className:"bv:flex bv:flex-col",children:[(0,o.jsxs)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLargeLineHeight",children:[H("EA4H.General.TotalPrice"),":"]}),ei&&(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:opacity-bv_bodyMutedOpacity",children:H("EA4H.General.InclVAT")})]}),(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:items-end",children:[(0,o.jsx)("span",{className:"bv:whitespace-nowrap bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLargeLineHeight",children:ea}),(0,o.jsx)("span",{className:"bv:whitespace-nowrap bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:opacity-bv_bodyMutedOpacity",children:er})]})]}),(0,o.jsxs)("div",{className:"bv:flex bv:items-center bv:gap-[16px]",children:[(0,o.jsx)(eJ.SummaryGuestButtons,{roomCount:X,onOpenSummary:()=>el(!0),testIdPrefix:"multi-room"}),(0,o.jsx)(eR.Button,{onClick:V,isLoading:$,variant:"default","data-testid":"multi_room_mobile_continue_button","data-action":"proceed-to-checkout","aria-label":`${H("EA4H.General.Continue")} - ${ea}`,className:"bv:h-[56px] bv:min-h-[56px] bv:max-w-none bv:flex-1",children:H("EA4H.General.Continue")})]})]}),P[59]=X,P[60]=ea,P[61]=V,P[62]=$,P[63]=er,P[64]=el,P[65]=ec,P[66]=ei,P[67]=H,P[68]=w):w=P[68],P[69]!==en||P[70]!==el||P[71]!==T?(I=!T&&(0,o.jsx)(eZ.SummaryGuestsModal,{open:en,tab:"summary",onTabChange:e5,onClose:()=>el(!1),showGuestsTab:!1}),P[69]=en,P[70]=el,P[71]=T,P[72]=I):I=P[72],P[73]!==es||P[74]!==S||P[75]!==w||P[76]!==I?(k=(0,o.jsxs)("div",{className:es,role:"region","aria-label":"Complete booking",children:[S,w,I]}),P[73]=es,P[74]=S,P[75]=w,P[76]=I,P[77]=k):k=P[77],P[78]!==k||P[79]!==v?(F=(0,o.jsxs)(o.Fragment,{children:[v,k]}),P[78]=k,P[79]=v,P[80]=F):F=P[80],F};
1function e1(e){return e!==T.CreditCardType.Invoice}function e4(e,o){return e+(o.roomConfig?.adults||0)+(o.roomConfig?.childAges?.length||0)}function e2(e,o){return e+(o.adults||0)+(o.childAges?.length||0)}function e3(e){return(0,o.jsx)("img",{src:`https://framework.citybreakcdn.com/payment/${e}.svg`,alt:`${e.charAt(0).toUpperCase()+e.slice(1)} payment accepted`,className:"bv:h-[32px] bv:w-[48px] bv:object-cover bv:object-top bv:shadow-[rgba(0,0,0,0.15)_0_0_0_1px_inset]"},e)}function e5(){}var e6=e.i(821625),e7=e.i(704134);let e8=e=>{let a,i,n,l,c,m,d,b,v,u,p,h,f,x,g,y,_,j,R=(0,t.c)(47),{roomConfig:A,roomNumber:S,totalRooms:N}=e,w=(0,s.useAccommodationTranslations)(),I=(0,r.useSetAtom)(e6.searchBarDatePickerOpenState),k=(0,r.useSetAtom)(e7.showYouSearchedForState),F=A?.adults??0,P=A?.sharerAge??0;if(R[0]!==F||R[1]!==A?.childAges||R[2]!==P||R[3]!==w){let e=P?[...A?.childAges??[],P]:A?.childAges??[];i=e.length,a=`${F} ${w(1===F?"EA4H.General.Adult":"EA4H.General.Adults")}`,n=i>0?`${i} ${w(1===i?"EA4H.General.Child":"EA4H.General.Children")} (${1===i?`${w("EA4H.General.Age")} ${e[0]}`:`${w("EA4H.General.Ages")} ${[...e].sort(e9).join(", ")}`})`:null,R[0]=F,R[1]=A?.childAges,R[2]=P,R[3]=w,R[4]=a,R[5]=i,R[6]=n}else a=R[4],i=R[5],n=R[6];let G=n;R[7]!==I||R[8]!==k?(l=()=>{window.scrollTo({top:0,behavior:"smooth"}),k(!1),window.matchMedia("(min-width: 768px)").matches&&setTimeout(()=>I(!0),350)},R[7]=I,R[8]=k,R[9]=l):l=R[9];let T=l;R[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(C.FontAwesomeIcon,{icon:eB.faInfoCircle,className:"bv:mt-[2px] bv:h-[16px] bv:w-[16px] bv:shrink-0 bv:text-amber-600"}),R[10]=c):c=R[10],R[11]!==w?(m=w("EA4H.General.Room"),R[11]=w,R[12]=m):m=R[12],R[13]!==w?(d=w("EA4H.General.NothingAvailable"),R[13]=w,R[14]=d):d=R[14],R[15]!==S||R[16]!==m||R[17]!==d||R[18]!==N?(b=(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:text-amber-800",children:(0,o.jsxs)("span",{className:"bv:font-bv_bodyBoldFontWeight",children:[m," ",S," / ",N,":"," ",d]})}),R[15]=S,R[16]=m,R[17]=d,R[18]=N,R[19]=b):b=R[19],R[20]!==F?(v=Array.from({length:(0,eH.getSafeArrayLength)(F)}).map(oe),R[20]=F,R[21]=v):v=R[21],R[22]!==i?(u=Array.from({length:(0,eH.getSafeArrayLength)(i)}).map(oo),R[22]=i,R[23]=u):u=R[23],R[24]!==v||R[25]!==u?(p=(0,o.jsxs)("span",{className:"bv:flex bv:items-center bv:gap-[3px]",children:[v,u]}),R[24]=v,R[25]=u,R[26]=p):p=R[26];let E=G&&`, ${G}`;return R[27]!==a||R[28]!==E?(h=(0,o.jsxs)("span",{children:[a,E]}),R[27]=a,R[28]=E,R[29]=h):h=R[29],R[30]!==h||R[31]!==p?(f=(0,o.jsxs)("span",{className:"bv:flex bv:items-center bv:gap-[6px] bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:text-amber-700",children:[p,h]}),R[30]=h,R[31]=p,R[32]=f):f=R[32],R[33]!==w?(x=w("EA4H.General.ChangeSearchDatesMessage"),R[33]=w,R[34]=x):x=R[34],R[35]!==x?(g=(0,o.jsx)(eG.default,{size:"small",className:"bv:text-amber-700 bv:opacity-80 bv:[&_b]:font-bv_bodyBoldFontWeight",dangerouslySetInnerHTML:{__html:x}}),R[35]=x,R[36]=g):g=R[36],R[37]!==w?(y=w("EA4H.General.ChangeSearch"),R[37]=w,R[38]=y):y=R[38],R[39]!==T||R[40]!==y?(_=(0,o.jsx)("div",{className:"bv:mt-[4px] bv:flex bv:flex-wrap bv:items-center bv:gap-[12px]",children:(0,o.jsx)("button",{onClick:T,className:"bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-800 bv:underline bv:hover:text-amber-900",children:y})}),R[39]=T,R[40]=y,R[41]=_):_=R[41],R[42]!==f||R[43]!==g||R[44]!==_||R[45]!==b?(j=(0,o.jsxs)("div",{className:"bv:mb-[24px] bv:flex bv:animate-highlight-fade bv:items-start bv:gap-[12px] bv:bg-amber-50 bv:px-[16px] bv:py-[12px] bv:bv_medium:rounded-bv_cardBorderRadius bv:bv_medium:px-[32px]",children:[c,(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[4px]",children:[b,f,g,_]})]}),R[42]=f,R[43]=g,R[44]=_,R[45]=b,R[46]=j):j=R[46],j};function e9(e,o){return e-o}function oe(e,t){return(0,o.jsx)(C.FontAwesomeIcon,{icon:eL.faPersonSimple,className:"bv:h-[14px] bv:w-[5px] bv:text-amber-700"},`adult-${t}`)}function oo(e,t){return(0,o.jsx)(C.FontAwesomeIcon,{icon:eL.faPersonSimple,className:"bv:h-[11px] bv:w-[4px] bv:text-amber-700"},`child-${t}`)}let ot=e=>{let a,r,i,n,l,s=(0,t.c)(25),{multiRoomBookingSection:c,showContinueBar:m,bookingData:d,noRoomsAvailableForConfig:b,nextRoomConfig:v,nextRoomConfigIndex:u,totalRooms:p,unfulfillableRoomInfo:h,canSkipToNextConfig:f,onSkipRoom:x,roomGroupsSection:g,showContent:y,children:_,listRef:C,roomsLabel:j,wrapContentInMultiRoom:R}=e;s[0]!==_||s[1]!==C||s[2]!==j||s[3]!==y?(a=y?(0,o.jsx)(K.ProductList,{ref:C,role:"list","aria-label":j,children:_}):null,s[0]=_,s[1]=C,s[2]=j,s[3]=y,s[4]=a):a=s[4];let A=a;s[5]!==d||s[6]!==m?(r=m&&(0,o.jsx)(e0,{bookingData:d}),s[5]=d,s[6]=m,s[7]=r):r=s[7],s[8]!==v||s[9]!==u||s[10]!==b||s[11]!==p?(i=b&&(0,o.jsx)(e8,{roomConfig:v,roomNumber:u+1,totalRooms:p}),s[8]=v,s[9]=u,s[10]=b,s[11]=p,s[12]=i):i=s[12];let S=!R&&A;return s[13]!==d||s[14]!==f||s[15]!==x||s[16]!==h?(n=h&&(0,o.jsx)(e0,{bookingData:d,unfulfillableRoom:h,canSkipRoom:f,onSkipRoom:x}),s[13]=d,s[14]=f,s[15]=x,s[16]=h,s[17]=n):n=s[17],s[18]!==c||s[19]!==g||s[20]!==r||s[21]!==i||s[22]!==S||s[23]!==n?(l=(0,o.jsxs)(o.Fragment,{children:[c,r,i,g,S,n]}),s[18]=c,s[19]=g,s[20]=r,s[21]=i,s[22]=S,s[23]=n,s[24]=l):l=s[24],l};var oa=e.i(497808),or=e.i(603340),oi=e.i(428838),on=e.i(912598),ol=e.i(496807);let os=({roomId:e,roomName:o,rates:t,forPackageId:r,isMultiRoomMode:n,roomConfigIndex:l,expectedAdults:s,expectedChildCount:m})=>{let{addRoomsToBasket:b}=(0,ek.useBasketOperations)(),v=(0,oi.useContinueToAccommodationCheckout)(),u=(0,c.useTheme)(),p=(0,on.useQueryClient)(),{data:h}=(0,d.useBasket)(),f=(0,i.useAccommodationSearchResult)(),x=(0,a.useCallback)(()=>
1{if(1!==t.length)return;let e=t[0];return n&&l>=0?e.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,t=e.roomConfig?.childAges?.length||0;return o===s&&t===m}):e.ratesPerRoomConfig?.[0]},[t,n,l,s,m])(),g=x?.isLocked??!1,y=!!r&&1===t.length&&!g,_=(0,a.useCallback)(async({onError:t}={})=>{if(x?.hitKey&&f?.resultId)try{let t=(h?.booking?.bookingData?.rooms?.length??0)>0,a=f?.accommodationSearch?.roomConfigs?.length===1,r=x.totalPrice?.displayPrice??x.totalPrice?.displayOriginalPrice??0;await b.mutateAsync({request:{hitkey:x.hitKey,nrOfUnits:1,resultId:f.resultId,useExistingBasket:!a&&t},gtmInfo:{productId:e??"N/A",productName:o??"N/A",productPrice:r,productQuantity:1,productCategory:"Accommodation room"}}),a?await v():u.css.viewType===T.ViewType.SearchBarTop?(await p.invalidateQueries({queryKey:["basket"]}),setTimeout(ol.scrollToContentBelowSearchBar,150)):p.invalidateQueries({queryKey:["basket"]})}catch(e){t?t(e instanceof Error?e:Error(String(e))):console.error("Direct booking failed:",e)}},[x,f,h,b,v,u,p,e,o]);return{isSingleRatePackage:y,isBooking:b.isPending,bookDirectly:_}};var oc=e.i(729709),om=e.i(339199),od=e.i(699032),ob=e.i(644870),ov=e.i(66005);let ou=e=>{let a,r,i,n,l=(0,t.c)(15),{room:c,iconClassName:m,textClassName:d,withoutOpacity:b}=e,v=(0,s.useAccommodationTranslations)();if(l[0]!==m||l[1]!==c||l[2]!==d||l[3]!==v||l[4]!==b){i=Symbol.for("react.early_return_sentinel");e:{let e,t=(0,ov.getRoomAttributes)(c,v);if(!t||0===t.length){i=null;break e}a="bv:flex bv:flex-wrap bv:gap-x-[16px]",l[8]!==m||l[9]!==d||l[10]!==b?(e=(e,t)=>(0,o.jsxs)("div",{className:"bv:flex bv:items-center bv:gap-[8px] bv:text-bv_smallFontSize bv:text-bv_bodyColor",children:[(0,o.jsx)(C.FontAwesomeIcon,{icon:e.icon,className:(0,N.cn)("bv:h-[16px] bv:w-[16px] bv:text-bv_bodyColor",m,{"bv:opacity-60":!b}),"aria-hidden":"true"}),(0,o.jsx)("span",{className:d,children:e.displayName})]},`${e.displayName}-${t}`),l[8]=m,l[9]=d,l[10]=b,l[11]=e):e=l[11],r=t.map(e)}l[0]=m,l[1]=c,l[2]=d,l[3]=v,l[4]=b,l[5]=a,l[6]=r,l[7]=i}else a=l[5],r=l[6],i=l[7];return i!==Symbol.for("react.early_return_sentinel")?i:(l[12]!==a||l[13]!==r?(n=(0,o.jsx)("div",{className:a,children:r}),l[12]=a,l[13]=r,l[14]=n):n=l[14],n)};var op=e.i(974875),oh=e.i(84062);let of=(e,o,t)=>{if(o)for(let a of e){let e=a.ratesPerRoomConfig?.find(e=>(!t||(e.roomConfig?.adults||0)===t.adults&&(e.roomConfig?.childAges?.length||0)===t.childCount)&&e.totalPrice?.displayPrice===o&&(e.totalPrice?.displayOriginalPrice??0)>o);if(e)return{rateAlternative:a,originalPrice:e.totalPrice.displayOriginalPrice}}},ox=e=>{let a,n,l,c,m,b,v,u,p,h,f,x,g,y,_,j,R,A,S,w,I,k,F,P,G,T,E,B,L,H,O,M,z,D,$,W,V,U=(0,t.c)(169),{room:q,showPrice:K,unavailabilityInfo:Y,forPackageId:J,forPackageName:ee,lazyImage:eo}=e,ea=(0,s.useAccommodationTranslations)(),er=(0,ey.useCurrencyFormatter)(),ei=(0,i.useAccommodationSearchResult)(),en=!!J;U[0]!==en?(a={forSpecificPackage:en},U[0]=en,U[1]=a):a=U[1];let el=eu(a),es=(0,e_.default)(),ec=(0,eI.useThreeLetterMonths)(),{data:em}=(0,d.useBasket)(),ed=em?.booking?.bookingData?.rooms??Z.EMPTY_ARRAY,eb=(0,r.useAtomValue)(Q.skippedRoomConfigsState),ev=(0,X.findMissingRoomConfigIndex)(ei?.accommodationSearch?.roomConfigs,ed,eb),ep=(0,or.useFilteredRates)(q.id),eh=ei?.accommodationSearch?.roomConfigs&&ei.accommodationSearch.roomConfigs.length>1,ef=eb.length>0&&0===ed.length,ex=ev>=0?ei?.accommodationSearch?.roomConfigs?.[ev]:void 0,eg=ex?.adults||0,eC=ex?.childAges?.length||0;if(U[2]!==ep||U[3]!==er||U[4]!==eg||U[5]!==eC||U[6]!==J||U[7]!==ef||U[8]!==eh||U[9]!==q.id||U[10]!==ev||U[11]!==ei||U[12]!==ec||U[13]!==ea){let e;f=eh&&ev>=0&&!ef?ep.filter(e=>!!e.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,t=e.roomConfig?.childAges?.length||0;return o===eg&&t===eC&&e.totalPrice?.priceInclVAT!==void 0&&e.totalPrice.priceInclVAT>0})):ep;let o=(0,et.getDisplayRoomResult)(ei,q.id,J,f);l=o?.cheapestPrice;let t=eh&&ev>=0&&!ef,a=of(o?.rateAlternatives??[],l,t?{adults:eg,childCount:eC}:void 0);(c=(u=Math.max(o?.cheapestPriceNoLock??0,a?.originalPrice??0))&&l&&u>
1l)&&(0,oh.getSaveAmountOrPercentage)({displayPrice:l,displayOriginalPrice:u},er.currencyCode,ei?.showDiscountAsFixedAmount),U[25]!==ei?.accommodationSearch?.numberOfNights||U[26]!==ea?(e=[1,void 0].includes(ei?.accommodationSearch?.numberOfNights)?ea("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(ea("EA4H.General.ForNightsLOWER"),ei?.accommodationSearch?.numberOfNights),U[25]=ei?.accommodationSearch?.numberOfNights,U[26]=ea,U[27]=e):e=U[27],v=e;let r=o?.rateAlternatives?.[0];h=r?.ratesPerRoomConfig?.[0],n=ei?.cancellationPolicy?.find(e=>e.id===h?.cancellationPolicyId),p=ei?.paymentPolicy?.find(e=>e.id===h?.paymentPolicyId),m=n?.nonRefundable;let i=h?.lastFreeCancellationDate?(0,et.toUTCDate)(new Date(h.lastFreeCancellationDate)):void 0,s=new Date;b=s&&i&&(0,op.isBefore)(s,i),x=i&&`${i.getDate()} ${ec[i.getMonth()]}`,U[2]=ep,U[3]=er,U[4]=eg,U[5]=eC,U[6]=J,U[7]=ef,U[8]=eh,U[9]=q.id,U[10]=ev,U[11]=ei,U[12]=ec,U[13]=ea,U[14]=n,U[15]=l,U[16]=c,U[17]=m,U[18]=b,U[19]=v,U[20]=u,U[21]=p,U[22]=h,U[23]=f,U[24]=x}else n=U[14],l=U[15],c=U[16],m=U[17],b=U[18],v=U[19],u=U[20],p=U[21],h=U[22],f=U[23],x=U[24];
1let ej=x,eS=`room-title-${q.id}`,eN=Y?.unavailable??!1,ew=Y?.reason==="payment_policy",ek=!!eh&&!eN&&!ew&&0===f.length&&!!(l||ep.length>0);U[28]!==ea||U[29]!==Y?(g=()=>{if(!Y)return null;switch(Y.reason){case"occupancy":{let e=Y.maxOccupancy??0;return(0,eA.GetTranslation)(ea("EA4H.General.Max{0}Persons"),e)}case"payment_policy":return ea("EA4H.General.RequiresSeparateBooking");default:return ea("EA4H.General.Unavailable")}},U[28]=ea,U[29]=Y,U[30]=g):g=U[30];let eF=g;U[31]!==ed||U[32]!==l||U[33]!==J||U[34]!==ee||U[35]!==el||U[36]!==u||U[37]!==q||U[38]!==ev?(y=()=>{el({images:q.images?.map(og).filter(oy)||[],price:l,fromPrice:u,room:q,roomConfigIndex:ev>=0?ev:ed.length,forPackageId:J,forPackageName:ee})},U[31]=ed,U[32]=l,U[33]=J,U[34]=ee,U[35]=el,U[36]=u,U[37]=q,U[38]=ev,U[39]=y):y=U[39];let eP=y,eT=!!eh;U[40]!==eg||U[41]!==eC||U[42]!==J||U[43]!==f||U[44]!==q.id||U[45]!==q.name||U[46]!==ev||U[47]!==eT?(_={roomId:q.id,roomName:q.name,rates:f,forPackageId:J,isMultiRoomMode:eT,roomConfigIndex:ev,expectedAdults:eg,expectedChildCount:eC},U[40]=eg,U[41]=eC,U[42]=J,U[43]=f,U[44]=q.id,U[45]=q.name,U[46]=ev,U[47]=eT,U[48]=_):_=U[48];let{isSingleRatePackage:eE,isBooking:eL,bookDirectly:eH}=os(_);U[49]!==eH||U[50]!==ed||U[51]!==l||U[52]!==J||U[53]!==ee||U[54]!==eE||U[55]!==el||U[56]!==u||U[57]!==q||U[58]!==ev?(j=async e=>{(e.stopPropagation(),eE)?await eH():el({images:q.images?.map(o_).filter(oC)||[],price:l,fromPrice:u,room:q,defaultTab:"book-now",roomConfigIndex:ev>=0?ev:ed.length,forPackageId:J,forPackageName:ee})},U[49]=eH,U[50]=ed,U[51]=l,U[52]=J,U[53]=ee,U[54]=eE,U[55]=el,U[56]=u,U[57]=q,U[58]=ev,U[59]=j):j=U[59];let eO=j;U[60]!==ed||U[61]!==l||U[62]!==J||U[63]!==ee||U[64]!==el||U[65]!==u||U[66]!==q||U[67]!==ev?(R=()=>{el({images:q.images?.map(oj).filter(oR)||[],price:l,fromPrice:u,room:q,defaultTab:"photos",roomConfigIndex:ev>=0?ev:ed.length,forPackageId:J,forPackageName:ee})},U[60]=ed,U[61]=l,U[62]=J,U[63]=ee,U[64]=el,U[65]=u,U[66]=q,U[67]=ev,U[68]=R):R=U[68];let eM=R;U[69]!==ed||U[70]!==l||U[71]!==J||U[72]!==ee||U[73]!==el||U[74]!==u||U[75]!==q||U[76]!==ev?(A=e=>{e.stopPropagation(),el({images:q.images?.map(oA).filter(oS)||[],price:l,fromPrice:u,room:q,defaultTab:"about",roomConfigIndex:ev>=0?ev:ed.length,forPackageId:J,forPackageName:ee})},U[69]=ed,U[70]=l,U[71]=J,U[72]=ee,U[73]=el,U[74]=u,U[75]=q,U[76]=ev,U[77]=A):A=U[77];let ez=A;U[78]!==n||U[79]!==p||U[80]!==h?.priceBreakDown||U[81]!==es?(S=e=>{e.preventDefault(),e.stopPropagation(),es.open({cancellationPolicies:n?[n]:void 0,paymentPolicy:p,priceBreakdown:h?.priceBreakDown,defaultTab:"terms"})},U[78]=n,U[79]=p,U[80]=h?.priceBreakDown,U[81]=es,U[82]=S):S=U[82];let eD=S,e$=eN&&"bv:opacity-60";U[83]!==e$?(w=(0,N.cn)("bv:relative bv:h-full",e$),U[83]=e$,U[84]=w):w=U[84],U[85]!==q.images?(I=q.images??[],U[85]=q.images,U[86]=I):I=U[86];let eW=q.name;return U[87]===Symbol.for("react.memo_cache_sentinel")?(k=(0,o.jsx)(od.FewLeftRibbon,{className:"bv:absolute bv:left-0 bv:top-[15px]"}),U[87]=k):k=U[87],U[88]!==q.name||U[89]!==eS?(F=(0,o.jsx)(ob.default,{id:eS,className:"bv:text-bv_subtitleFontSmaller",card:!0,children:q.name}),U[88]=q.name,U[89]=eS,U[90]=F):F=U[90],U[91]!==q?(P=(0,o.jsx)("div",{className:"bv:mt-[4px]",children:(0,o.jsx)(ou,{room:q})}),U[91]=q,U[92]=P):P=U[92],U[93]!==q.description||U[94]!==q.searchResultText?(G=q.searchResultText||(0,et.getPropertyTeaser)(q.description),U[93]=q.description,U[94]=q.searchResultText,U[95]=G):G=U[95],U[96]!==G?(T=(0,o.jsx)(eG.default,{className:"bv:mt-[16px] bv:line-clamp-3",dangerouslySetInnerHTML:{__html:G}}),U[96]=G,U[97]=T):T=U[97],U[98]!==ea?(E=ea("EA4H.General.ReadMore"),U[98]=ea,U[99]=E):E=U[99],U[100]!==ez||U[101]!==E?(B=(0,o.jsx)("button",{onClick:ez,className:"bv:mt-[3px] bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:text-bv_linkColor bv:hover:underline",type:"button",children:E}),U[100]=ez,U[101]=E,U[102]=B):B=U[102],U[103]!==eF||U[104]!==eN?(L=eN&&(0,o.jsxs)("div",{className:"bv:mt-auto bv:flex bv:flex-col bv:pt-[24px]","aria-live":"polite",children:[(0,o.jsx)("div",{className:"bv:h-[24px]"}),(0,o.jsx)("div",{className:"bv:flex bv:min-h-[44px] bv:items-center bv:ju
1stify-center bv:gap-[8px] bv:rounded-bv_cardBorderRadius bv:bg-amber-50 bv:px-[12px]",children:(0,o.jsx)(eG.default,{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-700",children:eF()})})]}),U[103]=eF,U[104]=eN,U[105]=L):L=U[105],U[106]!==eO||U[107]!==ew||U[108]!==ea?(H=ew&&(0,o.jsxs)("div",{className:"bv:mt-auto bv:flex bv:flex-col bv:pt-[24px]","aria-live":"polite",children:[(0,o.jsx)("div",{className:"bv:flex bv:min-h-[44px] bv:items-center bv:justify-center bv:gap-[8px] bv:rounded-bv_cardBorderRadius bv:bg-amber-50 bv:px-[12px]",children:(0,o.jsx)(eG.default,{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-700",children:ea("EA4H.General.RequiresSeparateBooking")})}),(0,o.jsx)(eR.Button,{onClick:eO,className:"bv:min-h-[44px]! bv:w-full bv:max-w-full!",type:"button","data-testid":"room_card_new_tile_choose_button",children:ea("EA4H.General.Choose")})]}),U[106]=eO,U[107]=ew,U[108]=ea,U[109]=H):H=U[109],U[110]!==l||U[111]!==er||U[112]!==eO||U[113]!==ek||U[114]!==v||U[115]!==ea?(O=ek&&(0,o.jsxs)("div",{className:"bv:mt-auto bv:flex bv:flex-col bv:pt-[24px]","aria-live":"polite",children:[l&&(0,o.jsxs)("div",{className:"bv:flex bv:flex-col",children:[(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:ea("EA4H.General.From")}),(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[5px]",children:[(0,o.jsxs)("span",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight",children:[er.formatCurrency(l)," ",er.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight",children:v})]})]}),(0,o.jsx)(eR.Button,{onClick:eO,className:"bv:mt-[16px] bv:min-h-[44px]! bv:w-full bv:max-w-full!",type:"button","data-testid":"room_card_new_tile_choose_button",children:ea("EA4H.General.Choose")})]}),U[110]=l,U[111]=er,U[112]=eO,U[113]=ek,U[114]=v,U[115]=ea,U[116]=O):O=U[116],U[117]!==l||U[118]!==ez||U[119]!==eN||U[120]!==ek||U[121]!==f||U[122]!==ew||U[123]!==K||U[124]!==ea?(M=!eN&&!ew&&!ek&&!(K&&l&&f.length>0)&&(0,o.jsx)("div",{className:"bv:mt-auto bv:flex bv:flex-col bv:pt-[24px]",children:(0,o.jsx)(eR.Button,{onClick:ez,variant:"secondaryOutline",className:"bv:min-h-[44px]! bv:w-full bv:max-w-full!",type:"button","data-testid":"room_card_new_tile_more_info_button",children:ea("EA4H.General.ViewDetails")})}),U[117]=l,U[118]=ez,U[119]=eN,U[120]=ek,U[121]=f,U[122]=ew,U[123]=K,U[124]=ea,U[125]=M):M=U[125],U[126]!==l||U[127]!==er||U[128]!==eD||U[129]!==eO||U[130]!==c||U[131]!==eL||U[132]!==m||U[133]!==b||U[134]!==eN||U[135]!==ej||U[136]!==v||U[137]!==u||U[138]!==f||U[139]!==ew||U[140]!==q.id||U[141]!==K||U[142]!==ea?(z=!eN&&!ew&&K&&l&&f.length>0&&(0,o.jsxs)("div",{className:"bv:mt-auto bv:flex bv:flex-col bv:pt-[24px]","aria-live":"polite",children:[(0,o.jsxs)("div",{id:`price-info-${q.id}`,className:"bv:flex bv:flex-col",children:[c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[5px]",children:[(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:ea("EA4H.General.From")}),(0,o.jsxs)("del",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:line-through bv:opacity-bv_bodyMutedOpacity",children:[(0,o.jsx)("span",{className:"bv:sr-only",children:"Original price: "}),er.formatCurrency(u)," ",er.currencyCode]})]}),(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[5px]",children:[(0,o.jsxs)("ins",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_offerColorDark bv:no-underline",children:[er.formatCurrency(l)," ",er.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight bv:text-bv_offerColorDark",children:v})]})]}),!c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:ea("EA4H.General.From")}),(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[5px]",children:[(0,o.jsxs)("span",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight",children:[er.formatCurrency(l)," ",er.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight",children:v})]})]})]}),(0,o.jsx)(eR.Button,{onClick:eO,className:"bv:mt-[16px] bv:min-h-[44px]! bv:w-full bv:max-w-full!","aria-describedby":`price-info-${q.id}`,type:"button","data-testid":"room_card_new_tile_choose_button",disabled:eL,isLoading:eL,children:ea("EA4H.General.Choose")}),(b||m)&&(0,o.jsxs)("button",{onClick:eD,className:"bv:mt-[8px] bv:flex bv:w-full bv:cursor-pointer bv:items-center bv:ju
1stify-center bv:gap-[6px] bv:border-0 bv:bg-transparent bv:p-0",children:[(0,o.jsx)(C.FontAwesomeIcon,{icon:eB.faArrowUpRightFromSquare,className:"bv:h-[12px] bv:w-[12px] bv:text-bv_linkColor"}),(0,o.jsxs)("span",{className:"bv:text-bv_linkColor bv:underline bv:transition-all bv:duration-200 bv:ease-in-out",style:{textDecorationColor:"transparent"},onMouseEnter:oN,onMouseLeave:ow,children:[(0,o.jsx)(eG.default,{size:"small",className:"bv:text-bv_linkColor",bold:!0,span:!0,children:b?ea("EA4H.General.FreeCancellation"):ea("EA4H.General.NonFreeCancellation")}),b&&ej&&(0,o.jsx)(eG.default,{size:"small",className:"bv:text-bv_linkColor",span:!0,children:` ${ea("EA4H.General.Before_LOWER")} ${ej}`})]})]})]}),U[126]=l,U[127]=er,U[128]=eD,U[129]=eO,U[130]=c,U[131]=eL,U[132]=m,U[133]=b,U[134]=eN,U[135]=ej,U[136]=v,U[137]=u,U[138]=f,U[139]=ew,U[140]=q.id,U[141]=K,U[142]=ea,U[143]=z):z=U[143],U[144]!==eP||U[145]!==eM||U[146]!==eo||U[147]!==q.name||U[148]!==I||U[149]!==F||U[150]!==P||U[151]!==T||U[152]!==B||U[153]!==L||U[154]!==H||U[155]!==O||U[156]!==M||U[157]!==z||U[158]!==eS?(D=(0,o.jsxs)(om.NewTileBase,{onClick:eP,onImageButtonClick:eM,images:I,altLabel:eW,titleId:eS,lazy:eo,imageOverlay:k,children:[F,P,T,B,L,H,O,M,z]}),U[144]=eP,U[145]=eM,U[146]=eo,U[147]=q.name,U[148]=I,U[149]=F,U[150]=P,U[151]=T,U[152]=B,U[153]=L,U[154]=H,U[155]=O,U[156]=M,U[157]=z,U[158]=eS,U[159]=D):D=U[159],U[160]!==es.Sheet?($=(0,o.jsx)(es.Sheet,{}),U[160]=es.Sheet,U[161]=$):$=U[161],U[162]!==w||U[163]!==D||U[164]!==$?(W=(0,o.jsxs)("article",{className:w,children:[D,$]}),U[162]=w,U[163]=D,U[164]=$,U[165]=W):W=U[165],U[166]!==q||U[167]!==W?(V=(0,o.jsx)(oc.RoomContextProvider,{Room:q,children:W}),U[166]=q,U[167]=W,U[168]=V):V=U[168],V};function og(e){return e.url}function oy(e){return void 0!==e}function o_(e){return e.url}function oC(e){return void 0!==e}function oj(e){return e.url}function oR(e){return void 0!==e}function oA(e){return e.url}function oS(e){return void 0!==e}function oN(e){return e.currentTarget.style.textDecorationColor="var(--bv-linkColor)"}function ow(e){return e.currentTarget.style.textDecorationColor="transparent"}let oI=e=>{let a,r,i,n=(0,t.c)(17),{rooms:l,columnCount:s,showPrice:c,roomUnavailabilityMap:m,forPackageId:d,forPackageName:b,responsive:v}=e;if(n[0]!==s||n[1]!==v?(a=(0,N.cn)("bv:grid",v?"bv:gap-[25px] bv:grid-cols-1 bv:bv_medium:grid-cols-2 bv:bv_large:grid-cols-3":(0,N.cn)("bv:gap-x-[25px]",1===s&&"bv:grid-cols-1",2===s&&"bv:grid-cols-2",3===s&&"bv:grid-cols-3")),n[0]=s,n[1]=v,n[2]=a):a=n[2],n[3]!==d||n[4]!==b||n[5]!==m||n[6]!==l||n[7]!==c){let e;n[9]!==d||n[10]!==b||n[11]!==m||n[12]!==c?(e=(e,t)=>(0,o.jsx)(ox,{room:e,showPrice:c,unavailabilityInfo:m?.get(e.id),forPackageId:d,forPackageName:b,lazyImage:t>0},e.id),n[9]=d,n[10]=b,n[11]=m,n[12]=c,n[13]=e):e=n[13],r=l.map(e),n[3]=d,n[4]=b,n[5]=m,n[6]=l,n[7]=c,n[8]=r}else r=n[8];return n[14]!==a||n[15]!==r?(i=(0,o.jsx)("div",{className:a,"data-testid":"room_card_new_tile_group",children:r}),n[14]=a,n[15]=r,n[16]=i):i=n[16],i};var ok=e.i(258577),oF=e.i(854099),oP=e.i(716940),oG=e.i(573239),oT=e.i(416418),oE=e.i(108121),oB=e.i(409426),oL=e.i(402872),oH=e.i(776761);let oO=e=>e.some(e=>null!=e);e.s(["isSomeNotNullOrUndefined",0,oO],765192);var oM=e.i(905675);let oz=({rates:e,room:n,isValidSearchConfig:c})=>{let[m,d]=(0,a.useState)("slideOut"),b=(0,l.useSinglePropertyContext)(),p=(0,r.useSetAtom)(e7.showYouSearchedForState),h=(0,r.useAtomValue)((0,oM.cheapestAvailableRoomRate)({roomId:n?.roomId,channelId:b.channelId})),f=(0,i.useAccommodationSearchResult)(),x=(0,ey.useCurrencyFormatter)(),g=(0,s.useAccommodationTranslations)(),{push:y}=(0,E.useNavigationManager)(),_=(e=>{let o,n,s=(0,t.c)(6),{channelId:c}=(0,l.useSinglePropertyContext)(),{withPrices:m,preventSinglePriceListResult:d}=(0,a.useContext)(v.RoomListContext),b=e?.id;s[0]!==c||s[1]!==b?(o=(0,oE.filteredRates)({roomId:b,channelId:c}),s[0]=c,s[1]=b,s[2]=o):o=s[2];let u=(0,r.useAtomValue)(o),p=(0,i.useAccommodationSearchResult)();s[3]!==e?.id||s[4]!==p?.roomsResult?(n=p?.roomsResult?.filter(o=>o.roomId===e?.id),s[3]=e?.id,s[4]=p?.roomsResult,s[5]=n):n=s[5];let h=n,f=m&&h&&h?.length>0,x=m&&f&&p?.accommodationSearch?.roomConfigs?.length===1&&u?.length===1&&u[0].ratesPerRoomConfig?.length===1&&!u[0].ratesPerRoomConfig[0].isLocked;return!!(d&&x)})(n),C=(0,u.useIsFetching)({queryKey:["accommodationsearch"]})>0;(0,a.useEffect)(()=>{C&&"slideOut"!==m?d("slideOut"):d("slideIn")},[C]);let j=h?.price?.displayOriginalPrice!==h?.price?.displayPrice,R=n?.rateAlternatives?.[0]?.ratesPerRoomConfig?.[0]?.numberOfExtrabeds??0,A=j?(0,oh.getSaveAmountOrPercentage)(h?.price,x.currencyCode,f?.showDiscountAsFixedAmount):void 0,S=(0,oH.getNumberOfGuestsFromRoomConfigs)({roomConfigs:h?.roomConfig!==void 0?[h.roomConfig]:[]})?.total,w=g([1,void 0].includes(S)?"EA4H.General.Guest_LOWER":"EA4H.General.Guests_LOWER");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(od.FewLeftRibbon,{className:"bv:absolute bv:left-0 bv:top-[10px]"}),(0,o.jsxs)(oB.SlidingContainer,{className:(0,N.cn)(m,"bv:right-0 bv:top-0 bv:w-max bv:max-w-[200px] bv:text-left bv:bv_medium:text-right"),children:[!c?.valid&&(0,o.jsxs)("div",{className:"bv:m-0",children:[(0,o.jsx)(eG.default,{className:"bv:inline bv:text-bv_offerColorDark",bold:!0,size:"small",children:c?.message}),c?.reason==="roomconfig"&&(0,o.jsxs)(eG.default,{size:"small",className:"bv:text-bv_cardColor!",children:[(0,o.jsx)("strong",{children:g("EA4H.General.UnavailableForSelectedNumberOfGuests")})," -"," ",g("EA4H.General.TryAdjustingNumberOfGuestsPerRoom").toLocaleLowerCase()]}),c?.reason==="dates"&&(0,o.jsxs)(o.Fragment,{children:[" - ",(0,o.jsx)("button",{className:"bv:inline bv:cursor-pointer bv:underline bv:bg-transparent bv:border-0 bv:p-0 bv:text-bv_cardColor bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight",onClick:()=>{y("accommodation details",{detailsPageParam:{paramName:"roomId",paramValue:n?.roomId}}),p(!1)},type:"button",children:g("EA4H.General.ViewAvailableDates")})]})]}),oO([n?.cheapestPrice,n?.cheapestPriceNoLock])&&e.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(eG.default,{bold:!0,className:(0,N.cn)("bv:whitespace-nowrap bv:text-bv_bodyFontSize bv:bv_medium:text-bv_bodyLargeFontSize",A?"bv:text-bv_offerColorDark":"bv:text-inherit"),children:[g("EA4H.General.From")," ",x.formatCurrency(h?.price?.displayPrice??0)," ",x.currencyCode]}),(0,o.jsxs)(eG.default,{size:"small",muted:!0,children:[(0,o.jsxs)("span",{className:"bv:lowercase",children:[[1,void 0].includes(f?.accommodationSearch?.numberOfNights)?g("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(g("EA4H.General.ForNightsLOWER"),f?.accommodationSearch?.numberOfNights),(0,oL.arrayHasItems)(f?.accommodationSearch?.roomConfigs)&&`, ${S} ${w}`,_&&R>0&&` ${(0,eA.GetTranslation)(g("EA4H.General.With{0}XBeds"),R)}`]}),A&&(0,o.jsxs)("span",{className:"bv:inline bv:whitespace-nowrap bv:text-bv_offerColorDark bv:bv_medium:block",children:[g("EA4H.General.AndYouSave")," ",A]})]})]})]})]})};var oD=e.i(87357),o$=e.i(495560),oW=e.i(994458),oV=e.i(348167),oU=e.i(752642),oq=e.i(458088),oK=e.i(931118);let oY=({room:e,showPrice:t,onMoreInfoClicked:n,lazyImage:c,...m})=>{let d=(0,s.useAccommodationTranslations)(),{channelInfo:b,channelId:v}=(0,l.useSinglePropertyContext)(),{getUrl:p}=(0,E.useNavigationManager)(),[h,f]=(0,a.useState)(""),x=(0,r.useAtomValue)((0,oE.filteredRates)({roomId:e.id,channelId:v})),{handleSelectFirstRate:g}=(0,oF.useSelectFirstRoomRate)(e),{isValidSearchConfig:y}=(0,oP.useIsValidRoomConfig)(e),{hasPrices:_,singleRoomSearchWithoutDormitoryBedsInSearchResult:C,isSingleRateResult:j}=(0,ok.useRoomResultInfo)(e,x),{collapsePriceList:R,priceListRef:A,showPrices:S}=(0,oG.usePriceListCollapseState)(),N=(0,i.useAccommodationSearchResult)(),w=(0,u.useIsFetching)({queryKey:["accommodationsearch"]})>0,[I,k]=(0,a.useState)(!1),F=async()=>
1{if(f(""),C)try{k(!0);let e=x[0].ratesPerRoomConfig[0],o=await g(e);!o.success&&o.errorString&&(f(d.dynamic(o.errorString)),k(!1))}catch(e){console.error("Error selecting first rate:",e),k(!1)}else R()},P=N?.roomsResult?.filter(o=>o.roomId===e.id)??[],G=P?.every(e=>0===e.nrAvailable),T=p("accommodation details",{detailsPageParam:{paramName:"roomId",paramValue:e.id}});return(0,o.jsx)(oc.RoomContextProvider,{Room:e,children:(0,o.jsxs)("article",{"data-testid":"room_card_classic",className:"bv:bv_medium:w-full",...m,children:[(0,o.jsxs)(oT.ClassicBase,{href:T,onClick:()=>n(e.id),images:e.images??[],altLabel:e.name,lazy:c,children:[(0,o.jsxs)(oW.ClassicBaseInfo,{title:e?.name??"",description:e?.searchResultText||(0,et.getPropertyTeaser)(e?.description),moreInfoAction:()=>n(e.id),moreInfoLink:T,children:[b?.displayRoomAttributesOnline&&(0,o.jsx)(oV.RoomAmenitiesGrid,{room:e,className:"bv:mt-0"}),!b?.displayRoomAttributesOnline&&(0,o.jsx)(oU.RoomInformationBlock,{room:e})]}),(0,o.jsx)(oq.ClassicPriceInfo,{priceInfo:P.length>0&&(0,o.jsx)(oz,{isValidSearchConfig:y,rates:x??[],room:P?.[0]}),actions:_?y?.valid&&(0,o.jsx)(oD.ChooseButton,{popoverOptions:{show:!!h,message:h,onClose:()=>f("")},rightArrow:j,className:"bv:bv_medium:invisible!",maxWidth:"max-content",flexBasis:"auto",isLoading:w||I,isDisabled:G,onClick:F,isSelected:S}):null})]}),_&&x&&x.length>0&&(0,o.jsxs)("div",{ref:A,children:[(0,o.jsx)("div",{className:"bv:relative bv:contents bv:bv_medium:hidden",children:(0,o.jsx)(oK.Collapse,{open:S,overflowVisible:!0,children:(0,o.jsx)(o$.PriceList,{noArrow:!0,rates:x??[]})})}),(0,o.jsx)("div",{className:"bv:hidden bv:bv_medium:contents",children:(0,o.jsx)(o$.PriceList,{noArrow:!0,rates:x??[]})})]})]})})};var oQ=e.i(750214);let oX=e=>{let o=(0,i.useAccommodationSearchResult)(),{data:t}=(0,b.useGuestRooms)(),{channelId:r}=(0,l.useSinglePropertyContext)(),n=(0,s.useAccommodationTranslations)(),c=(0,oQ.useAtomCallback)((0,a.useCallback)((e,o,{roomId:t})=>e((0,oE.filteredRates)({roomId:t,channelId:r})),[o]));return{hasAvailableRoomsForConfig:!((0,oL.arrayHasItems)(e.availableRooms)||!o?.roomsResult?e.availableRooms?.every(e=>(c({roomId:e.id})??[])?.length===0):e.unavailableRooms?.every(e=>{let a=t?.rooms.find(o=>o.id===e.id),r=o?.roomsResult?.filter(o=>e.id===o.roomId)?.[0];return(0,et.isRoomConfigValidForGuestroom)(n,o?.accommodationSearch?.roomConfigs??[],a,r)?.valid===!1}))}};var oJ=e.i(94267);let oZ=e=>{let n,c,m,d,b,v,p,h=(0,t.c)(20),{roomGroup:f,unavailableForCurrentSearch:x}=e,[g,y]=(0,a.useState)("slideOut"),_=f.availableRooms?.map(o0)??[],{channelInfo:C}=(0,l.useSinglePropertyContext)(),j=(0,r.useAtomValue)((0,oJ.cheapestAvailableRoomRateInRoomGroupState)({roomIds:_,channelId:C.channelId})),R=(0,i.useAccommodationSearchResult)(),A=(0,ey.useCurrencyFormatter)(),S=(0,s.useAccommodationTranslations)();h[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:["accommodationsearch"]},h[0]=n):n=h[0];let w=(0,u.useIsFetching)(n)>0;return h[1]!==g||h[2]!==w?(c=()=>{w&&"slideOut"!==g?y("slideOut"):y("slideIn")},h[1]=g,h[2]=w,h[3]=c):c=h[3],h[4]!==w?(m=[w],h[4]=w,h[5]=m):m=h[5],(0,a.useEffect)(c,m),h[6]!==g?(d=(0,N.cn)(g,"bv:right-0 bv:top-0 bv:w-max bv:max-w-[200px] bv:text-left bv:bv_medium:text-right"),h[6]=g,h[7]=d):d=h[7],h[8]!==S||h[9]!==x?(b=x&&(0,o.jsxs)(eG.default,{size:"small",className:"bv:text-bv_offerColorDark",children:[(0,o.jsx)("strong",{children:S("EA4H.General.UnavailableForYourSearch")})," -"," ",S("EA4H.General.TryChangingRoomConfig").toLocaleLowerCase()]}),h[8]=S,h[9]=x,h[10]=b):b=h[10],h[11]!==j||h[12]!==A||h[13]!==R?.accommodationSearch?.numberOfNights||h[14]!==S?(v=oO([j])&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(eG.default,{bold:!0,className:"bv:whitespace-nowrap bv:text-bv_bodyFontSize bv:bv_medium:text-bv_bodyLargeFontSize",children:[S("EA4H.General.From")," ",(0,o.jsxs)("span",{children:[A.formatCurrency(j?.price?.displayPrice??0)," ",A?.currencyCode]})]}),(0,o.jsx)(eG.default,{size:"small",muted:!0,className:"bv:lowercase",children:[1,void 0].includes(R?.accommodationSearch?.numberOfNights)?S("EA4H.General.ForOneNight"):S("EA4H.General.ForNightsLOWER",R?.accommodationSearch?.numberOfNights)})]}),h[11]=j,h[12]=A,h[13]=R?.accommodationSearch?.numberOfNights,h[14]=S,h[15]=v):v=h[15],h[16]!==d||h[17]!==b||h[18]!==v?(p=(0,o.jsxs)(oB.SlidingContainer,{className:d,children:[b,v]}),h[16]=d,h[17]=b,h[18]=v,h[19]=p):p=h[19],p};function o0(e){return e.id}var o1=e.i(209089);let o4=e=>{let n,s,c,m,d,b,v,u,p,f,g,y,_,C,j=(0,t.c)(46);j[0]!==e?({roomGroup:s,...n}=e,j[0]=e,j[1]=n,j[2]=s):(n=j[1],s=j[2]);let{channelId:R}=(0,l.useSinglePropertyContext)(),A=s.availableRooms?.map(o2)??[],S=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:A,channelId:R}))?.rates??[],N=(0,a.useRef)(null),[w,I]=(0,a.useState)(!1),k=S[0]?.cheapestRateAlternative;j[3]!==k?(c=[k],j[3]=k,j[4]=c):c=j[4];let{images:F,isSearching:P,isAddingToBasket:G,hasPrices:T,hasAvailableRooms:B,singleSearch:L}=x(s,c),H=(0,i.useAccommodationSearchResult)(),{getUrl:O}=(0,E.useNavigationManager)(),{hasAvailableRoomsForConfig:M}=oX(s);j[5]!==s.mapImageId?(m=s?.mapImageId?(0,h.imageIdsToImageInfo)([s.mapImageId])[0].url:void 0,j[5]=s.mapImageId,j[6]=m):m=j[6];let $=m;j[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{I(e=>{let o=!e;return o&&N?.current?.scrollIntoView({behavior:"smooth",block:"center"}),o})},j[7]=d):d=j[7];let W=d;j[8]!==O||j[9]!==s.roomGroupId?(b=O("room group info",{detailsPageParam:{paramName:"roomtypegroupid",paramValue:s.roomGroupId}}),j[8]=O,j[9]=s.roomGroupId,j[10]=b):b=j[10];let V=b,U=s?.name??"",q=s?.description??"";return j[11]!==$?(v=$&&(0,o.jsx)(z.AreaMapButton,{mapImageUrl:$}),j[11]=$,j[12]=v):v=j[12],j[13]!==V||j[14]!==U||j[15]!==q||j[16]!==v?(u=(0,o.jsx)(oW.ClassicBaseInfo,{title:U,description:q,moreInfoLink:V,children:v}),j[13]=V,j[14]=U,j[15]=q,j[16]=v,j[17]=u):u=j[17],j[18]!==M||j[19]!==s||j[20]!==H?(p=H&&(0,o.jsx)(oZ,{unavailableForCurrentSearch:!M,roomGroup:s}),j[18]=M,j[19]=s,j[20]=H,j[21]=p):p=j[21],j[22]!==B||j[23]!==T||j[24]!==G||j[25]!==P||j[26]!==w||j[27]!==L?(f=T&&(0,o.jsx)(oD.ChooseButton,{className:"bv:bv_medium:invisible!",maxWidth:"max-content",flexBasis:"auto",isLoading:P||G&&L,isDisabled:!B,onClick:W,isSelected:w}),j[22]=B,j[23]=T,j[24]=G,j[25]=P,j[26]=w,j[27]=L,j[28]=f):f=j[28],j[29]!==p||j[30]!==f?(g=(0,o.jsx)(oq.ClassicPriceInfo,{priceInfo:p,actions:f}),j[29]=p,j[30]=f,j[31]=g):g=j[31],j[32]!==F||j[33]!==V||j[34]!==s.name||j[35]!==g||j[36]!==u?(y=(0,o.jsxs)(oT.ClassicBase,{href:V,images:F,altLabel:s.name,children:[u,g]}),j[32]=F,j[33]=V,j[34]=s.name,j[35]=g,j[36]=u,j[37]=y):y=j[37],j[38]!==S||j[39]!==T||j[40]!==w?(_=T&&(0,o.jsxs)("div",{ref:N,children:[(0,o.jsx)("div",{className:"bv:relative bv:contents bv:bv_medium:hidden",children:(0,o.jsx)(oK.Collapse,{open:w,overflowVisible:!0,children:(0,o.jsx)(o1.RoomGroupPriceList,{noArrow:!0,rates:S??[]})})}),(0,o.jsx)("div",{className:"bv:hidden bv:bv_medium:contents",children:(0,o.jsx)(o1.RoomGroupPriceList,{noArrow:!0,rates:S??[]})})]}),j[38]=S,j[39]=T,j[40]=w,j[41]=_):_=j[41],j[42]!==n||j[43]!==y||j[44]!==_?(C=(0,o.jsxs)("article",{"data-testid":"room_group_card_classic",className:"bv:bv_medium:w-full",...n,children:[y,_]}),j[42]=n,j[43]=y,j[44]=_,j[45]=C):C=j[45],C};function o2(e){return e.id}var o3=e.i(409490),o5=e.i(748350);let o6=e=>{let a,n,l,c,m,b,v,u,p,h,f,x,g,y,_,j,R,A,S,w,I,k,F,P,G,T,B,L,O,z,D,$,W,V,U,q,K,Y,J,ee,eo,ea,er,ei,en,el,es,ec,em,ed=(0,t.c)(185);if(ed[0]!==e){let{room:o,showPrice:t,onMoreInfoClicked:r,onImageButtonClicked:i,unavailabilityInfo:s,forPackageId:d,forPackageName:p,lazyImage:h,...f}=e;v=o,m=r,c=i,u=s,a=d,n=p,l=h,b=f,ed[0]=e,ed[1]=a,ed[2]=n,ed[3]=l,ed[4]=c,ed[5]=m,ed[6]=b,ed[7]=v,ed[8]=u}else a=ed[1],n=ed[2],l=ed[3],c=ed[4],m=ed[5],b=ed[6],v=ed[7],u=ed[8];let{getUrl:eb}=(0,E.useNavigationManager)(),ev=(0,i.useAccommodationSearchResult)(),ep=(0,ey.useCurrencyFormatter)(),eh=(0,s.useAccommodationTranslations)(),ef=!!a;ed[9]!==ef?(p={forSpecificPackage:ef},ed[9]=ef,ed[10]=p):p=ed[10];let ex=eu(p),eg=(0,e_.default)(),eC=(0,eI.useThreeLetterMonths)(),{data:ej}=(0,d.useBasket)(),eS=ej?.booking?.bookingData?.rooms??Z.EMPTY_ARRAY,eN=(0,r.useAtomValue)(Q.skippedRoomConfigsState),ew=(0,X.findMissingRoomConfigIndex)(ev?.accommodationSearch?.roomConfigs,eS,eN),ek=(0,or.useFilteredRates)(v.id),eF=ev?.accommodationSearch?.roomConfigs&&ev.accommodationSearch.roomConfigs.length>1,eP=ew>=0?ev?.accommodationSearch?.roomConfigs?.[ew]:void 0,eT=eP?.adults||0,eE=eP?.childAges?.length||0;ed[11]!==ek||ed[12]!==eT||ed[13]!==eE||ed[14]!==eF||ed[15]!==ew?(h=eF&&ew>=0?ek.filter(e=>!!e.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,t=e.roomConfig?.childAges?.length||0;return o===eT&&t===eE&&e.totalPrice?.priceInclVAT!==void 0&&e.totalPrice.priceInclVAT>0})):ek,ed[11]=ek,ed[12]=eT,ed[13]=eE,ed[14]=eF,ed[15]=ew,ed[16]=h):h=ed[16];let eL=h,{hasPrices:eH}=(0,ok.useRoomResultInfo)(v,eL);if(ed[17]!==eT||ed[18]!==eE||ed[19]!==a||ed[20]!==eF||ed[21]!==eL||ed[22]!==v.id||ed[23]!==ew||ed[24]!==ev||ed[25]!==eC||ed[26]!==eh){let e,o=(0,et.getDisplayRoomResult)(ev,v.id,a,eL);x=o?.cheapestPrice;let t=eF&&ew>=0;g=of(o?.rateAlternatives??[],x,t?{adults:eT,childCount:eE}:void 0),y=(A=Math.max(o?.cheapestPriceNoLock??0,g?.originalPrice??0))&&x&&A>x,ed[38]!==ev?.accommodationSearch?.numberOfNights||ed[39]!==eh?(e=[1,void 0].includes(ev?.accommodationSearch?.numberOfNights)?eh("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(eh("EA4H.General.ForNightsLOWER"),ev?.accommodationSearch?.numberOfNights),ed[38]=ev?.accommodationSearch?.numberOfNights,ed[39]=eh,ed[40]=e):e=ed[40],R=e;let r=o?.rateAlternatives?.[0];w=r?.ratesPerRoomConfig?.[0],f=ev?.cancellationPolicy?.find(e=>e.id===w?.cancellationPolicyId),S=ev?.paymentPolicy?.find(e=>e.id===w?.paymentPolicyId),_=f?.nonRefundable;let i=w?.lastFreeCancellationDate?(0,et.toUTCDate)(new Date(w.lastFreeCancellationDate)):void 0,n=new Date;j=n&&i&&(0,op.isBefore)(n,i),I=i&&`${i.getDate()} ${eC[i.getMonth()]}`,ed[17]=eT,ed[18]=eE,ed[19]=a,ed[20]=eF,ed[21]=eL,ed[22]=v.id,ed[23]=ew,ed[24]=ev,ed[25]=eC,ed[26]=eh,ed[27]=f,ed[28]=x,ed[29]=g,ed[30]=y,ed[31]=_,ed[32]=j,ed[33]=R,ed[34]=A,ed[35]=S,ed[36]=w,ed[37]=I}else f=ed[27],x=ed[28],g=ed[29],y=ed[30],_=ed[31],j=ed[32],R=ed[33],A=ed[34],S=ed[35],w=ed[36],I=ed[37];let eO=I;ed[41]!==eb||ed[42]!==v.id?(k=eb("accommodation details",{detailsPageParam:{paramName:"roomId",paramValue:v.id}}),ed[41]=eb,ed[42]=v.id,ed[43]=k):k=ed[43];let eM=k,ez=`room-title-${v.id}`,eD=u?.unavailable??!1,e$=u?.reason==="payment_policy",eW=!!eF&&!eD&&!e$&&0===eL.length&&!!(x||ek.length>0);ed[44]!==eh||ed[45]!==u?(F=()=>
1{if(!u)return null;switch(u.reason){case"occupancy":{let e=u.maxOccupancy??0;return(0,eA.GetTranslation)(eh("EA4H.General.Max{0}Persons"),e)}case"payment_policy":return eh("EA4H.General.RequiresSeparateBooking");default:return eh("EA4H.General.Unavailable")}},ed[44]=eh,ed[45]=u,ed[46]=F):F=ed[46];let eV=F,eU=!!eF;ed[47]!==eT||ed[48]!==eE||ed[49]!==a||ed[50]!==eL||ed[51]!==v.id||ed[52]!==v.name||ed[53]!==ew||ed[54]!==eU?(P={roomId:v.id,roomName:v.name,rates:eL,forPackageId:a,isMultiRoomMode:eU,roomConfigIndex:ew,expectedAdults:eT,expectedChildCount:eE},ed[47]=eT,ed[48]=eE,ed[49]=a,ed[50]=eL,ed[51]=v.id,ed[52]=v.name,ed[53]=ew,ed[54]=eU,ed[55]=P):P=ed[55];let{isSingleRatePackage:eq,isBooking:eK,bookDirectly:eY}=os(P);ed[56]!==m||ed[57]!==v.id?(G=e=>{e.stopPropagation(),m(v.id)},ed[56]=m,ed[57]=v.id,ed[58]=G):G=ed[58];let eQ=G;ed[59]!==f||ed[60]!==S||ed[61]!==w?.priceBreakDown||ed[62]!==eg?(T=e=>{e.preventDefault(),e.stopPropagation(),eg.open({cancellationPolicies:f?[f]:void 0,paymentPolicy:S,priceBreakdown:w?.priceBreakDown,defaultTab:"terms"})},ed[59]=f,ed[60]=S,ed[61]=w?.priceBreakDown,ed[62]=eg,ed[63]=T):T=ed[63];let eX=T;ed[64]!==eY||ed[65]!==eS||ed[66]!==x||ed[67]!==a||ed[68]!==n||ed[69]!==eq||ed[70]!==ex||ed[71]!==A||ed[72]!==v||ed[73]!==ew?(B=async e=>{(e.stopPropagation(),eq)?await eY():ex({images:v.images?.map(o7).filter(o8)||[],price:x,fromPrice:A,room:v,defaultTab:"book-now",roomConfigIndex:ew>=0?ew:eS.length,forPackageId:a,forPackageName:n})},ed[64]=eY,ed[65]=eS,ed[66]=x,ed[67]=a,ed[68]=n,ed[69]=eq,ed[70]=ex,ed[71]=A,ed[72]=v,ed[73]=ew,ed[74]=B):B=ed[74];let eJ=B,eZ=eD&&"bv:opacity-60";ed[75]!==eZ?(L=(0,N.cn)("bv:bv_medium:w-full",eZ),ed[75]=eZ,ed[76]=L):L=ed[76],ed[77]!==m||ed[78]!==v.id?(O=()=>m(v.id),ed[77]=m,ed[78]=v.id,ed[79]=O):O=ed[79],ed[80]!==c||ed[81]!==m||ed[82]!==v.id?(z=()=>c?c(v.id):m(v.id),ed[80]=c,ed[81]=m,ed[82]=v.id,ed[83]=z):z=ed[83],ed[84]!==v.images?(D=v.images??[],ed[84]=v.images,ed[85]=D):D=ed[85];let e0=v.name;ed[86]===Symbol.for("react.memo_cache_sentinel")?($=(0,o.jsx)(od.FewLeftRibbon,{className:"bv:absolute bv:left-0 bv:top-[10px]"}),ed[86]=$):$=ed[86];let e1=v?.name??"";return ed[87]!==v.description||ed[88]!==v.searchResultText?(W=v?.searchResultText||(0,et.getPropertyTeaser)(v?.description),ed[87]=v.description,ed[88]=v.searchResultText,ed[89]=W):W=ed[89],ed[90]!==v?(V=(0,o.jsx)(ou,{room:v}),ed[90]=v,ed[91]=V):V=ed[91],ed[92]!==e1||ed[93]!==W||ed[94]!==V||ed[95]!==ez?(U=(0,o.jsx)(M.NewClassicBaseInfo,{title:e1,description:W,titleId:ez,children:V}),ed[92]=e1,ed[93]=W,ed[94]=V,ed[95]=ez,ed[96]=U):U=ed[96],ed[97]!==eh?(q=eh("EA4H.General.ReadMore"),ed[97]=eh,ed[98]=q):q=ed[98],ed[99]!==eQ||ed[100]!==q?(K=(0,o.jsx)("button",{onClick:eQ,className:"bv:mt-[3px] bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:text-left bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:text-bv_linkColor bv:hover:underline",type:"button",children:q}),ed[99]=eQ,ed[100]=q,ed[101]=K):K=ed[101],ed[102]!==eV||ed[103]!==eD?(Y=eD&&(0,o.jsx)("div",{className:"bv:mt-[24px] bv:flex bv:flex-col bv:gap-[8px]","aria-live":"polite",children:(0,o.jsx)("div",{className:"bv:flex bv:items-center bv:gap-[8px] bv:rounded-bv_cardBorderRadius bv:bg-amber-50 bv:px-[12px] bv:py-[10px]",children:(0,o.jsx)(eG.default,{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-700",children:eV()})})}),ed[102]=eV,ed[103]=eD,ed[104]=Y):Y=ed[104],ed[105]!==eJ||ed[106]!==e$||ed[107]!==eh?(J=e$&&(0,o.jsxs)("div",{className:"bv:mt-[24px] bv:flex bv:flex-col bv:gap-[16px] bv:bv_medium:hidden","aria-live":"polite",children:[(0,o.jsx)("div",{className:"bv:flex bv:min-h-[44px] bv:items-center bv:justify-center bv:gap-[8px] bv:rounded-bv_cardBorderRadius bv:bg-amber-50 bv:px-[12px]",children:(0,o.jsx)(eG.default,{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-700",children:eh("EA4H.General.RequiresSeparateBooking")})}),(0,o.jsx)(eR.Button,{onClick:eJ,className:"bv:min-h-[44px]! bv:w-full bv:max-w-full!",type:"button","data-testid":"room_card_new_classic_choose_button",children:eh("EA4H.General.Choose")})]}),ed[105]=eJ,ed[106]=e$,ed[107]=eh,ed[108]=J):J=ed[108],ed[109]!==x||ed[110]!==ep||ed[111]!==eJ||ed[112]!==eW||ed[113]!==R||ed[114]!==eh?(ee=eW&&(0,o.jsxs)("div",{className:"bv:mt-[24px] bv:flex bv:flex-col bv:gap-[16px] bv:bv_medium:hidden","aria-live":"polite",children:[x&&(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[4px]",children:[(0,o.jsxs)("span",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight",children:[eh("EA4H.General.From")," ",ep.formatCurrency(x)," ",ep.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:lowercase bv:leading-bv_smallLineHeight",children:R})]}),(0,o.jsx)(eR.Button,{onClick:eJ,className:"bv:min-h-[44px]! bv:w-full bv:max-w-full!",type:"button","data-testid":"room_card_new_classic_choose_button",children:eh("EA4H.General.Choose")})]}),ed[109]=x,ed[110]=ep,ed[111]=eJ,ed[112]=eW,ed[113]=R,ed[114]=eh,ed[115]=ee):ee=ed[115],ed[116]!==x||ed[117]!==eQ||ed[118]!==eH||ed[119]!==eD||ed[120]!==eW||ed[121]!==eL||ed[122]!==e$||ed[123]!==eh?(eo=!eD&&!e$&&!eW&&!(eH&&x&&eL.length>0)&&(0,o.jsx)("div",{className:"bv:mt-[24px] bv:flex bv:flex-col bv:bv_medium:items-end",children:(0,o.jsx)(eR.Button,{onClick:eQ,variant:"secondaryOutline",className:"bv:min-h-[44px]! bv:w-full bv:max-w-full! bv:bv_medium:w-auto bv:bv_medium:max-w-max! bv:bv_medium:min-w-[160px]!",type:"button","data-testid":"room_card_new_classic_more_info_button",children:eh("EA4H.General.ViewDetails")})}),ed[116]=x,ed[117]=eQ,ed[118]=eH,ed[119]=eD,ed[120]=eW,ed[121]=eL,ed[122]=e$,ed[123]=eh,ed[124]=eo):eo=ed[124],ed[125]!==x||ed[126]!==ep||ed[127]!==g||ed[128]!==eX||ed[129]!==eJ||ed[130]!==y||ed[131]!==eH||ed[132]!==eK||ed[133]!==_||ed[134]!==j||ed[135]!==eD||ed[136]!==eO||ed[137]!==R||ed[138]!==A||ed[139]!==eL||ed[140]!==e$||ed[141]!==v.id||ed[142]!==eh?(ea=!eD&&!e$&&eH&&x&&eL.length>0&&(0,o.jsxs)("div",{className:"bv:mt-[24px] bv:flex bv:flex-col bv:bv_medium:hidden","aria-live":"polite",children:[(0,o.jsxs)("div",{id:`price-info-${v.id}`,className:"bv:flex bv:flex-col bv:gap-[4px]",children:[y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:opacity-bv_bodyMutedOpacity",children:[eh("EA4H.General.From")," ",(0,o.jsxs)("span",{className:"bv:line-through",children:[ep.formatCurrency(A)," ",ep.currencyCode]})]}),(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[4px]",children:[(0,o.jsxs)("span",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_offerColorDark",children:[ep.formatCurrency(x)," ",ep.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:lowercase bv:leading-bv_smallLineHeight bv:text-bv_offerColorDark",children:R})]}),g&&(0,o.jsx)(o5.OfferBadge,{rateAlternative:g.rateAlternative,className:"bv:mt-[4px] bv:self-start"})]}),!y&&(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[4px]",children:[(0,o.jsxs)("span",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight",children:[eh("EA4H.General.From")," ",ep.formatCurrency(x)," ",ep.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:lowercase bv:leading-bv_smallLineHeight",children:R})]})]}),(0,o.jsx)(eR.Button,{onClick:eJ,className:"bv:mt-[16px] bv:min-h-[44px]! bv:w-full bv:max-w-full!","aria-describedby":`price-info-${v.id}`,type:"button","data-testid":"room_card_new_classic_choose_button",disabled:eK,isLoading:eK,children:eh("EA4H.General.Choose")}),(j||_)&&(0,o.jsxs)("button",{onClick:eX,className:"bv:mt-[8px] bv:flex bv:w-full bv:cursor-pointer bv:items-center bv:ju
1stify-center bv:gap-[6px] bv:border-0 bv:bg-transparent bv:p-0",children:[(0,o.jsx)(C.FontAwesomeIcon,{icon:eB.faArrowUpRightFromSquare,className:"bv:h-[12px] bv:w-[12px] bv:text-bv_linkColor"}),(0,o.jsxs)("span",{className:"bv:text-bv_linkColor bv:underline bv:transition-all bv:duration-200 bv:ease-in-out",style:{textDecorationColor:"transparent"},onMouseEnter:o9,onMouseLeave:te,children:[(0,o.jsx)(eG.default,{size:"small",className:"bv:text-bv_linkColor",bold:!0,span:!0,children:j?eh("EA4H.General.FreeCancellation"):eh("EA4H.General.NonFreeCancellation")}),j&&eO&&(0,o.jsx)(eG.default,{size:"small",className:"bv:text-bv_linkColor",span:!0,children:` ${eh("EA4H.General.Before_LOWER")} ${eO}`})]})]})]}),ed[125]=x,ed[126]=ep,ed[127]=g,ed[128]=eX,ed[129]=eJ,ed[130]=y,ed[131]=eH,ed[132]=eK,ed[133]=_,ed[134]=j,ed[135]=eD,ed[136]=eO,ed[137]=R,ed[138]=A,ed[139]=eL,ed[140]=e$,ed[141]=v.id,ed[142]=eh,ed[143]=ea):ea=ed[143],ed[144]!==l||ed[145]!==eM||ed[146]!==v.name||ed[147]!==O||ed[148]!==z||ed[149]!==D||ed[150]!==U||ed[151]!==K||ed[152]!==Y||ed[153]!==J||ed[154]!==ee||ed[155]!==eo||ed[156]!==ea||ed[157]!==ez?(er=(0,o.jsxs)(H.ClassicBase,{href:eM,lazy:l,onClick:O,onImageButtonClick:z,images:D,altLabel:e0,titleId:ez,imageOverlay:$,children:[U,K,Y,J,ee,eo,ea]}),ed[144]=l,ed[145]=eM,ed[146]=v.name,ed[147]=O,ed[148]=z,ed[149]=D,ed[150]=U,ed[151]=K,ed[152]=Y,ed[153]=J,ed[154]=ee,ed[155]=eo,ed[156]=ea,ed[157]=ez,ed[158]=er):er=ed[158],ed[159]!==e$||ed[160]!==eh?(ei=e$&&(0,o.jsx)("div",{className:"bv:mt-[24px] bv:hidden bv:bv_medium:block",children:(0,o.jsx)("div",{className:"bv:flex bv:min-h-[44px] bv:items-center bv:justify-center bv:gap-[8px] bv:rounded-bv_cardBorderRadius bv:bg-amber-50 bv:px-[12px]",children:(0,o.jsx)(eG.default,{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-700",children:eh("EA4H.General.RequiresSeparateBooking")})})}),ed[159]=e$,ed[160]=eh,ed[161]=ei):ei=ed[161],ed[162]!==eJ||ed[163]!==eW||ed[164]!==eh?(en=eW&&(0,o.jsx)("div",{className:"bv:mt-[24px] bv:hidden bv:bv_medium:block",children:(0,o.jsx)(eR.Button,{onClick:eJ,className:"bv:min-h-[44px]! bv:w-full bv:max-w-full!",type:"button","data-testid":"room_card_new_classic_choose_button",children:eh("EA4H.General.Choose")})}),ed[162]=eJ,ed[163]=eW,ed[164]=eh,ed[165]=en):en=ed[165],ed[166]!==eH||ed[167]!==eD||ed[168]!==eL||ed[169]!==e$||ed[170]!==ew?(el=!eD&&!e$&&eH&&eL&&eL.length>0&&(0,o.jsx)("div",{className:"bv:mt-[24px] bv:hidden bv:bv_medium:block",children:(0,o.jsx)(o3.Rates,{rateAlternatives:eL,roomConfigIndex:ew>=0?ew:void 0})}),ed[166]=eH,ed[167]=eD,ed[168]=eL,ed[169]=e$,ed[170]=ew,ed[171]=el):el=ed[171],ed[172]!==eg.Sheet?(es=(0,o.jsx)(eg.Sheet,{}),ed[172]=eg.Sheet,ed[173]=es):es=ed[173],ed[174]!==b||ed[175]!==L||ed[176]!==er||ed[177]!==ei||ed[178]!==en||ed[179]!==el||ed[180]!==es?(ec=(0,o.jsxs)("article",{"data-testid":"room_card_new_classic",className:L,...b,children:[er,ei,en,el,es]}),ed[174]=b,ed[175]=L,ed[176]=er,ed[177]=ei,ed[178]=en,ed[179]=el,ed[180]=es,ed[181]=ec):ec=ed[181],ed[182]!==v||ed[183]!==ec?(em=(0,o.jsx)(oc.RoomContextProvider,{Room:v,children:ec}),ed[182]=v,ed[183]=ec,ed[184]=em):em=ed[184],em};function o7(e){return e.url}function o8(e){return void 0!==e}function o9(e){return e.currentTarget.style.textDecorationColor="var(--bv-linkColor)"}function te(e){return e.currentTarget.style.textDecorationColor="transparent"}var to=e.i(729087),tt=e.i(281489),ta=e.i(645339),tr=e.i(440033);let ti=e=>{let n,c,m,d,b,v=(0,t.c)(14),{roomGroup:p,singleSearch:h,unavailableForCurrentSearch:f}=e,[x,g]=(0,a.useState)("slideOut"),y=p?.availableRooms?.map(tn),{channelInfo:_}=(0,l.useSinglePropertyContext)(),C=(0,r.useAtomValue)((0,oJ.cheapestAvailableRoomRateInRoomGroupState)({roomIds:y,channelId:_.channelId})),j=(0,i.useAccommodationSearchResult)(),R=(0,s.useAccommodationTranslations)();v[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:["accommodationsearch"]},v[0]=n):n=v[0];let A=(0,u.useIsFetching)(n)>0,S=(0,ey.useCurrencyFormatter)(),w=C?.price?.displayOriginalPrice!==C?.price?.displayPrice?(0,oh.getSaveAmountOrPercentage)(C?.price,S.currencyCode,j?.showDiscountAsFixedAmount):void 0;v[1]!==x||v[2]!==A?(c=()=>{A&&"slideOut"!==x?g("slideOut"):g("slideIn")},v[1]=x,v[2]=A,v[3]=c):c=v[3],v[4]!==A?(m=[A],v[4]=A,v[5]=m):m=v[5],(0,a.useEffect)(c,m);let I=oB.SlidingContainer;v[6]!==R||v[7]!==f?(d=f&&(0,o.jsxs)(eG.default,{bold:!0,size:"small",className:"bv:text-bv_offerColorDark",children:[(0,o.jsx)("strong",{children:R("EA4H.General.UnavailableForYourSearch")})," -"," ",R("EA4H.General.TryChangingRoomConfig").toLocaleLowerCase()]}),v[6]=R,v[7]=f,v[8]=d):d=v[8];let k=C&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(eG.default,{bold:!0,className:(0,N.cn)("bv:text-bv_bodyFontSize bv:bv_medium:text-bv_bodyLargeFontSize",w&&"bv:text-bv_offerColorDark"),children:[!h&&R("EA4H.General.From")," ",S.formatCurrency(C.price?.displayPrice??0)," ",S?.currencyCode]}),(0,o.jsxs)(eG.default,{size:"small",muted:!0,children:[(0,o.jsxs)("span",{className:"bv:lowercase",children:[[1,void 0].includes(j?.accommodationSearch?.numberOfNights)?R("EA4H.General.ForOneNight"):R("EA4H.General.ForNightsLOWER",j?.accommodationSearch?.numberOfNights)," "]}),w&&(0,o.jsxs)("span",{className:"bv:whitespace-nowrap bv:text-bv_offerColorDark",children:[R("EA4H.General.AndYouSave")," ",w]})]})]});return v[9]!==I||v[10]!==x||v[11]!==d||v[12]!==k?(b=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(I,{className:x,children:[d,k]})}),v[9]=I,v[10]=x,v[11]=d,v[12]=k,v[13]=b):b=v[13],b};function tn(e){return e.id}var tl=e.i(522016);let ts=e=>{let n,c,m,d,b,v,u,p,f,g,y,_,C=(0,t.c)(46),{roomGroup:j}=e,{channelId:R}=(0,l.useSinglePropertyContext)(),A=(0,s.useAccommodationTranslations)(),S=j.availableRooms?.map(tc)??[],N=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:S,channelId:R}))?.rates??[],w=(0,a.useRef)(null),[I,k]=(0,a.useState)(!1),F=N[0]?.cheapestRateAlternative;
1C[0]!==F?(n=[F],C[0]=F,C[1]=n):n=C[1];let{images:P,isSearching:G,isAddingToBasket:T,hasPrices:B,hasAvailableRooms:L,singleSearch:H}=x(j,n),O=(0,i.useAccommodationSearchResult)(),{getUrl:M}=(0,E.useNavigationManager)(),{hasAvailableRoomsForConfig:$}=oX(j);C[2]!==j.mapImageId?(c=j?.mapImageId?(0,h.imageIdsToImageInfo)([j.mapImageId])[0].url:void 0,C[2]=j.mapImageId,C[3]=c):c=C[3];let W=c;C[4]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{k(e=>{let o=!e;return o&&w?.current?.scrollIntoView({behavior:"smooth",block:"center"}),o})},C[4]=m):m=C[4];let V=m;C[5]!==M||C[6]!==j.roomGroupId?(d=M("room group info",{detailsPageParam:{paramName:"roomtypegroupid",paramValue:j.roomGroupId}}),C[5]=M,C[6]=j.roomGroupId,C[7]=d):d=C[7];let U=d,q=j?.name??"",K=j?.description??"";return C[8]!==W?(b=W&&(0,o.jsx)(z.AreaMapButton,{mapImageUrl:W}),C[8]=W,C[9]=b):b=C[9],C[10]!==U||C[11]!==q||C[12]!==K||C[13]!==b?(v=(0,o.jsx)(ta.PlateProductCardBaseInfo,{title:q,description:K,moreInfoLink:U,children:b}),C[10]=U,C[11]=q,C[12]=K,C[13]=b,C[14]=v):v=C[14],C[15]!==$||C[16]!==j||C[17]!==O?(u=O&&(0,o.jsx)(ti,{unavailableForCurrentSearch:!$,roomGroup:j}),C[15]=$,C[16]=j,C[17]=O,C[18]=u):u=C[18],C[19]!==L||C[20]!==$||C[21]!==B||C[22]!==T||C[23]!==G||C[24]!==U||C[25]!==j.name||C[26]!==I||C[27]!==H||C[28]!==A?(p=$?B?(0,o.jsx)(oD.ChooseButton,{maxWidth:"max-content",flexBasis:"auto",isLoading:G||T&&H,isDisabled:!L,onClick:V,isSelected:I}):(0,o.jsx)(tl.default,{href:U,children:(0,o.jsx)(eR.Button,{isLoading:G,className:"bv:w-auto bv:min-w-[130px] bv:whitespace-nowrap","aria-description":j.name,children:A("EA4H.General.MoreInfo")})}):null,C[19]=L,C[20]=$,C[21]=B,C[22]=T,C[23]=G,C[24]=U,C[25]=j.name,C[26]=I,C[27]=H,C[28]=A,C[29]=p):p=C[29],C[30]!==u||C[31]!==p?(f=(0,o.jsx)(tr.PlateProductCardPriceInfo,{priceInfo:u,actions:p}),C[30]=u,C[31]=p,C[32]=f):f=C[32],C[33]!==P||C[34]!==U||C[35]!==j.name||C[36]!==f||C[37]!==v?(g=(0,o.jsxs)(tt.PlateProductCardBase,{"data-testid":"room_group_card_plate",href:U,images:P,altLabel:j.name,children:[v,f]}),C[33]=P,C[34]=U,C[35]=j.name,C[36]=f,C[37]=v,C[38]=g):g=C[38],C[39]!==N||C[40]!==B||C[41]!==I?(y=B&&(0,o.jsx)("div",{ref:w,children:(0,o.jsx)("div",{className:"bv:relative bv:contents",children:(0,o.jsx)(oK.Collapse,{open:I,overflowVisible:!0,children:(0,o.jsx)(o1.RoomGroupPriceList,{noArrow:!0,rates:N??[]})})})}),C[39]=N,C[40]=B,C[41]=I,C[42]=y):y=C[42],C[43]!==g||C[44]!==y?(_=(0,o.jsxs)("article",{className:"bv:bv_medium:w-full",children:[g,y]}),C[43]=g,C[44]=y,C[45]=_):_=C[45],_};function tc(e){return e.id}var tm=e.i(995008),td=e.i(428305),tb=e.i(164825),tv=e.i(320643),tu=e.i(107918);let tp=e=>{let a,r,i,n,l=(0,t.c)(13),{name:s,description:c,price:m,currency:d,url:b,availability:v}=e;if(!s||void 0===m||!d||!Number.isFinite(m)||m<0)return null;if(l[0]!==v||l[1]!==d||l[2]!==c||l[3]!==s||l[4]!==m||l[5]!==b){let e={"@context":"https://schema.org","@type":"HotelRoom",name:s,...c&&{description:c},...b&&{url:b},offers:{"@type":"Offer",price:m.toFixed(2),priceCurrency:d,availability:"SoldOut"===v?"https://schema.org/SoldOut":"https://schema.org/InStock"}};r="application/ld+json",a=JSON.stringify(e).replace(/</g,"\\u003c"),l[0]=v,l[1]=d,l[2]=c,l[3]=s,l[4]=m,l[5]=b,l[6]=a,l[7]=r}else a=l[6],r=l[7];return l[8]!==a?(i={__html:a},l[8]=a,l[9]=i):i=l[9],l[10]!==r||l[11]!==i?(n=(0,o.jsx)("script",{type:r,dangerouslySetInnerHTML:i}),l[10]=r,l[11]=i,l[12]=n):n=l[12],n};var th=e.i(134887);let tf=({room:e,rates:t,rightArrow:r,isSelected:n,showPrice:l,onShowPricesRequested:c,onMoreInfoClicked:m,lazyImage:d})=>{let h,[x,g]=(0,a.useState)({message:"",show:!1}),y=(0,a.useContext)(v.RoomListContext),{registerEnterKeyAsClick:_}=(0,tm.useAccessibilityHandlers)(),C=(0,s.useAccommodationTranslations)(),j=(0,i.useAccommodationSearchResult)(),R=j?.roomsResult?.filter(o=>o.roomId===e.id),A=(0,u.useIsFetching)({queryKey:["accommodationsearch"]})>0,S=R?.every(e=>0===e.nrAvailable),{getUrl:N}=(0,E.useNavigationManager)(),{data:w}=(0,b.useGuestRooms)(),I=e?.id,k=(0,a.useMemo)(()=>w?.rooms.find(e=>e.id===I),[w,I]),F=(0,a.useMemo)(()=>(0,et.isRoomConfigValidForGuestroom)(C,j?.accommodationSearch?.roomConfigs??[],k,e),[j,k,C,e]),P=F?.message??C("EA4H.General.NotAvailableForSelectedDates"),G=t?.[0]?.ratesPerRoomConfig?.[0],T=G?.hitKey,B=(0,p.useIsMutating)({mutationKey:["addToBasket"],predicate:(0,f.typedVariablesEquals)(e=>e.request.hitkey===T)}),L=l&&j?.accommodationSearch?.roomConfigs?.length===1&&t?.length===1&&t[0].ratesPerRoomConfig?.length===1&&!t[0].ratesPerRoomConfig[0].isLocked&&y?.preventSinglePrice
1ListResult;return(0,o.jsxs)(oc.RoomContextProvider,{Room:e,children:[(0,o.jsxs)(td.BaseTile,{onNameClicked:()=>m(e.id),productName:e.name,backgroundUrl:e.images?.[0]?.url,lazy:d,children:[(0,o.jsxs)("div",{className:"bv:cursor-pointer",onClick:()=>m(e.id),role:"button",tabIndex:0,onKeyDown:_(()=>m(e.id)),"aria-label":`View details for ${e.name}`,children:[l&&(0,o.jsx)(tb.RoomTilePriceInfo,{size:"tile",singleResult:L,room:R?.[0],rateAlternative:G}),(0,o.jsx)("p",{className:"bv:[text-shadow:0px_1px_1px_hsla(0,0%,0%,.35)] bv:mt-[10px] bv:text-bv_smallFontSize","data-testid":"room_card_tile_room_details",children:(h=[],e.bedTypes?.forEach(e=>{h.push((0,th.default)(e,C))}),e.roomSize&&h.push((0,tu.getRoomSize)(e)),e.maxAdultOccupancy&&h.push(C("EA4H.General.MaxNoPers{0}",e.maxOccupancy)),h.join(" · "))})]}),(0,o.jsxs)("div",{className:"bv:mb-[25px] bv:mt-[20px] bv:flex bv:gap-[15px] bv:bv_phone:flex-wrap",children:[(0,o.jsx)(tv.AnchorButton,{"data-testid":"room_card_tile_more_information_button","data-action":"view-room-details",href:N("accommodation details",{detailsPageParam:{paramName:"roomId",paramValue:e.id}}),isLoading:A,onClick:o=>m(e.id,o),className:"bv:flex-1 bv:whitespace-nowrap","aria-description":e.name,children:C("EA4H.General.MoreInfo")}),l&&j?.roomsResult?(0,o.jsx)(oD.ChooseButton,{popoverOptions:{message:x.message,show:x.show,onClose:()=>g(e=>({...e,show:!1}))},rightArrow:r,className:"bv:pointer-events-auto bv:flex-1 bv:bv_phone:min-w-full",disabledMessage:P,isDisabled:S,isLoading:A||r&&B>0,isSelected:n,onClick:async()=>{let e=await c();"object"!=typeof e||e.success||g({message:e.message,show:!0})}}):(0,o.jsx)("div",{className:"bv:w-full"})]})]}),l&&t?.[0]&&t[0].ratesPerRoomConfig?.length===1&&(0,o.jsx)(tp,{name:e.name,description:(0,et.stripHtmlTags)(e.description)||void 0,price:t[0].ratesPerRoomConfig[0]?.totalPrice?.priceInclVAT,currency:t[0].currency,availability:S?"SoldOut":"InStock"})]})};var tx=e.i(461025),tg=e.i(265172),ty=e.i(974899),t_=e.i(429439),tC=e.i(712344),tj=e.i(71359);let tR=(0,tx.atomFamily)(({roomIds:e,channelId:o})=>(0,tg.atomWithDefault)(t=>Promise.allSettled(e.map(e=>t((0,oE.filteredRates)({roomId:e,channelId:o})))).then(e=>e.map(tC.default))),(e,o)=>JSON.stringify(e)===JSON.stringify(o)),tA=({onMoreInfoClicked:e,onTogglePrices:t,columnCount:n,rooms:c,showPrice:d,startIndex:b=0})=>{let u=(0,s.useAccommodationTranslations)(),[p,h]=(0,a.useState)(),f=(0,l.useSinglePropertyContext)(),x=(0,a.useMemo)(()=>c.map(e=>e.id),[c]),g=(0,oi.useContinueToAccommodationCheckout)(),y=(0,i.useAccommodationSearchResult)(),_=(0,r.useAtomValue)(tR({roomIds:x,channelId:f.channelId})),C=(0,r.useAtomValue)(ep.selectedRoomState),{addRoomsToBasket:j}=(0,ek.useBasketOperations)(),R=(0,r.useAtomValue)(tj.searchOptionsRoomConfigsState),{isVerySmallScreen:A}=(0,m.useScreenSizes)(),{singleSearch:S}=(0,a.useContext)(v.RoomListContext),N=e=>d&&y?.accommodationSearch?.roomConfigs?.length===1&&_?.[e]?.length===1&&_?.[e]?.[0]?.ratesPerRoomConfig?.length===1&&!_?.[e]?.[0]?.ratesPerRoomConfig?.[0]?.isLocked,w=async e=>{if(N(e)&&S){let o=_?.[e]?.[0]?.ratesPerRoomConfig?.[0];if(!o)return;let t=c[e]?.typeOfAccommodation===T.AccommodationType.DormitoryBed?(0,t_.getDormitoryBedCount)(R,o):1,a=o.totalPrice?.displayPrice??o.totalPrice?.displayOriginalPrice??0,r=await j.mutateAsync({request:{hitkey:o.hitKey,nrOfUnits:t,resultId:y?.resultId,useExistingBasket:!1},gtmInfo:{productId:C?.roomId??"N/A",productName:c.find(e=>e.id===C?.roomId)?.name??"N/A",productQuantity:t,productPrice:a*t,productCategory:"Accommodation room"}},{onSuccess:()=>{g()}});if(!r.success&&r.errorString)return{success:!1,message:u.dynamic(r.errorString)}}else t(c[e].id)};return(0,a.useEffect)(()=>{C?.isExpanded&&x.includes(C.roomId)&&h(C.roomId)},[C,x]),(0,o.jsxs)(ty.TileGroupContainer,{"data-testid":"room_card_tile_group",columnCount:n,children:[c.map((t,a)=>(0,o.jsx)(tf,{onMoreInfoClicked:e,onShowPricesRequested:()=>w(a),showPrice:d,isSelected:C?.roomId===t.id&&C.isExpanded,room:t,rates:_[a]??[],rightArrow:N(a)&&S,lazyImage:b+a>0}
1,t.id)),d&&c.some(e=>{let o=y?.roomsResult?.find(o=>o.roomId===e.id);return oO([o?.cheapestPrice,o?.cheapestPriceNoLock])})&&(0,o.jsx)("div",{className:"bv:relative bv:z-10 bv:col-start-1 bv:-col-end-1",children:(0,o.jsx)(oK.Collapse,{open:c.some(e=>C?.roomId===e.id)&&C?.isExpanded===!0,overflowVisible:!0,children:(0,o.jsx)("div",{className:"bv:relative",children:(0,o.jsx)(o$.PriceList,{alignArrow:A?void 0:1===c.length||p===c[0].id?"left":"right",rates:p&&p===c[1]?.id?_[1]??[]:_[0]??[]})})})})]})};var tS=e.i(4178);let tN=e=>{let a,r,i,n,l,s,c,m,d,b,v,u,p,h,f=(0,t.c)(53),{roomGroup:g,rates:y,rightArrow:_,isSelected:C,onShowPricesRequested:j,onMoreInfoClicked:R}=e,{images:A,isSearching:S,isAddingToBasket:N,hasPrices:w,disabledMessage:I,hasAvailableRooms:k,translations:F,roomGroupId:P}=x(g,y),{registerEnterKeyAsClick:G}=(0,tm.useAccessibilityHandlers)();f[0]!==R||f[1]!==P?(a=()=>R(P),f[0]=R,f[1]=P,f[2]=a):a=f[2];let T=g.name,E=A?.[0]?.url;f[3]!==R||f[4]!==P?(r=()=>R(P),f[3]=R,f[4]=P,f[5]=r):r=f[5],f[6]!==R||f[7]!==P?(i=()=>R(P),f[6]=R,f[7]=P,f[8]=i):i=f[8],f[9]!==G||f[10]!==i?(n=G(i),f[9]=G,f[10]=i,f[11]=n):n=f[11];let B=`View details for ${g.name}`;f[12]!==w||f[13]!==g?(l=w&&(0,o.jsx)(tb.RoomGroupTilePriceInfo,{size:"tile",roomGroup:g}),f[12]=w,f[13]=g,f[14]=l):l=f[14],f[15]!==g.description?(s=(0,et.stripHtmlTags)(g.description)??"",f[15]=g.description,f[16]=s):s=f[16],f[17]!==s?(c=(0,o.jsx)(tS.MaxLinesParagraph,{className:"bv:mt-[10px] bv:text-bv_smallFontSize bv:[text-shadow:0px_1px_1px_hsla(0,0%,0%,.35)]",maxLines:2,dangerouslySetInnerHTML:{__html:s}}),f[17]=s,f[18]=c):c=f[18],f[19]!==c||f[20]!==r||f[21]!==n||f[22]!==B||f[23]!==l?(m=(0,o.jsxs)("div",{className:"bv:cursor-pointer",onClick:r,role:"button",tabIndex:0,onKeyDown:n,"aria-label":B,children:[l,c]}),f[19]=c,f[20]=r,f[21]=n,f[22]=B,f[23]=l,f[24]=m):m=f[24],f[25]!==R||f[26]!==P?(d=()=>R(P),f[25]=R,f[26]=P,f[27]=d):d=f[27];let L=`${F("EA4H.General.MoreInfo")} - ${g.name}`;return f[28]!==F?(b=F("EA4H.General.MoreInfo"),f[28]=F,f[29]=b):b=f[29],f[30]!==S||f[31]!==d||f[32]!==L||f[33]!==b?(v=(0,o.jsx)(eR.Button,{"data-testid":"room_group_card_tile_more_information_button",isLoading:S,onClick:d,className:"bv:whitespace-nowrap",withIcon:!0,"aria-label":L,children:b}),f[30]=S,f[31]=d,f[32]=L,f[33]=b,f[34]=v):v=f[34],f[35]!==I||f[36]!==k||f[37]!==w||f[38]!==N||f[39]!==S||f[40]!==C||f[41]!==j||f[42]!==_?(u=w?(0,o.jsx)(oD.ChooseButton,{rightArrow:_,className:"bv:pointer-events-auto",disabledMessage:I,isDisabled:!k,isLoading:S||_&&N,isSelected:C,onClick:j}):(0,o.jsx)("div",{className:"bv:w-full"}),f[35]=I,f[36]=k,f[37]=w,f[38]=N,f[39]=S,f[40]=C,f[41]=j,f[42]=_,f[43]=u):u=f[43],f[44]!==v||f[45]!==u?(p=(0,o.jsxs)("div",{className:"bv:mb-[25px] bv:mt-[20px] bv:flex bv:gap-[15px]",children:[v,u]}),f[44]=v,f[45]=u,f[46]=p):p=f[46],f[47]!==g.name||f[48]!==a||f[49]!==m||f[50]!==p||f[51]!==E?(h=(0,o.jsxs)(td.BaseTile,{onNameClicked:a,productName:T,backgroundUrl:E,children:[m,p]}),f[47]=g.name,f[48]=a,f[49]=m,f[50]=p,f[51]=E,f[52]=h):h=f[52],h},tw=(0,tx.atomFamily)(({roomIds:e,channelId:o})=>(0,tg.atomWithDefault)(t=>Promise.allSettled(e.map(e=>t((0,oE.filteredRates)({roomId:e,channelId:o})))).then(e=>e.map(tC.default))),(e,o)=>JSON.stringify(e)===JSON.stringify(o)),tI=({onMoreInfoClicked:e,onTogglePrices:t,columnCount:n,roomGroups:s,showPrice:c})=>{let[d,b]=(0,a.useState)(),u=s[0].availableRooms?.map(e=>e.id),p=s?.[1]?.availableRooms?.map(e=>e.id),{channelInfo:h}=(0,l.useSinglePropertyContext)(),f=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:u,channelId:h.channelId})),x=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:p,channelId:h.channelId})),g=(0,a.useMemo)(()=>s.map(e=>e.roomGroupId),[s]),y=(0,i.useAccommodationSearchResult)(),_=(0,r.useAtomValue)(tw({roomIds:g,channelId:h.channelId})),C=(0,r.useAtomValue)(ep.selectedRoomState),{singleSearch:j}=(0,a.useContext)(v.RoomListContext),{isVerySmallScreen:R}=(0,m.useScreenSizes)(),A=s?.[0].availableRooms&&s?.[0].availableRooms.length>0,S=c&&A,N=s?.[1]?.availableRooms&&s?.[1]?.availableRooms?.length>0,w=c&&N,I=C?.roomId===s[0].roomGroupId,k=C?.roomId===s?.[1]?.roomGroupId,F=R?void 0:1===s.length||I?"left":"right",P=I?f?.rates??[]:x?.rates??[],G=async e=>{t(e)};return(0,a.useEffect)(()=>{C?.isExpanded&&g.includes(C.roomId)&&b(C.roomId)},[C,g]),(0,o.jsxs)(ty.TileGroupContainer,{"data-testid":"room_group_card_tile_group",columnCount:n,children:[s.map((t,a)=>(0,o.jsx)(tN,{onMoreInfoClicked:e,onShowPricesRequested:()=>G(t.roomGroupId),isSelected:C?.roomId===t?.roomGroupId&&C.isExpanded,roomGroup:t,rates:_[a]??[],rightArrow:c&&y?.accommodationSearch?.roomConfigs?.length===1&&_?.[a]?.length===1&&_?.[a]?.[0]?.ratesPerRoomConfig?.length===1&&!_?.[a]?.[0]?.ratesPerRoomConfig?.[0]?.isLocked&&j},t.roomGroupId)),(S||w)&&(0,o.jsx)("div",{className:"bv:relative bv:z-10 bv:col-start-1 bv:-col-end-1",children:(0,o.jsx)(oK.Collapse,{open:C?.isExpanded===!0&&(I||k),overflowVisible:!0,children:(0,o.jsx)("div",{className:"bv:relative",children:(0,o.jsx)(o1.RoomGroupPriceList,{rates:P,alignArrow:F})})})})]})},tk=e=>{let o,r,i,n=(0,t.c)(6),{isVerySmallScreen:l}=(0,m.useScreenSizes)();n[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.createRef)(),n[0]=o):o=n[0];let s=o;return n[1]!==l||n[2]!==e?(r=()=>{if(e){let e=setTimeout(()=>{l&&s.current?.scrollToPriceList()},200);return()=>clearTimeout(e)}},n[1]=l,n[2]=e,n[3]=r):r=n[3],n[4]!==e?(i=[e],n[4]=e,n[5]=i):i=n[5],(0,a.useEffect)(r,i),s};
1var tF=e.i(424552),tP=e.i(797104),tG=e.i(736613);let tT=({room:e,showPrice:t,onTogglePrices:n,onMoreInfoClicked:c,lazyImage:m})=>{let d=(0,i.useAccommodationSearchResult)(),h=(0,r.useAtomValue)(ep.selectedRoomState),x=(0,oi.useContinueToAccommodationCheckout)(),g=(0,l.useSinglePropertyContext)(),y=(0,r.useAtomValue)((0,oE.filteredRates)({roomId:e.id,channelId:g.channelId})),_=(0,r.useAtomValue)(tj.searchOptionsRoomConfigsState),C=(0,s.useAccommodationTranslations)(),{data:j}=(0,b.useGuestRooms)(),{singleSearch:R,preventSinglePriceListResult:A}=(0,a.useContext)(v.RoomListContext),{registerEnterKeyAsClick:S}=(0,tm.useAccessibilityHandlers)(),{addRoomsToBasket:w}=(0,ek.useBasketOperations)(),{getUrl:I}=(0,E.useNavigationManager)(),k=d?.roomsResult?.filter(o=>o.roomId===e.id),F=k?.every(e=>0===e.nrAvailable),P=(0,a.useMemo)(()=>j?.rooms.find(o=>o.id===e.id),[j,e.id]),G=(0,a.useMemo)(()=>(0,et.isRoomConfigValidForGuestroom)(C,d?.accommodationSearch?.roomConfigs??[],P,e),[d,P,C,e]),B=G?.message??C("EA4H.General.NotAvailableForSelectedDates"),L=tk(h?.isExpanded===!0&&h?.roomId===e.id),[H,O]=(0,a.useState)({message:"",show:!1}),M=y?.[0]?.ratesPerRoomConfig?.[0],z=M?.hitKey,D=(0,p.useIsMutating)({mutationKey:["addToBasket"],predicate:(0,f.typedVariablesEquals)(e=>e.request.hitkey===z)}),$=(0,u.useIsFetching)({queryKey:["accommodationsearch"]})>0,W=t&&oO([k?.[0]?.cheapestPrice,k?.[0]?.cheapestPriceNoLock])&&d?.accommodationSearch?.roomConfigs?.length===1&&y?.length===1&&y[0].ratesPerRoomConfig?.length===1&&!y[0].ratesPerRoomConfig[0].isLocked,V=W&&R,U=W&&A,q=async()=>{if(V){let o=y[0].ratesPerRoomConfig[0],t=e?.typeOfAccommodation===T.AccommodationType.DormitoryBed?(0,t_.getDormitoryBedCount)(_,o):1,a=o.totalPrice?.displayPrice??o.totalPrice?.displayOriginalPrice??0;await w.mutateAsync({request:{hitkey:o.hitKey,nrOfUnits:t,resultId:d?.resultId,useExistingBasket:!1},gtmInfo:{productId:e.id??"N/A",productName:e.name??"N/A",productQuantity:t,productPrice:t*a,productCategory:"Accommodation room"}},{onSuccess:()=>{x()},onError:e=>{O({show:!0,message:e.message??"Something went wrong, please try again."}),setTimeout(()=>{O(e=>({...e,show:!1}))},3e3)}})}else n(e.id)};return(0,o.jsx)(oc.RoomContextProvider,{Room:e,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tP.TileLargeBase,{backgroundUrl:e.images?.[0]?.url,productName:e.name,lazy:m,children:(0,o.jsxs)("div",{className:"bv:z-1 bv:flex bv:h-max bv:justify-between bv:self-end bv:text-white",children:[(0,o.jsxs)("div",{onClick:()=>c(e.id),onKeyDown:S(()=>c(e.id)),className:"bv:mb-[30px] bv:ml-[30px] bv:cursor-pointer bv:self-end bv:[text-shadow:0px_1px_1px_hsla(0,0%,0%,.35)]",role:"button",tabIndex:0,"aria-label":`${C("EA4H.General.MoreInfo")} - ${e.name}`,children:[(0,o.jsx)(ob.default,{className:"bv:text-white",children:e.name}),t&&k&&k?.length>0&&(0,o.jsx)(tb.RoomTilePriceInfo,{size:"tile_large",room:k?.[0],rateAlternative:M,singleResult:U}),(0,o.jsx)(tS.MaxLinesParagraph,{className:"bv:mt-[10px]",maxLines:2,dangerouslySetInnerHTML:{__html:(0,et.stripHtmlTags)(e.shortDescription)??""}}),(0,o.jsx)(tF.RoomAttributeList,{room:e,density:"tile","data-testid":"room_card_tile_large_room_details"})]}),(0,o.jsxs)(tG.Stack,{className:"bv:mx-[30px] bv:mb-[30px] bv:min-w-[150px] bv:shrink-0 bv:justify-end bv:gap-[15px]",children:[(0,o.jsx)(tl.default,{href:I("accommodation details",{detailsPageParam:{paramName:"roomId",paramValue:e.id}}),passHref:!0,children:(0,o.jsx)(eR.Button,{"data-testid":"room_card_tile_large_more_information_button","data-action":"view-room-details",disabled:$,"aria-description":e.name,className:(0,N.cn)($&&"bv:cursor-wait bv:opacity-50"),children:C("EA4H.General.MoreInfo")})}),t&&d?.roomsResult&&(0,o.jsx)(oD.ChooseButton,{popoverOptions:{message:H.message,show:H.show,onClose:()=>O(e=>({...e,show:!1}))},rightArrow:V,disabledMessage:B,isLoading:$||V&&D>0,isDisabled:F,onClick:q,isSelected:h?.isExpanded&&h?.roomId===e.id})]})]})}),t&&oO([k?.[0]?.cheapestPrice,k?.[0]?.cheapestPriceNoLock])&&(0,o.jsx)(oK.Collapse,{open:h?.isExpanded===!0&&h?.roomId===e.id,overflowVisible:!0,children:(0,o.jsx)("div",{className:"bv:relative",children:(0,o.jsx)(o$.PriceList,{ref:L,rates:y})})}),t&&y?.[0]&&y[0].ratesPerRoomConfig?.length===1&&(0,o.jsx)(tp,{name:e.name,description:(0,et.stripHtmlTags)(e.description)||void 0,price:y[0].ratesPerRoomConfig[0]?.totalPrice?.priceInclVAT,currency:y[0].currency,availability:F?"SoldOut":"InStock"})]})})},tE=e=>{let a,i,n,s,c,m,d,b,v,u,p,h,f,g,y,_,C,j,R,A,S=(0,t.c)(76),{roomGroup:N,showPrice:w,onTogglePrices:I,onMoreInfoClicked:k}=e,{channelId:F}=(0,l.useSinglePropertyContext)(),{registerEnterKeyAsClick:P}=(0,tm.useAccessibilityHandlers)();if(S[0]!==F||S[1]!==N.availableRooms){let e=N.availableRooms?.map(tB)??[];a=r.useAtomValue,i=(0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:e,channelId:F}),S[0]=F,S[1]=N.availableRooms,S[2]=a,S[3]=i}else a=S[2],i=S[3];let G=a(i),T=(0,r.useAtomValue)(ep.selectedRoomState),E=G?.rates[0]?.cheapestRateAlternative;S[4]!==E?(n=[E],S[4]=E,S[5]=n):n=S[5];let{translations:B,images:L,isSearching:H,isAddingToBasket:O,hasPrices:M,disabledMessage:z,hasAvailableRooms:$,roomGroupId:W,singleSearch:V}=x(N,n),U=(G?.rates?.length??0)>0,q=tk(T?.isExpanded===!0&&T?.roomId===N.roomGroupId),K=L?.[0]?.url,Y=N.name;S[6]!==k||S[7]!==W?(s=()=>k(W),S[6]=k,S[7]=W,S[8]=s):s=S[8],S[9]!==k||S[10]!==W?(c=()=>k(W),S[9]=k,S[10]=W,S[11]=c):c=S[11],S[12]!==P||S[13]!==c?(m=P(c),S[12]=P,S[13]=c,S[14]=m):m=S[14];let Q=`${B("EA4H.General.MoreInfo")} - ${N.name}`;S[15]!==N.name?(d=(0,o.jsx)(ob.default,{className:"bv:text-white",children:N.name}),S[15]=N.name,S[16]=d):d=S[16],S[17]!==$||S[18]!==N||S[19]!==w?(b=w&&$&&(0,o.jsx)(tb.RoomGroupTilePriceInfo,{size:"tile_large",roomGroup:N}),S[17]=$,S[18]=N,S[19]=w,S[20]=b):b=S[20],S[21]!==N.description?(v=(0,et.stripHtmlTags)(N.description)??"",S[21]=N.description,S[22]=v):v=S[22],S[23]!==v?(u=(0,o.jsx)(tS.MaxLinesParagraph,{className:"bv:mt-[10px]",maxLines:2,dangerouslySetInnerHTML:{__html:v}}),S[23]=v,S[24]=u):u=S[24],S[25]!==Q||S[26]!==d||S[27]!==b||S[28]!==u||S[29]!==s||S[30]!==m?(p=(0,o.jsxs)("div",{onClick:s,onKeyDown:m,className:"bv:mb-[30px] bv:ml-[30px] bv:cursor-pointer bv:self-end bv:[text-shadow:0px_1px_1px_hsla(0,0%,0%,.35)]",role:"button",tabIndex:0,"aria-label":Q,children:[d,b,u]}),S[25]=Q,S[26]=d,S[27]=b,S[28]=u,S[29]=s,S[30]=m,S[31]=p):p=S[31],S[32]!==k||S[33]!==W?(h=()=>k(W),S[32]=k,S[33]=W,S[34]=h):h=S[34];let X=`${B("EA4H.General.MoreInfo")} - ${N.name}`;return S[35]!==B?(f=B("EA4H.General.MoreInfo"),S[35]=B,S[36]=f):f=S[36],S[37]!==H||S[38]!==h||S[39]!==X||S[40]!==f?(g=(0,o.jsx)(eR.Button,{"data-testid":"room_card_t
1ile_large_more_information_button",isLoading:H,onClick:h,withIcon:!0,"aria-label":X,children:f}),S[37]=H,S[38]=h,S[39]=X,S[40]=f,S[41]=g):g=S[41],S[42]!==z||S[43]!==$||S[44]!==M||S[45]!==U||S[46]!==O||S[47]!==H||S[48]!==I||S[49]!==N.roomGroupId||S[50]!==W||S[51]!==T?.isExpanded||S[52]!==T?.roomId||S[53]!==V?(y=M&&U&&(0,o.jsx)(oD.ChooseButton,{rightArrow:V,disabledMessage:z,isLoading:H||O&&V,isDisabled:!$,onClick:()=>I(W),isSelected:T?.isExpanded&&T?.roomId===N?.roomGroupId}),S[42]=z,S[43]=$,S[44]=M,S[45]=U,S[46]=O,S[47]=H,S[48]=I,S[49]=N.roomGroupId,S[50]=W,S[51]=T?.isExpanded,S[52]=T?.roomId,S[53]=V,S[54]=y):y=S[54],S[55]!==g||S[56]!==y?(_=(0,o.jsxs)(tG.Stack,{className:"bv:mx-[30px] bv:mb-[30px] bv:min-w-[150px] bv:shrink-0 bv:justify-end bv:gap-[15px]",children:[g,y]}),S[55]=g,S[56]=y,S[57]=_):_=S[57],S[58]!==p||S[59]!==_?(C=(0,o.jsxs)("div",{className:"bv:z-1 bv:flex bv:h-max bv:justify-between bv:self-end bv:text-white",children:[p,_]}),S[58]=p,S[59]=_,S[60]=C):C=S[60],S[61]!==N.name||S[62]!==C||S[63]!==K?(j=(0,o.jsx)(tP.TileLargeBase,{backgroundUrl:K,productName:Y,children:C}),S[61]=N.name,S[62]=C,S[63]=K,S[64]=j):j=S[64],S[65]!==G?.rates||S[66]!==$||S[67]!==q||S[68]!==N.roomGroupId||S[69]!==T?.isExpanded||S[70]!==T?.roomId||S[71]!==w?(R=w&&$&&(0,o.jsx)(oK.Collapse,{open:T?.isExpanded===!0&&T?.roomId===N.roomGroupId,overflowVisible:!0,children:(0,o.jsx)("div",{className:"bv:col-span-full",children:(0,o.jsx)("div",{className:"bv:relative",children:(0,o.jsx)(o1.RoomGroupPriceList,{ref:q,rates:G?.rates??[]})})})}),S[65]=G?.rates,S[66]=$,S[67]=q,S[68]=N.roomGroupId,S[69]=T?.isExpanded,S[70]=T?.roomId,S[71]=w,S[72]=R):R=S[72],S[73]!==j||S[74]!==R?(A=(0,o.jsxs)(o.Fragment,{children:[j,R]}),S[73]=j,S[74]=R,S[75]=A):A=S[75],A};function tB(e){return e.id}var tL=e.i(994958),tH=e.i(692156),tO=e.i(390976);let tM=e=>{let a,r,i,n,c,m,d,b,v,u,p,h,f=(0,t.c)(32),{images:x,onClick:g,altLabel:y,imageOverlay:_,mobileContent:C,actionSlot:j,className:R,lazy:A}=e,{imageServer:S}=(0,tH.useGlobalContext)(),{channelInfo:w}=(0,l.useSinglePropertyContext)(),I=(0,s.useAccommodationTranslations)(),k=(0,tO.useCardImageFetchPriority)(A),F=x?.[0]?.url,P=w?.hotelImageIds?.[0]?`${S}${w.hotelImageIds[0]}.jpg`:void 0,G=F||P,T=G?`${G}?maxwidth=900&maxheight=900&mode=crop`:void 0,E=y||"Product image";f[0]!==y||f[1]!==I?(a=y?`${y}, ${I("EA4H.General.MoreInfo")}`:I("EA4H.General.MoreInfo"),f[0]=y,f[1]=I,f[2]=a):a=f[2];let B=a;f[3]!==g?(r=e=>{g?.(e)},f[3]=g,f[4]=r):r=f[4];let L=r;return f[5]!==R?(i=(0,N.cn)("bv:flex bv:relative bv:w-full bv:flex-col bv:rounded-bv_cardBorderRadius bv:bg-neutral-800","bv:min-h-[300px] bv:bv_medium:min-h-[400px]",R),f[5]=R,f[6]=i):i=f[6],f[7]!==k||f[8]!==E||f[9]!==G||f[10]!==A||f[11]!==T?(n=T&&(0,o.jsx)("img",{src:T,srcSet:G?(0,tL.buildCdnSrcSet)(G,{mode:"crop"}):void 0,sizes:"(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 580px",alt:E,loading:A?"lazy":"eager",fetchPriority:k,decoding:A?"async":void 0,className:"bv:absolute bv:inset-0 bv:h-full bv:w-full bv:object-cover bv:pointer-events-none bv:rounded-bv_cardBorderRadius"}),f[7]=k,f[8]=E,f[9]=G,f[10]=A,f[11]=T,f[12]=n):n=f[12],f[13]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)("div",{className:"bv:absolute bv:-inset-px bv:bg-[rgba(0,0,0,0.2)] bv:pointer-events-none bv:rounded-bv_cardBorderRadius","aria-hidden":"true"}),f[13]=c):c=f[13],f[14]===Symbol.for("react.memo_cache_sentinel")?(m=(0,N.cn)("bv:absolute bv:inset-0 bv:z-1 bv:cursor-pointer bv:border-0 bv:bg-transparent bv:p-0 bv:m-0 bv:appearance-none bv:rounded-bv_cardBorderRadius","bv:focus-visible:outline bv:focus-visible:outline-2 bv:focus-visible:outline-offset-2 bv:focus-visible:outline-bv_linkColor"),f[14]=m):m=f[14],f[15]!==B||f[16]!==L?(d=(0,o.jsx)("button",{type:"button",className:m,onClick:L,"aria-label":B}),f[15]=B,f[16]=L,f[17]=d):d=f[17],f[18]===Symbol.for("react.memo_cache_sentinel")?(b=(0,o.jsx)("div",{className:"bv:absolute bv:inset-0 bv:bg-linear-to-b bv:from-transparent bv:to-black bv:opacity-70 bv:z-[-1]"}),f[18]=b):b=f[18],f[19]!==C?(v=(0,o.jsx)("div",{className:"bv:min-w-0",children:C}),f[19]=C,f[20]=v):v=f[20],f[21]!==j?(u=j&&(0,o.jsx)("div",{className:"bv:mt-[20px] bv:w-full bv:shrink-0 bv:pointer-events-auto bv:bv_medium:mt-0 bv:bv_medium:w-auto",children:j}),f[21]=j,f[22]=u):u=f[22],f[23]!==u||f[24]!==v?(p=(0,o.jsxs)("div",{className:"bv:mt-auto bv:w-full bv:p-[24px] bv:relative bv:z-2 bv:pointer-events-none bv:rounded-b-bv_cardBorderRadius bv:overflow-hidden",children:[b,(0,o.jsxs)("div",{className:"bv:relative bv:flex bv:flex-col bv:text-white bv:bv_medium:flex-row bv:bv_medium:items-end bv:bv_medium:justify-between bv:bv_medium:gap-[16px]",children:[v,u]})]}),f[23]=u,f[24]=v,f[25]=p):p=f[25],f[26]!==_||f[27]!==p||f[28]!==i||f[29]!==n||f[30]!==d?(h=(0,o.jsxs)("div",{className:i,"data-testid":"new_tile_large_base",children:[n,c,d,_,p]}),f[26]=_,f[27]=p,f[28]=i,f[29]=n,f[30]=d,f[31]=h):h=f[31],h};var tz=e.i(977293);let tD=e=>{let n,l,c,m,b,v,u,p,h,f,x,g,y,_=(0,t.c)(47),{room:C,showPrice:j,unavailabilityInfo:R,forPackageId:A,forPackageName:S,lazyImage:w}=e,I=(0,s.useAccommodationTranslations)(),k=(0,ey.useCurrencyFormatter)(),F=(0,i.useAccommodationSearchResult)(),P=!!A;_[0]!==P?(n={forSpecificPackage:P},_[0]=P,_[1]=n):n=_[1];let G=eu(n),{data:T}=(0,d.useBasket)(),E=T?.booking?.bookingData?.rooms??Z.EMPTY_ARRAY,B=(0,r.useAtomValue)(Q.skippedRoomConfigsState),L=(0,X.findMissingRoomConfigIndex)(F?.accommodationSearch?.roomConfigs,E,B),H=(0,or.useFilteredRates)(C.id),O=F?.accommodationSearch?.roomConfigs&&F.accommodationSearch.roomConfigs.length>1,M=B.length>0&&0===E.length,z=L>=0?F?.accommodationSearch?.roomConfigs?.[L]:void 0,D=z?.adults||0,$=z?.childAges?.length||0,W=O&&L>=0&&!M?H.filter(e=>!!e.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,t=e.roomConfig?.childAges?.length||0;return o===D&&t===$&&e.totalPrice?.priceInclVAT!==void 0&&e.totalPrice.priceInclVAT>0})):H,V=(0,et.getDisplayRoomResult)(F,C.id,A,W),U=V?.cheapestPrice,q=O&&L>=0&&!M,K=of(V?.rateAlternatives??[],U,q?{adults:D,childCount:$}:void 0),Y=Math.max(V?.cheapestPriceNoLock??0,K?.originalPrice??0),J=Y&&U&&Y>U;_[2]!==F?.accommodationSearch?.numberOfNights||_[3]!==I?(l=[1,void 0].includes(F?.accommodationSearch?.numberOfNights)?I("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(I("EA4H.General.ForNightsLOWER"),F?.accommodationSearch?.numberOfNights),_[2]=F?.accommodationSearch?.numberOfNights,_[3]=I,_[4]=l):l=_[4];let ee=l,eo=`room-title-large-${C.id}`,ea=(F?.accommodationSearch?.roomConfigs??[]).length<=1,{isValidSearchConfig:er}=(0,oP.useIsValidRoomConfig)(C),ei=ea&&er?.valid===!1,en=(R?.unavailable??!1)||ei;_[5]!==er||_[6]!==ei||_[7]!==I||_[8]!==R?(c=ei&&er?.message?er.message:R?.reason==="occupancy"&&R.maxOccupancy?(0,eA.GetTranslation)(I("EA4H.General.Max{0}Persons"),R.maxOccupancy):I("EA4H.General.Unavailable"),_[5]=er,_[6]=ei,_[7]=I,_[8]=R,_[9]=c):c=_[9];let el=c,es=()=>{G({images:C.images?.map(t$).filter(tW)||[],price:U,fromPrice:Y,room:C,roomConfigIndex:L>=0?L:E.length,forPackageId:A,forPackageName:S})},{isSingleRatePackage:ec,isBooking:em,bookDirectly:ed}=os({roomId:C.id,roomName:C.name,rates:W,forPackageId:A,isMultiRoomMode:!!O,roomConfigIndex:L,expectedAdults:D,expectedChildCount:$});_[10]===Symbol.for("react.memo_cache_sentinel")?(m={message:"",show:!1},_[10]=m):m=_[10];let[eb,ev]=(0,a.useState)(m),ep=(0,a.useRef)(null),eh=async e=>{if(e.stopPropagation(),ec){let e;await ed({onError:o=>{e=o.message??"Something went wrong, please try again."}}),e&&(ep.current&&clearTimeout(ep.current),ev({show:!0,message:e}),ep.current=setTimeout(()=>ev(tV),3e3));return}G({images:C.images?.map(tU).filter(tq)||[],price:U,fromPrice:Y,room:C,defaultTab:"book-now",roomConfigIndex:L>=0?L:E.length,forPackageId:A,forPackageName:S})},ef=(0,ov.getRoomAttributes)(C,I);_[11]!==C.name||_[12]!==eo?(b=(0,o.jsx)("p",{id:eo,className:"bv:shrink-0 bv:font-bv_subtitleFontFamily bv:font-bv_subtitleFontWeight bv:text-bv_subtitleFontSmaller bv:leading-bv_subtitleFontSmallerLineHeight bv:tracking-bv_subtitleLetterSpacing",role:"heading","aria-level":2,children:C.name}),_[11]=C.name,_[12]=eo,_[13]=b):b=_[13];let ex=j&&U&&!en&&(0,o.jsxs)("div",{className:"bv:flex bv:h-[22px] bv:shrink-0 bv:items-start bv:gap-[5px] bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:leading-bv_smallLineHeight bv:whitespace-nowrap",children:[(0,o.jsx)("span",{className:"bv:font-bv_bodyBoldFontWeight",children:I("EA4H.General.From")}),J&&Y&&(0,o.jsxs)("del",{className:"bv:font-bv_bodyBoldFontWeight bv:line-through bv:opacity-bv_mutedOpacity",children:[(0,o.jsx)("span",{className:"bv:sr-only",children:"Original price: "}),k.formatCurrency(Y)," ",k.currencyCode]}),(0,o.jsxs)("span",{className:"bv:font-bv_bodyBoldFontWeight",children:[k.formatCurrency(U)," ",k.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontWeight",children:ee})]}),eg=ef.length>0&&(0,o.jsx)("div",{className:"bv:pt-[4px] bv:flex bv:flex-wrap bv:items-start bv:gap-y-[2px] bv:overflow-clip bv:w-full",children:ef.map(tK)});_[14]!==b||_[15]!==ex||_[16]!==eg?(v=(0,o.jsxs)(o.Fragment,{children:[b,ex,eg]}),_[14]=b,_[15]=ex,_[16]=eg,_[17]=v):v=_[17];let e_=v,eC=en&&"bv:opacity-60";return _[18]!==eC?(u=(0,N.cn)("bv:relative bv:h-full",eC),_[18]=eC,_[19]=u):u=_[19],_[20]!==C.images?(p=C.images??[],_[20]=C.images,_[21]=p):p=_[21],_[22]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)(od.FewLeftRibbon,{className:"bv:absolute bv:left-0 bv:top-[15px]"}),_[22]=h):h=_[22],_[23]!==eh||_[24]!==es||_[25]!==em||_[26]!==en||_[27]!==eb||_[28]!==F?.roomsResult||_[29]!==ev||_[30]!==j||_[31]!==I||_[32]!==el?(f=en?(0,o.jsx)("div",{className:"bv:flex bv:min-h-[48px] bv:w-full bv:items-center bv:ju
1stify-center bv:gap-[8px] bv:rounded-bv_cardBorderRadius bv:bg-bv_invalidDarkColorSoft bv:px-[12px]","aria-live":"polite","data-testid":"room_card_new_tile_large_unavailable",children:(0,o.jsx)(eG.default,{size:"small",bold:!0,className:"bv:text-bv_invalidDarkColor",children:el})}):j&&F?.roomsResult?(0,o.jsxs)(tz.Popover,{open:eb.show,onOpenChange:e=>{e||ev(tY)},children:[(0,o.jsx)(tz.PopoverTrigger,{asChild:!0,children:(0,o.jsx)("div",{className:"bv:w-full",children:(0,o.jsx)(eR.Button,{onClick:eh,className:"bv:min-h-[48px]! bv:px-[24px]! bv:py-[12px]! bv:max-w-none! bv:w-full",type:"button","data-testid":"room_card_new_tile_large_choose_button_mobile",disabled:em,isLoading:em,children:I("EA4H.General.Choose")})})}),(0,o.jsx)(tz.PopoverContent,{isAlert:!0,align:"center",side:"bottom","data-testid":"room_card_new_tile_large_choose_error_mobile",children:eb.message})]}):(0,o.jsx)(eR.Button,{onClick:e=>{e.stopPropagation(),es()},variant:"outlineWhite",className:"bv:min-h-[48px]! bv:px-[24px]! bv:py-[12px]! bv:max-w-none! bv:w-full",type:"button","data-testid":"room_card_new_tile_large_more_info_button_mobile",children:I("EA4H.General.MoreInfo")}),_[23]=eh,_[24]=es,_[25]=em,_[26]=en,_[27]=eb,_[28]=F?.roomsResult,_[29]=ev,_[30]=j,_[31]=I,_[32]=el,_[33]=f):f=_[33],_[34]!==es||_[35]!==w||_[36]!==e_||_[37]!==C.name||_[38]!==p||_[39]!==f?(x=(0,o.jsx)(tM,{onClick:es,images:p,altLabel:C.name,lazy:w,imageOverlay:h,mobileContent:e_,actionSlot:f}),_[34]=es,_[35]=w,_[36]=e_,_[37]=C.name,_[38]=p,_[39]=f,_[40]=x):x=_[40],_[41]!==u||_[42]!==x?(g=(0,o.jsx)("div",{className:u,children:x}),_[41]=u,_[42]=x,_[43]=g):g=_[43],_[44]!==C||_[45]!==g?(y=(0,o.jsx)(oc.RoomContextProvider,{Room:C,children:g}),_[44]=C,_[45]=g,_[46]=y):y=_[46],y};function t$(e){return e.url}function tW(e){return void 0!==e}function tV(e){return{...e,show:!1}}function tU(e){return e.url}function tq(e){return void 0!==e}function tK(e,t){return(0,o.jsxs)("div",{className:"bv:flex bv:items-center bv:gap-[8px] bv:pr-[13px] bv:relative",children:[t>0&&(0,o.jsx)("div",{className:"bv:absolute bv:left-[-8px] bv:top-[calc(50%+0.5px)] bv:-translate-y-1/2 bv:h-[3px] bv:w-[3px] bv:rounded-[2px] bv:bg-white","aria-hidden":"true"}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:text-bv_smallFontSize bv:leading-bv_smallLineHeight bv:whitespace-nowrap",children:e.displayName})]},e.displayName)}function tY(e){return{...e,show:!1}}var tQ=e.i(558645);let tX=e=>{let a,n,c,m,d,b,v,u,p,h,f,g=(0,t.c)(53),{roomGroup:y,showPrice:_,forPackageId:C,forPackageName:j}=e,R=(0,s.useAccommodationTranslations)(),{channelId:A}=(0,l.useSinglePropertyContext)(),S=(0,i.useAccommodationSearchResult)(),N=(0,ey.useCurrencyFormatter)(),w=(0,tQ.default)(),I=!!C;g[0]!==I?(a={forSpecificPackage:I},g[0]=I,g[1]=a):a=g[1];let k=L(a),F=y.availableRooms?.map(tJ)??[],P=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:F,channelId:A}))?.rates??[],G=(0,r.useAtomValue)((0,oJ.cheapestAvailableRoomRateInRoomGroupState)({roomIds:F,channelId:A})),T=P[0]?.cheapestRateAlternative;g[2]!==T?(n=[T],g[2]=T,g[3]=n):n=g[3];let{images:E,hasPrices:B,roomGroupId:H}=x(y,n),O=G?.price?.displayPrice;g[4]!==S?.accommodationSearch?.numberOfNights||g[5]!==R?(c=[1,void 0].includes(S?.accommodationSearch?.numberOfNights)?R("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(R("EA4H.General.ForNightsLOWER"),S?.accommodationSearch?.numberOfNights),g[4]=S?.accommodationSearch?.numberOfNights,g[5]=R,g[6]=c):c=g[6];let M=c,z=`room-group-title-${H}`;g[7]!==O||g[8]!==C||g[9]!==j||g[10]!==E||g[11]!==k||g[12]!==y||g[13]!==w||g[14]!==H?(m=()=>{k(H,()=>w.open({roomGroup:y,images:E?.map(tZ).filter(t0)||[],price:O,forPackageId:C,forPackageName:j}))},g[7]=O,g[8]=C,g[9]=j,g[10]=E,g[11]=k,g[12]=y,g[13]=w,g[14]=H,g[15]=m):m=g[15];let $=m;g[16]!==O||g[17]!==C||g[18]!==j||g[19]!==E||g[20]!==k||g[21]!==y||g[22]!==w||g[23]!==H?(d=e=>{e.stopPropagation(),k(H,()=>w.open({roomGroup:y,images:E?.map(t1).filter(t4)||[],price:O,defaultTab:"book-now",forPackageId:C,forPackageName:j}))},g[16]=O,g[17]=C,g[18]=j,g[19]=E,g[20]=k,g[21]=y,g[22]=w,g[23]=H,g[24]=d):d=g[24];let W=d;y.description,_&&B&&O&&(R("EA4H.General.From"),N.formatCurrency(O),N.currencyCode,eR.Button,R("EA4H.General.Choose")),g[25]!==y.name||g[26]!==z?(b=(0,o.jsx)("p",{id:z,className:"bv:shrink-0 bv:font-bv_subtitleFontFamily bv:font-bv_subtitleFontWeight bv:text-bv_subtitleFontSmaller bv:leading-bv_subtitleFontSmallerLineHeight bv:tracking-bv_subtitleLetterSpacing",role:"heading","aria-level":2,children:y.name}),g[25]=y.name,g[26]=z,g[27]=b):b=g[27],g[28]!==O||g[29]!==N||g[30]!==B||g[31]!==M||g[32]!==_||g[33]!==R?(v=_&&B&&O&&(0,o.jsxs)("div",{className:"bv:flex bv:h-[22px] bv:shrink-0 bv:items-start bv:gap-[5px] bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:leading-bv_smallLineHeight bv:whitespace-nowrap",children:[(0,o.jsx)("span",{className:"bv:font-bv_bodyBoldFontWeight",children:R("EA4H.General.From")}),(0,o.jsxs)("span",{className:"bv:font-bv_bodyBoldFontWeight",children:[N.formatCurrency(O)," ",N.currencyCode]}),(0,o.jsx)("span",{className:"bv:font-bv_bodyFontWeight",children:M})]}),g[28]=O,g[29]=N,g[30]=B,g[31]=M,g[32]=_,g[33]=R,g[34]=v):v=g[34],g[35]!==b||g[36]!==v?(u=(0,o.jsxs)(o.Fragment,{children:[b,v]}),g[35]=b,g[36]=v,g[37]=u):u=g[37];let V=u;return g[38]!==E?(p=E??[],g[38]=E,g[39]=p):p=g[39],g[40]!==O||g[41]!==W||g[42]!==B||g[43]!==H||g[44]!==_||g[45]!==R?(h=_&&B&&O?(0,o.jsx)(eR.Button,{onClick:W,className:"bv:min-h-[48px]! bv:px-[24px]!","aria-describedby":`price-info-${H}`,type:"button","data-testid":"room_group_card_new_tile_large_choose_button",children:R("EA4H.General.Choose")}):void 0,g[40]=O,g[41]=W,g[42]=B,g[43]=H,g[44]=_,g[45]=R,g[46]=h):h=g[46],g[47]!==$||g[48]!==V||g[49]!==y.name||g[50]!==p||g[51]!==h?(f=(0,o.jsx)(tM,{images:p,onClick:$,altLabel:y.name,mobileContent:V,actionSlot:h}),g[47]=$,g[48]=V,g[49]=y.name,g[50]=p,g[51]=h,g[52]=f):f=g[52],f};function tJ(e){return e.id}function tZ(e){return e.url}function t0(e){return void 0!==e}function t1(e){return e.url}function t4(e){return void 0!==e}let t2=e=>{let a,r=(0,t.c)(3),{firstComponent:i,secondComponent:n,flipSwitch:l}=e,s=l?i:n,c=l?n:i;return r[0]!==s||r[1]!==c?(a=(0,o.jsxs)(o.Fragment,{children:[s,c]}),r[0]=s,r[1]=c,r[2]=a):a=r[2],a},t3=e=>{let a,r=(0,t.c)(6),{roomList:i,withPrices:n,roomUnavailabilityMap:l,forSpecificPackage:s}=e,c=s?.id,m=s?.name;return r[0]!==i||r[1]!==l||r[2]!==c||r[3]!==m||r[4]!==n?(a=(0,o.jsx)(oI,{rooms:i,responsive:!0,showPrice:n,roomUnavailabilityMap:l,forPackageId:c,forPackageName:m}),r[0]=i,r[1]=l,r[2]=c,r[3]=m,r[4]=n,r[5]=a):a=r[5],a},t5=e=>{let a,r,i,n=(0,t.c)(23),{roomList:l,roomGroupList:s,withPrices:c,roomUnavailabilityMap:m,forSpecificPackage:d}=e;if(n[0]!==d?.id||n[1]!==d?.name||n[2]!==s||n[3]!==c){let e;n[5]!==d?.id||n[6]!==d?.name||n[7]!==c?(e=e=>(0,o.jsx)(tX,{roomGroup:e,showPrice:c,forPackageId:d?.id,forPackageName:d?.name}
1,e.roomGroupId),n[5]=d?.id,n[6]=d?.name,n[7]=c,n[8]=e):e=n[8],a=s.map(e),n[0]=d?.id,n[1]=d?.name,n[2]=s,n[3]=c,n[4]=a}else a=n[4];if(n[9]!==d?.id||n[10]!==d?.name||n[11]!==l||n[12]!==m||n[13]!==c){let e;n[15]!==d?.id||n[16]!==d?.name||n[17]!==m||n[18]!==c?(e=(e,t)=>(0,o.jsx)(tD,{room:e,showPrice:c,unavailabilityInfo:m.get(e.id),forPackageId:d?.id,forPackageName:d?.name,lazyImage:t>0},e.id),n[15]=d?.id,n[16]=d?.name,n[17]=m,n[18]=c,n[19]=e):e=n[19],r=l.map(e),n[9]=d?.id,n[10]=d?.name,n[11]=l,n[12]=m,n[13]=c,n[14]=r}else r=n[14];return n[20]!==a||n[21]!==r?(i=(0,o.jsxs)("div",{className:"bv:grid bv:grid-cols-1 bv:bv_medium:grid-cols-2 bv:gap-[32px]",children:[a,r]}),n[20]=a,n[21]=r,n[22]=i):i=n[22],i},t6=e=>{let a,r,i,n,l,s=(0,t.c)(16),{roomList:c,roomGroupList:m,roomGroupsAvailable:d,isSearchBarTop:b,onMoreInfoClicked:v}=e;if(s[0]!==b||s[1]!==m?(a=!b&&m.map(ao),s[0]=b,s[1]=m,s[2]=a):a=s[2],s[3]!==a?(r=(0,o.jsx)(o.Fragment,{children:a}),s[3]=a,s[4]=r):r=s[4],s[5]!==v||s[6]!==c){let e;s[8]!==v?(e=(e,t)=>(0,o.jsx)(to.RoomCardPlate,{onMoreInfoClicked:v,room:e,lazyImage:t>0},e.id),s[8]=v,s[9]=e):e=s[9],i=c.map(e),s[5]=v,s[6]=c,s[7]=i}else i=s[7];s[10]!==i?(n=(0,o.jsx)(o.Fragment,{children:i}),s[10]=i,s[11]=n):n=s[11];let u=!b&&d;return s[12]!==r||s[13]!==n||s[14]!==u?(l=(0,o.jsx)(t2,{firstComponent:r,secondComponent:n,flipSwitch:u}),s[12]=r,s[13]=n,s[14]=u,s[15]=l):l=s[15],l},t7=e=>{let a,r,i,n,l,s=(0,t.c)(46),{roomList:c,roomGroupList:m,roomGroupsAvailable:d,withPrices:b,isSearchBarTop:v,isVerySmallScreen:u,onTogglePrices:p,onMoreInfoClicked:h,onRoomGroupMoreInfoClicked:f}=e;if(u){let e,t,a,r,i;if(s[0]!==v||s[1]!==f||s[2]!==p||s[3]!==m||s[4]!==b?(e=!v&&m.map(e=>(0,o.jsx)(tI,{onMoreInfoClicked:f,onTogglePrices:e=>p(e),columnCount:1,showPrice:b,roomGroups:[e]},e.roomGroupId)),s[0]=v,s[1]=f,s[2]=p,s[3]=m,s[4]=b,s[5]=e):e=s[5],s[6]!==e?(t=(0,o.jsx)(o.Fragment,{children:e}),s[6]=e,s[7]=t):t=s[7],s[8]!==h||s[9]!==p||s[10]!==c||s[11]!==b){let e;s[13]!==h||s[14]!==p||s[15]!==b?(e=(e,t)=>(0,o.jsx)(tA,{onMoreInfoClicked:h,onTogglePrices:p,columnCount:1,showPrice:b,rooms:[e],startIndex:t},e.id),s[13]=h,s[14]=p,s[15]=b,s[16]=e):e=s[16],a=c.map(e),s[8]=h,s[9]=p,s[10]=c,s[11]=b,s[12]=a}else a=s[12];s[17]!==a?(r=(0,o.jsx)(o.Fragment,{children:a}),s[17]=a,s[18]=r):r=s[18];let n=!v&&d;return s[19]!==t||s[20]!==r||s[21]!==n?(i=(0,o.jsx)(t2,{firstComponent:t,secondComponent:r,flipSwitch:n}),s[19]=t,s[20]=r,s[21]=n,s[22]=i):i=s[22],i}if(s[23]!==v||s[24]!==f||s[25]!==p||s[26]!==m||s[27]!==b?(a=!v&&m.map(e=>(0,o.jsx)(tE,{onMoreInfoClicked:f,onTogglePrices:p,showPrice:b,roomGroup:e},e.roomGroupId)),s[23]=v,s[24]=f,s[25]=p,s[26]=m,s[27]=b,s[28]=a):a=s[28],s[29]!==a?(r=(0,o.jsx)(o.Fragment,{children:a}),s[29]=a,s[30]=r):r=s[30],s[31]!==h||s[32]!==p||s[33]!==c||s[34]!==b){let e;s[36]!==h||s[37]!==p||s[38]!==b?(e=(e,t)=>(0,o.jsx)(tT,{lazyImage:t>0,onMoreInfoClicked:h,onTogglePrices:p,showPrice:b,room:e},e.id),s[36]=h,s[37]=p,s[38]=b,s[39]=e):e=s[39],i=c.map(e),s[31]=h,s[32]=p,s[33]=c,s[34]=b,s[35]=i}else i=s[35];s[40]!==i?(n=(0,o.jsx)(o.Fragment,{children:i}),s[40]=i,s[41]=n):n=s[41];let x=!v&&d;return s[42]!==r||s[43]!==n||s[44]!==x?(l=(0,o.jsx)(t2,{firstComponent:r,secondComponent:n,flipSwitch:x}),s[42]=r,s[43]=n,s[44]=x,s[45]=l):l=s[45],l},t8=e=>{let a,r,i,n,l,s=(0,t.c)(76),{roomList:c,roomGroupList:m,roomGroupsAvailable:d,withPrices:b,isSearchBarTop:v,isSmallScreen:u,isVerySmallScreen:p,onTogglePrices:h,onMoreInfoClicked:f,onRoomGroupMoreInfoClicked:x}=e;if(p){let e,t,a,r,i;if(s[0]!==v||s[1]!==x||s[2]!==h||s[3]!==m||s[4]!==b?(e=!v&&m.map(e=>(0,o.jsx)(tI,{onMoreInfoClicked:x,onTogglePrices:e=>h(e),columnCount:1,showPrice:b,roomGroups:[e]},e.roomGroupId)),s[0]=v,s[1]=x,s[2]=h,s[3]=m,s[4]=b,s[5]=e):e=s[5],s[6]!==e?(t=(0,o.jsx)(o.Fragment,{children:e}),s[6]=e,s[7]=t):t=s[7],s[8]!==f||s[9]!==h||s[10]!==c||s[11]!==b){let e;s[13]!==f||s[14]!==h||s[15]!==b?(e=(e,t)=>(0,o.jsx)(tA,{onMoreInfoClicked:f,onTogglePrices:h,columnCount:1,showPrice:b,rooms:[e],startIndex:t},e.id),s[13]=f,s[14]=h,s[15]=b,s[16]=e):e=s[16],a=c.map(e),s[8]=f,s[9]=h,s[10]=c,s[11]=b,s[12]=a}else a=s[12];s[17]!==a?(r=(0,o.jsx)(o.Fragment,{children:a}),s[17]=a,s[18]=r):r=s[18];let n=!v&&d;return s[19]!==t||s[20]!==r||s[21]!==n?(i=(0,o.jsx)(t2,{firstComponent:t,secondComponent:r,flipSwitch:n}),s[19]=t,s[20]=r,s[21]=n,s[22]=i):i=s[22],i}if(u){let e,t,a,r,i;if(s[23]!==v||s[24]!==x||s[25]!==h||s[26]!==m||s[27]!==b?(e=!v&&m.map(e=>(0,o.jsx)(tE,{onMoreInfoClicked:x,onTogglePrices:h,showPrice:b,roomGroup:e}
1,e.roomGroupId)),s[23]=v,s[24]=x,s[25]=h,s[26]=m,s[27]=b,s[28]=e):e=s[28],s[29]!==e?(t=(0,o.jsx)(o.Fragment,{children:e}),s[29]=e,s[30]=t):t=s[30],s[31]!==f||s[32]!==h||s[33]!==c||s[34]!==b){let e;s[36]!==f||s[37]!==h||s[38]!==b?(e=(e,t)=>(0,o.jsx)(tT,{onMoreInfoClicked:f,onTogglePrices:h,showPrice:b,room:e,lazyImage:t>0},e.id),s[36]=f,s[37]=h,s[38]=b,s[39]=e):e=s[39],a=c.map(e),s[31]=f,s[32]=h,s[33]=c,s[34]=b,s[35]=a}else a=s[35];s[40]!==a?(r=(0,o.jsx)(o.Fragment,{children:a}),s[40]=a,s[41]=r):r=s[41];let n=!v&&d;return s[42]!==t||s[43]!==r||s[44]!==n?(i=(0,o.jsx)(t2,{firstComponent:t,secondComponent:r,flipSwitch:n}),s[42]=t,s[43]=r,s[44]=n,s[45]=i):i=s[45],i}if(s[46]!==v||s[47]!==f||s[48]!==x||s[49]!==h||s[50]!==m||s[51]!==c||s[52]!==b){let e,t,n=(0,oa.default)(c,2);if(s[56]!==v||s[57]!==x||s[58]!==h||s[59]!==m||s[60]!==b){let t=(0,oa.default)(m,2);a=t2,e=!v&&t.map(e=>(0,o.jsx)(tI,{onMoreInfoClicked:x,onTogglePrices:e=>h(e),columnCount:e.length,showPrice:b,roomGroups:e},e[0].roomGroupId)),s[56]=v,s[57]=x,s[58]=h,s[59]=m,s[60]=b,s[61]=a,s[62]=e}else a=s[61],e=s[62];s[63]!==e?(i=(0,o.jsx)(o.Fragment,{children:e}),s[63]=e,s[64]=i):i=s[64],s[65]!==f||s[66]!==h||s[67]!==b?(t=(e,t)=>(0,o.jsx)(tA,{onMoreInfoClicked:f,onTogglePrices:e=>h(e),columnCount:2,showPrice:b,rooms:e,startIndex:2*t},e[0].id),s[65]=f,s[66]=h,s[67]=b,s[68]=t):t=s[68],r=n.map(t),s[46]=v,s[47]=f,s[48]=x,s[49]=h,s[50]=m,s[51]=c,s[52]=b,s[53]=a,s[54]=r,s[55]=i}else a=s[53],r=s[54],i=s[55];s[69]!==r?(n=(0,o.jsx)(o.Fragment,{children:r}),s[69]=r,s[70]=n):n=s[70];let g=!v&&d;return s[71]!==a||s[72]!==i||s[73]!==n||s[74]!==g?(l=(0,o.jsx)(a,{firstComponent:i,secondComponent:n,flipSwitch:g}),s[71]=a,s[72]=i,s[73]=n,s[74]=g,s[75]=l):l=s[75],l},t9=e=>{let r,i,n,l,s,c=(0,t.c)(36),{roomList:m,roomGroupList:d,roomGroupsAvailable:b,withPrices:v,isSearchBarTop:u,useNewClassic:p,roomUnavailabilityMap:h,forSpecificPackage:f,theme:x,onMoreInfoClicked:g,onImageButtonClicked:y}=e;if(c[0]!==f?.id||c[1]!==f?.name||c[2]!==u||c[3]!==d||c[4]!==m.length||c[5]!==x||c[6]!==p?(r=!u&&d.map((e,t)=>(0,o.jsxs)(a.Fragment,{children:[p?(0,o.jsx)($,{role:"listitem",roomGroup:e,forPackageId:f?.id,forPackageName:f?.name}):(0,o.jsx)(o4,{role:"listitem",roomGroup:e}),!p&&t!==m.length-1&&(0,o.jsx)("hr",{style:{height:x.css.dividerBorderWidth,border:0,margin:0,width:"100%",background:x.css.dividerBorderColor}})]},e.roomGroupId)),c[0]=f?.id,c[1]=f?.name,c[2]=u,c[3]=d,c[4]=m.length,c[5]=x,c[6]=p,c[7]=r):r=c[7],c[8]!==r?(i=(0,o.jsx)(o.Fragment,{children:r}),c[8]=r,c[9]=i):i=c[9],c[10]!==f?.id||c[11]!==f?.name||c[12]!==y||c[13]!==g||c[14]!==m||c[15]!==h||c[16]!==x||c[17]!==p||c[18]!==v){let e;c[20]!==f?.id||c[21]!==f?.name||c[22]!==y||c[23]!==g||c[24]!==m.length||c[25]!==h||c[26]!==x||c[27]!==p||c[28]!==v?(e=(e,t)=>(0,o.jsxs)(a.Fragment,{children:[p?(0,o.jsx)(o6,{role:"listitem",onMoreInfoClicked:g,onImageButtonClicked:y,showPrice:v,room:e,unavailabilityInfo:h.get(e.id),forPackageId:f?.id,forPackageName:f?.name,lazyImage:t>0}):(0,o.jsx)(oY,{role:"listitem",onMoreInfoClicked:g,showPrice:v,room:e,lazyImage:t>0}),!p&&t!==m.length-1&&(0,o.jsx)("hr",{"aria-hidden":"true",role:"separator",style:{height:x.css.dividerBorderWidth,border:0,margin:0,width:"100%",background:x.css.dividerBorderColor}})]},e.id),c[20]=f?.id,c[21]=f?.name,c[22]=y,c[23]=g,c[24]=m.length,c[25]=h,c[26]=x,c[27]=p,c[28]=v,c[29]=e):e=c[29],n=m.map(e),c[10]=f?.id,c[11]=f?.name,c[12]=y,c[13]=g,c[14]=m,c[15]=h,c[16]=x,c[17]=p,c[18]=v,c[19]=n}else n=c[19];c[30]!==n?(l=(0,o.jsx)(o.Fragment,{children:n}),c[30]=n,c[31]=l):l=c[31];let _=!u&&b;return c[32]!==i||c[33]!==l||c[34]!==_?(s=(0,o.jsx)(t2,{firstComponent:i,secondComponent:l,flipSwitch:_}),c[32]=i,c[33]=l,c[34]=_,c[35]=s):s=c[35],s},ae=e=>{let a,r=(0,t.c)(2);return r[0]!==e?(a=(0,o.jsx)(t9,{...e,useNewClassic:!0}),r[0]=e,r[1]=a):a=r[1],a};function ao(e){return(0,o.jsx)(ts,{roomGroup:e},e.roomGroupId)}let at=e=>{let a,n,c,m,d,b,v,u,p,h,f,g=(0,t.c)(59),{roomGroup:y,showPrice:_,forPackageId:C,forPackageName:j}=e,R=(0,s.useAccommodationTranslations)(),{channelId:A}=(0,l.useSinglePropertyContext)(),S=(0,i.useAccommodationSearchResult)(),N=(0,ey.useCurrencyFormatter)(),w=(0,tQ.default)(),I=!!C;g[0]!==I?(a={forSpecificPackage:I},g[0]=I,g[1]=a):a=g[1];let k=L(a),F=y.availableRooms?.map(aa)??[],P=(0,r.useAtomValue)((0,D.cheapestAvailableRoomRatesInRoomGroupState)({roomIds:F,channelId:A}))?.rates??[],G=(0,r.useAtomValue)((0,oJ.cheapestAvailableRoomRateInRoomGroupState)({roomIds:F,channelId:A})),T=P[0]?.cheapestRateAlternative;g[2]!==T?(n=[T],g[2]=T,g[3]=n):n=g[3];let{images:E,hasPrices:B,roomGroupId:H}=x(y,n),O=G?.price?.displayPrice;g[4]!==S?.accommodationSearch?.numberOfNights||g[5]!==R?(c=[1,void 0].includes(S?.accommodationSearch?.numberOfNights)?R("EA4H.General.ForOneNight"):(0,eA.GetTranslation)(R("EA4H.General.ForNightsLOWER"),S?.accommodationSearch?.numberOfNights),g[4]=S?.accommodationSearch?.numberOfNights,g[5]=R,g[6]=c):c=g[6];let M=c,z=`room-group-title-${H}`;g[7]!==O||g[8]!==C||g[9]!==j||g[10]!==E||g[11]!==k||g[12]!==y||g[13]!==w||g[14]!==H?(m=()=>{k(H,()=>w.open({roomGroup:y,images:E?.map(ar).filter(ai)||[],price:O,forPackageId:C,forPackageName:j}))},g[7]=O,g[8]=C,g[9]=j,g[10]=E,g[11]=k,g[12]=y,g[13]=w,g[14]=H,g[15]=m):m=g[15];let $=m;g[16]!==O||g[17]!==C||g[18]!==j||g[19]!==E||g[20]!==k||g[21]!==y||g[22]!==w||g[23]!==H?(d=e=>{e.stopPropagation(),k(H,()=>w.open({roomGroup:y,images:E?.map(an).filter(al)||[],price:O,defaultTab:"book-now",forPackageId:C,forPackageName:j}))},g[16]=O,g[17]=C,g[18]=j,g[19]=E,g[20]=k,g[21]=y,g[22]=w,g[23]=H,g[24]=d):d=g[24];let W=d;g[25]!==O||g[26]!==C||g[27]!==j||g[28]!==E||g[29]!==k||g[30]!==y||g[31]!==w||g[32]!==H?(b=()=>{k(H,()=>w.open({roomGroup:y,images:E?.map(as).filter(ac)||[],price:O,defaultTab:"photos",forPackageId:C,forPackageName:j}))},g[25]=O,g[26]=C,g[27]=j,g[28]=E,g[29]=k,g[30]=y,g[31]=w,g[32]=H,g[33]=b):b=g[33];let V=b;g[34]!==E?(v=E??[],g[34]=E,g[35]=v):v=g[35],g[36]!==y.name||g[37]!==z?(u=(0,o.jsx)(ob.default,{id:z,className:"bv:text-bv_subtitleFontSmaller",card:!0,children:y.name}),g[36]=y.name,g[37]=z,g[38]=u):u=g[38];let U=y.description??"";return g[39]!==U?(p=(0,o.jsx)(eG.default,{className:"bv:mt-[16px] bv:line-clamp-3",dangerouslySetInnerHTML:{__html:U}}),g[39]=U,g[40]=p):p=g[40],g[41]!==O||g[42]!==N||g[43]!==W||g[44]!==B||g[45]!==M||g[46]!==H||g[47]!==_||g[48]!==R?(h=_&&B&&O&&(0,o.jsxs)("div",{className:"bv:mt-auto bv:flex bv:flex-col bv:pt-[24px]","aria-live":"polite",children:[(0,o.jsxs)("div",{id:`price-info-${H}`,className:"bv:flex bv:flex-col",children:[(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:R("EA4H.General.From")}),(0,o.jsxs)("div",{className:"bv:flex bv:items-baseline bv:gap-[5px]",children:[(0,o.jsxs)("span",{className:"bv:leading-bv_bodyLargeLineHeight bv:font-bv_bodyFontFamily bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight",children:[N.formatCurrency(O)," ",N.currencyCode]}),M&&(0,o.jsx)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight",children:M})]})]}),(0,o.jsx)(eR.Button,{onClick:W,className:"bv:mt-[16px] bv:min-h-[44px]! bv:w-full bv:max-w-full!","aria-describedby":`price-info-${H}`,type:"button",children:R("EA4H.General.Choose")})]}),g[41]=O,g[42]=N,g[43]=W,g[44]=B,g[45]=M,g[46]=H,g[47]=_,g[48]=R,g[49]=h):h=g[49],g[50]!==$||g[51]!==V||g[52]!==y.name||g[53]!==u||g[54]!==p||g[55]!==h||g[56]!==v||g[57]!==z?(f=(0,o.jsxs)(om.NewTileBase,{onClick:$,onImageButtonClick:V,images:v,altLabel:y.name,titleId:z,children:[u,p,h]}),g[50]=$,g[51]=V,g[52]=y.name,g[53]=u,g[54]=p,g[55]=h,g[56]=v,g[57]=z,g[58]=f):f=g[58],f};function aa(e){return e.id}function ar(e){return e.url}function ai(e){return void 0!==e}function an(e){return e.url}function al(e){return void 0!==e}function as(e){return e.url}function ac(e){return void 0!==e}let am=e=>{let a,r,i,n=(0,t.c)(15),{roomGroups:l,columnCount:s,showPrice:c,responsive:m,forPackageId:d,forPackageName:b}=e;if(n[0]!==s||n[1]!==m?(a=(0,N.cn)("bv:grid",m?"bv:gap-[25px] bv:grid-cols-1 bv:bv_medium:grid-cols-2 bv:bv_large:grid-cols-3":(0,N.cn)("bv:gap-x-[25px]",1===s&&"bv:grid-cols-1",2===s&&"bv:grid-cols-2",3===s&&"bv:grid-cols-3")),n[0]=s,n[1]=m,n[2]=a):a=n[2],n[3]!==d||n[4]!==b||n[5]!==l||n[6]!==c){let e;n[8]!==d||n[9]!==b||n[10]!==c?(e=e=>(0,o.jsx)(at,{roomGroup:e,showPrice:c,forPackageId:d,forPackageName:b},e.roomGroupId),n[8]=d,n[9]=b,n[10]=c,n[11]=e):e=n[11],r=l.map(e),n[3]=d,n[4]=b,n[5]=l,n[6]=c,n[7]=r}else r=n[7];return n[12]!==a||n[13]!==r?(i=(0,o.jsx)("div",{className:a,"data-testid":"room_group_card_new_tile_group",children:r}),n[12]=a,n[13]=r,n[14]=i):i=n[14],i};var ad=e.i(49456);let ab=e=>{let a,r,i,n,l,c,m,d,b,v,u,p,h=(0,t.c)(36),{unfulfillableRoom:f,onSplitRooms:x,splitPreview:g}=e,y=(0,s.useAccommodationTranslations)();h[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(C.FontAwesomeIcon,{icon:eB.faInfoCircle,className:"bv:h-[16px] bv:w-[16px] bv:text-amber-600 bv:shrink-0 bv:mt-[2px]"}),h[0]=a):a=h[0],h[1]!==y?(r=y("EA4H.General.Room"),h[1]=y,h[2]=r):r=h[2];let _=f.roomNumber;h[3]!==y?(i=y("EA4H.General.Unavailable"),h[3]=y,h[4]=i):i=h[4],h[5]!==r||h[6]!==i||h[7]!==f.roomNumber?(n=(0,o.jsxs)("span",{className:"bv:font-bv_bodyBoldFontWeight",children:[r," ",_,": ",i]}
1),h[5]=r,h[6]=i,h[7]=f.roomNumber,h[8]=n):n=h[8],h[9]!==y?(l=y("EA4H.General.UnfulfillableRoomMessage"),h[9]=y,h[10]=l):l=h[10],h[11]!==l?(c=(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:l}}),h[11]=l,h[12]=c):c=h[12],h[13]!==n||h[14]!==c?(m=(0,o.jsxs)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:text-amber-800 bv:[&_b]:font-bv_bodyBoldFontWeight",children:[n," - ",c]}),h[13]=n,h[14]=c,h[15]=m):m=h[15];let j=f.requiredGuests;return h[16]!==y||h[17]!==f.requiredGuests?(d=1===f.requiredGuests?y("EA4H.General.Guest").toLowerCase():y("EA4H.General.Guests").toLowerCase(),h[16]=y,h[17]=f.requiredGuests,h[18]=d):d=h[18],h[19]!==y||h[20]!==f.maxAvailableOccupancy?(b=(0,eA.GetTranslation)(y("EA4H.General.Max{0}Persons"),f.maxAvailableOccupancy),h[19]=y,h[20]=f.maxAvailableOccupancy,h[21]=b):b=h[21],h[22]!==d||h[23]!==b||h[24]!==f.requiredGuests?(v=(0,o.jsxs)("span",{className:"bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:text-amber-700",children:[j," ",d," - ",b]}),h[22]=d,h[23]=b,h[24]=f.requiredGuests,h[25]=v):v=h[25],h[26]!==x||h[27]!==g||h[28]!==y||h[29]!==f.maxAvailableOccupancy||h[30]!==f.requiredGuests?(u=x&&g&&f.requiredGuests>f.maxAvailableOccupancy&&(0,o.jsxs)("button",{onClick:x,className:"bv:mt-[2px] bv:inline-flex bv:flex-wrap bv:items-center bv:gap-[4px] bv:bg-transparent bv:border-0 bv:p-0 bv:cursor-pointer bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-800 bv:underline bv:hover:text-amber-900",children:[y("EA4H.General.SplitIntoMultipleRooms"),":"," ",g.configs.map((e,o)=>{let t=[];return e.adults>0&&t.push(`${e.adults} ${1===e.adults?y("EA4H.General.Adult").toLowerCase():y("EA4H.General.Adults").toLowerCase()}`),e.childAges.length>0&&t.push(`${e.childAges.length} ${1===e.childAges.length?y("EA4H.General.Child").toLowerCase():y("EA4H.General.Children").toLowerCase()}`),(o>0?" + ":"")+t.join(", ")})]}),h[26]=x,h[27]=g,h[28]=y,h[29]=f.maxAvailableOccupancy,h[30]=f.requiredGuests,h[31]=u):u=h[31],h[32]!==v||h[33]!==u||h[34]!==m?(p=(0,o.jsxs)("div",{className:"bv:animate-highlight-fade bv:mb-[24px] bv:flex bv:items-start bv:gap-[12px] bv:bg-amber-50 bv:px-[16px] bv:py-[12px] bv:bv_medium:px-[32px] bv:bv_medium:rounded-bv_cardBorderRadius",children:[a,(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[4px]",children:[m,v,u]})]}),h[32]=v,h[33]=u,h[34]=m,h[35]=p):p=h[35],p};var av=e.i(629197),au=e.i(661760),ap=e.i(595727);let ah=({rooms:e,hideUnavailable:u,roomGroups:p,presentationTypeOverride:h,onRoomInfoClickedOverride:f,forSpecificPackage:x})=>{let g=(0,s.useAccommodationTranslations)(),y=(0,a.useRef)(null),_=(0,a.useRef)(!1),C=(0,i.useAccommodationSearchResult)(),j=(0,a.useRef)(C),R=(0,a.useRef)(0);C!==j.current&&(j.current=C,R.current++);let A=(0,c.useTheme)(),{isSmallScreen:S,isVerySmallScreen:N}=(0,m.useScreenSizes)(),w=A.css.viewType===T.ViewType.SearchBarTop,I=p&&p.length>0,{withPrices:k}=(0,a.useContext)(v.RoomListContext),{isSpUnderMpChannel:F}=(0,n.useChannelContext)(),P=F&&A?.style?.packagePresentationType===T.SearchResultPresentationType.Classic,{data:B}=(0,d.useBasket)(),{data:L}=(0,b.useGuestRooms)(),H=B?.booking?.bookingData,{roomList:O,roomGroupList:M,roomGroupsAvailable:z,bookedRooms:D}=(e=>{let o,a,n,l,s,c,m=(0,t.c)(51),{rooms:b,roomGroups:v,hideUnavailable:u,withPrices:p,forSpecificPackage:h,isSearchBarTop:f}=e,x=(0,i.useAccommodationSearchResult)(),{data:g}=(0,d.useBasket)(),y=(0,r.useAtomValue)(eo.searchOptionsSelectedAccommodationTypesState),_=g?.booking?.bookingData?.rooms??Z.EMPTY_ARRAY,C=v&&v.length>0;m[0]!==_||m[1]!==f||m[2]!==x?.roomsResult?(o=(e,o)=>{let t=x?.roomsResult?.find(t=>t.roomId===e&&(void 0===o||t.isPackage===o));return t?f?(0,J.getRemainingAvailability)(e,t.nrAvailable,_):t.nrAvailable??0:0},m[0]=_,m[1]=f,m[2]=x?.roomsResult,m[3]=o):o=m[3];let j=o;if(m[4]!==_||m[5]!==h||m[6]!==C||m[7]!==u||m[8]!==f||m[9]!==v||m[10]!==b||m[11]!==x||m[12]!==y||m[13]!==p){if(n=(0,ee.default)(b,ea),a=(0,ee.default)(v,er)??[],l=!0,y?.length){let e;m[17]!==y?(e=e=>!e.typeOfAccommodation||y.includes(e.typeOfAccommodation),m[17]=y,m[18]=e):e=m[18],n=n.filter(e),a=a.filter(e=>{let o=n.find(o=>o.roomTypeGroupId===e.roomGroupId);return!!o&&(!o.typeOfAccommodation||y.includes(o.typeOfAccommodation))})}if(C&&!x?.roomsResult&&(a=a?.filter(e=>!!n.find(o=>o.roomTypeGroupId===e.roomGroupId)).map(e=>{let o=n.filter(o=>o.roomTypeGroupId===e.roomGroupId);return{...e,availableRooms:(0,ee.default)(o,ei)}})??[]),x?.roomsResult&&u){let e;if(m[19]!==_||m[20]!==f||m[21]!==x?.roomsResult?(e=e=>{let o=x?.roomsResult?.find(o=>o.roomId===e.id);return!!o&&(f?(0,J.getRemainingAvailability)(e.id,o.nrAvailable,_):o.nrAvailable??0)>0},m[19]=_,m[20]=f,m[21]=x?.roomsResult,m[22]=e):e=m[22],n=n.filter(e),h){let e;m[23]!==_||m[24]!==f||m[25]!==x?.roomsResult?(e=e=>{let o=x?.roomsResult?.find(o=>o.roomId===e.id&&!0===o.isPackage);return!!o&&(f?(0,J.getRemainingAvailability)(e.id,o.nrAvailable,_):o.nrAvailable??0)>0},m[23]=_,m[24]=f,m[25]=x?.roomsResult,m[26]=e):e=m[26],n=n.filter(e)}}
1if(x?.roomsResult&&p)if(h){if(x?.searchResultSortOrder===T.SearchResultSortOrder.Price){let e;m[27]!==h||m[28]!==x?.roomsResult?(e=e=>x?.roomsResult?.find(o=>o.isPackage&&o.rateAlternatives?.some(e=>e.packageId===h.id)&&o.roomId===e.id)?.cheapestPriceNoLock??1/0,m[27]=h,m[28]=x?.roomsResult,m[29]=e):e=m[29],n=(0,ee.default)(n,e)}else if(x?.searchResultSortOrder===T.SearchResultSortOrder.Rank){let e;m[30]!==h||m[31]!==x?.roomsResult?(e=e=>x?.roomsResult?.find(o=>o.isPackage&&o.rateAlternatives?.some(e=>e.packageId===h.id)&&o.roomId===e.id)?.roomRank,m[30]=h,m[31]=x?.roomsResult,m[32]=e):e=m[32],n=(0,ee.default)(n,e)}C&&(a=a?.filter(e=>!!n.find(o=>o.roomTypeGroupId===e.roomGroupId)).map(e=>({...e,availableRooms:n.filter(o=>o.roomTypeGroupId===e.roomGroupId),unavailableRooms:u?void 0:n.filter(o=>o.roomTypeGroupId===e.roomGroupId)}))??[])}else{let e,o,t;m[33]!==_||m[34]!==f||m[35]!==x?.roomsResult?(e=e=>{let o=x?.roomsResult?.find(o=>o.roomId===e);return o?f?(0,J.getRemainingAvailability)(e,o.nrAvailable,_):o.nrAvailable??0:0},m[33]=_,m[34]=f,m[35]=x?.roomsResult,m[36]=e):e=m[36];let r=e;m[37]!==r?(o=e=>r(e.id)>0,m[37]=r,m[38]=o):o=m[38];let i=n.filter(o);m[39]!==r?(t=e=>0===r(e.id),m[39]=r,m[40]=t):t=m[40];let l=n.filter(t),s=(0,ee.default)(l,en),c=x?.searchResultSortOrder===T.SearchResultSortOrder.Price?(0,et.orderByPrice)(i,x):(0,ee.default)(i,el);C&&(a=a?.filter(e=>!!n.find(o=>o.roomTypeGroupId===e.roomGroupId)).map(e=>({...e,availableRooms:c.filter(o=>o.roomTypeGroupId===e.roomGroupId),unavailableRooms:u?void 0:s.filter(o=>o.roomTypeGroupId===e.roomGroupId)}))??[]),n=[...c,...s]}if(C&&x?.roomsResult&&p){let e=a.filter(es),o=u?[]:a.filter(ec),t=(0,ee.default)(e,em),r=(0,ee.default)(o,ed);0===t.length&&(l=!1),a=[...t,...r]}C&&(n=n.filter(eb)),m[4]=_,m[5]=h,m[6]=C,m[7]=u,m[8]=f,m[9]=v,m[10]=b,m[11]=x,m[12]=y,m[13]=p,m[14]=a,m[15]=n,m[16]=l}else a=m[14],n=m[15],l=m[16];m[41]!==a||m[42]!==n||m[43]!==l?(s={roomList:n,roomGroupList:a,roomGroupsAvailable:l},m[41]=a,m[42]=n,m[43]=l,m[44]=s):s=m[44];let{roomList:R,roomGroupList:A,roomGroupsAvailable:S}=s;return m[45]!==_||m[46]!==j||m[47]!==A||m[48]!==S||m[49]!==R?(c={roomList:R,roomGroupList:A,roomGroupsAvailable:S,bookedRooms:_,getRoomAvailableCount:j},m[45]=_,m[46]=j,m[47]=A,m[48]=S,m[49]=R,m[50]=c):c=m[50],c})({rooms:e,roomGroups:p,hideUnavailable:u,withPrices:k,forSpecificPackage:x,isSearchBarTop:w}),W=(e=>{let o,a,n,l,s,c,m=(0,t.c)(29),{rooms:d,bookedRooms:b,forSpecificPackage:v,onRoomInfoClickedOverride:u}=e,p=(0,r.useSetAtom)(ep.selectedRoomState),h=(0,i.useAccommodationSearchResult)(),{push:f}=(0,G.useRouter)(),{getUrl:x}=(0,E.useNavigationManager)(),g=!!v;m[0]!==g?(o={forSpecificPackage:g},m[0]=g,m[1]=o):o=m[1];let y=eu(o);m[2]!==p?(a=e=>{p(o=>o?.roomId===e?{roomId:e,isExpanded:!o.isExpanded}:{roomId:e,isExpanded:!0})},m[2]=p,m[3]=a):a=m[3];let _=a;m[4]!==b||m[5]!==v?.id||m[6]!==v?.name||m[7]!==u||m[8]!==y||m[9]!==d||m[10]!==h?.accommodationSearch?.roomConfigs||m[11]!==h?.roomsResult?(n=(e,o)=>{if(u){o?.preventDefault(),u(e);return}o?.preventDefault();let t=d.find(o=>o.id===e);if(!t)return;let a=h?.roomsResult?.find(o=>o.roomId===e),r=(0,X.findMissingRoomConfigIndex)(h?.accommodationSearch?.roomConfigs,b);y({room:t,images:t.images?.map(eh).filter(ef)||[],price:a?.cheapestPriceNoLock,fromPrice:a?.cheapestPrice,roomConfigIndex:r>=0?r:b.length,forPackageId:v?.id,forPackageName:v?.name})},m[4]=b,m[5]=v?.id,m[6]=v?.name,m[7]=u,m[8]=y,m[9]=d,m[10]=h?.accommodationSearch?.roomConfigs,m[11]=h?.roomsResult,m[12]=n):n=m[12];let C=n;m[13]!==b||m[14]!==v?.id||m[15]!==v?.name||m[16]!==y||m[17]!==d||m[18]!==h?.accommodationSearch?.roomConfigs||m[19]!==h?.roomsResult?(l=e=>{let o=d.find(o=>o.id===e);if(!o)return;let t=h?.roomsResult?.find(o=>o.roomId===e),a=(0,X.findMissingRoomConfigIndex)(h?.accommodationSearch?.roomConfigs,b);y({room:o,images:o.images?.map(ex).filter(eg)||[],price:t?.cheapestPriceNoLock,fromPrice:t?.cheapestPrice,defaultTab:"photos",roomConfigIndex:a>=0?a:b.length,forPackageId:v?.id,forPackageName:v?.name})},m[13]=b,m[14]=v?.id,m[15]=v?.name,m[16]=y,m[17]=d,m[18]=h?.accommodationSearch?.roomConfigs,m[19]=h?.roomsResult,m[20]=l):l=m[20];let j=l;m[21]!==x||m[22]!==f?(s=e=>{e&&f(x("room group info",{detailsPageParam:{paramName:"roomtypegroupid",paramValue:e}}))},m[21]=x,m[22]=f,m[23]=s):s=m[23];let R=s;return m[24]!==j||m[25]!==C||m[26]!==R||m[27]!==_?(c={onTogglePrices:_,onMoreInfoClicked:C,onImageButtonClicked:j,onRoomGroupMoreInfoClicked:R},m[24]=j,m[25]=C,m[26]=R,m[27]=_,m[28]=c):c=m[28],c})({rooms:e,bookedRooms:D,forSpecificPackage:x,onRoomInfoClickedOverride:f}),V=(({rooms:e,roomList:o})=>{let t=(0,c.useTheme)(),n=(0,i.useAccommodationSearchResult)(),{data:l}=(0,d.useBasket)(),{data:s}=(0,b.useGuestRooms)(),m=l?.booking?.bookingData?.rooms??Z.EMPTY_ARRAY,v=l?.booking?.bookingData,u=t?.css?.viewType===T.ViewType.SearchBarTop,p=(0,Y.useContinueToCheckout)({bookingData:v}),h=(0,a.useCallback)((e,o)=>{let t=n?.roomsResult?.find(t=>t.roomId===e&&(void 0===o||t.isPackage===o));return t?u?(0,J.getRemainingAvailability)(e,t.nrAvailable,m):t.nrAvailable??0:0},[n?.roomsResult,u,m]),f=n?.accommodationSearch?.roomConfigs?.length??m.length,[x,g]=(0,r.useAtom)(Q.skippedRoomConfigsState),y=JSON.stringify(n?.accommodationSearch?.roomConfigs?.map(e=>({adults:e.adults,children:e.childAges?.length}))),_=(0,a.useRef)(y);(0,a.useEffect)(()=>{_.current!==y&&(_.current=y,x.length>0&&g([]))},[y,x.length,g]);let C=(0,a.useMemo)(()=>(0,X.findMissingRoomConfigIndex)(n?.accommodationSearch?.roomConfigs,m,x),[n?.accommodationSearch?.roomConfigs,m,x]),j=u&&f>1,R=(0,a.useMemo)(()=>!(C<0)&&!!n?.accommodationSearch?.roomConfigs&&(0,X.hasRemainingBookableConfigs)(n.accommodationSearch.roomConfigs,m,x,C),[C,n?.accommodationSearch?.roomConfigs,m,x]),A=(0,a.useCallback)(()=>{!(C<0)&&R&&g(e=>[...e,C])},[C,R,g]),S=m.length>0?m[0].paymentPolicyId:void 0,N=x.length>0&&0===m.length,w=(0,a.useMemo)(()=>{let e=new Map;if(!j||C<0||!n?.roomsResult)return e;let t=n?.accommodationSearch?.roomConfigs?.[C],a=t?.adults??0,r=t?.childAges?.length??0,i=a+r;return o.forEach(o=>{let t=n?.roomsResult?.find(e=>e.roomId===o.id),l=o.maxOccupancy??0;0>=h(o.id)?e.set(o.id,{unavailable:!0,reason:"no_rates",maxOccupancy:l,requiredGuests:i}
1):l<i?e.set(o.id,{unavailable:!0,reason:"occupancy",maxOccupancy:l,requiredGuests:i}):N||(t?t.rateAlternatives?.some(e=>{let o=e?.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,t=e.roomConfig?.childAges?.length||0;return o===a&&t===r&&e.totalPrice?.priceInclVAT!==void 0&&e.totalPrice.priceInclVAT>0});return!!o&&(!S||!o.paymentPolicyId||o.paymentPolicyId===S)})||(t.rateAlternatives?.some(e=>!!e?.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,t=e.roomConfig?.childAges?.length||0;return o===a&&t===r&&e.totalPrice?.priceInclVAT!==void 0&&e.totalPrice.priceInclVAT>0}))?e.set(o.id,{unavailable:!1,reason:"payment_policy",maxOccupancy:l,requiredGuests:i}):e.set(o.id,{unavailable:!0,reason:"no_rates",maxOccupancy:l,requiredGuests:i})):e.set(o.id,{unavailable:!0,reason:"no_rates",maxOccupancy:l,requiredGuests:i}))}),e},[j,C,n,o,S,N,h]),I=(0,a.useCallback)(e=>{if(!n?.accommodationSearch?.roomConfigs||C<0)return!0;let o=n.accommodationSearch.roomConfigs[C],t=o?.adults??0,a=o?.childAges?.length??0,r=e?.ratesPerRoomConfig?.find(e=>{let o=e.roomConfig?.adults||0,r=e.roomConfig?.childAges?.length||0;return o===t&&r===a&&e.totalPrice?.priceInclVAT!==void 0&&e.totalPrice.priceInclVAT>0});return!!r&&(!S||!r.paymentPolicyId||r.paymentPolicyId===S)},[n?.accommodationSearch?.roomConfigs,C,S]),k=C>=0?n?.accommodationSearch?.roomConfigs?.[C]:void 0,F=k?{roomId:"",priceInfo:[],status:T.ItemStatus.NotChanged,internalBookingId:"",totalPrice:0,originalTotalPrice:0,startDate:new Date,endDate:new Date,roomConfig:k}:void 0,P=u&&f>1,G=P&&m.length+x.length>=f,E=(0,a.useMemo)(()=>{if(!j||!n?.roomsResult||!n?.accommodationSearch?.roomConfigs)return[];let e=[];return n.accommodationSearch.roomConfigs.forEach((t,a)=>{let r=(t.adults??0)+(t.childAges?.length??0),i=Math.max(...o.map(e=>e.maxOccupancy??0),0);o.some(e=>{if((e.maxOccupancy??0)<r)return!1;let o=n.roomsResult?.find(o=>o.roomId===e.id);return!!o&&o.rateAlternatives?.some(e=>{let o=e?.ratesPerRoomConfig?.find(e=>(e.roomConfig?.adults||0)===r);return o&&o.totalPrice?.priceInclVAT!==void 0&&o.totalPrice.priceInclVAT>0})})||e.push({configIndex:a,requiredGuests:r,maxAvailableOccupancy:i})}),e},[j,n,o]),B=j&&m.length+x.length<f&&o.length>0&&o.every(e=>w.get(e.id)?.unavailable),L=j&&m.length>0&&m.length<f&&0===o.length&&n?.roomsResult!==void 0,H=B&&C>=0?n?.accommodationSearch?.roomConfigs?.[C]:void 0,O=(0,a.useMemo)(()=>{if(!B)return 0;let e=0;return w.forEach(o=>{"occupancy"===o.reason&&(o.maxOccupancy??0)>e&&(e=o.maxOccupancy??0)}),e},[B,w]),M=B&&C>=0?{roomNumber:C+1,requiredGuests:(H?.adults??0)+(H?.childAges?.length??0),maxAvailableOccupancy:O,adults:H?.adults??0,childAges:H?.childAges??[],configIndex:C}:void 0;return{bookedRooms:m,skippedRoomConfigs:x,nextRoomConfigIndex:C,totalRooms:f,isMultiRoomMode:j,showMultiRoomSection:P,allRoomsBooked:G,allRoomsUnavailable:B,noRoomsAvailableForConfig:L,canSkipToNextConfig:R,hasSkippedWithoutBooking:N,bookingData:v,guestRooms:s,firstBookedRoomPaymentPolicyId:S,nextRoomConfig:k,nextRoomForIndicator:F,roomUnavailabilityMap:w,unfulfillableRoomConfigs:E,unfulfillableRoomInfo:M,skipCurrentRoom:A,handleContinueToCheckout:p,getRoomAvailableCount:h,hasValidRateForConfig:I}})({rooms:e,roomList:O}),{makeSearch:U,setRoomConfigs:q}=(0,ad.useSearch)(),ev=(0,ek.useBasketOperations)(),{channelId:ey}=(0,n.useChannelContext)(),{channelInfo:e_}=(0,l.useSinglePropertyContext)(),eC=(0,a.useCallback)(async()=>{let e=V.unfulfillableRoomInfo;if(!e||!C?.accommodationSearch)return;let{adults:o,childAges:t,maxAvailableOccupancy:a,configIndex:r}=e,i=C.accommodationSearch.roomConfigs??[];if(a<=0)return;let n=Math.ceil((o+t.length)/a),l=e_?.maxNrRoomsPerReservation;if(l&&l>0){let e=l-(i.length-1);if(e<=0)return;n=Math.min(n,e)}let s=[],c=[...t].sort((e,o)=>o-e),m=[],d=o;for(let e=0;e<n;e++){let o=Math.min(Math.ceil(d/(n-e)),a);m.push(o),d-=o}let b=0;for(let e=0;e<n;e++){let o=a-m[e],t=c.slice(b,b+o);b+=t.length,s.push({adults:m[e],childAges:t})}let v=[...i.slice(0,r),...s,...i.slice(r+1)];if(D.length>0)try{await ev.removeRoomsFromBasket.mutateAsync({request:{roomToRemoveInfos:D.map(e=>({internalBookingId:e.internalBookingId,roomType:T.RoomType.Accommodation})),channelId:ey},waitForNewBasket:!0})}catch{}q(v),_.current=!0},[V.unfulfillableRoomInfo,C,D,ev,ey,e_,q]),ej=(0,a.useMemo)(()=>{let e=V.unfulfillableRoomInfo;if(!e)return null;let{adults:o,childAges:t,maxAvailableOccupancy:a}=e;if(a<=0)return null;let r=o+t.length;if(r<=a)return null;let i=Math.ceil(r/a),n=C?.accommodationSearch?.roomConfigs??[],l=e_?.maxNrRoomsPerReservation;if(l&&l>0){let e=l-(n.length-1);if(e<=0)return null;i=Math.min(i,e)}if(i*a<r||o<i)return null;let s=[...t].sort((e,o)=>o-e),c=[],m=o;for(let e=0;e<i;e++){let o=Math.min(Math.ceil(m/(i-e)),a);c.push(o),m-=o}let d=0,b=[];for(let e=0;e<i;e++){let o=a-c[e],t=s.slice(d,d+o);d+=t.length,b.push({adults:c[e],childAges:t})}return{roomsNeeded:i,configs:b}},[V.unfulfillableRoomInfo,C?.accommodationSearch?.roomConfigs,e_]);(0,a.useEffect)(()=>{_.current&&(_.current=!1,U({params:{preventUTCDateTransform:!0}}))}),(0,a.useEffect)(()=>{(S||N)&&k&&C?.accommodationSearch&&y?.current?.scrollIntoView({block:"start"})},[S,y,C,N,k]);let eR=h??A.style?.accommodationPresentationType,eA=eR===T.SearchResultPresentationType.Plate,eS=eR==T.SearchResultPresentationType.Classic,eN=eR===T.SearchResultPresentationType.TileLarge,ew=eR===T.SearchResultPresentationType.Tile,eI=(0,a.useMemo)(()=>V.isMultiRoomMode&&!(V.nextRoomConfigIndex<0)&&C?.roomsResult?[...O].sort((e,o)=>{let t=V.roomUnavailabilityMap.get(e.id)?.unavailable??!1,a=V.roomUnavailabilityMap.get(o.id)?.unavailable??!1;return t&&!a?1:!t&&a?-1:0}):O,[O,V.isMultiRoomMode,V.nextRoomConfigIndex,V.roomUnavailabilityMap,C?.roomsResult]),eF=(0,a.useMemo)(()=>V.isMultiRoomMode&&!(V.nextRoomConfigIndex<0)&&I&&C?.roomsResult?M.map(e=>({...e,availableRooms:e.availableRooms?.filter(e=>C?.roomsResult?.some(o=>o.roomId===e.id))})).filter(e=>(e.availableRooms?.length??0)>0):M,[M,V.isMultiRoomMode,V.nextRoomConfigIndex,I,C?.roomsResult]),eP=(0,r.useAtomValue)(av.selectedCalendarStartDate),eG=(0,r.useAtomValue)(au.selectedCalendarEndDate),eT=(0,r.useAtomValue)(tj.searchOptionsRoomConfigsState),eE=!(0,a.useMemo)(()=>{let e=C?.accommodationSearch;if(!e)return!1;let o=e.arrivalDate?(0,et.toUTCDate)(new Date(e.arrivalDate)).toDateString():void 0;if((eP?(0,et.toUTCDate)(new Date(eP)).toDateString():void 0)!==o)return!0;
1if(e.arrivalDate&&null!=e.numberOfNights&&eG){let o=(0,ap.addDays)((0,et.toUTCDate)(new Date(e.arrivalDate)),e.numberOfNights).toDateString();if((0,et.toUTCDate)(new Date(eG)).toDateString()!==o)return!0}let t=e.roomConfigs??[];if(eT.length!==t.length)return!0;for(let e=0;e<eT.length;e++){let o=eT[e],a=t[e];if(o.NrOfAdults!==a.adults||o.Children.filter(e=>void 0!==e.Age).length!==(a.childAges?.length??0)+ +!!a.sharerAge)return!0}return!1},[C?.accommodationSearch,eP,eG,eT])&&V.isMultiRoomMode&&D.length>0&&D.length<V.totalRooms&&0===eI.length&&0===eF.length&&C?.roomsResult!==void 0,eB=eI.length>0||eF.length>0,eL=!V.allRoomsBooked&&!eE&&eB,eH={roomList:eI,roomGroupList:eF,roomGroupsAvailable:z,withPrices:k,isSearchBarTop:w,isSmallScreen:S,isVerySmallScreen:N,roomUnavailabilityMap:V.roomUnavailabilityMap,forSpecificPackage:x,theme:{css:A.css},...W},eO=()=>w&&eN?(0,o.jsx)(t5,{...eH}):w&&!eS?eI.length>2?(0,o.jsx)(t3,{...eH}):(0,o.jsx)(ae,{...eH}):P||eA?(0,o.jsx)(t6,{...eH}):eN?(0,o.jsx)(t7,{...eH}):ew?(0,o.jsx)(t8,{...eH}):(0,o.jsx)(t9,{...eH,useNewClassic:w}),eM=eL?(0,o.jsx)(K.ProductList,{ref:y,role:"list","aria-label":g("EA4H.General.Rooms"),children:eO()}):null,ez=V.showMultiRoomSection&&(0,o.jsxs)(e$,{bookedRooms:D,skippedRoomConfigs:V.skippedRoomConfigs,roomConfigs:C?.accommodationSearch?.roomConfigs??[],totalRooms:V.totalRooms,nextRoomConfigIndex:V.nextRoomConfigIndex,nextRoomForIndicator:V.nextRoomForIndicator,rooms:e,guestRooms:L,bookingData:H,searchResults:C??void 0,children:[V.unfulfillableRoomInfo&&(0,o.jsx)(ab,{unfulfillableRoom:V.unfulfillableRoomInfo,onSplitRooms:V.unfulfillableRoomInfo&&ej?eC:void 0,splitPreview:ej??void 0},`search-${R.current}`),eM]}),eD=w&&I&&!V.allRoomsBooked&&!eN&&(0,o.jsx)(K.ProductList,{role:"list","aria-label":g("EA4H.General.Rooms"),children:ew?(0,o.jsx)(am,{roomGroups:eF,responsive:!0,showPrice:k,forPackageId:x?.id,forPackageName:x?.name}):(0,o.jsx)(o.Fragment,{children:eF.map(e=>(0,o.jsx)($,{role:"listitem",roomGroup:e,forPackageId:x?.id,forPackageName:x?.name},e.roomGroupId))})});return(0,o.jsx)(ot,{multiRoomBookingSection:ez,showContinueBar:V.allRoomsBooked&&V.showMultiRoomSection,bookingData:H,noRoomsAvailableForConfig:eE,nextRoomConfig:V.nextRoomConfig,nextRoomConfigIndex:V.nextRoomConfigIndex,totalRooms:V.totalRooms,bookedRoomsCount:D.length,unfulfillableRoomInfo:V.unfulfillableRoomInfo,canSkipToNextConfig:V.canSkipToNextConfig,onSkipRoom:V.skipCurrentRoom,onSplitRooms:V.unfulfillableRoomInfo&&ej?eC:void 0,splitPreview:ej??void 0,roomGroupsSection:eD,showContent:eL,listRef:y,roomsLabel:g("EA4H.General.Rooms"),wrapContentInMultiRoom:V.showMultiRoomSection,searchResultKey:`search-${R.current}`,children:eO()})};function af(e){return e.anyDormitoryBed}function ax(e){return(e.nrAvailable??!1)&&e.rateAlternatives?.some(af)}e.s(["RoomList",0,e=>{let r,n,l,s,m,d,b,u,p=(0,t.c)(22);p[0]!==e?({preventSinglePriceListResult:r,...n}=e,p[0]=e,p[1]=r,p[2]=n):(r=p[1],n=p[2]);let h=(0,c.useTheme)(),f=(0,i.useAccommodationSearchResult)();f?.roomsResult,p[3]!==f?.roomsResult?(l=f?.roomsResult?.some(ax),p[3]=f?.roomsResult,p[4]=l):l=p[4];let x=l,g=r&&!x,y=n.presentationTypeOverride??h?.style?.accommodationPresentationType,_=h?.css?.viewType===T.ViewType.SearchBarTop,C=`RoomList_PresentationType_${y}`;return p[5]!==_||p[6]!==y?(s=(0,o.jsx)("div",{className:"bv:w-full",children:(0,o.jsx)(eq,{presentationType:y,isSearchBarTop:_})}),p[5]=_,p[6]=y,p[7]=s):s=p[7],p[8]!==n?(m=(0,o.jsx)(ah,{...n}),p[8]=n,p[9]=m):m=p[9],p[10]!==s||p[11]!==m?(d=(0,o.jsx)(a.Suspense,{fallback:s,children:m}),p[10]=s,p[11]=m,p[12]=d):d=p[12],p[13]!==x||p[14]!==g||p[15]!==r||p[16]!==n.withPrices||p[17]!==d?(b=(0,o.jsx)(v.RoomListContextProvider,{singleSearch:g,hasAnyDormitoryBeds:x,withPrices:n.withPrices,preventSinglePriceListResult:r,children:d}),p[13]=x,p[14]=g,p[15]=r,p[16]=n.withPrices,p[17]=d,p[18]=b):b=p[18],p[19]!==C||p[20]!==b?(u=(0,o.jsx)(q.ErrorBoundary,{boundaryName:C,children:b}),p[19]=C,p[20]=b,p[21]=u):u=p[21],u}],128365)}]);

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.