1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,119599,e=>{"use strict";var o=e.i(843476),a=e.i(500932),t=e.i(644870);e.s(["RoomGroupAboutTab",0,e=>{let r,i,l,s=(0,a.c)(7),{roomGroup:n}=e;return s[0]!==n.name?(r=(0,o.jsx)(t.default,{level:2,children:n.name}),s[0]=n.name,s[1]=r):r=s[1],s[2]!==n.description?(i=n.description&&(0,o.jsx)("div",{className:"bv:mt-[24px] bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyFontWeight bv:leading-bv_bodyLineHeight",dangerouslySetInnerHTML:{__html:n.description}}),s[2]=n.description,s[3]=i):i=s[3],s[4]!==r||s[5]!==i?(l=(0,o.jsxs)("div",{children:[r,i]}),s[4]=r,s[5]=i,s[6]=l):l=s[6],l}])},728171,455750,e=>{"use strict";e.s(["RoomGroupBookNowTab",()=>g],728171);var o=e.i(843476),a=e.i(500932),t=e.i(271645),r=e.i(906554),i=e.i(707690),l=e.i(58840),s=e.i(775911),n=e.i(672464);e.i(951548);var c=e.i(939676),d=e.i(843123),b=e.i(482582),m=e.i(89819),v=e.i(108121),u=e.i(461025),h=e.i(639372);let p=(0,u.atomFamily)(({roomIds:e,channelId:o})=>(0,h.atom)(a=>{if(e)return{rates:e.map(e=>{let t=a((0,v.filteredRates)({roomId:e,channelId:o})),r=t.flatMap(e=>e.ratesPerRoomConfig).sort((e,o)=>e?.totalPrice?.displayPrice-o?.totalPrice?.displayPrice)[0];if(r)return{roomId:e,cheapestRateAlternative:t.find((e,o)=>t[o].ratesPerRoomConfig?.findIndex(e=>e.ageGroupId===r?.ageGroupId)!==-1)}}).filter(Boolean)}}),(e,o)=>JSON.stringify(e.roomIds)===JSON.stringify(o.roomIds));e.s(["cheapestAvailableRoomRatesInRoomGroupState",0,p],455750);var x=e.i(577259),f=e.i(399611);let g=e=>{let v,u,h,g,N,R,C=(0,a.c)(29),{roomGroup:P,forPackageId:S,forPackageName:F,hideEmptyState:O,allRooms:T}=e,{channelId:w}=(0,r.useSinglePropertyContext)(),k=(0,i.useAccommodationSearchResult)(),E=(0,l.useAccommodationTranslations)(),{data:H}=(0,s.useBasket)(),G=(0,n.useSetAtom)(x.selectedObjectState),I=(0,t.useRef)(void 0),B=P?.roomGroupId,L=P?.name;C[0]!==S||C[1]!==F||C[2]!==B||C[3]!==L||C[4]!==G?(v=()=>((B||S)&&G(e=>(I.current=e,S)?{objectId:S,objectType:"Package",objectName:F,productType:"package",config:{isAdultsOnly:!1}}:{objectId:B,objectType:"Room Type Group",objectName:L,productType:"room_group",config:{isAdultsOnly:!1}}),()=>{G(I.current)}),u=[B,L,S,F,G],C[0]=S,C[1]=F,C[2]=B,C[3]=L,C[4]=G,C[5]=v,C[6]=u):(v=C[5],u=C[6]),(0,t.useLayoutEffect)(v,u);let D=[...P.availableRooms?.map(y)??[],...P.unavailableRooms?.map(_)??[]],z=H?.booking?.bookingData?.rooms??f.EMPTY_ARRAY,M=z.length>0?z[0].paymentPolicyId:void 0,W=(0,n.useAtomValue)(p({roomIds:D,channelId:w}))?.rates??[],$=!!k?.roomsResult,V=W?.map(A).filter(j)??[],K=M&&V.some(e=>{let o=e.ratesPerRoomConfig?.[0]?.paymentPolicyId;return o&&o!==M}),q=(M?V.filter(e=>{let o=e.ratesPerRoomConfig?.[0]?.paymentPolicyId;return!o||o===M}):V).length>0;return C[7]!==S||C[8]!==F||C[9]!==P.name||C[10]!==P.roomGroupId?(h=S?{type:"package",id:S,name:F}:{type:"room_group",id:P.roomGroupId,name:P.name},C[7]=S,C[8]=F,C[9]=P.name,C[10]=P.roomGroupId,C[11]=h):h=C[11],C[12]!==$||C[13]!==O?(g=!O&&!$&&(0,o.jsx)("div",{className:"bv:mb-[24px]",children:(0,o.jsx)(c.AccommodationSearchBar,{inModal:!0,embedded:!0})}),C[12]=$,C[13]=O,C[14]=g):g=C[14],C[15]!==T||C[16]!==W||C[17]!==q||C[18]!==K||C[19]!==$||C[20]!==O||C[21]!==P.availableRooms||C[22]!==P.unavailableRooms||C[23]!==E?(N=q?(0,o.jsx)("div",{className:"bv:mt-[24px]",children:(0,o.jsx)(m.RoomGroupRoomList,{rooms:P.availableRooms??[],unavailableRooms:P.unavailableRooms,rates:W??[]})}):K?(0,o.jsx)("div",{className:"bv:p-[30px] bv:text-center","aria-live":"polite",role:"status","aria-label":"Room group availability status",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)(b.default,{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-amber-700",children:E("EA4H.General.RequiresSeparateBooking")})})}):O&&!$?(0,o.jsx)("div",{className:"bv:mt-[24px]",children:(0,o.jsx)(m.RoomGroupRoomList,{rooms:T??[],rates:[]})}):(0,o.jsx)("div",{className:"bv:p-[30px] bv:text-center","aria-live":"polite",role:"status","aria-label":"Room group availability status",children:E($?"EA4H.General.NoAvailabilityMessage":"EA4H.Online.SearchToSeeAvailability")}),C[15]=T,C[16]=W,C[17]=q,C[18]=K,C[19]=$,C[20]=O,C[21]=P.availableRooms,C[22]=P.unavailableRooms,C[23]=E,C[24]=N):N=C[24],C[25]!==h||C[26]!==g||C[27]!==N?(R=(0,o.jsxs)(d.AccommodationBookingProvider,{product:h,children:[g,N]}),C[25]=h,C[26]=g,C[27]=N,C[28]=R):R=C[28],R};function y(e){return e.id}function _(e){return e.id}function A(e){return e?.cheapestRateAlternative}function j(e){return!!e}},209089,e=>{"use strict";var o=e.i(843476),a=e.i(500932),t=e.i(271645),r=e.i(58840),i=e.i(793081),l=e.i(707690),s=e.i(605458),n=e.i(628574),c=e.i(482582),d=e.i(298533),b=e.i(107918),m=e.i(134887);let v=(e,o)=>{let a=e?.typeOfAccommodation===d.AccommodationType.Camping,t=[];return e.bedTypes?.[0]&&t.push((0,m.default)(e.bedTypes[0],o)),e.numberOfBeds&&!a&&t.pu
1sh(`${e?.numberOfBeds} ${o("EA4H.General.BedsLOWER")}`),e.maxOccupancy&&t.push(`Max ${e.maxOccupancy} ${o("EA4H.General.PersonThreeLetterLOWER")}`),e.roomSize&&t.push((0,b.getRoomSize)(e)),t.join(" · ")};var u=e.i(331378),h=e.i(672464),p=e.i(401851),x=e.i(615514),f=e.i(18803),g=e.i(293784),y=e.i(344306),_=e.i(906554),A=e.i(619837),j=e.i(748863),N=e.i(704134),R=e.i(178126),C=e.i(936613),P=e.i(443898);function S(e){let o=(0,l.useAccommodationSearchResult)(),a=(0,h.useSetAtom)(N.showYouSearchedForState),{channelInfo:i}=(0,_.useSinglePropertyContext)(),{data:s}=(0,f.useGuestRooms)(),n=(0,r.useAccommodationTranslations)(),c=(0,g.default)(),{push:d}=(0,A.useNavigationManager)(),b=(0,y.useCurrencyFormatter)(),{bvUnavailableDateSearchEvent:m}=(0,j.useBVTracking)(),v=(0,u.useIsFetching)({queryKey:["accommodationsearch"]})>0,S=s?.rooms?.find(o=>o.id===e.roomId),F=o?.roomsResult?.filter(o=>o.roomId===e.roomId),O=e.cheapestRateAlternative,T=(0,t.useMemo)(()=>(0,R.isRoomConfigValidForGuestroom)(n,o?.accommodationSearch?.roomConfigs??[],S,F?.[0]),[o,S,n,e]);return{isSearching:v,searchResults:o,translations:n,channelInfo:i,currencyFormatter:b,roomInGuestRooms:S,rateAlternative:O,isValidSearchConfig:T,rateTitleClicked:()=>{c.open(S.id)},showValidDatesClicked:()=>{let e=o?.accommodationSearch,t=(0,R.toUTCDate)(e.arrivalDate);m({arrival_date:(0,p.format)(t,"yyyy-MM-dd"),departure_date:(0,p.format)((0,x.add)(t,{days:e.numberOfNights}),"yyyy-MM-dd"),number_of_rooms:e.roomConfigs?.length,number_of_adults:(0,C.countTotalAdults)(e.roomConfigs),number_of_children:(0,P.countTotalChildren)(e.roomConfigs),child_ages:(e=>{let o=[];for(let a of e)void 0!==a.childAges&&a.childAges.forEach(e=>o.push(e.toString()));return[...new Set(o)]})(e.roomConfigs).map(e=>Number(e)),promo_code:e.voucherNumber??"N/A",agent_code:"N/A",corp_code:"N/A"}),d("no availability accommodation"),a(!1)}}}var F=e.i(84062),O=e.i(208271),T=e.i(369609),w=e.i(179472),k=e.i(896846),E=e.i(811488),H=e.i(859951);let G=e=>{let t,i,l,s,n=(0,a.c)(15),{roomId:c,chooseDate:d}=e,b=(0,r.useAccommodationTranslations)(),{open:m}=(0,g.default)(),{open:v}=(0,w.default)();n[0]!==d||n[1]!==v||n[2]!==m||n[3]!==c?(t=()=>{d?v(c):m(c)},n[0]=d,n[1]=v,n[2]=m,n[3]=c,n[4]=t):t=n[4];let u=t;return n[5]!==d?(i=d?(0,o.jsx)(E.FontAwesomeIcon,{icon:k.faCalendar,className:"bv:mr-[8px]"}):null,n[5]=d,n[6]=i):i=n[6],n[7]!==d||n[8]!==b?(l=b(d?"EA4H.General.ChooseDate":"EA4H.General.Book"),n[7]=d,n[8]=b,n[9]=l):l=n[9],n[10]!==d||n[11]!==u||n[12]!==i||n[13]!==l?(s=(0,o.jsxs)(H.Button,{"data-testid":"book_button",onClick:u,withIcon:d,"aria-haspopup":"dialog",children:[i,l]}),n[10]=d,n[11]=u,n[12]=i,n[13]=l,n[14]=s):s=n[14],s};var I=e.i(722120),B=e.i(956058);let L=e=>{let r,i,l,n,d,b,m=(0,a.c)(29);m[0]!==e?({pathStyleOverride:l,cheapestRateAlternativeByRoom:r,className:i,...n}=e,m[0]=e,m[1]=r,m[2]=i,m[3]=l,m[4]=n):(r=m[1],i=m[2],l=m[3],n=m[4]);let{isSearching:u,searchResults:h,translations:p,channelInfo:x,currencyFormatter:f,roomInGuestRooms:g,rateAlternative:y,isValidSearchConfig:_,rateTitleClicked:A,showValidDatesClicked:j}=S(r),{currencyCode:N,formatCurrency:R}=f,C=`${p("EA4H.Online.GreatOffer")} - ${p("EA4H.Online.YouSave")}`,P=y.ratesPerRoomConfig?.[0]?.totalPrice?.displayOriginalPrice!==y.ratesPerRoomConfig?.[0]?.totalPrice?.displayPrice;m[5]!==P||m[6]!==N||m[7]!==y.ratesPerRoomConfig?.[0]?.totalPrice||m[8]!==h?.showDiscountAsFixedAmount?(d=P?(0,F.getSaveAmountOrPercentage)(y.ratesPerRoomConfig?.[0]?.totalPrice,N,h?.showDiscountAsFixedAmount):void 0,m[5]=P,m[6]=N,m[7]=y.ratesPerRoomConfig?.[0]?.totalPrice,m[8]=h?.showDiscountAsFixedAmount,m[9]=d):d=m[9];let w=d;return m[10]!==x?.currency||m[11]!==P||m[12]!==r?.cheapestRateAlternative?.ratesPerRoomConfig||m[13]!==i||m[14]!==R||m[15]!==u||m[16]!==_?.message||m[17]!==_?.reason||m[18]!==_?.valid||m[19]!==C||m[20]!==l||m[21]!==n||m[22]!==A||m[23]!==g||m[24]!==w||m[25]!==h?.accommodationSearch?.numberOfNights||m[26]!==j||m[27]!==p?(b=u?(0,o.jsx)(B.default,{simple:!0,className:"bv:h-[120px] bv:w-full",role:"listitem"}):(0,o.jsx)("div",{className:(0,s.cn)("bv:bv_card bv:border-(--bv-cardBorderWidth,0) bv:overflow-hidden bv:rounded-bv_c
1ardBorderRadius bv:border-solid bv:border-(--bv-cardBorderColor,transparent)",i),...n,children:(0,o.jsxs)(O.RateAlternativeOuter,{pathStyleOverride:l,className:"rate_alt_outer",children:[(0,o.jsxs)("div",{className:"bv:row-start-1 bv:row-end-100 bv:pr-[20px]",children:[(0,o.jsx)(T.RateTitle,{onClick:A,"aria-haspopup":"dialog",children:g.name}),(0,o.jsx)("p",{className:"bv:flex bv:flex-wrap bv:text-bv_smallFontSize","data-testid":"room_group_card_tile_room_details",children:v(g,p)}),P&&(0,o.jsxs)(c.default,{size:"small",bold:!0,className:"bv:mt-[5px] bv:text-bv_offerColorDark",children:[(0,o.jsx)(E.FontAwesomeIcon,{icon:I.faThumbsUp,className:"bv:mr-[6px]"}),C," ",w]}),!_?.valid&&(0,o.jsxs)("div",{className:"bv:m-0 bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_offerColorDark",children:[(0,o.jsx)("p",{className:"bv:inline",children:_?.message}),_?.reason==="roomconfig"&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(c.default,{className:"bv:text-bv_cardColor",children:[(0,o.jsx)("strong",{children:p("EA4H.General.UnavailableForSelectedNumberOfGuests")})," -"," ",p("EA4H.General.TryAdjustingNumberOfGuestsPerRoom").toLocaleLowerCase()]})}),_?.reason==="dates"&&(0,o.jsxs)(o.Fragment,{children:[" - ",(0,o.jsx)("button",{className:"bv:inline bv:cursor-pointer bv:whitespace-nowrap bv:border-0 bv:bg-transparent bv:p-0 bv:text-inherit bv:underline",onClick:j,type:"button",children:p("EA4H.General.ViewAvailableDates")})]})]})]}),(0,o.jsx)("div",{className:"bv:col-start-3 bv:row-start-1 bv:row-end-100 bv:grid bv:grid-cols-2 bv:content-center bv:items-center",children:r?.cheapestRateAlternative?.ratesPerRoomConfig?.map(e=>(0,o.jsxs)(t.Fragment,{children:[(0,o.jsxs)("div",{className:"bv:mr-[20px] bv:flex bv:flex-col bv:px-0 bv:py-[10px] bv:text-right",children:[P&&(0,o.jsxs)("s",{className:"bv:text-bv_smallFontSize bv:opacity-bv_bodyMutedOpacity",children:[R(e.totalPrice?.originalPriceInclVAT??0)," ",x?.currency]}),(0,o.jsxs)("p",{className:(0,s.cn)("bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight",P?"bv:text-bv_offerColorDark":"bv:text-bv_cardColor"),children:[R(e.totalPrice?.displayPrice??0)," ",x?.currency]}),(0,o.jsx)("span",{className:"bv:text-bv_smallFontSize bv:lowercase bv:opacity-bv_bodyMutedOpacity",children:[1,void 0].includes(h?.accommodationSearch?.numberOfNights)?p("EA4H.General.ForOneNight"):p("EA4H.General.ForNightsLOWER",h?.accommodationSearch?.numberOfNights)})]}),(0,o.jsx)(G,{roomId:g.id})]},e.hitKey))})]})}),m[10]=x?.currency,m[11]=P,m[12]=r?.cheapestRateAlternative?.ratesPerRoomConfig,m[13]=i,m[14]=R,m[15]=u,m[16]=_?.message,m[17]=_?.reason,m[18]=_?.valid,m[19]=C,m[20]=l,m[21]=n,m[22]=A,m[23]=g,m[24]=w,m[25]=h?.accommodationSearch?.numberOfNights,m[26]=j,m[27]=p,m[28]=b):b=m[28],b};var D=e.i(249792),z=e.i(277944);let M=e=>{let i,s,n,c,d,b,m,h,p,x,A,j=(0,a.c)(34),{room:N,cheapestRateAlternativeByRoom:R}=e,C=(0,l.useAccommodationSearchResult)(),{channelInfo:P}=(0,_.useSinglePropertyContext)(),{data:S}=(0,f.useGuestRooms)(),F=(0,r.useAccommodationTranslations)(),{open:w}=(0,g.default)(),k=(0,y.useCurrencyFormatter)();j[0]===Symbol.for("react.memo_cache_sentinel")?(i={queryKey:["accommodationsearch"]},j[0]=i):i=j[0];let E=(0,u.useIsFetching)(i)>0;j[1]!==R?.roomId||j[2]!==S?.rooms||j[3]!==N?(s=N??S?.rooms?.find(e=>e.id===R?.roomId),j[1]=R?.roomId,j[2]=S?.rooms,j[3]=N,j[4]=s):s=j[4];let H=s,I=R?.cheapestRateAlternative,L=I?.ratesPerRoomConfig?.[0]?.totalPrice?.displayOriginalPrice!==I?.ratesPerRoomConfig?.[0]?.totalPrice?.displayPrice;j[5]!==w||j[6]!==H.id?(n=()=>{w(H.id)},j[5]=w,j[6]=H.id,j[7]=n):n=j[7];let D=n;if(E){let e;return j[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(B.default,{simple:!0,className:"bv:h-[120px] bv:w-full",role:"listitem"}),j[8]=e):e=j[8],e}return j[9]!==D||j[10]!==H.name?(c=(0,o.jsx)(T.RateTitle,{onClick:D,children:H.name}),j[9]=D,j[10]=H.name,j[11]=c):c=j[11],j[12]!==H||j[13]!==F?(d=v(H,F),j[12]=H,j[13]=F,j[14]=d):d=j[14],j[15]!==d?(b=(0,o.jsx)("p",{className:"bv:flex bv:flex-wrap bv:text-bv_smallFontSize","data-testid":"room_group_card_tile_room_details",children:d}),j[15]=d,j[16]=b):b=j[16],j[17]!==c||j[18]!==b?(m=(0,o.jsxs)("div",{className:"bv:row-start-1 bv:row-end-100 bv:pr-[20px]",children:[c,b]}),j[17]=c,j[18]=b,j[19]=m):m=j[19],j[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)("div",{className:"bv:row-start-1 bv:row-end-100"}),j[20]=h):h=j[20],j[21]!==P?.currency||j[22]!==L||j[23]!==R||j[24]!==k||j[25]!==H.id||j[26]!==C||j[27]!==F?(p=R?R?.cheapestRateAlternative?.ratesPerRoomConfig?.map(e=>(0,o.jsx)(t.Fragment,{children:(0,o.jsx)("div",{className:"bv:flex bv:flex-col bv:items-center bv:gap-0",children:(0,o.jsxs)("div",{className:"bv:flex bv:gap-0",children:[(0,o.jsxs)("div",{className:"bv:mr-[20px] bv:flex bv:flex-col bv:px-0 bv:py-[10px] bv:text-right",children:[L&&(0,o.jsxs)("s",{className:"bv:text-bv_smallFontSize bv:opacity-bv_bodyMutedOpacity",children:[k.formatCurrency(e.totalPrice?.originalPriceInclVAT??0)," ",P?.currency]}),(0,o.jsxs)("p",{className:"bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_cardColor",children:[k.formatCurrency(e.totalPrice?.displayPrice??0)," ",P?.currency]}),(0,o.jsx)("span",{className:"bv:text-bv_smallFontSize bv:lowercase bv:opacity-bv_bodyMutedOpacity",children:[1,void 0].includes(C?.accommodationSearch?.numberOfNights)?F("EA4H.General.ForOneNight"):F("EA4H.General.ForNightsLOWER",C?.accommodationSearch?.numberOfNights)})]}),(0,o.jsx)("div",{className:"bv:w-[101px]",children:(0,o.jsx)(G,{roomId:H.id})})]})})},e.hitKey)):C?(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:items-center bv:gap-2",children:[(0,o.jsx)("div",{className:"bv:text-sm bv:font-bold bv:text-bv_offerColorDark",children:F("EA4H.General.NotAvailableForSelectedDates")}),(0,o.jsx)(G,{roomId:H.id,chooseDate:!0})]}):(0,o.jsx)("div",{children:(0,o.jsx)(G,{roomId:H.id,chooseDate:!0})}),j[21]=P?.currency,j[22]=L,j[23]=R,j[24]=k,j[25]=H.id,j[26]=C,j[27]=F,j[28]=p):p=j[28],j[29]!==p?(x=(0,o.jsx)("div",{className:"bv:row-start-1 bv:row-end-100 bv:flex bv:items-center bv:ju
1stify-center",children:p}),j[29]=p,j[30]=x):x=j[30],j[31]!==x||j[32]!==m?(A=(0,o.jsx)("div",{className:"bv:bv_card bv:border-(--bv-cardBorderWidth,0) bv:overflow-hidden bv:rounded-bv_cardBorderRadius bv:border-solid bv:border-(--bv-cardBorderColor,transparent)",role:"listitem",children:(0,o.jsxs)(O.RateAlternativeOuter,{pathStyleOverride:!1,className:"rate_alt_outer",children:[m,h,x]})}),j[31]=x,j[32]=m,j[33]=A):A=j[33],A},W=(e,o)=>{let a={};for(let e of o)a[e?.id]=e?.rank;return[...e].sort((e,o)=>{let t=a[e.roomId],r=a[o.roomId];return t===r?0:t>r?1:-1})},$=e=>[...e].sort((e,o)=>e.rank===o.rank?0:e.rank>o.rank?1:-1);var V=e.i(66768);let K=(0,t.forwardRef)(function({rates:e,noArrow:a,alignArrow:b,allRooms:m,hasMiddleArrow:v},u){let h=(0,V.useTheme)(),p=(0,r.useAccommodationTranslations)(),x=(0,i.usePageType)(),f=(0,t.useRef)(null),g=(0,l.useAccommodationSearchResult)();(0,t.useImperativeHandle)(u,()=>({scrollToPriceList(){f.current?.scrollIntoView?.({behavior:"smooth",block:"center"})}}));let y="accommodation"===x&&h.style?.accommodationPresentationType===d.SearchResultPresentationType.Classic||"specificpackage"===x&&h.style?.roomsInPackagePresentationType===d.SearchResultPresentationType.Classic,_=(0,t.useMemo)(()=>W(e,m??[]),[e,m]),A=(0,t.useMemo)(()=>$(m??[]),[m]);return(0,o.jsxs)("div",{ref:f,className:"price_list",children:[(0,o.jsx)("div",{className:(0,s.cn)("bv:relative bv:grid bv:h-[25px] bv:justify-center bv:content-end",a?"bv:opacity-0":"bv:opacity-100")}),(0,o.jsxs)(n.default,{fakeCard:y,alignArrow:b,hasMiddleArrow:v,withTopArrow:!y,arrowColor:h.css.darkAccentColor,className:y?"bv:bg
1-transparent! bv:border-0!":"",children:[(0,o.jsx)("div",{className:(0,s.cn)("bv:grid bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:rounded-t-bv_cardBorderRadius bv:px-0",y?"bv:h-auto bv:bg-transparent bv:text-bv_bodyColor":"bv:h-[40px] bv:bg-bv_darkAccentColor bv:text-bv_accentDarkFontColor",e?.length>0?"bv:grid-cols-[3.2fr_1.2fr_2fr]":"bv:grid-cols-[3.2fr_2fr]"),children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.default,{bold:!0,size:"small",muted:y,className:(0,s.cn)("bv:text-current bv:self-center",y?"bv:pl-0":"bv:pl-[25px]"),children:p("EA4H.Online.AvailableRooms")}),e?.length>0&&(0,o.jsx)(c.default,{bold:!0,size:"small",muted:y,className:"bv:text-current bv:self-center bv:pl-[3px]",children:p("EA4H.General.Terms")}),(0,o.jsx)(D.FirstLetterCapitalized,{muted:y,className:"bv:text-bv_smallFontSize bv:self-center bv:text-current bv:whitespace-nowrap bv:text-center bv:pr-[50px]",bold:!0,children:p("EA4H.General.TodaysPrice").toLowerCase()})]})}),(0,o.jsxs)(z.InnerPriceList,{className:(0,s.cn)("inner_price_list",y?"bv:p-0 bv:mt-[10px]":"bv:p-[25px] bv:mt-0"),role:"list","aria-label":p("EA4H.Online.AvailableRooms"),children:[_?.map((e,a)=>(0,o.jsx)(L,{className:"bv:border-0",pathStyleOverride:y,cheapestRateAlternativeByRoom:e},`room_rate_${a}`)),0===_.length&&g&&A?.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"bv:pb-4 bv:px-4 bv:text-center bv:border-b bv:border-bv_dividerBorderColor",children:(0,o.jsxs)("p",{className:"bv:text-bv_offerColorDark bv:font-bold",children:[p("EA4H.General.UnavailableForYourSearch")," - ",p("EA4H.General.TryChangingRoomConfig").toLocaleLowerCase()]})}),A.map(e=>(0,o.jsx)(M,{room:e},`room_${e?.id}`))]}),0===_.length&&!g&&A?.length>0&&A.map(e=>(0,o.jsx)(M,{room:e},`room_${e?.id}`))]})]})]})});var q=e.i(121029),Y=e.i(67290),U=e.i(844119),Q=e.i(186616),J=e.i(274523);let X=e=>{let t,i,s,d,b,m,h,p=(0,a.c)(21),{room:x}=e,f=(0,r.useAccommodationTranslations)(),y=(0,g.default)(),_=(0,l.useAccommodationSearchResult)();p[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:["accommodationsearch"]},p[0]=t):t=p[0];let A=(0,u.useIsFetching)(t)>0;p[1]!==x?.id||p[2]!==y?(i=()=>{y.open(x?.id)},p[1]=x?.id,p[2]=y,p[3]=i):i=p[3];let j=i;if(A){let e;return p[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(B.default,{simple:!0,className:"bv:h-[200px] bv:w-full"}),p[4]=e):e=p[4],e}let N=x?.name;return p[5]!==j||p[6]!==N?(s=(0,o.jsx)(J.RateTitle,{onClick:j,"aria-haspopup":"dialog",children:N}),p[5]=j,p[6]=N,p[7]=s):s=p[7],p[8]!==x||p[9]!==f?(d=v(x,f),p[8]=x,p[9]=f,p[10]=d):d=p[10],p[11]!==d?(b=(0,o.jsx)(c.default,{size:"small",className:"bv:flex bv:flex-wrap bv:justify-center","data-testid":"room_group_card_tile_room_details",children:d}),p[11]=d,p[12]=b):b=p[12],p[13]!==x?.id||p[14]!==_||p[15]!==f?(m=(0,o.jsx)("div",{className:"bv:flex bv:h-full bv:flex-col bv:justify-end",children:_?(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:items-center bv:gap-2",children:[(0,o.jsx)("p",{className:"bv:text-center bv:text-sm bv:font-bold bv:text-bv_offerColorDark",children:f("EA4H.General.NotAvailableForSelectedDates")}),(0,o.jsx)("div",{className:"bv:mt-[10px] bv:h-[40px]",children:(0,o.jsx)(G,{roomId:x?.id,chooseDate:!0})})]}):(0,o.jsx)("div",{className:"bv:mt-[10px] bv:h-[40px]",children:(0,o.jsx)(G,{roomId:x?.id,chooseDate:!0})})}),p[13]=x?.id,p[14]=_,p[15]=f,p[16]=m):m=p[16],p[17]!==s||p[18]!==b||p[19]!==m?(h=(0,o.jsx)(n.default,{fakeCard:!0,children:(0,o.jsxs)(Q.RateTile,{className:"rate_tile bv:p-5",pathStyleOverride:!0,children:[s,b,m]})}),p[17]=s,p[18]=b,p[19]=m,p[20]=h):h=p[20],h},Z=e=>{let r,i,l,s,d,b,m,u,h,p,x,f=(0,a.c)(40);f[0]!==e?({pathStyleOverride:i,cheapestRateAlternativeByRoom:r,...l}=e,f[0]=e,f[1]=r,f[2]=i,f[3]=l):(r=f[1],i=f[2],l=f[3]);let{isSearching:g,searchResults:y,translations:_,channelInfo:A,currencyFormatter:j,roomInGuestRooms:N,rateAlternative:R,isValidSearchConfig:C,rateTitleClicked:P,showValidDatesClicked:O}=S(r);if(g){let e;return f[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(B.default,{simple:!0,className:"bv:h-[200px] bv:w-full"}),f[4]=e):e=f[4],e}return f[5]!==P||f[6]!==N.name?(s=(0,o.jsx)(J.RateTitle,{onClick:P,role:"button",tabIndex:0,"aria-haspopup":"dialog",children:N.name}),f[5]=P,f[6]=N.name,f[7]=s):s=f[7],f[8]!==N||f[9]!==_?(d=v(N,_),f[8]=N,f[9]=_,f[10]=d):d=f[10],f[11]!==d?(b=(0,o.jsx)("p",{className:"bv:flex bv:flex-wrap bv:justify-center bv:text-bv_smallFontSize","data-testid":"room_group_card_tile_room_details",children:d}),f[11]=d,f[12]=b):b=f[12],f[13]!==C?.message||f[14]!==C?.reason||f[15]!==C?.valid||f[16]!==O||f[17]!==_?
1(m=!C?.valid&&(0,o.jsxs)("div",{className:"bv:m-0 bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_offerColorDark",children:[(0,o.jsx)("p",{className:"bv:inline",children:C?.message}),C?.reason==="roomconfig"&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(c.default,{card:!0,children:[(0,o.jsx)("strong",{children:_("EA4H.General.UnavailableForSelectedNumberOfGuests")})," -"," ",_("EA4H.General.TryAdjustingNumberOfGuestsPerRoom").toLocaleLowerCase()]})}),C?.reason==="dates"&&(0,o.jsxs)(o.Fragment,{children:[" - ",(0,o.jsx)("button",{className:"bv:inline bv:cursor-pointer bv:whitespace-nowrap bv:border-0 bv:bg-transparent bv:p-0 bv:text-inherit bv:underline",onClick:O,type:"button",children:_("EA4H.General.ViewAvailableDates")})]})]}),f[13]=C?.message,f[14]=C?.reason,f[15]=C?.valid,f[16]=O,f[17]=_,f[18]=m):m=f[18],f[19]!==A?.currency||f[20]!==j||f[21]!==R.currency||f[22]!==R.discountInfos||f[23]!==R.ratesPerRoomConfig||f[24]!==N.id||f[25]!==y?.accommodationSearch?.numberOfNights||f[26]!==y?.showDiscountAsFixedAmount||f[27]!==_?(u=R.ratesPerRoomConfig?.map((e,a)=>{let r=e.totalPrice?.displayOriginalPrice!==e.totalPrice?.displayPrice,i=`${_("EA4H.Online.GreatOffer")} - ${_("EA4H.Online.YouSave")}`;r&&R.discountInfos?.length===1&&(i=`${R.discountInfos[0].name} - ${_("EA4H.Online.YouSave")}`);let l=r?(0,F.getSaveAmountOrPercentage)(e.totalPrice,A?.currency,y?.showDiscountAsFixedAmount):void 0;return(0,o.jsxs)(t.Fragment,{children:[!r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{className:"bv:mt-[15px] bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight",children:[j.formatCurrency(e.totalPrice?.displayPrice??0)," ",R.currency," "]}),(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"bv:text-bv_smallFontSize bv:lowercase bv:opacity-bv_bodyMutedOpacity",children:[1,void 0].includes(y?.accommodationSearch?.numberOfNights)?_("EA4H.General.ForOneNight"):_("EA4H.General.ForNightsLOWER",y?.accommodationSearch?.numberOfNights)})})]}),r&&l&&(0,o.jsxs)("div",{className:"bv:mt-[15px]",children:[(0,o.jsxs)("p",{className:"bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_offerColorDark",children:[(0,o.jsx)(E.FontAwesomeIcon,{icon:I.faThumbsUp,className:"bv:mr-[6px]"}),i," ",l]}),(0,o.jsxs)("s",{className:"bv:text-bv_smallFontSize bv:opacity-bv_bodyMutedOpacity",children:[j.formatCurrency(e.totalPrice?.originalPriceInclVAT??0)," ",R.currency]}),(0,o.jsxs)("span",{className:"bv:ml-[4px] bv:text-bv_bodyLargeFontSize bv:font-bv_bodyBoldFontWeight bv:text-bv_offerColorDark",children:[j.formatCurrency(e.totalPrice?.displayPrice??0)," ",R.currency]}),(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"bv:text-bv_smallFontSize bv:lowercase bv:opacity-bv_bodyMutedOpacity",children:[1,void 0].includes(y?.accommodationSearch?.numberOfNights)?_("EA4H.General.ForOneNight"):_("EA4H.General.ForNightsLOWER",y?.accommodationSearch?.numberOfNights)})})]}),(0,o.jsx)("div",{className:"bv:mt-[10px] bv:h-[40px]",children:(0,o.jsx)(G,{roomId:N.id})})]},`${e.hitKey}_${a}`)}),f[19]=A?.currency,f[20]=j,f[21]=R.currency,f[22]=R.discountInfos,f[23]=R.ratesPerRoomConfig,f[24]=N.id,f[25]=y?.accommodationSearch?.numberOfNights,f[26]=y?.showDiscountAsFixedAmount,f[27]=_,f[28]=u):u=f[28],f[29]!==u?(h=(0,o.jsx)("div",{className:"bv:flex bv:h-full bv:flex-col bv:justify-end",children:u}),f[29]=u,f[30]=h):h=f[30],f[31]!==i||f[32]!==s||f[33]!==b||f[34]!==m||f[35]!==h?(p=(0,o.jsxs)(Q.RateTile,{className:"rate_tile bv:p-5",pathStyleOverride:i,children:[s,b,m,h]}),f[31]=i,f[32]=s,f[33]=b,f[34]=m,f[35]=h,f[36]=p):p=f[36],f[37]!==l||f[38]!==p?(x=(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(n.default,{fakeCard:!0,...l,children:p})}),f[37]=l,f[38]=p,f[39]=x):x=f[39],x},ee=(0,t.forwardRef)(function({rates:e,noArrow:a,alignArrow:b,allRooms:m,hasMiddleArrow:v},u){let h=(0,V.useTheme)(),p=(0,r.useAccommodationTranslations)(),x=(0,q.useIsDetailsPage)(),{data:g}=(0,f.useGuestRooms)(),y=(0,i.usePageType)(),_=(0,l.useAccommodationSearchResult)(),A=(0,Y.useMediaQuery)({query:h.mediaQueries.verySmall}),j=(0,t.useRef)(null),N=!x&&("accommodation"===y&&h.style?.accommodationPresentationType===d.SearchResultPresentationType.Classic||"specificpackage"===y&&h.style?.roomsInPackagePresentationType===d.SearchResultPresentationType.Classic);(0,t.useImperativeHandle)(u,()=>({scrollToPriceList(){j.current?.scrollIntoView?.({behavior:"smooth",block:"center"})}}));let R=(0,t.useMemo)(()=>{var o=e.map(e=>e?.roomId).map(e=>g?.rooms?.find(o=>o.id===e)?.typeOfAccommodation);if(0===o.length)return"";let a=o[0];if(o.every(e=>e===a))switch(a){case d.AccommodationType.Apartment:return p("EA4H.Online.AvailableRooms_Apartment");case d.AccommodationType.Berth:return p("EA4H.Online.AvailableRooms_Berth");case d.AccommodationType.Cabin:return p("EA4H.Online.AvailableRooms_Cabin");case d.AccommodationType.Camping:return p("EA4H.Online.AvailableRooms_Camping");case d.AccommodationType.DormitoryBed:return p("EA4H.Online.AvailableRooms_DormitoryBed");case d.AccommodationType.Hostel:return p("EA4H.Online.AvailableRooms_Hostel");case d.AccommodationType.Hotel:return p("EA4H.Online.AvailableRooms_Hotel");case d.AccommodationType.Pension:return p("EA4H.Online.AvailableRooms_Pension");case d.AccommodationType.VacationRental:return p("EA4H.Online.AvailableRooms_VacationRental");case d.AccommodationType.Villa:return p("EA4H.Online.AvailableRooms_Villa")}return p("EA4H.Online.AvailableRooms")},[e]),C=(0,t.useMemo)(()=>W(e,m??[]),[e,m]),P=(0,t.useMemo)(()=>$(m??[]),[m]);return(0,o.jsxs)("div",{ref:j,id:"price_list",className:"price_list_tiles",children:[(0,o.jsx)("div",{className:(0,s.cn)("bv:relative bv:grid bv:h-[25px] bv:justify-center bv:content-end",a?"bv:opacity-0":"bv:opacity-100")}),(0,o.jsxs)(n.default,{fakeCard:x||N,alignArrow:b,withTopArrow:!x&&!N,hasMiddleArrow:v,className:N?"bv:bg
1-transparent!":"",children:[!x&&(0,o.jsxs)("div",{className:(0,s.cn)("bv:flex bv:items-center bv:gap-[20px]",N?"bv:pt-0 bv:px-0":A?"bv:pt-[20px] bv:px-[20px]":"bv:pt-[25px] bv:px-[25px]"),children:[(0,o.jsx)("hr",{className:(0,s.cn)("bv:m-0 bv:border-0 bv:w-full bv:h-bv_dividerBorderWidth",N?"bv:bg-bv_dividerBorderColor":"bv:bg-bv_cardDividerColor")}),(0,o.jsx)(c.default,{bold:!0,muted:!0,className:(0,s.cn)("bv:whitespace-nowrap bv:mb-[3px]",!N&&"bv:text-bv_cardColor"),children:R}),(0,o.jsx)("hr",{className:(0,s.cn)("bv:m-0 bv:border-0 bv:w-full bv:h-bv_dividerBorderWidth",N?"bv:bg-bv_dividerBorderColor":"bv:bg-bv_cardDividerColor")})]}),(0,o.jsxs)(U.InnerPriceListTiles,{className:(0,s.cn)("inner_price_list_tiles",x||N?"bv:p-0":A?"bv:px-[20px] bv:pt-[15px] bv:pb-[20px]":"bv:px-[25px] bv:pt-[15px] bv:pb-[25px]",x||N?"bv:gap-[20px]":"bv:gap-[15px]",N?"bv:mt-[15px]":"bv:mt-0",x||N?"bv:bg-transparent":"bv:bg-bv_cardBackground","bv:rounded-bv_cardBorderRadius"),narrow:!0,role:"list","aria-label":p("EA4H.Online.AvailableRooms"),children:[C?.map((e,a)=>(0,o.jsx)(Z,{pathStyleOverride:x||N,cheapestRateAlternativeByRoom:e},`room_rate_${a}`)),0===C.length&&_&&P?.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"bv:pb-4 bv:px-4 bv:text-center bv:col-span-full bv:border-b bv:border-bv_dividerBorderColor",children:(0,o.jsxs)("p",{className:"bv:text-bv_offerColorDark bv:font-bold",children:[p("EA4H.General.UnavailableForYourSearch")," - ",p("EA4H.General.TryChangingRoomConfig").toLocaleLowerCase()]})}),P.map(e=>(0,o.jsx)(X,{room:e},`room_rate_${e.id}`))]}),0===C.length&&!_&&P?.length>0&&P.map(e=>(0,o.jsx)(X,{room:e},`room_rate_${e.id}`))]})]})]})}),eo=t.default.forwardRef(function(e,t){let r,i,l=(0,a.c)(16),{rates:s,noArrow:n,alignArrow:c,allRooms:b,hasMiddleArrow:m}=e,v=(0,V.useTheme)();l[0]!==v.mediaQueries.verySmall?(r={query:v.mediaQueries.verySmall},l[0]=v.mediaQueries.verySmall,l[1]=r):r=l[1];let u=(0,Y.useMediaQuery)(r);if(s.length>1&&(v.style?.resultOptionsPresentationType===d.PresentationType.Tiles||u)){let e;return l[2]!==c||l[3]!==b||l[4]!==m||l[5]!==n||l[6]!==s||l[7]!==t?(e=(0,o.jsx)(ee,{hasMiddleArrow:m,ref:t,allRooms:b,noArrow:n,alignArrow:c,rates:s}),l[2]=c,l[3]=b,l[4]=m,l[5]=n,l[6]=s,l[7]=t,l[8]=e):e=l[8],e}return l[9]!==c||l[10]!==b||l[11]!==m||l[12]!==n||l[13]!==s||l[14]!==t?(i=(0,o.jsx)(K,{hasMiddleArrow:m,allRooms:b,ref:t,rates:s,noArrow:n,alignArrow:c}),l[9]=c,l[10]=b,l[11]=m,l[12]=n,l[13]=s,l[14]=t,l[15]=i):i=l[15],i});e.s(["RoomGroupPriceList",0,eo],209089)},89819,e=>{"use strict";e.s(["RoomGroupRoomList",()=>S,"gridClasses",()=>P],89819);var o=e.i(843476),a=e.i(500932),t=e.i(271645),r=e.i(58840),i=e.i(707690),l=e.i(910768),s=e.i(775911),n=e.i(482582),c=e.i(628574),d=e.i(147305),b=e.i(344306),m=e.i(48512),v=e.i(428838),u=e.i(599258),h=e.i(331378),p=e.i(736382),x=e.i(912598),f=e.i(859951),g=e.i(605458),y=e.i(496807),_=e.i(107918),A=e.i(558645),j=e.i(178126),N=e.i(399611);let R=({room:e,rateInfo:a,roomConfigIndex:l})=>{let c,R=(0,r.useAccommodationTranslations)(),C=(0,i.useAccommodationSearchResult)(),S=(0,d.useThreeLetterMonths)(),{formatCurrency:F,currencyCode:O}=(0,b.useCurrencyFormatter)(),T=(0,u.default)(),{data:w}=(0,s.useBasket)(),{addRoomsToBasket:k}=(0,m.useBasketOperations)(),E=(0,v.useContinueToAccommodationCheckout)(),H=(0,A.default)(),G=(0,x.useQueryClient)(),[I,B]=(0,t.useState)(!1),L=(0,h.useIsFetching)({queryKey:["basket"]})>0,D=(0,p.useIsMutating)({mutationKey:["addToBasket"]})>0,z=L||D||I,M=C?.roomsResult?.find(o=>o.roomId===e.id),W=1===(M?.rateAlternatives??[]).length,$=w?.booking?.bookingData?.rooms??N.EMPTY_ARRAY,V=$.length>0?$[0].paymentPolicyId:void 0,K=C?.accommodationSearch?.roomConfigs??[],q=l>=0&&l<K.length?K[l]:K[0],Y=q?.adults||0,U=q?.childAges?.length||0,Q=(a?.cheapestRateAlternative?.ratesPerRoomConfig??[]).find(e=>{let o=e.roomConfig?.adults||0,a=e.roomConfig?.childAges?.length||0;return o===Y&&a===U&&e.totalPrice?.displayPrice!==void 0&&e.totalPrice.displayPrice>0}),J=Q?.totalPrice?.displayPrice,X=Q?.paymentPolicyId,Z=V&&X&&X!==V,ee=e.maxOccupancy??0,eo=ee>=Y+U,ea=(M?.nrAvailable??0)>0,et=C?.accommodationSearch?.arrivalDate?(0,j.toUTCDate)(new Date(C.accommodationSearch.arrivalDate)):void 0,er=C?.accommodationSearch?.numberOfNights??1,ei=et?new Date(et.getTime()+24*er*36e5):void 0,el=e=>`${e.getDate()} ${S[e.getMonth()]}`,es=async o=>{if(o.stopPropagation(),W&&Q?.hitKey&&!z){B(!0);let o=C?.accommodationSearch?.roomConfigs?.length===1,a=Q.totalPrice?.displayPrice??Q.totalPrice?.displayOriginalPrice??0,t=$.length>0;try{(await k.mutateAsync({request:{hitkey:Q.hitKey,nrOfUnits:1,resultId:C?.resultId,useExistingBasket:!o&&t},gtmInfo:{productId:e.id??"N/A",productName:e.name??"N/A",productPrice:a,productQuantity:1,productCategory:"Accommodation room"}})).success&&(H.close(),o?E():(await G.invalidateQueries({queryKey:["basket"]}),setTimeout(y.scrollToContentBelowSearchBar,150)))}finally{B(!1)}return}T.open({images:e.images?.map(e=>e.url).filter(e=>void 0!==e)||[],price:J,fromPrice:M?.cheapestPrice,room:e,roomConfigIndex:l>=0?l:0,defaultTab:"book-now"})},en=()=>{T.open({images:e.images?.map(e=>e.url).filter(e=>void 0!==e)||[],price:J,fromPrice:M?.cheapestPrice,room:e,roomConfigIndex:l>=0?l:0,defaultTab:"about"})},ec=e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),en())},ed=e=>{e.stopPropagation(),en()},eb=!!C?.roomsResult,em=()=>{if(!eb)return(0,o.jsx)(f.Button,{variant:"secondary",size:"sm",className:"bv:h-[32px] bv:w-[108px] bv:bv_medium:h-auto",onClick:ed,children:R("EA4H.General.Details")});if(!eo){let e=1===ee?R("EA4H.General.Adult_LOWER"):R("EA4H.General.Adults_LOWER");return(0,o.jsxs)(n.default,{size:"small",className:"bv:text-center bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardLinkColor",children:[R("EA4H.General.Max")," ",ee," ",e]})}if(Z)return(0,o.jsx)("div",{className:"bv:flex bv:items-center bv:justify-end",children:(0,o.jsx)("div",{className:"bv:flex bv:max-w-[200px] bv:items-center bv:justify-center bv:rounded-bv_cardBorderRadius bv:bg-amber-50 bv:px-[8px] bv:py-[6px]",children:(0,o.jsx)(n.default,{className:"bv:whitespace-normal bv:break-all bv:text-center bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-tight bv:text-amber-700",children:R("EA4H.General.RequiresSeparateBooking")})})});if(!ea&&et&&ei)return(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:items-end bv:gap-[8px]",children:[(0,o.jsxs)(n.default,{size:"small",className:"bv:text-center bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardLinkColor",children:[R("EA4H.General.NotAvailableForSelectedDates")," ",el(et)," - ",el(ei)]}),(0,o.jsx)(f.Button,{variant:"secondary",size:"sm",className:"bv:h-[32px] bv:w-[108px] bv:bv_medium:h-auto",onClick:ed,children:R("EA4H.General.Details")})]});if(!J)return(0,o.jsx)(n.default,{size:"small",className:"bv:text-center bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardLinkColor",children:R("EA4H.General.NothingAvailable")});let e=Q?.totalPrice?.displayOriginalPrice,a=e&&e>J;return(0,o.jsxs)("div",{className:"bv:flex bv:flex-col bv:items-end bv:gap-[8px] bv:bv_medium:flex-row bv:bv_medium:items-center bv:bv_medium:justify-end bv:bv_medium:gap-[12px]",children:[(0,o.jsxs)("div",{className:"bv:text-right",children:[a&&(0,o.jsxs)(n.default,{size:"small",className:"bv:text-bv_bodyMutedColor bv:line-through",children:[(0,o.jsx)("span",{className:"bv:sr-only",children:"Original price: "}),F(e)," ",O]}),(0,o.jsxs)(n.default,{bold:!0,className:a?"bv:text-bv_offerColorDark":"bv:text-bv_cardColor",children:[F(J)," ",O]})]}),(0,o.jsx)(f.Button,{variant:"default",size:"sm",className:"bv:h-[32px] bv:w-[108px] bv:bv_medium:h-auto",onClick:es,disabled:z,children:R("EA4H.General.Choose")})]})},ev=e.numberOfBeds?`${e.numberOfBeds} ${R("EA4H.General.BedsLOWER")}`:null,eu=(c=e.numberOfBedrooms??1,`${c} ${1===c?R("EA4H.General.BedroomLower"):R("EA4H.General.BedroomsLower")}`),eh=e.translatedTypeOfAccommodation?.text?R.dynamic(e.translatedTypeOfAccommodation.text):e.typeOfAccommodation??null,ep=(0,_.getRoomSize)(e)||null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{role:"button",tabIndex:0,"aria-label":e.name,className:(0,g.cn)("bv:flex bv:cursor-pointer bv:items-center bv:justify-between bv:gap-[16px] bv:px-[24px] bv:py-[12px] bv:transition-all bv:duration-200 bv:hover:bg-black/5 bv:bv_tablet:hidden"),onClick:en,onKeyDown:ec,children:[(0,o.jsxs)("div",{className:"bv:flex bv:min-w-0 bv:flex-1 bv:flex-col bv:gap-[4px]",children:[(0,o.jsx)(n.default,{bold:!0,className:"bv:text-bv_cardLinkColor bv:underline bv:m-0",children:e.name}),(0,o.jsx)(n.default,{size:"small",className:"bv:m-0 bv:text-bv_cardColor",children:[ev,eu,eh,ep].filter(Boolean).join(" ⢠")})]}),(0,o.jsx)("div",{className:"bv:max-w-[45%] bv:shrink-0 bv:text-right",children:em()})]}),(0,o.jsxs)("div",{role:"button",tabIndex:0,"aria-label":e.name,className:(0,g.cn)(P,"bv:hidden bv:min-h-[60px] bv:cursor-pointer bv:py-[12px] bv:transition-all bv:duration-200 bv:hover:bg-black/5 bv:bv_tablet:grid"),onClick:en,onKeyDown:ec,children:[(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{bold:!0,className:"bv:text-bv_cardLinkColor bv:underline bv:m-0",children:e.name})}),(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{size:"small",className:"bv:m-0 bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:ev??"-"})}),(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{size:"small",className:"bv:m-0 bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:eu})}),(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{size:"small",className:"bv:m-0 bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:eh??"-"})}),(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{size:"small",className:"bv:m-0 bv:font-bv_bodyFontFamily bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-bv_cardColor",children:ep??"-"})}),(0,o.jsx)("div",{children:em()})]})]})};
1var C=e.i(326357);let P="bv:grid-cols-[2.5fr_1fr_1fr_1fr_1fr_1.5fr] bv:gap-[8px] bv:items-center bv:px-[24px]",S=e=>{let d,b,m,v,u,h,p,x,f,g,y,_=(0,a.c)(69),{rooms:A,unavailableRooms:j,rates:S}=e,F=(0,r.useAccommodationTranslations)(),O=(0,i.useAccommodationSearchResult)(),{data:T}=(0,s.useBasket)(),w=T?.booking?.bookingData?.rooms??N.EMPTY_ARRAY;_[0]!==O?.accommodationSearch?.roomConfigs?(d=O?.accommodationSearch?.roomConfigs??[],_[0]=O?.accommodationSearch?.roomConfigs,_[1]=d):d=_[1];let k=d;_[2]!==w||_[3]!==k?(b=(0,l.findMissingRoomConfigIndex)(k,w),_[2]=w,_[3]=k,_[4]=b):b=_[4];let E=b;if(_[5]!==E||_[6]!==S||_[7]!==A||_[8]!==O?.accommodationSearch?.numberOfNights||_[9]!==F||_[10]!==j){let e,a,r,i,l,s,d,b,f,g,y,N,T,w,k,H=[...A,...j??[]];_[17]!==S?(e=(e,o)=>{let a=+!S.some(o=>o?.roomId===e.id),t=+!S.some(e=>e?.roomId===o.id);return a!==t?a-t:(e.rank??0)-(o.rank??0)},_[17]=S,_[18]=e):e=_[18];let G=[...H].sort(e),I=O?.accommodationSearch?.numberOfNights??1;x="room_group_room_list",m=c.default,_[19]!==F?(a=F("EA4H.General.Name"),_[19]=F,_[20]=a):a=_[20],_[21]!==a?(h=(0,o.jsx)("div",{className:"bv:bv_tablet:hidden bv:flex bv:items-center bv:gap-[8px] bv:min-h-[40px] bv:py-[10px] bv:px-[24px] bv:rounded-t-bv_cardBorderRadius bv:bg-bv_darkAccentColor bv:text-bv_accentDarkFontColor",children:(0,o.jsx)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:a})}),_[21]=a,_[22]=h):h=_[22],_[23]!==F?(r=F("EA4H.General.Name"),_[23]=F,_[24]=r):r=_[24],_[25]!==r?(i=(0,o.jsx)("div",{className:"bv:flex bv:items-center bv:gap-[8px]",children:(0,o.jsx)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:r})}),_[25]=r,_[26]=i):i=_[26],_[27]!==F?(l=F("EA4H.General.Beds"),_[27]=F,_[28]=l):l=_[28],_[29]!==l?(s=(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:l})}),_[29]=l,_[30]=s):s=_[30],_[31]!==F?(d=F("EA4H.General.BedroomsShort"),_[31]=F,_[32]=d):d=_[32],_[33]!==d?(b=(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:d})}),_[33]=d,_[34]=b):b=_[34],_[35]!==F?(f=F("EA4H.General.Type"),_[35]=F,_[36]=f):f=_[36],_[37]!==f?(g=(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:f})}),_[37]=f,_[38]=g):g=_[38],_[39]!==F?(y=F("EA4H.General.Size"),_[39]=F,_[40]=y):y=_[40],_[41]!==y?(N=(0,o.jsx)("div",{children:(0,o.jsx)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:y})}),_[41]=y,_[42]=N):N=_[42],_[43]!==F?(T=F("EA4H.General.TotalPrice"),_[43]=F,_[44]=T):T=_[44],_[45]!==I||_[46]!==F?(w=1===I?F("EA4H.General.ForOneNight"):F("EA4H.General.ForXNights",I),_[45]=I,_[46]=F,_[47]=w):w=_[47],_[48]!==T||_[49]!==w?(k=(0,o.jsx)("div",{children:(0,o.jsxs)(n.default,{bold:!0,size:"small",className:"bv:text-current bv:m-0",children:[T," ",w]})}),_[48]=T,_[49]=w,_[50]=k):k=_[50],_[51]!==i||_[52]!==s||_[53]!==b||_[54]!==g||_[55]!==N||_[56]!==k?(p=(0,o.jsxs)("div",{className:`${P} bv:hidden bv:bv_tablet:grid bv:min-h-[40px] bv:py-[10px] bv:rounded-t-bv_cardBorderRadius bv:bg-bv_darkAccentColor bv:text-bv_accentDarkFontColor`,children:[i,s,b,g,N,k]}),_[51]=i,_[52]=s,_[53]=b,_[54]=g,_[55]=N,_[56]=k,_[57]=p):p=_[57],v="bv:flex bv:flex-col",u=G.map((e,a)=>{let r=S.find(o=>o?.roomId===e.id),i=a===G.length-1;return(0,o.jsxs)(t.default.Fragment,{children:[(0,o.jsx)(R,{room:e,rateInfo:r,roomConfigIndex:E}),!i&&(0,o.jsx)(C.Separator,{className:"bv:bg-bv_cardDividerColor"})]},e.id)}),_[5]=E,_[6]=S,_[7]=A,_[8]=O?.accommodationSearch?.numberOfNights,_[9]=F,_[10]=j,_[11]=m,_[12]=v,_[13]=u,_[14]=h,_[15]=p,_[16]=x}else m=_[11],v=_[12],u=_[13],h=_[14],p=_[15],x=_[16];return _[58]!==v||_[59]!==u?(f=(0,o.jsx)("div",{className:v,children:u}),_[58]=v,_[59]=u,_[60]=f):f=_[60],_[61]!==m||_[62]!==h||_[63]!==p||_[64]!==f?(g=(0,o.jsxs)(m,{children:[h,p,f]}),_[61]=m,_[62]=h,_[63]=p,_[64]=f,_[65]=g):g=_[65],_[66]!==x||_[67]!==g?(y=(0,o.jsx)("div",{className:x,children:g}),_[66]=x,_[67]=g,_[68]=y):y=_[68],y}},558645,e=>{"use strict";e.s(["default",()=>m]);var o=e.i(843476),a=e.i(500932),t=e.i(874448),r=e.i(58840),i=e.i(344306),l=e.i(906554),s=e.i(707690),n=e.i(298533),c=e.i(253946),d=e.i(119599),b=e.i(728171);let m=()=>{let e,n,m=(0,a.c)(9),h=(0,t.default)(),p=(0,r.useAccommodationTranslations)(),x=(0,i.useCurrencyFormatter)(),{channelInfo:f}=(0,l.useSinglePropertyContext)(),g=(0,s.useAccommodationSearchResult)();m[0]!==f?.activeCreditCardTypes||m[1]!==x||m[2]!==h||m[3]!==g?.accommodationSearch?.numberOfNights||m[4]!==p?(e=e=>{let{roomGroup:a,images:t,price:r,defaultTab:i,forPackageId:l,forPackageName:s}=e,n=[{value:"about",label:p("EA4H.General.About"),content:(0,o.jsx)(d.RoomGroupAboutTab,{roomGroup:a})},{value:"photos",label:p("EA4H.General.Photos"),content:null,isPhotosTab:!0},{value:"book-now",label:p("EA4H.General.BookNow"),content:(0,o.jsx)(b.RoomGroupBookNowTab,{roomGroup:a,forPackageId:l,forPackageName:s})}],m=f?.activeCreditCardTypes?.filter(v).map(String)||[],y=[1,void 0].includes(g?.accommodationSearch?.numberOfNights)?p("EA4H.General.ForOneNight"):(0,c.GetTranslation)(p("EA4H.General.ForNightsLOWER"),g?.accommodationSearch?.numberOfNights),_=null!=r?{paymentLogos:m,securePaymentLabel:p("EA4H.General.SecurePayment"),fromLabel:p("EA4H.General.From"),price:x.formatCurrency(r),currencyCode:x.currencyCode,nightsText:y,onChoose:u,chooseLabel:p("EA4H.General.Choose")}:{bookNowOnly:!0,bookNowLabel:p("EA4H.General.BookNow"),paymentLogos:m,securePaymentLabel:p("EA4H.General.SecurePayment")};h.open({images:t,tabs:n,footer:_,hideFooterOnTab:"book-now",defaultTab:void 0===i?"about":i,productTitle:a.name})},m[0]=f?.activeCreditCardTypes,m[1]=x,m[2]=h,m[3]=g?.accommodationSearch?.numberOfNights,m[4]=p,m[5]=e):e
1=m[5];let y=e;return m[6]!==y||m[7]!==h.close?(n={open:y,close:h.close},m[6]=y,m[7]=h.close,m[8]=n):n=m[8],n};function v(e){return e!==n.CreditCardType.Invoice}function u(){}},924050,862941,e=>{"use strict";let o=(e,o)=>{let a=e?.roomsResult?.filter(e=>void 0!==e&&e.nrAvailable&&e.nrAvailable>0&&e.roomId===o).flatMap(e=>e.rateAlternatives)??[];return a?.filter(o=>{if(o?.packageId){let a=e?.packageContent?.find(e=>e.id===o?.packageId);if(a&&!a.displayAsRatePlanHitInRoomSearchResult)return!1}return!0})??[]};function a(e,a){if(!e)return;let t=o(a,e);if(!t)return;let r=t.flatMap(e=>e.ratesPerRoomConfig).sort((e,o)=>(e?.totalPrice?.displayPrice||0)-(o?.totalPrice?.displayPrice||0))[0];if(r)return Math.round(r?.totalPrice?.displayPrice)}e.s(["filterRoomRates",0,o],862941),e.s(["createGTMViewItemListAccommodationRooms",0,(e,o,t,r)=>{let i=[],l=!!t?.roomsResult?.length,s=!!o?.length,n=(e,o)=>{e.forEach(e=>{let l=a(e.id,t);i.push({item_id:e.id||"",item_name:e.name||"",item_category:o,quantity:1,price:l??0,item_brand:r??"N/A",affiliation:"BookVisit"})})},c=(o,l)=>{o.forEach(o=>{let s=Array.from(new Set(e?.filter(e=>e.roomTypeGroupId===o.roomGroupId).map(e=>e.id)||[])).map(e=>a(e,t)??0);i.push({item_id:o.roomGroupId||"",item_name:o.name||"",item_category:l,quantity:1,price:Math.min(...s)||0,item_brand:r??"N/A",affiliation:"BookVisit"})})};return l?s?c(o,"Room group"):e&&n(e.filter(e=>t?.roomsResult?.some(o=>o.roomId===e.id)),"Room"):s?c(o,"Room group"):e&&n(e,"Room"),i}],924050)}]);
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.