PageSourceSearch

https://www.wtc.nl/static/js/Dfq8z7E_.chunk.js

js wtc.nl collected 2026-10-10 00:48:16 UTC 78,309 bytes, 6 lines download raw bytes

1import{r as o,m as i,o as l,B as d,x as L,T as B,aj as ce,y as z,D as U,u as ht,ci as mt,X as fe,d as de,A as ze,aa as Me,df as gt,dg as xt,h as _t,a0 as Ve,q as Ee,f as Ce,e as Se,a9 as yt,V as We,Y as Hi,ai as De,aB as bt,cs as Ct,cd as mi,n as ee,C as Ri,dh as St,di as wt,c4 as Pt,aN as Mt,c5 as gi}from"./main.DKh_6sCX.js";import{C as T,H as we}from"./Cnzcm-b3.chunk.js";import{J as Ni,K as ie,N as xi,S as Dt,h as kt,u as Ge,O as vt,m as Ot,Q as A,R as jt,i as Ht,j as Rt,U as Li,V as Q,k as Bi,l as Nt,M as Ii,B as Lt,n as Bt,o as It,p as Tt,W as te,q as Ti,r as Ai,E as At,d as Ft,g as $t,e as Et,X as zt,f as Vt,Y as Wt,c as Re,D as Gt,C as qt,H as Kt,a as Qt,b as Ut,s as Yt,Z as Ne,t as Zt,_ as Le,$ as Xt,v as Jt,w as en,x as tn,y as nn,I as on,z as an,T as rn,A as ln,F as sn,G as cn}from"./DjTcUdIC.chunk.js";import{c as Y,b as ne,Q as dn,t as pn,K as _i,B as fn,x as un}from"./B1pXZ5-z.chunk.js";import{A as Fi}from"./Cy9wsexd.chunk.js";import{A as $i}from"./Dyg0zc3S.chunk.js";import{T as hn}from"./B5TDKALq.chunk.js";import{d as mn}from"./BK9whNVb.chunk.js";import{T as gn,o as xn,C as _n,$ as yn,k as Ei,p as yi,aB as bn,l as Cn,aC as Sn,i as Be,a6 as Ie,H as ge,L as wn,B as zi}from"./CQ-5qwlt.chunk.js";import{u as ke,H as Pn,a as Mn}from"./TJ0DcHM_.chunk.js";import{S as se,R as bi,a as Vi,u as Dn,H as kn}from"./BI4eKhwe.chunk.js";import{g as vn}from"./BRkwUAiZ.chunk.js";import{j as pe}from"./CGRvYMIJ.chunk.js";import{I as On}from"./CgvjVJrW.chunk.js";import{I as jn}from"./Ccr1aFMB.chunk.js";import Hn from"./BcVBKpZE.chunk.js";import{D as Rn}from"./Cf-m1qGz.chunk.js";import{c as Nn}from"./CD8CzK7h.chunk.js";import{F as Pe}from"./5-2q1p5t.chunk.js";import{R as Ln}from"./1Jt7sgf4.chunk.js";import{a as Bn}from"./Dbry_te-.chunk.js";import{H as In}from"./9TWJoWxl.chunk.js";import{u as Tn}from"./BV7AdQma.chunk.js";import{A as An}from"./g-eq2tHn.chunk.js";import"./DMn3RVQA.chunk.js";import"./BkEtSmcN.chunk.js";import"./G0CvnUp0.chunk.js";import"./9HWuXSRR.chunk.js";import"./B-FSrjzt.chunk.js";import"./C2G6f4l9.chunk.js";import"./DQ3bc0Nn.chunk.js";import"./CPlf0Onx.chunk.js";import"./BJvKUPz7.chunk.js";import"./CV_kMUrt.chunk.js";import"./D5yPdJGz.chunk.js";import"./Dz8cEszS.chunk.js";const Ci=({isDetailsModal:e,normalPart:t,referenceOffer:n,offerForLabel:a,additionalLabel:r})=>{const c=Y(),s=o.useMemo(()=>{if(!a||!n)return;const u=Ni(a,n);return c(u,{showSignum:!0,hideDecimal:!0,forceZeroSignum:!0})},[a,n,c]);return i.jsxs(Fn,{isDetailsModal:e,children:[i.jsxs($n,{children:[i.jsx("span",{children:t}),!!s&&i.jsx(En,{children:s})]}),!!r&&i.jsx(i.Fragment,{children:r})]})},Fn=l.span.withConfig({displayName:"PreferenceSelectionOfferLabel__LabelContainer"})(["font-size:",";line-height:14px;display:flex;flex-direction:column;@media ","{font-size:13px;line-height:16px;}
1"],({isDetailsModal:e})=>e?"14px":"12px",d.MaxMobile),$n=l.div.withConfig({displayName:"PreferenceSelectionOfferLabel__LabelWrapper"})(["display:flex;"]),En=l.span.withConfig({displayName:"PreferenceSelectionOfferLabel__HeavyLabelPart"})(["font-family:",";white-space:nowrap;display:flex;flex-basis:content;justify-content:end;"],({theme:e})=>e.redesign.heavyFont),zn={0:"tix_ui_cancellation_policy_fully_refundable",100:"tix_ui_cancellation_policy_no_refund"},Vn={0:"tix_ui_cancellation_policy_no_fee"},Wn="tix_ui_cancellation_policy_fee_percentage",Gn=({selectedPolicy:e,isTimeVisible:t,selectedOptionFees:n})=>{const a=ne(),{t:r}=L(),c=o.useMemo(()=>e===T.NonRefundable?[{label:r("tix_ui_cancellation_policy_non_refundable")}]:n.map(u=>{const p=Vn[u.percentageAmount]||Wn,f=zn[u.percentageAmount];return{label:i.jsxs(Si,{children:[i.jsx("span",{children:r(p,{percentage:u.percentageAmount})}),f&&i.jsx("span",{children:`(${r(f)})`})]})}}),[e,r,n]),s=o.useMemo(()=>e===T.NonRefundable?[]:n.filter(p=>!!p.from).map(p=>({label:i.jsxs(Si,{children:[i.jsx("span",{children:a(p.from,"namedShortDate")}),i.jsx("span",{children:a(p.from,"time")})]})})),[a,e,n]);return i.jsxs(qn,{children:[i.jsx(Qn,{children:i.jsx(hn,{periods:c,points:s,startLabel:r("tix_ui_cancellation_timeline_start"),endLabel:r("tix_ui_cancellation_timeline_end")})}),i.jsxs(Kn,{children:[t&&i.jsx("span",{children:r("tix_ui_cancellation_policy_timeline_local_time_remark")})," ",i.jsx("span",{children:r("tix_ui_cancellation_policy_timeline_price_remark")})]})]})},qn=l.div.withConfig({displayName:"CancellationPolicyTimeline__Container"})(["display:flex;flex-direction:column;gap:5px;"]),Kn=l(B).attrs({defaultVariant:"extremelySmall",breakpointsVariants:{[d.MinTablet]:"verySmall"}}).withConfig({displayName:"CancellationPolicyTimeline__Remarks"})(["line-height:11px;@media ","{line-height:12px;}"],d.MinTablet),Qn=l.div.withConfig({displayName:"CancellationPolicyTimeline__TimelineContainer"})(["display:flex;align-items:center;background:",";margin-top:20px;padding:20px 0;@media ","{padding:20px;}"],({theme:e})=>e.redesign.defaultBackground,d.MinTablet),Si=l.div.withConfig({displayName:"CancellationPolicyTimeline__TimelineItem"})(["text-align:center;display:flex;flex-direction:column;align-items:center;"]),Un=({selectedPolicy:e,policyOptions:t,isOpen:n,onClose:a,isNarrow:r,onSelectedPolicyChange:c})=>{const{t:s}=L(),u=Y(),p=o.useMemo(()=>t.filter(x=>!x.disabled).map(x=>({...x,label:i.jsxs("span",{children:[`${s(`tix_ui_cancellation_type_${x.value.toLowerCase()}`)} `,i.jsx("b",{children:u(x.priceDifference,{showSignum:!0,hideDecimal:!0,forceZeroSignum:!0})})]})})).sort((x,S)=>S.priceDifference.amount-x.priceDifference.amount),[t,u,s]),f=o.useMemo(()=>p.filter(x=>x.value===e)[0]?.fees||[],[p,e]),m=o.useCallback(x=>{c(x)},[c]),g=o.useMemo(()=>e===T.NonRefundable?s("tix_ui_cancellation_policy_description_non_refundable"):s("tix_ui_cancellation_policy_description_refundable_with_fee"),[e,s]);return i.jsxs(Fi,{isOpened:n,onClose:a,breakpointStyleOverrides:{[d.MinTablet]:{width:r?"530px":"590px",padding:"20px"}},children:[i.jsx($i,{breakpointsVariants:{[d.MaxSmallMobile]:"h4"},headerText:s("tix_ui_hotel_detailed_landing_page_room_offer_cancellation_policy_title"),onClose:a}),i.jsx(Yn,{label:"tix_ui_hotel_cancellation_type",onChange:m,name:"type",options:p,value:e}),e&&i.jsxs(i.Fragment,{children:[i.jsx(Gn,{selectedPolicy:e,isTimeVisible:e!==T.NonRefundable,selectedOptionFees:f}),g&&i.jsx(Zn,{children:g})]})]})},Yn=l(dn).withConfig({displayName:"CancellationPolicyModal__StyledSwitcher"})(["background:",";border-color:",";border-radius:10px;margin-top:20px;.switcher__option{border-radius:6px;height:36px;span{font-size:14px;@media ","{font-size:12px;}}}.switcher__selected-indicator,.switcher__hover-indicator{border-radius:6px;}@media (hover:hover){.switcher__option:hover + .switcher__hover-indicator{background:",";}}@media ","{margin-top:10px;}"],({theme:e})=>e.redesign.darkBackground,({theme:e})=>e.redesign.darkBackground,d.MaxSmallMobile,({theme:e})=>e.redesign.defaultBackground,d.MaxSmallMobile),Zn=l(B).attrs({defaultVariant:"small"}
1).withConfig({displayName:"CancellationPolicyModal__PolicyDescription"})(["line-height:14px;margin-top:20px;"]),Xn=({fees:e,policy:t,payLaterPolicy:n})=>{const a=ne(),{t:r}=L();return n?i.jsx(i.Fragment,{children:r("tix_ui_cancellation_type_selection_pay_later",{hotelCancellationDateTime:a(n.hotelCancellationDateTime,"namedShortDate")})}):i.jsx(i.Fragment,{children:r(`tix_ui_cancellation_type_selection_${t.toLowerCase()}`,{cancellationToDate:e&&a(e[0]?.to,"namedShortDate")})})},Jn=({policy:e,payLaterPolicy:t,hasRoomPayLaterAvailable:n})=>{const a=ne(),{t:r}=L();return t?i.jsx(to,{children:r("tix_ui_cancellation_policy_pay_later_additional_label",{ultimatePaymentDate:a(t.ultimatePaymentDate,"namedShortDate")})}):e===T.NonRefundable?n?i.jsx(io,{children:r("tix_ui_cancellation_policy_pay_now_additional_label")}):null:i.jsx(eo,{children:r(`tix_ui_cancellation_policy_${e.toLowerCase()}_additional_label`)})},eo=l.div.withConfig({displayName:"CancellationPolicyRadioAdditionalLabel__AdditionalLabel"})(["margin-top:3px;font-size:10px;line-height:10px;color:",";"],({theme:e})=>e.redesign.hotels.landingPage.roomOffer.cancellationPolicyOptionAdditionalLabelColor),io=l.div.withConfig({displayName:"CancellationPolicyRadioAdditionalLabel__PayNowAdditionalLabel"})(["margin-top:3px;font-size:10px;line-height:10px;"]),to=l(B).attrs({defaultVariant:"extremelySmall"}).withConfig({displayName:"CancellationPolicyRadioAdditionalLabel__PayLaterAdditionalLabel"})(["border-radius:40px;margin-top:3px;padding:2px 7px;align-self:flex-start;background:",";color:",";"],({theme:e})=>e.redesign.hotels.landingPage.roomOffer.cancellationPolicyOptionAdditionalLabelColor,({theme:e})=>e.redesign.defaultBackground),qe=({room:e,offers:t,selectedOffer:n,setSelectedOffer:a,radioSpaceBetweenButtons:r=5,isCancellationPolicyVisible:c,isDetailsModal:s,isNarrow:u,setDisableOutsideClick:p})=>{const{t:f}=L(),[m,g]=o.useState(!1),[x,S]=o.useState(!1),M=o.useRef(null),O=pn(M),H=ce(n),y=o.useMemo(()=>ie(n),[n]),P=o.useMemo(()=>t.reduce((h,j)=>{const v=ie(j);return h.includes(v)||h.push(v),h},[]),[t]),w=o.useMemo(()=>t.reduce((h,j)=>(h.includes(j.mealCode)||h.push(j.mealCode),h),[]),[t]),b=o.useMemo(()=>t.reduce((h,j)=>(h[`${j.mealCode}-${ie(j)}`]=j,h),{}),[t]),C=o.useMemo(()=>t.find(h=>!!h.payLaterPolicy&&h.mealCode===n.mealCode),[t,n.mealCode]),D=o.useMemo(()=>xi(P.map(j=>b[`${n.mealCode}-${j}`]).filter(Boolean),n),[P,b,n]),k=o.useMemo(()=>P.map(h=>{const j=b[`${n.mealCode}-${h}`];if(!j)return;const v=j?.cancellationPolicy&&mn(j.cancellationPolicy.fees)||[],V=Ni(j,D,"total");return{label:i.jsx(Ci,{offerForLabel:j,referenceOffer:D,normalPart:i.jsx(Xn,{fees:v,policy:h,payLaterPolicy:j.payLaterPolicy}),additionalLabel:i.jsx(Jn,{policy:h,payLaterPolicy:j.payLaterPolicy,hasRoomPayLaterAvailable:!!C}),isDetailsModal:s}),value:h,disabled:!j,fees:v,priceDifference:V}}).filter(h=>!!h),[C,P,b,n.mealCode,D,s]),N=o.useCallback(h=>Object.values(b).filter(j=>j.mealCode===h),[b]),I=o.useCallback(h=>{const j=b[`${h}-${y}`];if(j)return[j,!0];const v=N(h);if(v.length===1)return[v[0],!1];switch(y){case T.FreeCancellation:return[b[`${h}-${T.PartiallyRefundable}`]||b[`${h}-${T.NonRefundable}`],!1];case T.PartiallyRefundable:return[b[`${h}-${T.NonRefundable}`]||b[`${h}-${T.FreeCancellation}`],!1];case T.NonRefundable:return[b[`${h}-${T.PartiallyRefundable}`]||b[`${h}-${T.FreeCancellation}`],!1]}},[b,N,y]),$=o.useMemo(()=>xi(w.map(j=>{const[v]=I(j);return v}),n),[w,I,n]),Z=o.useMemo(()=>w.map(h=>{const[j]=I(h);return{label:i.jsx(Ci,{offerForLabel:j,referenceOffer:$,normalPart:f(`tix_ui_meal_code_${h.toLowerCase()}`),isDetailsModal:s}),value:h}}),[w,I,$,f,s]),X=o.useCallback(h=>{const j=h.target.value,[v,V]=I(j);S(!V),a(v)},[a,I]),E=o.useCallback(h=>{const j=h.target.value;S(!1),a(b[`${n.mealCode}-${j}`])},[n,b,a]),oe=o.useCallback(()=>{S(!1)},[]),J=o.useCallback(()=>{g(!0),p&&p(!0)},[p]),ae=o.useCallback(()=>{g(!1),p&&p(!1)},[p]);return i.jsxs(no,{isDetailsModal:s,children:[i.jsxs(wi,{children:[i.jsxs(Pi,{isDetailsModal:s,children:[f("tix_ui_hotel_detailed_landing_page_room_offer_meal_code_title"),i.jsx("span",{children:f("tix_ui_per_night_per_person")})]}),i.jsx(_i,{id:`${e?e.roomDescription.providerCode:"roh"}-meal-code${s?"-modal":""}`,label:"Meal code",name:`${e?e.roomDescription.providerCode:"roh"}-meal-code${s?"-modal":""}`,value:n.mealCode,options:Z,onChange:X,spaceBetweenButtons:r})]}),i.jsxs(wi,{ref:M,children:[x&&i.jsx(ao,{cancellationPolicyContainerHeight:O||0,children:i.jsx(Dt,{mainLabelKey:"tix_ui_hotel_detailed_landing_page_room_offer_switch_cancellation_policy_popup",onClose:oe,mealTypeLabel:f(`tix_ui_meal_code_${n.mealCode.toLowerCase()}`),cancellationPolicyLabel:f(`tix_ui_cancellation_type_${y}`),previousCancellationPolicyLabel:f(`tix_ui_cancellation_type_${ie(H).toLowerCase()}`)})}
1),i.jsxs(Pi,{isDetailsModal:s,children:[f("tix_ui_hotel_detailed_landing_page_room_offer_cancellation_policy_title"),i.jsx("span",{children:f("tix_ui_per_night_per_person")})]}),c&&i.jsx(oo,{children:i.jsx(gn,{label:f("tix_ui_hotel_detailed_landing_page_room_offer_cancellation_policy_more_info"),tagName:"button",tagComponent:h=>i.jsx("u",{onClick:J,children:h})})}),i.jsx(_i,{id:`${e?e.roomDescription.providerCode:"roh"}-cancellation-policy${s?"-modal":""}`,label:"Cancellation policy",name:`${e?e.roomDescription.providerCode:"roh"}-cancellation-policy${s?"-modal":""}`,value:y,options:k,onChange:E,spaceBetweenButtons:r})]}),C&&i.jsx(kt,{policyOptions:k,isOpen:m,onClose:ae,payLaterPolicy:C.payLaterPolicy,selectedPolicy:y,onSelectedPolicyChange:E}),!C&&i.jsx(Un,{selectedPolicy:y,policyOptions:k,isOpen:m,onClose:ae,isNarrow:u,onSelectedPolicyChange:E})]})},no=l.div.withConfig({displayName:"PreferenceSelection__MainContainer"})(["display:flex;flex-direction:column;gap:20px;"]),wi=l.div.withConfig({displayName:"PreferenceSelection__RadioGroupContainer"})(['position:relative;[type="radio"]:checked + label,[type="radio"]:not(:checked) + label{line-height:12px;font-size:12px;height:auto;align-items:flex-start;padding-top:3px;display:flex;span{width:100%;}@media ','{font-size:10px;line-height:10px;}}.radio-input.disabled{[type="radio"]:not(:checked) + label:before{background:',';}[type="radio"]:not(:checked) + label{color:',";}}"],d.MaxMobile,({theme:e})=>e.redesign.defaultBackground,({theme:e})=>e.redesign.form.radioGroup.disabled),Pi=l.div.withConfig({displayName:"PreferenceSelection__Title"})(["font-family:",";font-size:",";line-height:16px;margin-bottom:5px;display:flex;justify-content:space-between;align-items:center;span{font-family:",";font-size:10px;line-height:12px;}@media ","{font-size:14px;}"],({theme:e})=>e.redesign.heavyFont,({isDetailsModal:e})=>e?"18px":"14px",({theme:e})=>e.redesign.regularFont,d.MaxMobile),oo=l.div.withConfig({displayName:"PreferenceSelection__MoreCancellationInfo"})(["margin-bottom:10px;font-size:9px;line-height:12px;font-family:",";display:flex;align-items:center;gap:3px;u{cursor:pointer;}"],({theme:e})=>e.redesign.regularFont),ao=l.div.withConfig({displayName:"PreferenceSelection__SwitchCancellationPolicyPopupContainer"})(["position:absolute;bottom:",";min-width:300px;max-width:300px;transform:translate(-50%,0);left:50%;z-index:1;"],({cancellationPolicyContainerHeight:e})=>`calc(${e}px + 20px)`);var _e=(function(e){return e.HotelDetailedLandingPage="hdlp",e})({});const ro={[xn.Eur]:{[d.MinTablet]:{mainPrice:32,referencePrice:18,additionalPrice:12,charNumberAdjustments:{charBreakpoint:11,mainPrice:28,referencePrice:16,additionalPrice:10}},[d.MaxMobile]:{mainPrice:18,referencePrice:12,additionalPrice:9,charNumberAdjustments:{charBreakpoint:11,mainPrice:16,referencePrice:12,additionalPrice:8}}},default:{[d.MinTablet]:{mainPrice:32,referencePrice:18,additionalPrice:12,charNumberAdjustments:{charBreakpoint:11,mainPrice:28,referencePrice:16,additionalPrice:10}},[d.MaxMobile]:{mainPrice:18,referencePrice:12,additionalPrice:9,charNumberAdjustments:{charBreakpoint:11,mainPrice:16,referencePrice:12,additionalPrice:8}}}},Mi={[_e.HotelDetailedLandingPage]:ro},lo=(e,t)=>Mi[t][e]||Mi[t].default,Ke=({priceValue:e,priceType:t,location:n,className:a,children:r})=>{const c=Y(),s=o.useMemo(()=>lo(e.currency,n),[n,e]),u=o.useMemo(()=>c(e),[c,e]);return i.jsx(so,{numberOfChars:u.length,currencySpec:s,priceType:t,className:a,children:r})},so=l.div.withConfig({displayName:"HotelPriceContainerWithFontConfig__PriceContainer"})(["",""],({currencySpec:e,numberOfChars:t,priceType:n})=>e?Object.entries(e).map(([a,r])=>{const c=r.charNumberAdjustments&&t>=r.charNumberAdjustments.charBreakpoint?r.charNumberAdjustments[n]:r[n];return`
2        @media ${a} {
3          font-size: ${c}px;
4          line-height: ${c}px;
5        }
6      `}):""),Wi=({offer:e,searchCriteria:t,showNumberOfNights:n=!0})=>{const{t:a}=L(),r=ne(),c=o.useMemo(()=>e?.mealCode!==_n.RoomOnly?e?.mealCode:null,[e]),s=o.useMemo(()=>{const u=vn(t);return`${u&&`${u} ${u>1?a("tix_ui_nights"):a("tix_ui_night")}`}, ${r(t.checkInDate,"namedShortDate").replaceAll(".","")} - ${r(t.checkOutDate,"namedShortDate").replaceAll(".","")}`},[t,r,a]);return i.jsxs(co,{children:[!!c&&i.jsx(se,{labelKey:`tix_ui_meal_code_${c}`,insidePill:!0,allowBreaking:!0}),e&&"payLaterPolicy"in e&&i.jsx(se,{labelKey:"tix_ui_hotel_detailed_landing_pay_later_perk",insidePill:!0,allowBreaking:!0}),e&&ie(e)!==T.NonRefundable&&i.jsx(se,{labelKey:`tix_ui_cancellation_type_${ie(e).toLowerCase()}`,insidePill:!0,allowBreaking:!0}),e&&e.rooms.length>1&&i.jsx(se,{icon:i.jsx(bi,{}),labelKey:`${e.rooms.length} ${a("tix_ui_hotel_detailed_landing_page_number_of_rooms")}`,insidePill:!0,allowBreaking:!0}),n&&i.jsx(se,{icon:i.jsx(bi,{}),labelKey:s,insidePill:!0,allowBreaking:!0})]})},co=l.div.withConfig({displayName:"OfferSummaryPerks__PricePerks"})(["display:flex;flex-direction:column;gap:10px;margin-bottom:20px;"]),Gi=o.forwardRef(({searchCriteria:e,isLoadingOffers:t,isSubmittingReservation:n,openPriceBreakdownModal:a,onBookClick:r,onOpenInitialSearchForm:c,offer:s,submittedOfferId:u},p)=>{const{t:f}=L(),m=Y(),{showReferencePrice:g,additionalPriceLabel:x,discountLabel:S}=ke(e,s),M=z(d.MaxMobile),O=Ge(),H=o.useCallback(()=>{s?r(s):c()},[s,r,c]);return i.jsxs(po,{children:[i.jsx(bo,{hasOffer:!!s,ref:p,children:t?i.jsx(vt,{}):i.jsxs(i.Fragment,{children:[!!s&&i.jsxs(uo,{children:[!M&&i.jsx(Wi,{offer:s,searchCriteria:e,showNumberOfNights:!1}),g&&i.jsx(go,{priceValue:s.pricingDetails.totalPrice.regularWithOnsiteFees,priceType:"referencePrice",location:_e.HotelDetailedLandingPage,children:m(s.pricingDetails.totalPrice.regularWithOnsiteFees)}),i.jsx(_o,{priceValue:s.pricingDetails.totalPrice.effectiveWithOnsiteFees,priceType:"mainPrice",location:_e.HotelDetailedLandingPage,children:m(s.pricingDetails.totalPrice.effectiveWithOnsiteFees)}),x&&i.jsxs(xo,{priceValue:s.pricingDetails.totalPricePerRoomPerNight.effectiveWithOnsiteFees,priceType:"additionalPrice",location:_e.HotelDetailedLandingPage,children:[i.jsx("span",{children:f("tix_ui_hotels_srp_average_price_per",{price:m(s.pricingDetails.totalPricePerRoomPerNight.effectiveWithOnsiteFees,{hideDecimal:!0})})}),i.jsx("span",{children:x})]}),g&&!M&&i.jsx(yo,{children:f(S)}),i.jsx(mo,{onClick:()=>a(s),children:f("tix_ui_hotel_detailed_landing_page_room_offer_price_details")})]}),i.jsx(ho,{onClick:H,offerPresent:!1,isLoading:n&&u===s?.id,disabled:n&&u!==s?.id,size:M?"small":"medium",isSpecial:!0,children:f(s?"tix_ui_hotel_detailed_landing_page_room_offer_book_button":"tix_ui_hotel_detailed_landing_page_room_offer_book_button_no_offers")})]})}),O&&i.jsx(fo,{})]})}),po=l.div.withConfig({displayName:"SingleDetailedHotelOfferPricingBox__FullHeightContainer"})(["background:",";display:flex;flex-direction:column-reverse;position:relative;"],({theme:e})=>
6e.redesign.hotels.landingPage.priceBoxBackground),fo=l.div.withConfig({displayName:"SingleDetailedHotelOfferPricingBox__Indicator"})(["width:12px;height:12px;background:",";position:absolute;top:calc(50% - 6px);left:-6px;transform:rotate(45deg);@media ","{left:calc(50% - 6px);top:-6px;}"],({theme:e})=>e.redesign.hotels.landingPage.priceBoxBackground,d.MaxMobile),uo=l.div.withConfig({displayName:"SingleDetailedHotelOfferPricingBox__InfoContainer"})([""]),ho=l(U).withConfig({displayName:"SingleDetailedHotelOfferPricingBox__BookButton"})(["height:48px;margin-top:20px;width:100%;min-width:180px;@media ","{margin-top:10px;min-width:",";max-width:",";width:unset;height:44px;}"],d.MaxMobile,({offerPresent:e,isLoading:t})=>!t&&!e?"140px":"112px",({offerPresent:e,isLoading:t})=>!t&&!e?"140px":"calc(50% - 30px)"),mo=l.div.withConfig({displayName:"SingleDetailedHotelOfferPricingBox__PriceDetails"})(["cursor:pointer;font-size:10px;line-height:10px;text-decoration:underline;margin-top:10px;@media ","{font-size:9px;line-height:9px;}"],d.MaxMobile),go=l(Ke).withConfig({displayName:"SingleDetailedHotelOfferPricingBox__ReferencePrice"})(["color:",";text-decoration:line-through;margin-bottom:6px;"],({theme:e})=>e.redesign.hotels.searchResultsPage.referencePriceColor),xo=l(Ke).withConfig({displayName:"SingleDetailedHotelOfferPricingBox__AdditionalPrice"})(["margin-top:5px;max-width:130px;display:flex;flex-direction:column;color:",";@media ","{margin-top:8px;max-width:160px;}"],({theme:e})=>e.redesign.onPrimaryBgColor,d.MinTablet),_o=l(Ke).withConfig({displayName:"SingleDetailedHotelOfferPricingBox__MainPrice"})(["font-family:",";display:flex;align-items:center;gap:10px;color:",";"],({theme:e})=>e.redesign.heavyFont,({theme:e})=>e.redesign.onPrimaryBgColor),yo=l.div.withConfig({displayName:"SingleDetailedHotelOfferPricingBox__DiscountBox"})(["background-color:",";font-size:12px;line-height:12px;padding:5px 10px;width:fit-content;margin-top:10px;@media ","{font-size:10px;line-height:10px;}"],({theme:e})=>e.redesign.defaultBackground,d.MaxMobile),bo=l.div.withConfig({displayName:"SingleDetailedHotelOfferPricingBox__MainContainer"})(["display:flex;flex-direction:column;font-family:",";width:220px;flex-shrink:0;padding:20px;justify-content:flex-end;min-height:276px;position:relative;@media ","{min-height:unset;padding:15px;width:calc(100% - 30px);flex-direction:row;justify-content:",";align-items:flex-end;}"],({theme:e})=>e.redesign.regularFont,d.MaxMobile,({hasOffer:e})=>e?"space-between":"flex-end"),Co=({searchCriteria:e,selectedOffer:t,onBookClick:n})=>{const{t:a}=L(),r=Y(),{showReferencePrice:c,additionalPriceLabel:s,discountLabel:u}=ke(e,t),p=z(d.MaxMobile),f=o.useCallback(()=>{n(t)},[t,n]);return i.jsxs(So,{children:[i.jsxs(Po,{children:[c&&i.jsx(Do,{children:r(t.pricingDetails.totalPrice.regularWithOnsiteFees)}),i.jsxs(Oo,{children:[i.jsx(jo,{children:r(t.pricingDetails.totalPrice.effectiveWithOnsiteFees)}),i.jsx(ko,{children:a("tix_ui_total")})]}),s&&i.jsxs(vo,{children:[i.jsx("span",{children:a("tix_ui_hotel_detailed_landing_page_average_price_per",{price:r(t.pricingDetails.totalPricePerRoomPerNight.effectiveWithOnsiteFees)})}),i.jsx("span",{children:s})]}),c&&i.jsx(Ho,{children:a(u)})]}),i.jsx(Mo,{onClick:f,size:p?"small":"medium",isSpecial:!0,children:a("tix_ui_hotel_detailed_landing_page_room_offer_book_button")}),i.jsx(wo,{})]})},So=l.div.withConfig({displayName:"PricingBox__MainContainer"})(["margin:0 -20px -20px -20px;padding:20px;font-family:",";background:",";position:relative;display:flex;gap:10px;justify-content:space-between;align-items:flex-end;@media ","{padding:30px;margin-top:10px;}"],({theme:e})=>e.redesign.regularFont,({theme:e})=>e.redesign.hotels.landingPage.priceBoxBackground,d.MinTablet),wo=l.div.withConfig({displayName:"PricingBox__Indicator"})(["width:12px;height:12px;background-color:",";position:absolute;top:-6px;left:calc(50% - 6px);transform:rotate(45deg);"],({theme:e})=>e.redesign.hotels.landingPage.roomOffer.priceBoxBackground),Po=l.div.withConfig({displayName:"PricingBox__InfoContainer"})(["display:flex;flex-direction:column;gap:5px;@media ","{gap:10px;}"],d.MinTablet),Mo=l(U).withConfig({displayName:"PricingBox__BookButton"}
6)(["height:44px;width:140px;@media ","{height:48px;width:220px;}"],d.MinTablet),Do=l.div.withConfig({displayName:"PricingBox__ReferencePrice"})(["font-size:12px;line-height:12px;color:",";text-decoration:line-through;@media ","{font-size:18px;line-height:18px;}"],({theme:e})=>e.redesign.hotels.searchResultsPage.referencePriceColor,d.MinTablet),ko=l(B).attrs({isHeavy:!0,defaultVariant:"verySmall",breakpointsVariants:{[d.MinTablet]:"normal"}}).withConfig({displayName:"PricingBox__TotalLabel"})([""]),vo=l.div.withConfig({displayName:"PricingBox__AdditionalPrice"})(["font-size:10px;line-height:10px;display:flex;flex-direction:column;color:",";@media ","{flex-direction:row;gap:5px;font-size:14px;line-height:14px;}"],({theme:e})=>e.redesign.onPrimaryBgColor,d.MinTablet),Oo=l.div.withConfig({displayName:"PricingBox__MainPriceContainer"})(["display:flex;gap:5px;align-items:flex-end;color:",";"],({theme:e})=>e.redesign.onPrimaryBgColor),jo=l(B).attrs({isHeavy:!0,defaultVariant:"h5",breakpointsVariants:{[d.MinTablet]:"h2"}}).withConfig({displayName:"PricingBox__MainPrice"})([""]),Ho=l.div.withConfig({displayName:"PricingBox__DiscountBox"})(["background-color:",";padding:5px 10px;font-size:10px;line-height:10px;width:fit-content;@media ","{font-size:12px;line-height:12px;padding:6px 10px;}"],({theme:e})=>e.redesign.defaultBackground,d.MinTablet),Ro=({hotelId:e,isOpen:t,onClose:n,onSelectedOfferChange:a,onBookClick:r,room:c,roomName:s,searchCriteria:u,selectedOffer:p})=>{const f=ht(mt),[m,g]=o.useState(!1),x=o.useMemo(()=>c.roomDescription.images.map(Ot),[c.roomDescription.images]);return i.jsxs(Fi,{isOpened:t,onClose:n,id:A.HotelOfferModal,isOutsideClickDisabled:f||m,breakpointStyleOverrides:{[d.MinTablet]:{padding:"20px"}},children:[i.jsx($i,{headerText:s,breakpointsVariants:{[d.MaxMobile]:"h4"},onClose:n}),i.jsxs(No,{children:[i.jsx(jt,{hotelId:e,roomImages:x,providerCode:c.roomDescription.providerCode}),i.jsx(Ht,{roomDescription:c.roomDescription}),i.jsx(Rt,{categorizedAmenities:c.roomDescription.categorizedAmenities}),c.offers.length>0&&p&&i.jsxs(i.Fragment,{children:[i.jsx(qe,{room:c,offers:c.offers,selectedOffer:p,setSelectedOffer:a,radioSpaceBetweenButtons:10,isCancellationPolicyVisible:!0,isDetailsModal:!0,isNarrow:!0,setDisableOutsideClick:g}),i.jsx(Co,{onBookClick:r,searchCriteria:u,selectedOffer:p})]})]})]})},No=l.div.withConfig({displayName:"DetailedHotelOfferModal__Content"})(["display:flex;flex-direction:column;gap:20px;"]),Di=({hotelId:e,room:t,searchCriteria:n,isLoadingOffers:a,isSubmittingReservation:r,openPriceBreakdownModal:c,onBookClick:s,onOpenInitialSearchForm:u,preferences:p,submittedOfferId:f})=>{const[m,g]=o.useState(),{t:x}=L(),[S,M]=pe(),[O,H]=pe(),y=o.useRef(null),{isHovered:P}=Vi({ref:y,preventPropagation:!0,hoverEventDealyMS:0});o.useEffect(()=>{t.offers&&t.offers.length>0?(!m||!Li(t.offers,m))&&g(Q(t.offers,p)):g(void 0)},[m,p,t.offers]);const[w,b]=o.useState(!1),C=o.useMemo(()=>!m||m?.rooms.length<=1?t.roomDescription.name:`${m?.rooms.length}x ${t.roomDescription.name}`,[m,t]),D=o.useMemo(()=>Math.max(H.height-40,M.height,0),[H,M]);return i.jsxs(i.Fragment,{children:[i.jsxs(Lo,{ref:y,children:[i.jsxs(Bo,{children:[i.jsx(Bi,{hotelId:e,roomDescription:t.roomDescription,height:D,onClick:()=>b(!0),isHovered:P}),i.jsxs(Io,{ref:S,children:[i.jsx(To,{children:C}),i.jsxs(Ao,{children:[!!t.roomDescription.squareMeters&&i.jsxs(xe,{children:[i.jsx(Nt,{}),i.jsxs("span",{children:[`${t.roomDescription.squareMeters} m`,i.jsx("sup",{children:"2"})]})]}),!!t.roomDescription.totalOccupancy&&i.jsxs(xe,{children:[i.jsx(Ii,{}),i.jsx("span",{children:x("tix_ui_hotel_detailed_landing_page_room_offer_max_occupancy",{occupancy:t.roomDescription.totalOccupancy})})]}),!!t.roomDescription.bedGroups&&t.roomDescription.bedGroups.length>0&&i.jsxs(xe,{children:[i.jsx(Lt,{}),i.jsx("span",{children:`${t.roomDescription.bedGroups.join(` ${x("tix_ui_or")} `)}${t.roomDescription.bedGroups.length>1?"*":""}`})]}),!!t.roomDescription.views&&!!t.roomDescription.views[0]&&i.jsxs(xe,{children:[i.jsx(Bt,{}),i.jsx("span",{children:t.roomDescription.views.join(", ")})]})]}),i.jsx(Fo,{onClick:()=>b(!0),children:x("tix_ui_hotel_detailed_landing_page_room_offer_more_info")}),!!m&&i.jsx(qe,{room:t,offers:t.offers,selectedOffer:m,setSelectedOffer:g,
6isCancellationPolicyVisible:!0})]})]}),i.jsx(Gi,{offer:m,openPriceBreakdownModal:c,isLoadingOffers:a,isSubmittingReservation:r,searchCriteria:n,onBookClick:s,onOpenInitialSearchForm:u,ref:O,submittedOfferId:f})]}),i.jsx(Ro,{hotelId:e,room:t,roomName:C,isOpen:w,onClose:()=>b(!1),selectedOffer:m,onSelectedOfferChange:g,onBookClick:s,searchCriteria:n})]})},Lo=l.div.withConfig({displayName:"SingleDetailedHotelOffer__MainContainer"})(["background:",";display:flex;width:100%;min-height:316px;&:hover{","}@media ","{min-height:unset;flex-direction:column;width:calc(100% - 40px);height:100%;}"],({theme:e})=>e.redesign.defaultBackground,({theme:e})=>`box-shadow: ${e.redesign.hotels.landingPage.roomOffer.hoverShadow};`,d.MaxMobile),Bo=l.div.withConfig({displayName:"SingleDetailedHotelOffer__MainContent"})(["width:calc(100% - 260px - 40px);padding:20px;display:flex;gap:20px;@media ","{flex-direction:column;}@media ","{padding:0;gap:0;width:100%;height:100%;}"],d.MaxTablet,d.MaxMobile),Io=l.div.withConfig({displayName:"SingleDetailedHotelOffer__Content"})(["@media ","{height:fit-content;}@media ","{padding:15px;}"],d.MinDesktop,d.MaxMobile),To=l(B).attrs({isHeavy:!0,isSpecial:!0,defaultVariant:"h4",breakpointsVariants:{[d.MaxMobile]:"h5"}}).withConfig({displayName:"SingleDetailedHotelOffer__Title"})([""]),Ao=l.div.withConfig({displayName:"SingleDetailedHotelOffer__RoomInfo"})(["display:flex;flex-wrap:wrap;gap:10px 20px;padding-top:10px;@media ","{flex-wrap:nowrap;flex-direction:column;}"],d.MaxMobile),xe=l.div.withConfig({displayName:"SingleDetailedHotelOffer__SingleInfo"})(["min-width:calc(50% - 10px);font-size:14px;line-height:14px;display:flex;align-items:flex-start;gap:10px;font-family:",";span{position:relative;padding-top:1.5px;}sup{position:absolute;top:-1px;font-size:8px;}> svg{width:17px;height:17px;}@media ","{font-size:13px;}"],({theme:e})=>e.redesign.regularFont,d.MaxMobile),Fo=l.div.withConfig({displayName:"SingleDetailedHotelOffer__MoreInfoLink"})(["margin:20px 0;font-size:14px;line-height:14px;color:",";text-decoration:underline;cursor:pointer;display:flex;align-items:center;font-family:",";&:hover:not(:disabled){color:",";}> span{margin-right:5px;}@media ","{margin:20px 0 15px 0;}"],({theme:e})=>e.redesign.defaultLinkColor,({theme:e})=>e.redesign.regularFont,({theme:e})=>e.redesign.hotels.landingPage.linkButtonHoverColor&&e.redesign.hotels.landingPage.linkButtonHoverColor,d.MaxMobile),ki=({hotelId:e,runOfTheHouseOffers:t,searchCriteria:n,isLoadingOffers:a,isSubmittingReservation:r,openPriceBreakdownModal:c,onBookClick:s,onOpenInitialSearchForm:u,preferences:p,submittedOfferId:f})=>{const[m,g]=o.useState(),{t:x}=L(),S=fe(),[M,O]=pe(),[H,y]=pe(),P=o.useRef(null),{isHovered:w}=Vi({ref:P,preventPropagation:!0,hoverEventDealyMS:0});o.useEffect(()=>{t.offers.length>0?(!m||!Li(t.offers,m))&&g(Q(t.offers,p)):g(void 0)},[m,p,t.offers]);const b=o.useMemo(()=>!m||m?.rooms.length<=1?x("roh_room_label"):`${m?.rooms.length}x ${x("roh_room_label")}`,[m,x]),C=o.useMemo(()=>Math.max(y.height-40,O.height,0),[y,O]),D=o.useMemo(()=>n.rooms&&Math.max(...n.rooms.map(N=>N.adults+N.childrenAge.length)),[n]),k=o.useMemo(()=>t.images.length>0,[t.images]);return i.jsxs($o,{ref:P,children:[i.jsxs(Eo,{children:[i.jsxs(qo,{children:[i.jsx(Bi,{hotelId:e,hotelContentImages:t.images,height:C,isHovered:w,onImageRemarkLabel:k?"tix_ui_landing_page_room_offer_run_of_the_house_images_remark":void 0}),k&&i.jsx(Ko,{children:x("tix_ui_landing_page_room_offer_run_of_the_house_images_remark")})]}),i.jsxs(zo,{ref:M,children:[i.jsx(Vo,{children:b}),D&&i.jsxs(Wo,{children:[i.jsx(Ii,{}),i.jsx("span",{children:x("tix_ui_hotel_detailed_landing_page_room_offer_run_of_the_house_occupancy",{occupancy:D})})]}),i.jsx(Go,{items:[{content:x("tix_ui_hotel_detailed_landing_page_room_offer_run_of_the_house_info"),icon:i.jsx(jn,{width:14,height:14})}],borderColor:S.redesign.hotels.landingPage.roomOffer.infoBoxBackground,textColor:S.redesign.defaultColor,smallPadding:!0,fontSize:12,lineHeight:14}),!!m&&i.jsx(qe,{offers:t.offers,selectedOffer:m,setSelectedOffer:g,isCancellationPolicyVisible:!0})]})]}),i.jsx(Gi,{offer:m,isLoadingOffers:a,isSubmittingReservation:r,openPriceBreakdownModal:c,searchCriteria:n,onBookClick:s,onOpenInitialSearchForm:u,ref:H,submittedOfferId:f})]})},$o=l.div.withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__MainContainer"})(["background:",";display:flex;width:100%;min-height:316px;&:hover{","}@media ","{min-height:unset;flex-direction:column;width:calc(100% - 40px);height:100%;}"],({theme:e})=>
6e.redesign.defaultBackground,({theme:e})=>`box-shadow: ${e.redesign.hotels.landingPage.roomOffer.hoverShadow};`,d.MaxMobile),Eo=l.div.withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__MainContent"})(["width:calc(100% - 260px - 40px);padding:20px;display:flex;gap:20px;@media ","{flex-direction:column;}@media ","{padding:0;gap:0;width:100%;height:100%;}"],d.MaxTablet,d.MaxMobile),zo=l.div.withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__Content"})(["@media ","{height:fit-content;}@media ","{padding:15px;}"],d.MinDesktop,d.MaxMobile),Vo=l(B).attrs({isHeavy:!0,isSpecial:!0,defaultVariant:"h4",breakpointsVariants:{[d.MaxMobile]:"h5"}}).withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__Title"})([""]),Wo=l.div.withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__RoomInfo"})(["min-width:calc(50% - 10px);font-size:14px;line-height:14px;display:flex;align-items:flex-start;gap:10px;font-family:",";padding-top:10px;span{position:relative;padding-top:1.5px;}sup{position:absolute;top:-1px;font-size:8px;}> svg{width:17px;height:17px;}@media ","{font-size:13px;}"],({theme:e})=>e.redesign.regularFont,d.MaxMobile),Go=l(On).withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__StyledInfoBox"})(["margin:20px 0;background:",";"],({theme:e})=>e.redesign.hotels.landingPage.roomOffer.infoBoxBackground),qo=l.div.withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__GalleryWrapper"})(["position:relative;"]),Ko=l(B).withConfig({displayName:"SingleDetailedHotelRunOfTheHouseOffer__Remark"})(["padding-left:5px;padding-top:5px;font-size:9px;line-height:6px;@media ","{font-size:10px;line-height:7px;padding-left:0px;position:absolute;right:0;}@media ","{padding-top:6px;left:0;}"],d.MinTablet,d.MinDesktop),Qo=({hotelId:e,roomsWithOffers:t,searchCriteria:n,isLoadingOffers:a,isSubmittingReservation:r,noOffersFound:c,noOffersMatched:s,onBookClick:u,onOpenInitialSearchForm:p,preferences:f,runOfTheHouseOffers:m,submittedOfferId:g})=>{const x=fe(),{t:S}=L(),[M,O]=o.useState(!1),[H,y]=o.useState(null),P=z(d.MaxMobile),w=o.useMemo(()=>Object.values(t).filter(k=>!a&&!c&&!s&&n.isValid()?k.offers.length>0:!0).sort((k,N)=>{if(k.offers.length===0||N.offers.length===0)return 1;const I=Q(k.offers,f),$=Q(N.offers,f);return I.pricingDetails.totalPrice.effectiveWithOnsiteFees.amount-$.pricingDetails.totalPrice.effectiveWithOnsiteFees.amount}),[t,a,c,s,n,f]),b=o.useMemo(()=>!(M||w.length<=5),[M,w]),C=o.useMemo(()=>b?w.slice(0,5):w,[b,w]),D=o.useMemo(()=>It(w.map(k=>k.roomDescription)),[w]);return i.jsxs(i.Fragment,{children:[P?i.jsxs(Yo,{children:[!!m&&i.jsx(ki,{hotelId:e,isLoadingOffers:a,isSubmittingReservation:r,runOfTheHouseOffers:m,preferences:f,searchCriteria:n,onBookClick:u,openPriceBreakdownModal:y,onOpenInitialSearchForm:p,submittedOfferId:g},-1),C.map(k=>i.jsx(Di,{hotelId:e,room:k,isLoadingOffers:a,isSubmittingReservation:r,preferences:f,searchCriteria:n,onBookClick:u,openPriceBreakdownModal:y,onOpenInitialSearchForm:p,submittedOfferId:g},k.roomDescription.providerCode))]}):i.jsxs(Uo,{id:A.RoomList,children:[!!m&&i.jsx(ki,{hotelId:e,isLoadingOffers:a,isSubmittingReservation:r,runOfTheHouseOffers:m,preferences:f,searchCriteria:n,onBookClick:u,openPriceBreakdownModal:y,onOpenInitialSearchForm:p,submittedOfferId:g},-1),C.map(k=>i.jsx(Di,{hotelId:e,room:k,isLoadingOffers:a,isSubmittingReservation:r,preferences:f,searchCriteria:n,onBookClick:u,openPriceBreakdownModal:y,onOpenInitialSearchForm:p,submittedOfferId:g},k.roomDescription.providerCode))]}),D&&i.jsx(Jo,{children:S("tix_ui_hotel_detailed_landing_page_multiple_bed_types_remark")}),b&&i.jsx(Xo,{onClick:()=>O(!0),children:i.jsxs(Zo,{children:[i.jsx("span",{children:S("tix_ui_hotel_detailed_landing_page_more_offers_button")}),i.jsx(Tt,{color:x.redesign.hotels.landingPage.roomOffer.moreRoomsColor})]})}),i.jsx(Pn,{offer:H,searchCriteria:n,isOpen:!!H,onClose:()=>y(null),actionButtonData:{onClickAction:()=>H&&u(H),labelKey:"tix_ui_hotel_detailed_landing_page_price_breakdown_book_button"}})]})},Uo=l.div.withConfig({displayName:"HotelDetailedOffersList__TabletContainer"})(["> div{margin-bottom:20px;}"]),Yo=l.div.withConfig({displayName:"HotelDetailedOffersList__CenterContainer"})(["display:flex;flex-flow:column nowrap;align-items:center;gap:20px;"]),Zo=l.div.withConfig({displayName:"HotelDetailedOffersList__Underline"})(["border-bottom:1px solid ",";width:fit-content;display:flex;align-items:center;gap:5px;"],({theme:e})=>e.redesign.hotels.landingPage.roomOffer.moreRoomsColor),Xo=l(B).attrs({isHeavy:!0,isSpecial:!0,defaultVariant:"h5"}).withConfig({displayName:"HotelDetailedOffersList__ShowMoreButton"})(["display:flex;width:100%;justify-content:center;cursor:pointer;color:",";&:hover:not(:disabled){color:",";}"],({theme:e})=>e.redesign.hotels.landingPage.roomOffer.moreRoomsColor,({theme:e})=>e.redesign.hotels.landingPage.linkButtonHoverColor&&e.redesign.hotels.landingPage.linkButtonHoverColor),Jo=l(B).attrs({defaultVariant:"verySmall",breakpointsVariants:{[d.MinDesktop]:"small"}}).withConfig({displayName:"HotelDetailedOffersList__MultipleBedTypesRemark"})(["line-height:12px;margin:-15px 20px 0 20px;@media ","{margin:-15px 0 0 0;}@media ","{margin:-10px 0 0 0;}"],d.MinTablet,d.MinDesktop),ea=({values:e,searchCriteria:t,setSearchFormMode:n})=>{const{t:a}=L(),r=ne(),c=z(d.MinTablet),s=o.useMemo(()=>{const{adults:p,children:f}=e.reduce((m,g)=>({adults:m.adults+g.adults,children:m.children+g.childrenAge.length}),{adults:0,children:0});return`${e.length} ${e.length>1?a("tix_ui_rooms"):a("tix_ui_room")}, ${p} ${p>1?a("tix_ui_adults"):a("tix_ui_adult")}${f>0?`, ${f} ${f>1?a("tix_ui_children"):a("tix_ui_child")}`:""}`},[a,e]),u=o.useMemo(()=>
6{if(!(!t?.checkInDate||!t?.checkOutDate))return`${r(t?.checkInDate,"namedShortDateWithDay")} - ${r(t?.checkOutDate,"namedShortDateWithDay")}`},[r,t?.checkInDate,t?.checkOutDate]);return i.jsxs(ia,{children:[i.jsxs(na,{children:[i.jsx(oa,{children:a("tix_ui_hotel_landing_page_search_form_summary_title")}),!c&&i.jsx(vi,{onClick:()=>n(te.SearchFormMode),children:a("tix_ui_hotel_landing_page_search_form_change_mode_button")})]}),i.jsxs(ta,{children:[i.jsxs(aa,{children:[i.jsx(Hn,{}),i.jsx("span",{children:u})]}),i.jsxs(ra,{children:[i.jsx(yn,{}),i.jsx("span",{children:s})]}),c&&i.jsx(vi,{onClick:()=>n(te.SearchFormMode),children:a("tix_ui_hotel_landing_page_search_form_change_mode_button")})]})]})},ia=l.div.withConfig({displayName:"HotelLpSearchFormSummary__SummaryContainer"})(["width:100%;display:flex;flex-direction:column;gap:5px;@media ","{gap:10px;}"],d.MinTablet),ta=l.div.withConfig({displayName:"HotelLpSearchFormSummary__SummaryInfoWrapper"})(["display:flex;flex-wrap:wrap;flex-direction:column;gap:5px;width:100%;font-family:",";font-size:12px;line-height:12px;@media ","{gap:20px;font-size:14px;line-height:16px;flex-direction:row;}@media ","{flex-wrap:nowrap;}"],({theme:e})=>e.redesign.regularFont,d.MinTablet,d.MinDesktop),na=l.div.withConfig({displayName:"HotelLpSearchFormSummary__SummaryHeader"})(["display:flex;justify-content:space-between;align-items:center;"]),oa=l(B).attrs({isHeavy:!0}).withConfig({displayName:"HotelLpSearchFormSummary__SummaryTitle"})(["font-size:13px;line-height:14px;@media ","{font-size:18px;line-height:18px;}"],d.MinTablet),qi=l.div.withConfig({displayName:"HotelLpSearchFormSummary__SummaryItem"})(["display:flex;align-items:center;gap:5px;width:100%;min-height:20px;@media ","{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}@media ","{width:auto;}"],d.MaxMobile,d.MinTablet),aa=l(qi).withConfig({displayName:"HotelLpSearchFormSummary__HotelDateSummary"})(["svg{width:17px;height:17px;}@media ","{svg{width:15px;height:15px;}}"],d.MaxMobile),ra=l(qi).withConfig({displayName:"HotelLpSearchFormSummary__RoomsCountSummary"})(["svg{width:21px;height:21px;}@media ","{svg{width:19px;height:13px;}}"],d.MaxMobile),vi=l.div.withConfig({displayName:"HotelLpSearchFormSummary__ChangeModeButton"})(["color:",";text-decoration:underline;cursor:pointer;margin-left:auto;font-family:",";&:hover:not(:disabled){color:",";}@media ","{font-size:12px;}"],({theme:e})=>e.redesign.defaultLinkColor,({theme:e})=>e.redesign.regularFont,({theme:e})=>e.redesign.hotels.landingPage.linkButtonHoverColor&&e.redesign.hotels.landingPage.linkButtonHoverColor,d.MaxMobile),la=({hotelId:e,searchCriteria:t,noOffersFound:n,noOffersMatched:a,onSearchFormSubmit:r,arePackagesEnabled:c,fetchingOffersErrorOccurred:s,isFetchingOffers:u})=>{const[p,f]=o.useState(te.SearchFormMode),m=o.useRef(null);return o.useEffect(()=>!n&&!a&&t?.isValid()?f(te.SummaryMode):f(te.SearchFormMode),[n,a,t]),i.jsx(sa,{children:p===te.SearchFormMode?i.jsx(Ti,{hotelId:e,isToggleEnabled:c,type:Ai.Hotel,onSubmit:r,searchCriteria:t,isBordered:!1,noOffersFound:n,noOffersMatched:a,fetchingOffersErrorOccurred:s,validateOnInit:t.areAnyValuesFilled(),isFetchingOffers:u,isInitial:!1,dateFieldRef:m}):i.jsx(ea,{values:t.rooms||Rn,searchCriteria:t,setSearchFormMode:f})})},sa=l.div.withConfig({displayName:"HotelLpSearchFormWithSummary__HotelLpSearchFormWrapper"})(["background:",";padding:20px;@media ","{padding:15px;}"],({theme:e})=>
6e.redesign.hotels.landingPage.searchFormBackgroundColor,d.MaxMobile),Ki=({hotelId:e,onSubmit:t,searchCriteria:n,noOffersFound:a,noOffersMatched:r,dateFieldRef:c,fetchingOffersErrorOccurred:s,isFetchingOffers:u,arePackagesEnabled:p})=>{const{t:f}=L();return i.jsxs(ca,{children:[i.jsx(da,{children:f("tix_ui_hotel_detailed_landing_page_initial_search_form_title")}),i.jsx(Ti,{hotelId:e,isToggleEnabled:p,type:Ai.Hotel,dateFieldRef:c,searchCriteria:n,onSubmit:t,noOffersFound:a,noOffersMatched:r,fetchingOffersErrorOccurred:s,validateOnInit:n.areAnyValuesFilled(),isFetchingOffers:u,isInitial:!0,wrapTabletFields:!1})]})},ca=l.div.withConfig({displayName:"HotelLpInitialSearchForm__Container"})(["box-sizing:border-box;padding:20px;background:",";display:flex;flex-direction:column;gap:10px;width:100%;"],({theme:e})=>e.redesign.primaryColor),da=l(B).attrs({isHeavy:!0,defaultVariant:"h5",breakpointsVariants:{[d.MinTablet]:"h4",[d.MinDesktop]:"h2"}}).withConfig({displayName:"HotelLpInitialSearchForm__Title"})(["color:",";line-height:22px;@media ","{line-height:100%;}"],({theme:e})=>e.redesign.onPrimaryBgColor,d.MinTablet);function pa(e,t){return{method:"get",name:ze.GetSingleHotelFlexibleDatesOffers,url:`/api/hotels/${e}/flexible-dates-offers?${de.stringify(t,{encode:!1})}`}}const fa=(e,t,n,a,r,c)=>{const s=Me(),u=ne(),[p,f]=o.useState(!1),[m,g]=o.useState(!1),[x,S]=o.useState([]),M=o.useCallback(async(C,D)=>{try{const k=await gt(C,D);return k?(S(k.fetchedOffers),!0):!1}catch{return!1}},[]),O=o.useCallback(async()=>{if(t.isValid())try{const C=ua(u,t,a,r);if(await M(t,e)){f(!1),g(!0);return}const k=await s(pa(e,C));S(k.results),xt({fetchedOffers:k.results,searchCriteria:t,hotelUuid:e})}catch{}finally{f(!1),g(!0)}},[u,e,s,t,a,r,M]),H=o.useMemo(()=>{if(!t.isValid())return[];const C=ga(u,t,x,n);return ma(C,u(t.checkInDate,"apiDate"),c)},[n,x,u,c,t]);o.useEffect(()=>{p||m||O()},[O,m,p]);const y=ce(t),P=ce(a),w=ce(r);o.useEffect(()=>{(t.isValid()&&!t.isEqual(y)||P!==a||w!==r)&&m&&!p&&(S([]),g(!1))},[m,p,P,w,t,a,r,y]);const b=o.useMemo(()=>H.some(C=>!C.isOriginalDateRange&&C.price),[H]);return{flexibleDatesOffers:H,hasOffersToDisplay:b}},ua=(e,t,n,a)=>({...n?{searchId:n}:{},...a?{supplierRequestId:a}:{},checkInDate:e(t.checkInDate,"apiDate"),checkOutDate:e(t.checkOutDate,"apiDate"),rooms:t.rooms.map(r=>({adults:r.adults,...r.childrenAge?.length>0?{childrenAge:r.childrenAge.join(",")}:{}}))}),ha=(e,t)=>n=>{const a=e===n.checkInDate;let r=null;return n.offers.length>0&&(r=Q(n.offers,t).pricingDetails.totalPrice.effectiveWithOnsiteFees),{dateRange:{startDate:n.checkInDate,endDate:n.checkOutDate},numberOfNights:Ei(new Date(n.checkOutDate),new Date(n.checkInDate)),price:r,isBestOffer:!1,isOriginalDateRange:a}},ma=(e,t,n)=>{try{const a=e.reduce((r,c,s)=>{const u=ha(t,n)(c);return r.offers.push(u),u.price&&(!r.offers[r.bestOfferIndex].price||(u.isOriginalDateRange?u.price.amount<=r.offers[r.bestOfferIndex].price.amount:u.price.amount<r.offers[r.bestOfferIndex].price.amount))&&(r.bestOfferIndex=s),r},{offers:[],bestOfferIndex:0});return a.offers[a.bestOfferIndex]&&(a.offers[a.bestOfferIndex].isBestOffer=!0),a.offers}catch{return[]}},ga=(e,t,n,a)=>{if(n.length===0)return n;const r={checkInDate:e(t.checkInDate,"apiDate"),checkOutDate:e(t.checkOutDate,"apiDate"),offers:a?[a]:[]};return _t(t.checkInDate,new Date(n[0].checkInDate))?[r,...n]:n.flatMap(s=>Ei(t.checkInDate,new Date(s.checkInDate))===1?[s,r]:[s])},xa=({hotelUuid:e,isLoadingOffers:t,searchCriteria:n,onTileClick:a,searchId:r,supplierRequestId:c,offerPreference:s,currentOffer:u})=>{const{t:p}=L(),{flexibleDatesOffers:f,hasOffersToDisplay:m}=fa(e,n,u,r,c,s),g=o.useMemo(()=>({title:p("tix_ui_hotel_landing_page_flexible_dates_title"),subtitle:p("tix_ui_hotel_landing_page_flexible_dates_subtitle"),betterOffersFoundPill:p("tix_ui_hotel_landing_page_flexible_dates_better_offers_found_pill"),bestOfferPill:p("tix_ui_hotel_landing_page_flexible_dates_best_offer_pill"),noOffers:p("tix_ui_hotel_landing_page_flexible_dates_no_offers")}),[p]);return i.jsx(At,{isWidgetReadyToDisplay:m&&!t,labels:g,offers:f,onTileClick:a})},_a=({hotelId:e,roomsWithOffers:t,searchCriteria:n,isLoadingContent:a,isLoadingOffers:r,isSubmittingReservation:c,noOffersFound:s,noOffersMatched:u,isInitialSearchFormVisible:p,arePackagesEnabled:f,fetchingOffersErrorOccurred:m,initialOffer:g,onSearchFormSubmit:x,onBookClick:S,onFlexibleDateOfferClick:M,preferences:O,runOfTheHouseOffers:H,supplierRequestId:y,srpSearchId:P,submittedOfferId:w})=>{const b=Ve(),{t:C}=L(),D=o.useRef(null),k=o.useCallback(()=>{D.current?.focus()},[]);return i.jsxs(ba,{id:A.Room,children:[i.jsxs(ya,{children:[i.jsx(Ca,{children:C("tix_ui_hotel_detailed_landing_page_offers_initial_title")}),p?i.jsx(Ki,{hotelId:e,searchCriteria:n,fetchingOffersErrorOccurred:m,onSubmit:x,noOffersFound:s,noOffersMatched:u,isFetchingOffers:r,dateFieldRef:D,arePackagesEnabled:f}):i.jsx(la,{hotelId:e,searchCriteria:n,noOffersFound:s,noOffersMatched:u,onSearchFormSubmit:x,fetchingOffersErrorOccurred:m,isFetchingOffers:a,arePackagesEnabled:f}),b.hotelsConfig?.areLandingPageFlexibleDatesEnabled&&i.jsx(xa,{hotelUuid:e,searchCriteria:n,onTileClick:M,searchId:P,supplierRequestId:y,offerPreference:O,isLoadingOffers:r,currentOffer:g})]}),a?i.jsx(i.Fragment,{children:"LOADING CONTENT"}):i.jsx(Qo,{hotelId:e,roomsWithOffers:t,runOfTheHouseOffers:H,preferences:O,searchCriteria:n,isLoadingOffers:r,isSubmittingReservation:c,noOffersFound:s,noOffersMatched:u,onBookClick:S,onOpenInitialSearchForm:k,submittedOfferId:w})]})},ya=l.div.withConfig({displayName:"HotelOffersSection__NonGalleryContent"})(["margin:0 20px;@media ","{margin:0;}"],d.MinTablet),ba=l.div.withConfig({displayName:"HotelOffersSection__MainContainer"})(["width:100%;position:relative;z-index:0;scroll-margin-top:88px;> div{margin-bottom:20px;}.swiper-slide.rooms-carousel{display:flex;justify-content:flex-end;&:last-child{justify-content:flex-start;margin-left:20px;}width:calc(100vw - 60px) !important;@media ","{width:353px !important;}}@media ","{scroll-margin-top:84px;}@media ","{scroll-margin-top:54px;}"],d.OnlyMobile,d.MaxTablet,d.MaxMobile),Ca=l(B).attrs({isHeavy:!0,isSpecial:!0,defaultVariant:"h1",breakpointsVariants:{[d.MaxTablet]:"h2",[d.MaxMobile]:"h3"}}).withConfig({displayName:"HotelOffersSection__Title"})(["margin-bottom:20px;"]);class ye{constructor(t){this.checkInDate=yi(t.checkInDate),this.checkOutDate=yi(t.checkOutDate),this.rooms=bn(t.rooms),this.supplierRequestId=Ft(t.supplierRequestId),this.srpSearchId=$t(t.srpSearchId),this.locationCode=Cn(t.locationCode),this.locationType=Sn(t.locationType),this.expectedPrice=Et(t.expectedPrice),this.freeCancellation=zt(t.freeCancellation),this.mealOptionType=Vt(t.mealOptionType),this.sourceView=Wt(t.sourceView)}getAllParams(){const{checkInDate:t,checkOutDate:n,rooms:a,supplierRequestId:r,srpSearchId:c,locationCode:s,locationType:u,expectedPrice:p,freeCancellation:f,mealOptionType:m,sourceView:g}=this;return{...t?{checkInDate:t}:{},...n?{checkOutDate:n}:{},...a?{rooms:a}:{},...r?{supplierRequestId:r}:{},...c?{srpSearchId:c}:{},...s?{locationCode:s}:{},...u?{locationType:u}:{},...p?{expectedPrice:p}:{},...f?{freeCancellation:f}:{},...m?{mealOptionType:m}:{},...g?{sourceView:g}:{}}}toQueryString(){return Ee.stringify({...this.getAllParams(),...this.checkInDate?{checkInDate:Ce(this.checkInDate,Se)}:{},...this.checkOutDate?{checkOutDate:Ce(this.checkOutDate,Se)}:{}})}}function Sa(){const e=yt(),t=We(),{blockScroll:n,enableScroll:a}=Hi(!1,!0),r=o.useCallback(()=>{const f=Ee.parse(e.search,{ignoreQueryPrefix:!0});return{checkInDate:f.checkInDate,checkOutDate:f.checkOutDate,rooms:f.rooms,supplierRequestId:f.supplierRequestId,srpSearchId:f.srpSearchId,locationCode:f.locationCode,locationType:f.locationType,expectedPrice:f.expectedPrice,freeCancellation:f.freeCancellation,mealOptionType:f.mealOptionType}},[e.search]),[c,s]=o.useState(new ye({})),u=o.useCallback((f,m)=>{const g=new ye({...c.getAllParams(),...f.getAllParams()});m&&n(),t.push(`?${g.toQueryString()}`),m&&a()},[c,t,n,a]),p=o.useMemo(()=>new ye(r()),[r]);return o.useEffect(()=>{p.toQueryString()!==Ee.stringify(r())?t.push(`?${p.toQueryString()}`):p.toQueryString()!==c.toQueryString()&&s(p)},[c,p,t,r]),{acceptableQueryParams:c,setAcceptableQueryParams:u}}
6function wa(e,t){const[n,a]=o.useState(e),[r,c]=o.useState();o.useEffect(()=>{e.isEqual(n)||a(e)},[e,n]);const s=o.useCallback((u,p)=>{u.isValid()&&(c(u),t(new ye({checkInDate:u.checkInDate,checkOutDate:u.checkOutDate,rooms:u.rooms}),p))},[t]);return{searchCriteria:r||n,setSearchCriteria:s}}function Pa(e,{criteria:t,searchId:n,supplierRequestId:a}){const r={...n?{searchId:n}:{},...a?{supplierRequestId:a}:{},checkInDate:Ce(t.checkInDate,Se),checkOutDate:Ce(t.checkOutDate,Se),rooms:t.rooms.map(c=>c.childrenAge.length>0?{adults:c.adults,childrenAge:c.childrenAge.join(",")}:{adults:c.adults})};return{method:"get",name:ze.GetSingleHotelDetailedOffers,url:`/api/hotels/${e}/detailed-offers?${de.stringify(r)}`}}function Ma(e){const[t,n]=o.useState(!1),[a,r]=o.useState(!1),[c,s]=o.useState(!1),[u,p]=o.useState([]),f=o.useRef(),m=o.useRef(),g=Me(),x=De();return{fetchHotelOffers:o.useCallback(async(M,O,H)=>{const y=bt();if(M!==m.current){m.current=M,f.current=y;try{p([]),s(!1),n(!0);const P=await g(Pa(e,{criteria:{checkInDate:M.checkInDate,checkOutDate:M.checkOutDate,rooms:M.rooms},...O&&Ct(O)?{}:{searchId:O},supplierRequestId:H}));f.current===y&&(p(P||[]),r(!P||P.length===0),s(!1))}catch(P){f.current===y&&(x(P,{customMessage:`Error during loading detailed hotel offers on landing page for hotel id: ${e}`}),s(!0),r(!0))}finally{f.current===y&&n(!1)}}},[x,e,g]),offers:u,isLoadingOffers:t,noOffersFound:a,fetchingOffersErrorOccurred:c}}function Da(e,t,n){const[a,r]=o.useState({}),[c,s]=o.useState(),[u,p]=o.useState(),[f,m]=o.useState(),[g,x]=o.useState(!1),S=De(),M=o.useCallback((y,P)=>{const w=[],b=P.reduce((C,D)=>y.roomsDetails.rooms.find(N=>N.providerCode===D.rooms[0].roomDescription.providerCode)?(C.push(D),C):(D.roomsType===Re.Guarnateed&&D.rooms[0].roomDescription.providerCode&&!w.find(N=>N===D.rooms[0].roomDescription.providerCode)&&w.push(D.rooms[0].roomDescription.providerCode),C),[]);return w.length>0&&S(new Error(`Not possible to match room with offers due to mismatch of room providers codes for hotel ${y.id}. Provider codes of rooms from offers: ${w.map(C=>C)}`),{logLevel:mi.Info}),b},[S]),O=o.useCallback((y,P)=>{let w={};return y.roomsDetails.rooms.forEach(b=>{const C=b.providerCode;w[C]={roomDescription:b,offers:[]}}),P.forEach(b=>{const C=b.rooms[0].roomDescription.providerCode;w[C]&&b.roomsType===Re.Guarnateed&&w[C].offers.push(b)}),w=ka(w),w},[]),H=o.useCallback((y,P)=>{const w=P.filter(C=>C.roomsType===Re.RunOfTheHouse);if(w.length===0)return;const b={offers:w,images:y.categorizedImages.ROOMS||[]};return va(b)},[]);return o.useEffect(()=>{if(t){const y=M(t,e);r(O(t,y));const P=H(t,e);if(s(P),e.length>0){const w=Q([...y,...P?.offers||[]],n);p(w),m(Q([...y,...P?.offers||[]])),y.length===0&&(x(P?P?.offers.length===0:!0),S(new Error(`Not possible to match any room with offers due to mismatch of room providers codes for hotel ${t.id}. Number of available ROH offers: ${P?.offers.length||0}`),{logLevel:mi.Info}))}else p(void 0)}},[t,e,M,O,H,n,S]),{roomsWithOffers:a,runOfTheHouseOffers:c,initialOffer:u,cheapestOffer:f,noOffersMatched:g}}const ka=e=>Object.fromEntries(Object.entries(e).map(([n,a])=>{if(a.offers.every(c=>!c.payLaterPolicy))return[n,a];const r=a.offers.filter(c=>c.payLaterPolicy?!0:!(c.cancellationPolicy.type===we.Free||c.cancellationPolicy.type===we.FeeApplies&&c.cancellationPolicy.fees.some(s=>s.percentageAmount===0)));return[n,{...a,offers:r}]})),va=e=>{if(e.offers.every(n=>!n.payLaterPolicy))return e;const t=e.offers.filter(n=>n.payLaterPolicy?!0:!(n.cancellationPolicy.type===we.Free||n.cancellationPolicy.type===we.FeeApplies&&n.cancellationPolicy.fees.some(a=>a.percentageAmount===0)));return{...e,offers:t}},Oa=(e,t,n,a)=>{if(!n?.areAllValuesFilled()){const c={locationCode:t,locationType:e};return`${ee.HOTELS.toString()}?${de.stringify(c)}`}const r={locationCode:t,locationType:e};return`${ee.HOTELS_SEARCH.toString()}?${n.toQueryString()}&${de.stringify(r)}`},ja=({locationType:e,locationCode:t,searchCriteria:n})=>{const{t:a}=L(),r=We(),c=o.useMemo(()=>Oa(e,t,n),[e,t,n]);return i.jsx(fn,{description:i.jsxs(Ha,{children:[i.jsx(Ra,{isHeavy:!0,children:a("tix_ui_hotel_landing_page_fetching_content_error_message")}),i.jsx(Na,{onClick:()=>r.push(c),children:n?.isValid()?a("tix_ui_hotel_landing_page_fetching_content_error_redirect_to_srp"):a("tix_ui_hotel_landing_page_fetching_content_error_redirect_to_homepage")})]})})},Ha=l.div.withConfig({displayName:"ErrorFetchingHotel__Wrapper"})(["max-width:380px;"]),Ra=l(B).withConfig({displayName:"ErrorFetchingHotel__Message"})(["font-size:48px;line-height:48px;margin-bottom:20px;"]),Na=l(U).withConfig({displayName:"ErrorFetchingHotel__StyledButton"})(["max-width:317px;"]),Oi=400,La=({offer:e,searchCriteria:t,isLoadingOffers:n,cheapestOffer:a,onOpenInitialSearchForm:r,isVisible:c})=>{const{t:s}=L(),u=Y(),p=fe(),{showReferencePrice:f}=ke(t,e),m=()=>{document.querySelector(`#${A.Room}`)?.scrollIntoView({behavior:"smooth"})},g=Ge(),x=o.useCallback(()=>{e?m():(t.isValid()&&m(),r())},[e,r,t]);return i.jsxs(Ta,{isVisible:c,children:[i.jsx(Fa,{children:n?i.jsx(za,{children:i.jsx(Ri,{size:32,width:4,margin:0,color:p.redesign.onPrimaryBgColor})}):!!e&&!!a&&i.jsxs(i.Fragment,{children:[e.pricingDetails.totalPrice.effectiveWithOnsiteFees!==a.pricingDetails.totalPrice.effectiveWithOnsiteFees&&i.jsxs(Va,{children:[s(`tix_ui_meal_code_${a.mealCode.toLowerCase()}`)," ",s("tix_ui_hotel_detailed_landing_page_offer_summary_cheapest_offer")," ",i.jsx("span",{children:u(a.pricingDetails.totalPrice.effectiveWithOnsiteFees)})]}),f&&i.jsx($a,{children:i.jsx(Pe,{price:e.pricingDetails.totalPrice.regularWithOnsiteFees})}),i.jsx(Ea,{children:i.jsx(Pe,{price:e.pricingDetails.totalPrice.effectiveWithOnsiteFees})})]})}),i.jsx(Aa,{children:i.jsx(Ia,{onClick:x,size:"small",isSpecial:!0,children:s(e||n?"tix_ui_hotel_detailed_landing_page_selected_offer_room_select_button":"tix_ui_hotel_detailed_landing_page_selected_offer_room_select_button_no_offer")})}),g&&i.jsx(Ba,{})]})},Ba=l.div.withConfig({displayName:"MobileStickySummary__Indicator"})(["background-color:",";width:20px;height:20px;position:absolute;top:0;left:50%;transform:rotate(45deg) translate(-50%,-25%);"],({theme:e})=>e.redesign.primaryColor),Ia=l(U).withConfig({displayName:"MobileStickySummary__GoToRoom"})(["height:44px;width:100%;line-height:16px;"]),Ta=l.div.withConfig({displayName:"MobileStickySummary__MainContainer"})(["visibility:",";
6opacity:",";transition:opacity ","ms ease-in-out,visibility ","ms ease-in-out;position:fixed;z-index:2;width:calc(100% - 40px);padding:20px;background:"," !important;bottom:0;display:flex;gap:20px;justify-content:space-between;font-family:",";align-items:center;"],({isVisible:e})=>e?"visible":"hidden",({isVisible:e})=>e?1:0,Oi,Oi,({theme:e})=>e.redesign.hotels.landingPage.priceBoxBackground,({theme:e})=>e.redesign.regularFont),Aa=l.div.withConfig({displayName:"MobileStickySummary__RightSide"})(["width:190px;"]),Fa=l.div.withConfig({displayName:"MobileStickySummary__LeftSide"})(["display:flex;flex-direction:column;gap:5px;"]),$a=l.div.withConfig({displayName:"MobileStickySummary__RefPrice"})(["font-size:12px;line-height:12px;color:",";text-decoration:line-through;"],({theme:e})=>e.redesign.hotels.searchResultsPage.referencePriceColor),Ea=l.div.withConfig({displayName:"MobileStickySummary__Price"})(["font-size:24px;line-height:24px;font-family:",";color:",";"],({theme:e})=>e.redesign.heavyFont,({theme:e})=>e.redesign.onPrimaryBgColor),za=l.div.withConfig({displayName:"MobileStickySummary__CircleLoaderContainer"})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),Va=l.div.withConfig({displayName:"MobileStickySummary__CheapestOffer"})(["font-size:10px;line-height:10px;margin-bottom:5px;span{font-family:",";}"],({theme:e})=>e.redesign.heavyFont),Wa=({onOpenInitialSearchForm:e,searchCriteria:t,offer:n,cheapestOffer:a})=>{const{t:r}=L(),c=Y(),{showReferencePrice:s,additionalPriceLabel:u,discountLabel:p}=ke(t,n),f=o.useMemo(()=>a?.pricingDetails.totalPrice.effectiveWithOnsiteFees.amount!==n?.pricingDetails.totalPrice.effectiveWithOnsiteFees.amount,[a,n]),m=()=>{document.querySelector(`#${A.Room}`)?.scrollIntoView({behavior:"smooth"})},g=o.useCallback(()=>{n?m():e()},[n,e]);return i.jsxs(Ga,{children:[n&&a?i.jsxs(i.Fragment,{children:[i.jsx(Wi,{offer:n,searchCriteria:t}),f&&i.jsxs(qa,{children:[r(`tix_ui_meal_code_${a.mealCode.toLowerCase()}`)," ",r("tix_ui_hotel_detailed_landing_page_offer_summary_cheapest_offer")," ",i.jsx("span",{children:c(a.pricingDetails.totalPrice.effectiveWithOnsiteFees)})]}),s&&i.jsx(Ka,{children:i.jsx(Pe,{price:n.pricingDetails.totalPrice.regularWithOnsiteFees})}),i.jsx(Qa,{children:i.jsxs(Ua,{children:[i.jsx(Pe,{price:n.pricingDetails.totalPrice.effectiveWithOnsiteFees}),i.jsx(Ya,{children:r("tix_ui_total")})]})}
6),u&&i.jsxs(Za,{children:[i.jsx(ji,{children:r("tix_ui_hotel_detailed_landing_page_average_price_per",{price:c(n.pricingDetails.totalPricePerRoomPerNight.effectiveWithOnsiteFees)})}),i.jsx(ji,{children:u})]}),i.jsx(Xa,{children:r("tix_ui_hotel_detailed_landing_page_price_taxes_and_fees_included")}),s&&i.jsx(Ja,{children:r(p)})]}):i.jsx(i.Fragment,{children:i.jsx(ir,{children:r("tix_ui_hotel_detailed_landing_page_select_dates_to_show_offers")})}),i.jsx(er,{onClick:g,isSpecial:!0,children:r(n?"tix_ui_hotel_detailed_landing_page_selected_offer_room_select_button":"tix_ui_hotel_detailed_landing_page_selected_offer_room_select_button_no_offer")})]})},ji=l.div.withConfig({displayName:"SelectedOfferSummary__AdditionalPricePart"})(["flex-shrink:0;"]),Ga=l.div.withConfig({displayName:"SelectedOfferSummary__MainContainer"})(["display:flex;flex-direction:column;justify-content:flex-end;font-family:",";padding:20px;width:100%;"],({theme:e})=>e.redesign.regularFont),qa=l.div.withConfig({displayName:"SelectedOfferSummary__CheapestOffer"})(["font-size:12px;line-height:12px;margin-bottom:20px;@media ","{font-size:14px;line-height:14px;}span{font-family:",";}"],d.MinDesktop,({theme:e})=>e.redesign.heavyFont),Ka=l.div.withConfig({displayName:"SelectedOfferSummary__ReferencePrice"})(["font-size:18px;line-height:18px;color:",";text-decoration:line-through;margin-bottom:10px;@media ","{font-size:26px;line-height:26px;}"],({theme:e})=>e.redesign.hotels.searchResultsPage.referencePriceColor,d.MinDesktop),Qa=l.div.withConfig({displayName:"SelectedOfferSummary__MainPriceContainer"})(["font-size:32px;line-height:32px;font-family:",";display:flex;align-items:center;gap:10px;@media ","{font-size:48px;line-height:48px;}"],({theme:e})=>e.redesign.heavyFont,d.MinDesktop),Ua=l.span.withConfig({displayName:"SelectedOfferSummary__MainPrice"})(["display:flex;align-items:flex-end;flex-wrap:wrap;color:",";& > *:not(:last-child){margin-right:5px;}"],({theme:e})=>e.redesign.onPrimaryBgColor),Ya=l(B).attrs({isHeavy:!0,defaultVariant:"verySmall",breakpointsVariants:{[d.MinTablet]:"normal"}}).withConfig({displayName:"SelectedOfferSummary__MainPriceTotalLabel"})(["margin:-2px 5px 0 0;color:",";"],({theme:e})=>e.redesign.onPrimaryBgColor),Za=l.div.withConfig({displayName:"SelectedOfferSummary__AdditionalPrice"})(["font-size:12px;line-height:12px;margin-top:10px;display:flex;flex-direction:column;color:",";white-space:break-spaces;flex-wrap:wrap;gap:3px;@media ","{font-size:14px;line-height:14px;flex-direction:row;}"],({theme:e})=>e.redesign.onPrimaryBgColor,d.MinDesktop),Xa=l(B).withConfig({displayName:"SelectedOfferSummary__TaxAndFeesRemark"})(["font-size:10px;line-height:10px;margin-top:5px;color:",";"],({theme:e})=>e.redesign.onPrimaryBgColor),Ja=l.div.withConfig({displayName:"SelectedOfferSummary__DiscountBox"})(["background-color:",";font-size:12px;line-height:12px;padding:5px 10px;width:fit-content;margin-top:10px;"],({theme:e})=>e.redesign.defaultBackground),er=l(U).withConfig({displayName:"SelectedOfferSummary__SelectRoomButton"})(["margin-top:20px;"]),ir=l(B).attrs({defaultVariant:"h5",isHeavy:!1}).withConfig({displayName:"SelectedOfferSummary__NoOffersRemark"})([""]),tr=({hotelId:e,hotelImages:t,isLoadingOffers:n,onOpenGalleryModal:a,onOpenInitialSearchForm:r,initialOffer:c,searchCriteria:s,cheapestOffer:u,totalNumberOfImages:p,amenities:f})=>{const{t:m}=L(),g=z(d.MinDesktop),x=z(d.MinTablet),S=z(d.MinMobile),M=fe(),O=Ge(),{showAnyStickers:H,showWaterparkSticker:y,showAllInclusiveSticker:P}=Dn(f,c||u),[w,b]=o.useState(!1),[C,D]=pe(),k=o.useMemo(()=>g?D&&D.height>0?D.height:450:x?D&&D.height>0?D.height:400:S?380:200,[g,x,S,D]),N=o.useMemo(()=>{if(x)return Gt},[x]);return i.jsxs(ar,{children:[i.jsxs(rr,{children:[i.jsx(qt,{hotelId:e,hotelImages:t,onOpenGalleryModal:a,onImageChange:I=>b(I===t.length-1),showAdditionalElements:!0,maxHeight:k}),p>0&&i.jsx(lr,{onClick:a,children:`${m("tix_ui_hotel_detailed_landing_page_show_all_photos")} (${p})`}),H&&i.jsx(nr,{showAllInclusiveSticker:P,showWaterparkSticker:y,stickerHeight:N?.height,stickerWidth:N?.width}),w&&i.jsx(or,{onClick:()=>a()})]}),x&&i.jsxs(sr,{ref:C,isLoadingOffers:n,children:[O&&i.jsx(cr,{}),n?i.jsx(dr,{children:i.jsx(Ri,{size:x?48:40,width:6,margin:0,color:M.redesign.onPrimaryBgColor})}):i.jsx(Wa,{searchCriteria:s,onOpenInitialSearchForm:r,offer:c,cheapestOffer:u})]})]})},nr=l(kn).withConfig({displayName:"HotelSummary__StyledStickers"})(["top:20px;left:20px;"]),or=l(Ln).withConfig({displayName:"HotelSummary__StyledRightArrow"})(["right:20px;"," @media ",'{right:10px;width:24px;height:24px;> svg{width:9px;height:9px;margin-right:1.5px;margin-top:1.5px;}&:after{content:"";position:absolute;
6left:-5px;top:-5px;width:32px;height:32px;z-index:-1;}}'],({theme:e})=>!!e.redesign.hotels.searchResultsPage.singleHotel.galleryArrowButtonsRadiusOverride&&`border-radius: ${e.redesign.hotels.searchResultsPage.singleHotel.galleryArrowButtonsRadiusOverride};`,d.MaxMobile),ar=l.div.withConfig({displayName:"HotelSummary__MainContainer"})(["display:flex;min-height:200px;@media ","{min-height:380px;}"],d.MinMobile),rr=l.div.withConfig({displayName:"HotelSummary__GalleryContainer"})(["position:relative;width:100%;cursor:pointer;@media ","{width:calc(100% - 260px);}@media ","{width:calc(100% - 340px);}"],d.MinTablet,d.MinDesktop),lr=l(U).withConfig({displayName:"HotelSummary__OpenGalleryButton"})(["background:",";color:",";position:absolute;bottom:10px;right:10px;width:auto;z-index:1;height:32px;font-size:12px;line-height:100%;&:not(:disabled):hover{background:",";color:",";}@media ","{bottom:20px;right:20px;height:48px;font-size:14px;}"],({theme:e})=>e.redesign.hotels.landingPage.galleryModalButton.background,({theme:e})=>e.redesign.hotels.landingPage.galleryModalButton.color,({theme:e})=>e.redesign.hotels.landingPage.galleryModalButton.background,({theme:e})=>e.redesign.hotels.landingPage.galleryModalButton.color,d.MinTablet),sr=l.div.withConfig({displayName:"HotelSummary__OfferSection"})(["width:260px;height:100%;background:",";position:relative;display:flex;align-items:",";@media ","{min-height:400px;}@media ","{width:340px;min-height:450px;}"],({theme:e})=>e.redesign.hotels.landingPage.priceBoxBackground,({isLoadingOffers:e})=>e?"center":"flex-end",d.MinTablet,d.MinDesktop),cr=l.div.withConfig({displayName:"HotelSummary__OfferSectionArrow"})(["z-index:1;width:20px;height:20px;background:",";background-position:left;top:50%;position:absolute;background-size:250px 270px;transform:translate(-50%,-50%) rotate(45deg);left:0px;"],({theme:e})=>e.redesign.hotels.searchResultsPage.singleHotel.arrowColor||e.redesign.flights.searchResultsPage.singleFlight.priceContainerBackground),dr=l.div.withConfig({displayName:"HotelSummary__CircleLoaderContainer"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;"]),pr=({hotelId:e,hotelImages:t,amenities:n,goodToKnows:a,isLoadingOffers:r,onShowOnMapClick:c,onOpenGalleryModal:s,onOpenInitialSearchForm:u,onAmenitiesShowAllClick:p,onLocationDescriptionShowMoreClick:f,onShowReviewsClick:m,locationDescription:g,checkInTime:x,checkOutTime:S,checkInDate:M,checkOutDate:O,geoLocation:H,nearbyAttractions:y,supplierRating:P,hotelName:w,starRating:b,navbarItems:C,totalNumberOfImages:D,internalAddress:k,initialOffer:N,searchCriteria:I,cheapestOffer:$,accommodationTypeLabelKey:Z,isGalleryModalOpen:X,isNavbarFixed:E,setIsNavbarFixed:oe,hasAds:J})=>i.jsxs(fr,{id:A.Overview,children:[i.jsx(Kt,{amenities:n,onShowOnMapClick:c,hotelName:w,starRating:b,internalAddress:k,accommodationTypeLabelKey:Z}),i.jsx(tr,{hotelId:e,hotelImages:t,isLoadingOffers:r,onOpenGalleryModal:s,onOpenInitialSearchForm:u,totalNumberOfImages:D,initialOffer:N,searchCriteria:I,cheapestOffer:$,amenities:n}),i.jsx(Qt,{navbarItems:C,onOpenGalleryModal:s,isGalleryModalOpen:X,isNavbarFixed:E,setIsNavbarFixed:oe,hasAds:J}),i.jsx(Ut,{supplierRating:P,goodToKnows:a,amenities:n,onAmenitiesShowAllClick:p,onLocationDescriptionShowMoreClick:f,locationDescription:g,checkInTime:x,checkOutTime:S,checkInDate:M,checkOutDate:O,geoLocation:H,onOpenMapModal:c,onShowReviewsClick:m,nearbyAttractions:y})]}),fr=l.div.withConfig({displayName:"HotelOverview__MainContainer"})(["position:relative;z-index:1;background:",";width:100%;"],({theme:e})=>e.redesign.defaultBackground);function ur(e){return{data:e.toFormData(),method:"get",name:ze.MakeSimilarHotelsSearch,url:`/api/hotels/similar-hotels?${e.toQueryString()}`}}function hr(e){const t=Ve(),[n,a]=o.useState(!1),[r,c]=o.useState([]),[s,u]=o.useState(!t.hotelsConfig?.areLandingPageSimilarHotelsEnabled),p=o.useRef(),f=Me(),m=De(),g=o.useCallback(async(S,M)=>{try{const O=await St(S,M);return O?(c(O.similarHotels),!0):!1}catch{return!1}},[]);return{fetchSimilarHotels:o.useCallback(async S=>{try{if(Be(S,p.current)||(p.current=S,c([]),a(!0),s))return;if(await g(S,e)){a(!1);return}const O=await f(ur(S));Be(S,p.current)&&(c(O),wt({similarHotels:O,searchCriteria:S,hotelUuid:e}),a(!1))}catch(M){Be(S,p.current)&&(m(M,{customMessage:"Error during fetching similar hotels"}),Pt.isAxiosError(M)&&M.response?.status===In.NotFound&&u(!0),a(!1))}},[m,f,s,g,e]),similarHotels:r,areSimilarHotelsUnavailable:s,isLoadingSimilarHotels:n}}const mr=[{labelKey:"tix_ui_hotel_detailed_landing_page_navbar_overview",elementId:A.Overview},{labelKey:"tix_ui_hotel_detailed_landing_page_navbar_room",elementId:A.Room},{labelKey:"tix_ui_hotel_detailed_landing_page_navbar_reviews",elementId:A.Reviews},{labelKey:"tix_ui_hotel_detailed_landing_page_navbar_location",elementId:A.Location},{labelKey:"tix_ui_hotel_detailed_landing_page_navbar_services",elementId:A.Services}],ol=()=>{const{hotelId:e}
6=Mt(),[t]=o.useState(!1),[n,a]=o.useState(!1),[r,c]=o.useState(!1),[s,u]=o.useState(),p=We(),[f,m]=o.useState(!1),[g,x]=o.useState(!1),[S,M]=o.useState(!1),[O,H]=o.useState(!1),[y,P]=o.useState(!1),[w,b]=o.useState(!1),C=Me(),D=De(),k=z(d.MaxMobile),N=z(d.MinDesktop),{blockScroll:I,enableScroll:$}=Hi(!1,!0),Z=Ve(),X=fe(),{t:E}=L(),{isIntersecting:oe}=Yt(A.Room,{rootMargin:"-100px 0px 0px 0px"}),J=o.useRef(null),ae=o.useCallback(()=>{J.current?.focus()},[]),{acceptableQueryParams:h,setAcceptableQueryParams:j}=Sa(),{searchCriteria:v,setSearchCriteria:V}=wa(new Ne({checkInDate:h?.checkInDate,checkOutDate:h?.checkOutDate,rooms:h?.rooms}),j),ve=o.useCallback(R=>{I(),V(new Ne(R)),$()},[V,I,$]),{hotelContent:_,fetchHotelContent:Qe,isLoadingContent:Ue,fetchingContentErrorOccurred:Qi,isDetailedHotelContentUnavailable:Ye}=Zt(),{offers:Ui,fetchHotelOffers:Ze,isLoadingOffers:W,noOffersFound:ue,fetchingOffersErrorOccurred:Xe}=Ma(e),Je=ce(W),{similarHotels:G,fetchSimilarHotels:ei,areSimilarHotelsUnavailable:ii,isLoadingSimilarHotels:ti}=hr(e),ni=o.useRef(null),{isIntersecting:oi}=Tn(ni,{rootMargin:"0px"}),ai=o.useMemo(()=>!!Z.availableModules.packages&&!!_?.packable,[Z,_?.packable]),ri=o.useMemo(()=>({expectedPrice:h.expectedPrice,mealOptionType:h.mealOptionType,freeCancellation:h.freeCancellation}),[h.expectedPrice,h.mealOptionType,h.freeCancellation]),{roomsWithOffers:Yi,runOfTheHouseOffers:Zi,initialOffer:Oe,cheapestOffer:li,noOffersMatched:he}=Da(Ui,_,ri),si=o.useCallback(()=>{M(!0)},[]),Xi=o.useCallback(()=>M(!1),[]),Ji=o.useCallback(()=>{m(!0)},[]),et=o.useCallback(()=>m(!1),[]),it=o.useCallback(()=>{H(!0)},[]),tt=o.useCallback(()=>H(!1),[]);o.useEffect(()=>{Qe(e)},[e,Qe]),o.useEffect(()=>{if(Ye){const R=ee.HOTELS_LANDING_PAGE.replace(gi.HOTEL_ID,e),K=`${new Ie({checkInDate:h.checkInDate,checkOutDate:h.checkOutDate,locationCode:h.locationCode,locationType:h.locationType,rooms:h.rooms}).toQueryString()}&${de.stringify({searchId:h.srpSearchId,freeCancellation:h.freeCancellation,mealOptionType:h.mealOptionType,expectedPrice:h.expectedPrice,supplierRequestId:h.supplierRequestId})}`,le=`${R}?${K}`;p.replace(le)}},[h,p,e,Ye]),o.useEffect(()=>{v.isValid()&&Ze(v,h?.srpSearchId,h?.supplierRequestId)},[v,Ze]);const re=o.useMemo(()=>new Ie({checkInDate:h.checkInDate,checkOutDate:h.checkOutDate,locationCode:_?.id,locationType:ge.Hotel,rooms:h.rooms}),[h,_?.id]);o.useEffect(()=>{re.isValid()&&ei(re)},[re,ei]);const[ci,nt]=o.useState(!1);o.useEffect(()=>{oi&&!ti&&nt(!0)},[oi,ti]);const di=o.useMemo(()=>ii||!ci?!1:N?G.length>=Le.DESKTOP:k?G.length>=Le.MOBILE:G.length>=Le.TABLET,[ii,k,N,G,ci]),{createLandingPageRedirectUrl:pi}=Mn(),ot=o.useCallback(R=>{const F=G.find(le=>le.id===R),K=pi(re,R,F?.offers?.[0],h.srpSearchId);window.open(K)},[re,pi,G,h.srpSearchId]),at=o.useCallback(async R=>{if(R&&v)try{c(!0),u(R.id);const F=await C(Nn(Xt(e,v,R,h.locationCode||e,h.locationType||ge.Hotel,_?.roomsDetails.rooms||[],h.srpSearchId)));p.push(ee.HOTELS_CHECKOUT.replace(gi.RESERVATION_ID,F.id))}catch(F){c(!1),u(void 0),D(F,{customMessage:`Error during creating reservation for offer: ${R.id}`})}},[h.locationCode,h.locationType,h.srpSearchId,e,C,D,v,p,_?.roomsDetails.rooms]),je=o.useMemo(()=>_?[..._.hotelDetails.amenities].sort((R,F)=>F.priority-R.priority):[],[_]),He=o.useMemo(()=>Jt(_),[_]),rt=o.useMemo(()=>en(_?.hotelDetails.images,He),[_,He]),fi=o.useMemo(()=>!v.isValid()||ue||he,[v,ue,he]),lt=o.useCallback(()=>{_?.trustYouReviews?x(!0):_?.providerReviews&&P(!0)},[_?.providerReviews,_?.trustYouReviews]),st=o.useMemo(()=>{if(_?.trustYouReviews)return _.hotelDetails.supplierRating;if(_?.providerReviews)return{count:_.providerReviews.ratings.count||_.providerReviews.reviews.length,score:_.providerReviews.ratings.overall}},[_]),me=o.useCallback((R=0,F)=>{setTimeout(()=>{const K=document.getElementById(A.Room);if(K){const le=K.getBoundingClientRect();(F?le.top<0:!0)&&K.scrollIntoView()}},R)},[]),ct=o.useCallback(()=>{a(!1),me(Bn+50)},[me]),[ui,hi]=o.useState(!1),dt=o.useCallback(R=>{V(new Ne({checkInDate:new Date(R.dateRange.startDate),checkOutDate:new Date(R.dateRange.endDate),rooms:v.rooms}),!0),hi(!0)},[v.rooms,V]);o.useEffect(()=>{ui&&Je&&!W&&(me(0,!0),hi(!1))},[me,ui,Je,W]);const q=o.useMemo(()=>
6{if(!window.opener)return;const R=window.opener.location;if(R&&R.pathname===ee.HOTELS_SEARCH)return`${R.pathname}${R.search}`},[]),pt=o.useMemo(()=>!(!q&&!v.isValid()),[q,v]),ft=o.useMemo(()=>E(q?"tix_ui_lp_back_button_back_to_results_page":"tix_ui_lp_back_button_discover_more_nearby"),[q,E]),ut=o.useCallback(()=>{if(q)return window.location.href=q;const R=new Ie({checkInDate:v.checkInDate,checkOutDate:v.checkOutDate,locationCode:e,locationType:ge.Hotel,rooms:v.rooms});return window.location.href=`${ee.HOTELS_SEARCH}?${R.toQueryString()}`},[q,e,v]);return i.jsx(gr,{children:Ue?i.jsx(wn,{fullScreen:!0}):Qi?i.jsx(ja,{locationType:h.locationType||ge.Hotel,locationCode:h.locationCode||e,searchCriteria:v}):_&&i.jsxs(i.Fragment,{children:[i.jsx(be,{style:{zIndex:2},children:i.jsxs(Ae,{children:[i.jsxs(Fe,{hasAds:t,children:[i.jsxs(br,{children:[pt&&i.jsx(yr,{color:"transparent",bordered:!0,fontType:"Regular",customLeftIcon:i.jsx(un,{}),onClick:ut,children:ft}),fi&&i.jsx(Ki,{hotelId:e,searchCriteria:v,onSubmit:ve,dateFieldRef:J,noOffersFound:ue,noOffersMatched:he,fetchingOffersErrorOccurred:Xe,isFetchingOffers:W,arePackagesEnabled:ai})]}),i.jsx(pr,{hotelId:e,hotelImages:_.hotelDetails.images,amenities:je,isLoadingOffers:W,goodToKnows:_.trustYouReviews?.reviewsByTripType.all.goodToKnows,locationDescription:_.hotelDetails.accommodationDescription||_.locationDetails.description,checkInTime:_.policies.checkIn.beginTime,checkOutTime:_.policies.checkOut.time,geoLocation:_.hotelDetails.geoLocation,nearbyAttractions:_.locationDetails.nearbyAttractions,supplierRating:st,hotelName:_.hotelDetails.name,starRating:_.hotelDetails.category,checkInDate:v.checkInDate,checkOutDate:v.checkOutDate,navbarItems:mr,internalAddress:_.hotelDetails.internalAddress,accommodationTypeLabelKey:_.accommodationDetails.accommodationType.labelKey,totalNumberOfImages:rt,initialOffer:Oe,searchCriteria:v,onShowOnMapClick:si,onOpenGalleryModal:()=>a(!0),onOpenInitialSearchForm:ae,onAmenitiesShowAllClick:Ji,onLocationDescriptionShowMoreClick:it,onShowReviewsClick:lt,cheapestOffer:li,hasAds:t,isGalleryModalOpen:n,isNavbarFixed:w,setIsNavbarFixed:b})]}),t&&i.jsx(Te,{children:i.jsx($e,{children:"I AM A BANNER"})})]})}),i.jsx(be,{style:{zIndex:1},children:i.jsxs(Ae,{children:[i.jsx(Fe,{hasAds:t,children:i.jsx(_a,{hotelId:e,roomsWithOffers:Yi,runOfTheHouseOffers:Zi,preferences:ri,searchCriteria:v,isLoadingContent:Ue,isLoadingOffers:W,isSubmittingReservation:r,noOffersFound:ue,noOffersMatched:he,onBookClick:at,isInitialSearchFormVisible:fi,onSearchFormSubmit:ve,fetchingOffersErrorOccurred:Xe,arePackagesEnabled:ai,onFlexibleDateOfferClick:dt,srpSearchId:h?.srpSearchId,supplierRequestId:h?.supplierRequestId,initialOffer:Oe,submittedOfferId:s})}),t&&i.jsx(Te,{children:i.jsx($e,{children:"I AM A BANNER"})})]})}),i.jsx(xr,{isExpanded:di,children:i.jsx(_r,{ref:ni,style:{background:X.redesign.defaultBackground},children:i.jsx(Ae,{children:di&&i.jsx(tn,{similarHotels:G,checkInDate:v.checkInDate,checkOutDate:v.checkOutDate,onSimilarHotelClick:ot})})})}),i.jsx(be,{style:{zIndex:0,background:X.redesign.lightBackgroun
6d},children:i.jsxs(zi,{children:[i.jsx(Fe,{hasAds:t,children:!!_&&i.jsx(nn,{content:_,onOpenMapModal:si,onOpenProviderReviewsModal:()=>P(!0)})}),t&&i.jsx(Te,{children:i.jsx($e,{children:"I AM A BANNER"})})]})}),!!_&&i.jsx(on,{hotelId:e,isOpened:n,onClose:()=>a(!1),onCloseAndScroll:()=>ct(),hotelImages:_.hotelDetails.images,categorizedImages:He,hotelName:_.hotelDetails.name,categoriesOrder:_.imageCategoriesOrder}),je&&i.jsx(an,{amenities:je,isOpen:f,onClose:et}),_.trustYouReviews&&i.jsx(rn,{isOpened:g,onClose:()=>x(!1),trustYouReviews:_.trustYouReviews}),_&&i.jsx(ln,{isOpen:S,onClose:Xi,hotelContent:_}),!!_.providerReviews&&i.jsx(sn,{isOpened:y,onClose:()=>P(!1),providerReviews:_.providerReviews}),k&&i.jsx(La,{offer:Oe,searchCriteria:v,isLoadingOffers:W,cheapestOffer:li,onOpenInitialSearchForm:ae,isVisible:!oe}),i.jsx(cn,{accommodationDetails:_.accommodationDetails,hotelName:_.hotelDetails.name,isOpen:O,onClose:tt,locationDescription:_.hotelDetails.accommodationDescription||_.locationDetails.description})]})})},Te=l.div.withConfig({displayName:"DetailedLandingPage__BannerContainer"})(["@media ","{display:inline-block;vertical-align:top;}"],d.MinLargeDesktop),Ae=l(zi).withConfig({displayName:"DetailedLandingPage__MaxMobileBaseContainer"})(["@media ","{width:100%;max-width:100%;}"],d.MaxMobile),Fe=l.div.withConfig({displayName:"DetailedLandingPage__NormalContent"})(["width:100%;@media ","{margin:auto;width:1060px;}@media ","{","}"],d.MinDesktop,d.MinLargeDesktop,({hasAds:e})=>e&&"display: inline-block;"),$e=l.div.withConfig({displayName:"DetailedLandingPage__DummyBanner"})(["margin-left:20px;background:white;width:160px;height:600px;@media ","{width:728px;height:90px;margin:40px auto 0 auto;}@media ","{margin:20px auto 0 auto;}@media ","{margin:80px auto 0 auto;width:300px;height:250px;}"],d.MaxDesktop,d.MaxTablet,d.MaxMobile),gr=l.div.withConfig({displayName:"DetailedLandingPage__Content"})(["background:",";display:flex;flex-direction:column;flex-grow:1;> div:nth-of-type(even){background:",";}@media ","{padding:0;}"],({theme:e})=>
6e.redesign.lightBackground,({theme:e})=>e.redesign.darkBackground,d.MaxMobile),be=l.div.withConfig({displayName:"DetailedLandingPage__Section"})(["width:100%;display:flex;justify-content:center;padding:100px 0px;&:first-child{padding:60px 0 100px 0;}@media ","{align-items:center;flex-direction:column;}@media ","{padding:80px 0px;&:first-child{padding:0px 0 80px 0;}}"],d.MaxDesktop,d.MaxMobile),xr=l(An).withConfig({displayName:"DetailedLandingPage__StyledAnimatedExpandableContainer"})(["z-index:1;"]),_r=l(be).withConfig({displayName:"DetailedLandingPage__SimilarHotelsSection"})(["padding:80px 0;height:340px;&:first-child{padding:80px 0;}@media ","{height:274px;}@media ","{padding:60px 0px;&:first-child{padding:60px 0;}}"],d.OnlyTablet,d.MaxMobile),yr=l(U).withConfig({displayName:"DetailedLandingPage__BackButton"})(["font-size:14px;line-height:18px;margin-bottom:20px;width:fit-content;@media ","{margin:20px 0 20px 20px;height:32px;font-size:12px;}"],d.MaxMobile),br=l.div.withConfig({displayName:"DetailedLandingPage__SearchFormWrapper"})(["@media ","{display:flex;flex-direction:column-reverse;}"],d.MaxMobile);export{ol as default};

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.