1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,946217,(e,t,a)=>{var r=e.r(848477),n=e.r(367426),i=e.r(473250),l=e.r(45350),s=e.r(351095),o=e.r(356956),b=e.r(763996),d=e.r(3023),c=Object.prototype.hasOwnProperty;t.exports=function(e){if(null==e)return!0;if(s(e)&&(l(e)||"string"==typeof e||"function"==typeof e.splice||o(e)||d(e)||i(e)))return!e.length;var t=n(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(b(e))return!r(e).length;for(var a in e)if(c.call(e,a))return!1;return!0}},148471,e=>{"use strict";let t=(0,e.i(639372).atom)(null);e.s(["bookingContextAtom",0,t])},992476,e=>{"use strict";var t=e.i(843476),a=e.i(500932);e.s(["default",0,e=>{let r,n=(0,a.c)(2);return n[0]!==e.children?(r=(0,t.jsx)("div",{className:"bv:m-0 bv:flex bv:items-center bv:gap-[8px] bv:text-bv_bodyFontSize",children:e.children}),n[0]=e.children,n[1]=r):r=n[1],r}])},221637,677837,e=>{"use strict";var t=e.i(843476),a=e.i(500932),r=e.i(482582),n=e.i(946217),i=e.i(271645),l=e.i(644870),s=e.i(605458),o=e.i(58840);let b=e=>e?.filter(e=>e.content?.trim())??[];e.s(["contentKeysWithContent",0,b],677837);let d=e=>{let n,i,l,s=(0,a.c)(7),{label:o,value:b}=e;return s[0]!==b?(n=(0,t.jsx)("div",{className:"bv:w-[80px] bv:shrink-0",children:(0,t.jsx)(r.default,{bold:!0,size:"small",children:b})}),s[0]=b,s[1]=n):n=s[1],s[2]!==o?(i=(0,t.jsx)("div",{className:"bv:flex-1",children:(0,t.jsx)(r.default,{size:"small",children:o})}),s[2]=o,s[3]=i):i=s[3],s[4]!==n||s[5]!==i?(l=(0,t.jsxs)("div",{className:"bv:flex bv:gap-[20px]",children:[n,i]}),s[4]=n,s[5]=i,s[6]=l):l=s[6],l};e.s(["PackageContentKeys",0,({contentKeys:e,isDetail:a=!1,noBorder:c=!1,isBookingSummary:v=!1,isTile:m=!1,isRates:u=!1,isRatesTiles:f=!1,className:p})=>{let x=(0,o.useAccommodationTranslations)(),h=(0,i.useMemo)(()=>b(e).sort((e,t)=>(e.contentKeyRank||0)-(t.contentKeyRank||0)),[e]);if((0,n.default)(h))return null;if(a){let e=Math.ceil(h?.length/2),a=h?.slice(0,e),r=h?.slice(e),n=(0,t.jsxs)("div",{className:"bv:grid bv:grid-cols-1 bv:gap-x-12 bv:gap-y-4 bv:bv_medium:grid-cols-2",children:[(0,t.jsx)("div",{className:"bv:space-y-4",children:a?.map((e,a)=>(0,t.jsx)(d,{label:e.content,value:e.contentKey},a))}),(0,t.jsx)("div",{className:"bv:space-y-4",children:r?.map((e,a)=>(0,t.jsx)(d,{label:e.content,value:e.contentKey},a))})]});return c?(0,t.jsxs)("div",{className:"bv:w-full bv:mt-[16px]",children:[(0,t.jsx)(l.default,{level:3,size:"small",className:"bv:mb-[20px]",children:x("EA4H.Online.PackageIncludes")}),n]}):(0,t.jsxs)("fieldset",{className:"bv:relative bv:mx-0 bv:mt-[40px] bv:w-full bv:rounded-2xl bv:border bv:border-solid bv:border-bv_dividerBorderColor bv:p-[30px] bv:bv_small:p-[20px]",children:[(0,t.jsx)("legend",{children:(0,t.jsx)(l.default,{level:3,size:"small",children:x("EA4H.Online.PackageIncludes")})}),n]})}if(u&&!f){let e=Math.ceil(h?.length/2),a=h?.slice(0,e),n=h?.slice(e);return(0,t.jsxs)("div",{className:(0,s.cn)(p,"bv:grid bv:grid-cols-1 bv:gap-x-12 bv:gap-y-2 bv:md:grid-cols-2"),children:[(0,t.jsx)("div",{children:a?.map(e=>(0,t.jsxs)("div",{className:"bv:flex bv:flex-row bv:items-start",children:[(0,t.jsx)(r.default,{bold:!0,size:"small",className:"bv:w-[120px] bv:shrink-0",children:e.contentKey}),(0,t.jsx)(r.default,{size:"small",children:e.content})]},e.contentKey))}),(0,t.jsx)("div",{children:n?.map(e=>(0,t.jsxs)("div",{className:"bv:flex bv:flex-row bv:items-start",children:[(0,t.jsx)(r.default,{bold:!0,size:"small",className:"bv:w-[120px] bv:shrink-0",children:e.contentKey}),(0,t.jsx)(r.default,{size:"small",children:e.content})]},e.contentKey))})]})}let g=!m&&!v;return(0,t.jsx)("div",{className:p,children:h?.map(e=>(0,t.jsxs)("div",{className:(0,s.cn)("bv:flex bv:flex-row",g?"bv:items-start":"bv:justify-between",m&&"bv:gap-[5px]"),children:[(0,t.jsx)("div",{className:(0,s.cn)("bv:w-[120px]",!m&&"bv:shrink-0"),children:(0,t.jsx)(r.default,{bold:!v,muted:v,size:"small",className:(0,s.cn)(m&&"bv:text-left"),children:e.contentKey})}),(0,t.jsx)("div",{className:(0,s.cn)(g&&"bv:flex-1"),children:(0,t.jsx)(r.default,{size:"small",className:(0,s.cn)(!g&&"bv:text-right"),children:e.content})})]},e.contentKey))})}],221637)},43454,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(981140),n=e.i(30030),i=e.i(842727),l=e.i(296626),s=e.i(248425),o=e.i(586318),b=e.i(369340),d=e.i(610772),c=Object.defineProperty,v=(e,t)=>
1c(e,"name",{value:t,configurable:!0}),m="Tabs",[u,f]=(0,n.createContextScope)(m,[i.createRovingFocusGroupScope]),p=(0,i.createRovingFocusGroupScope)(),[x,h]=u(m),g=a.forwardRef(v(function(e,a){let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:v,activationMode:u="automatic",...f}=e,p=(0,o.useDirection)(v),[h,g]=(0,b.useControllableState)({prop:n,onChange:i,defaultProp:l??"",caller:m});return(0,t.jsx)(x,{scope:r,baseId:(0,d.useId)(),value:h,onValueChange:g,orientation:c,dir:p,activationMode:u,children:(0,t.jsx)(s.Primitive.div,{dir:p,"data-orientation":c,...f,ref:a})})},"Tabs")),y=a.forwardRef(v(function(e,a){let{__scopeTabs:r,loop:n=!0,...l}=e,o=h("TabsList",r),b=p(r);return(0,t.jsx)(i.Root,{asChild:!0,...b,orientation:o.orientation,dir:o.dir,loop:n,children:(0,t.jsx)(s.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...l,ref:a})})},"TabsList")),j=a.forwardRef(v(function(e,a){let{__scopeTabs:n,value:l,disabled:o=!1,...b}=e,d=h("TabsTrigger",n),c=p(n),v=N(d.baseId,l),m=k(d.baseId,l),u=l===d.value;return(0,t.jsx)(i.Item,{asChild:!0,...c,focusable:!o,active:u,children:(0,t.jsx)(s.Primitive.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":m,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:v,...b,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(l)}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{!o&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&d.onValueChange(l)}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;u||o||!e||d.onValueChange(l)})})})},"TabsTrigger")),_=a.forwardRef(v(function(e,r){let{__scopeTabs:n,value:i,forceMount:o,children:b,...d}=e,c=h("TabsContent",n),v=N(c.baseId,i),m=k(c.baseId,i),u=i===c.value,f=a.useRef(u);return a.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(l.Presence,{present:o||u,children:({present:a})=>(0,t.jsx)(s.Primitive.div,{"data-state":u?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":v,hidden:!a,id:m,tabIndex:0,...d,ref:r,style:{...e.style,animationDuration:f.current?"0s":void 0},children:a&&b})})},"TabsContent"));function N(e,t){return`${e}-trigger-${t}`}function k(e,t){return`${e}-content-${t}`}v(N,"makeTriggerId"),v(k,"makeContentId");var w=e.i(605458);let T=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)(y,{ref:r,className:(0,w.cn)("bv:inline-flex bv:h-10 bv:items-center bv:justify-center bv:gap-1",e),...a}));T.displayName=y.displayName;let C=a.forwardRef(({className:e,unstyled:a,...r},n)=>{let i=a?void 0:(0,w.cn)("bv:inline-flex bv:items-center bv:justify-center bv:whitespace-nowrap bv:px-3 bv:py-1.5","bv:text-bv_bodyFontSize bv:ring-offset-background","bv:transition-all","bv:focus-visible:outline-hidden bv:focus-visible:ring-2 bv:focus-visible:ring-ring bv:focus-visible:ring-offset-2","bv:disabled:pointer-events-none bv:disabled:opacity-50","bv:cursor-pointer",e);return(0,t.jsx)(j,{ref:n,className:(0,w.cn)(i,e),...r})});C.displayName=j.displayName;let F=a.forwardRef(({className:e,...a},r)=>(0,t.jsx)(_,{ref:r,className:(0,w.cn)("bv:mt-2","bv:focus-visible:outline-hidden bv:focus-visible:ring-2 bv:focus-visible:ring-ring bv:focus-visible:ring-offset-2",e),...a}));F.displayName=_.displayName,e.s(["Tabs",0,g,"TabsContent",0,F,"TabsList",0,T,"TabsTrigger",0,C],43454)},262035,e=>{"use strict";var t=e.i(843476),a=e.i(500932),r=e.i(271645),n=e.i(344306),i=e.i(692156),l=e.i(58840),s=e.i(806264),o=e.i(938266),b=e.i(43454),d=e.i(990717),c=e.i(644870),v=e.i(482582),m=e.i(811488),u=e.i(580013),f=e.i(747710),p=e.i(415550),x=e.i(221637),h=e.i(992476),g=e.i(178126),y=e.i(605458),j=e.i(402872),_=e.i(59532),N=e.i(672464),k=e.i(148471);let w=({open:e,onClose:a,paymentPolicy:w,privacyPolicy:T,room:C,cancellationPolicies:F,customTitle:I,ratePlanContent:P,priceBreakdown:A,campaignContent:B,discountInfos:S,customBookingData:z,packageContent:H,defaultTab:D})=>{let E=(0,l.useAccommodationTranslations)(),M=(0,N.useAtomValue)(k.bookingContextAtom),{formatCurrency:L,currencyCode:O}=(0,n.useCurrencyFormatter)(),{languageCulture:R}=(0,i.useGlobalContext)(),K=z??M?.activeBooking?.bookingData,[G,U]=(0,r.useState)(D??(H?"about":"terms")),[W,$]=(0,r.useState)(!1),[V,q]=(0,r.useState)(e),[Y,X]=(0,r.useState)(!0),J=(0,r.useRef)(null),Q=(0,r.useRef)(H),Z=(0,r.useMemo)(()=>
1H?"shortDescription"in H?H.images??[]:H.images?.map(e=>({url:e.uri}))??[]:[],[H]),ee=(0,r.useMemo)(()=>new Intl.DateTimeFormat(R,{month:"short",day:"numeric",weekday:"short",year:"numeric"}),[R]);(0,r.useEffect)(()=>{let e,t=()=>$(window.innerWidth<768);t();let a=()=>{clearTimeout(e),e=setTimeout(t,150)};return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),clearTimeout(e)}},[]),(0,r.useEffect)(()=>{e&&q(!0)},[e]),(0,r.useEffect)(()=>{!H||Q.current||D||U("about"),Q.current=H},[H,D]),(0,r.useEffect)(()=>{"about"===G?X(!0):X(!1)},[G]),(0,r.useEffect)(()=>()=>{J.current&&clearTimeout(J.current)},[]);let et=(0,r.useCallback)(e=>{if(!e)return;if(!K)return"true_if_not_checkout";let t=[];return K?.rooms?.forEach(a=>{if(a.cancellationPolicyId===e){let e=K.roomDescriptions?.find(e=>e.id===a?.roomId)?.name;e&&t.push(e)}}),K?.optionalAddOns?.forEach(a=>{if(a.cancellationPolicyId===e){let e=K.addOnDescriptions?.find(e=>e.id===a?.addOnId)?.name;e&&t.push(e)}}),K?.optionalAddOnPackages?.forEach(a=>{if(a.cancellationPolicyId===e){let e=K.addOnPackageDescriptions?.find(e=>e.id===a?.addOnPackageId)?.name;e&&t.push(e)}}),t.join(", ")},[K]),ea=(0,r.useMemo)(()=>F?F.map(e=>({policy:e,validFor:et(e.id)})).filter(({validFor:e})=>!!e).map(({policy:e,validFor:t})=>({name:e.name,description:e.description,validFor:t})):K?.cancellationPolicyDescriptions?.filter(e=>e.id===C?.cancellationPolicyId||void 0===C).map(e=>({name:e.name,description:e.description,validFor:void 0})),[F,K,C,et]),er=(A?.length??0)>0,en=(0,r.useMemo)(()=>A?.reduce((e,t)=>e+(t?.price?.displayPrice??0),0)??0,[A]);return(0,t.jsxs)(s.Sheet,{open:V,onOpenChange:e=>{e||(q(!1),J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{a?.()},300))},children:[(0,t.jsx)(s.SheetTitle,{children:"Terms and Conditions"}),(0,t.jsx)(s.SheetDescription,{children:"View terms and conditions and price breakdown"}),(0,t.jsxs)(s.SheetContent,{side:W?"bottom":"right",useDefaultOverlay:!0,className:(0,y.cn)("bv:bg-bv_frameworkBackground bv:p-0",W?"bv:h-[90vh] bv:max-h-[90vh]":"","bv:flex bv:flex-col bv:overflow-hidden"),children:[(0,t.jsxs)(o.DialogClose,{className:"bv:text-bv_bodyColor bv:absolute bv:right-[12px] bv:top-[12px] bv:z-50 bv:m-0 bv:grid bv:h-[40px] bv:w-[40px] bv:place-content-center bv:rounded-[30px] bv:border-0 bv:bg-bv_frameworkBackground bv:bv_hover","aria-label":"Close sheet",children:[(0,t.jsx)(m.FontAwesomeIcon,{icon:u.faXmark,className:"bv:h-[20px] bv:w-[15px]"}),(0,t.jsx)("span",{className:"bv:sr-only",children:"Close"})]}),(0,t.jsxs)("div",{className:"bv:custom-scrollbar bv:flex-1 bv:overflow-y-auto bv:bg-bv_frameworkBackground",children:[H&&Z.length>0&&(0,t.jsx)("div",{className:(0,y.cn)("bv:sticky bv:left-0 bv:right-0 bv:top-0 bv:z-0 bv:overflow-hidden bv:bg-bv_frameworkBackground","bv:transition-all bv:duration-500",Y?"bv:h-[300px] bv:opacity-100":"bv:h-0 bv:opacity-0"),role:"region","aria-label":"Package images",children:(0,t.jsx)("div",{className:"bv:h-[300px]",children:(0,t.jsx)(p.SimpleImageCarousel,{contain:!0,height:300,images:Z,altLabel:H.name})})}),(0,t.jsxs)(b.Tabs,{value:G,onValueChange:e=>U(e),className:"bv:relative bv:z-10 bv:bg-bv_frameworkBackground",children:[(0,t.jsx)("div",{className:"bv:sticky bv:top-0 bv:z-10 bv:h-[64px] bv:overflow-x-auto bv:overflow-y-hidden bv:border-b-bv_dividerBorderWidth bv:border-l-0 bv:border-r-0 bv:border-t-0 bv:border-solid bv:border-bv_dividerBorderColor bv:bg-bv_frameworkBackground bv:[-ms-overflow-style:none] bv:scrollbar-none bv:[&::-webkit-scrollbar]:hidden",children:(0,t.jsxs)(b.TabsList,{className:"bv:h-full bv:w-full bv:flex-nowrap bv:justify-start bv:rounded-none bv:bg-transparent bv:p-0","aria-label":"Terms and conditions navigation",children:[H&&(0,t.jsx)(b.TabsTrigger,{value:"about",className:(0,y.cn)("bv:relative bv:h-full bv:cursor-pointer bv:px-4 bv:py-4","bv:flex bv:items-center bv:justify-center bv:transition-colors","bv:whitespace-nowrap bv:rounded-none bv:border-0","bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight","bv:data-[state=inactive]:opacity-bv_bodyMutedOpacity","bv:bg
1-transparent","bv:after:absolute bv:after:bottom-0 bv:after:left-4 bv:after:right-4 bv:after:h-[3px] bv:after:content-['']","bv:after:rounded-tl-bv_frameworkBorderRadius bv:after:rounded-tr-bv_frameworkBorderRadius bv:after:bg-bv_darkAccentColor","bv:after:opacity-0 bv:data-[state=active]:after:opacity-100","bv:after:transition-all bv:after:duration-300","bv:hover:after:scale-x-110 bv:hover:after:opacity-100"),children:E("EA4H.General.About")}),(0,t.jsx)(b.TabsTrigger,{value:"terms",className:(0,y.cn)("bv:relative bv:h-full bv:cursor-pointer bv:px-4 bv:py-4","bv:flex bv:items-center bv:justify-center bv:transition-colors","bv:whitespace-nowrap bv:rounded-none bv:border-0","bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight","bv:data-[state=inactive]:opacity-bv_bodyMutedOpacity","bv:bg-transparent","bv:after:absolute bv:after:bottom-0 bv:after:left-4 bv:after:right-4 bv:after:h-[3px] bv:after:content-['']","bv:after:rounded-tl-bv_frameworkBorderRadius bv:after:rounded-tr-bv_frameworkBorderRadius bv:after:bg-bv_darkAccentColor","bv:after:opacity-0 bv:data-[state=active]:after:opacity-100","bv:after:transition-all bv:after:duration-300","bv:hover:after:scale-x-110 bv:hover:after:opacity-100"),children:E("EA4H.GeneralTermsAndConditions")}),er&&(0,t.jsx)(b.TabsTrigger,{value:"price-breakdown",className:(0,y.cn)("bv:relative bv:h-full bv:cursor-pointer bv:px-4 bv:py-4","bv:flex bv:items-center bv:justify-center bv:transition-colors","bv:whitespace-nowrap bv:rounded-none bv:border-0","bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight","bv:data-[state=inactive]:opacity-bv_bodyMutedOpacity","bv:bg-transparent","bv:after:absolute bv:after:bottom-0 bv:after:left-4 bv:after:right-4 bv:after:h-[3px] bv:after:content-['']","bv:after:rounded-tl-bv_frameworkBorderRadius bv:after:rounded-tr-bv_frameworkBorderRadius bv:after:bg-bv_darkAccentColor","bv:after:opacity-0 bv:data-[state=active]:after:opacity-100","bv:after:transition-all bv:after:duration-300","bv:hover:after:scale-x-110 bv:hover:after:opacity-100"),children:E("EA4H.General.PriceBreakDown")})]})}),(0,t.jsxs)("div",{className:"bv:bg-bv_frameworkBackground",children:[H&&(0,t.jsxs)(b.TabsContent,{value:"about",className:"bv:m-0 bv:animate-fade-in bv:bg-bv_frameworkBackground bv:p-[30px]",children:[(0,t.jsx)("div",{className:"bv:mb-[20px] bv:flex bv:flex-col bv:gap-[10px]",children:(0,t.jsx)(d.default,{level:1,children:H.name})}),H.description&&(0,t.jsx)(v.default,{className:"bv:mt-[20px]",dangerouslySetInnerHTML:{__html:H.description}}),(0,t.jsx)(c.default,{level:2,className:"bv:mt-[40px]",children:E("EA4H.Confirmation.ThePackageIncludes")}),(0,t.jsx)("hr",{className:"bv:my-[20px] bv:h-px bv:w-full bv:border-0 bv:bg-bv_cardDividerColor"}),(0,t.jsx)("div",{className:"bv:mt-[10px]",children:(0,j.arrayHasItems)(H.packageContentKeys)&&H.useContentKeys?(0,t.jsx)(x.PackageContentKeys,{contentKeys:H.packageContentKeys}):(0,t.jsx)(t.Fragment,{children:(0,j.arrayHasItems)(H.includedAddOns)&&H.includedAddOns?.map((e,a)=>(0,t.jsxs)(h.default,{children:[(0,t.jsx)(m.FontAwesomeIcon,{className:"bv:text-[18px] bv:text-inherit",icon:f.faCheck}),(0,t.jsx)(v.default,{size:"small",children:e},e)]},`package-detail-section-item-${a}`))})})]}),(0,t.jsxs)(b.TabsContent,{value:"terms",className:"bv:m-0 bv:animate-fade-in bv:bg-bv_frameworkBackground bv:p-[30px]",children:[(0,t.jsxs)("div",{className:"bv:mb-[20px] bv:flex bv:flex-col bv:gap-[10px]",children:[(0,t.jsx)(d.default,{level:1,children:I??E("EA4H.GeneralTermsAndConditions")}),(0,t.jsx)(v.default,{bold:!0,children:E("EA4H.General.ImportantInformationAboutYourBooking")})]}),P&&(0,t.jsxs)("section",{"aria-labelledby":"terms-rateplan-heading",className:"bv:mb-5",children:[(0,t.jsx)(c.default,{size:"small",level:2,id:"terms-rateplan-heading",children:P.name}),(0,t.jsx)(v.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:P.description??""}})]},P.name),S&&S?.map((e,a)=>(0,t.jsxs)("section",{"aria-labelledby":`terms-discount-heading-${a}`,className:"bv:mb-5",children:[(0,t.jsx)(c.default,{size:"small",level:2,id:`terms-discount-heading-${a}`,children:e.name}),(0,t.jsx)(v.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:e.description??""}})]},e.name)),B&&(0,t.jsxs)("section",{"aria-labelledby":"terms-campaign-heading",className:"bv:mb-5",children:[(0,t.jsx)(c.default,{size:"small",level:2,id:"terms-campaign-heading",children:B.name}),(0,t.jsx)(v.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:B.description??""}})]},B.name),ea&&ea?.map((e,a)=>(0,t.jsxs)("section",{"aria-labelledby":`terms-cancellation-heading-${a}`,className:"bv:mb-5",children:[(0,t.jsx)(c.default,{size:"small",level:2,id:`terms-cancellation-heading-${a}`,children:e.name}),e.validFor&&ea?.length>1&&(0,t.jsxs)(v.default,{size:"small",italic:!0,className:"bv:mt-[5px]",children:[E("EA4H.General.For"),": ",e.validFor]}),(0,t.jsx)(v.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:e.description}})]},e.name)),w&&(0,t.jsxs)("section",{"aria-labelledby":"terms-payment-heading",className:"bv:mb-5",children:[(0,t.jsx)(c.default,{size:"small",level:2,id:"terms-payment-heading",children:w?.name??""}),(0,t.jsx)(v.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:w?.description??""}})]}),!F&&T&&!(0,_.isHttpUrl)(T.externalUrl)&&(0,t.jsxs)("section",{"aria-labelledby":"terms-privacy-heading",className:"bv:mb-5",children:[(0,t.jsx)(c.default,{size:"small",level:2,id:"terms-privacy-heading",children:E.dynamic(T.name)}),(0,t.jsx)(v.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:T.description}})]}),!F&&T&&(0,_.isHttpUrl)(T.externalUrl)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:T.externalUrl,rel:"noopener noreferrer",target:"_blank",children:E.dynamic(T.name)})})]}),er&&(0,t.jsxs)(b.TabsContent,{value:"price-breakdown",className:"bv:m-0 bv:animate-fade-in bv:bg
1-bv_frameworkBackground bv:p-[30px]",children:[(0,t.jsx)("div",{className:"bv:mb-[20px] bv:flex bv:flex-col bv:gap-[10px]",children:(0,t.jsx)(d.default,{level:1,children:E("EA4H.General.PriceBreakDown")})}),(0,t.jsxs)("table",{className:"bv:mb-5 bv:mt-[10px] bv:w-full bv:border-collapse bv:font-bv_bodyFontFamily","aria-label":"Price breakdown by night",children:[(0,t.jsx)("thead",{className:"bv:sr-only",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",children:"Description"}),(0,t.jsx)("th",{scope:"col",children:"Price"})]})}),(0,t.jsx)("tbody",{children:A?.map((e,a)=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("tr",{children:(0,t.jsx)("th",{colSpan:2,scope:"rowgroup",className:"bv:bg-bv_lightAccentColor bv:border bv:border-solid bv:border-bv_dividerBorderColor bv:px-[10px] bv:py-1 bv:font-bv_bodyFontFamily bv:text-bv_bodyFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_bodyLineHeight bv:text-left",children:ee?.format((0,g.toUTCDate)(e.start))})}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"row",className:"bv:border-b bv:border-l bv:border-r-0 bv:border-t-0 bv:border-solid bv:border-bv_dividerBorderColor bv:bg-transparent bv:px-[10px] bv:py-1 bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight bv:text-left",children:"Nightly rate"}),(0,t.jsxs)("td",{className:"bv:border-b bv:border-l-0 bv:border-r bv:border-t-0 bv:border-solid bv:border-bv_dividerBorderColor bv:bg-transparent bv:px-[10px] bv:py-1 bv:text-right bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyFontWeight bv:leading-bv_smallLineHeight",children:[L(e.price?.displayPrice)," ",O]})]})]},a))})]}),(0,t.jsx)("table",{className:"bv:mb-5 bv:mt-[20px] bv:w-full bv:border-collapse bv:font-bv_bodyFontFamily","aria-label":"Total price summary",children:(0,t.jsx)("tbody",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"row",className:"bv:border bv:border-solid bv:border-bv_dividerBorderColor bv:bg-transparent bv:px-[10px] bv:py-1 bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight bv:text-left",children:"Total price:"}),(0,t.jsxs)("td",{className:"bv:border bv:border-solid bv:border-bv_dividerBorderColor bv:bg-transparent bv:px-[10px] bv:py-1 bv:font-bv_bodyFontFamily bv:text-bv_smallFontSize bv:font-bv_bodyBoldFontWeight bv:leading-bv_smallLineHeight bv:text-right",children:[L(en)," ",O]})]})})})]})]})]})]})]})]})};var T=e.i(397881);e.s(["default",0,e=>{let n,i,l,s,o=(0,a.c)(8);o[0]!==e?(n=void 0===e?{}:e,o[0]=e,o[1]=n):n=o[1];let{isEditReservation:b}=n,[d,c]=(0,r.useState)(!1),[v,m]=(0,r.useState)(null);o[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let{room:t,paymentPolicy:a,cancellationPolicies:r,ratePlanContent:n,priceBreakdown:i,campaignContent:l,discountInfos:s,privacyPolicy:o,customTitle:b,customBookingData:d,packageContent:v,defaultTab:u}=e;m({room:t,paymentPolicy:a,cancellationPolicies:r,ratePlanContent:n,priceBreakdown:i,campaignContent:l,discountInfos:s,privacyPolicy:o,customTitle:b,customBookingData:d,packageContent:v,defaultTab:u}),c(!0)},o[2]=i):i=o[2];let u=i;o[3]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{c(!1)},o[3]=l):l=o[3];let f=l;return o[4]!==b||o[5]!==d||o[6]!==v?(s={open:u,close:f,Sheet:()=>d&&v?b?(0,t.jsx)(T.TermsAndConditionsModal,{room:v.room,modalId:"terms_and_conditions",onClose:f}):(0,t.jsx)(w,{open:d,onClose:f,paymentPolicy:v.paymentPolicy,cancellationPolicies:v.cancellationPolicies,ratePlanContent:v.ratePlanContent,priceBreakdown:v.priceBreakdown,campaignContent:v.campaignContent,privacyPolicy:v.privacyPolicy,customTitle:v.customTitle,discountInfos:v.discountInfos,customBookingData:v.customBookingData,packageContent:v.packageContent,defaultTab:v.defaultTab}):null},o[4]=b,o[5]=d,o[6]=v,o[7]=s):s=o[7],s}],262035)},397881,59532,e=>{"use strict";var t=e.i(843476),a=e.i(500932),r=e.i(271645),n=e.i(344306),i=e.i(692156),l=e.i(58840),s=e.i(990717),o=e.i(644870),b=e.i(482582),d=e.i(90777),c=e.i(178126);let v=e=>/^https?:\/\//i.test(e?.trim()??"");e.s(["isHttpUrl",0,v],59532);var m=e.i(672464),u=e.i(148471);function f(e){return{name:e.name,description:e.description,validFor:void 0}}function p(e){return(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:e.name}),(0,t.jsx)(b.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:e.description??""}})]},e.name)}function x(e,t){return new Date(e.start).getTime()-new Date(t.start).getTime()}function h(e,t){return e+(t?.price?.displayPrice??0)}e.s(["TermsAndConditionsModal",0,e=>{let g,y,j,_,N,k,w,T,C,F,I,P,A,B,S,z,H,D,E=(0,a.c)(54),{onClose:M,paymentPolicy:L,privacyPolicy:O,room:R,cancellationPolicies:K,customTitle:G,ratePlanContent:U,priceBreakdown:W,campaignContent:$,noHeader:V,discountInfos:q,customBookingData:Y}=e,X=(0,l.useAccommodationTranslations)(),J=(0,m.useAtomValue)(u.bookingContextAtom),{formatCurrency:Q,currencyCode:Z}=(0,n.useCurrencyFormatter)(),{languageCulture:ee}=(0,i.useGlobalContext)(),et=Y??J?.activeBooking?.bookingData,ea=(0,r.useRef)(null),er=new Intl.DateTimeFormat(ee,{month:"short",day:"numeric",weekday:"short",year:"numeric"});E[0]!==et?(g=e=>{if(!e)return;if(!et)return"true_if_not_checkout";let t=[];return et?.rooms?.forEach(a=>
1{if(a.cancellationPolicyId===e){let e=et.roomDescriptions?.find(e=>e.id===a?.roomId)?.name;e&&t.push(e)}}),et?.optionalAddOns?.forEach(a=>{if(a.cancellationPolicyId===e){let e=et.addOnDescriptions?.find(e=>e.id===a?.addOnId)?.name;e&&t.push(e)}}),et?.optionalAddOnPackages?.forEach(a=>{if(a.cancellationPolicyId===e){let e=et.addOnPackageDescriptions?.find(e=>e.id===a?.addOnPackageId)?.name;e&&t.push(e)}}),t.join(", ")},E[0]=et,E[1]=g):g=E[1];let en=g;E[2]!==et?.cancellationPolicyDescriptions||E[3]!==K||E[4]!==en||E[5]!==R?(y=()=>K?K?.filter(e=>!!en(e.id))?.map(e=>({name:e.name,description:e.description,validFor:en(e.id)})):et?.cancellationPolicyDescriptions?.filter(e=>e.id===R?.cancellationPolicyId||void 0===R).map(f),E[2]=et?.cancellationPolicyDescriptions,E[3]=K,E[4]=en,E[5]=R,E[6]=y):y=E[6];let ei=y;E[7]!==M?(j=()=>{M&&M()},E[7]=M,E[8]=j):j=E[8];let el=j,es=ei();E[9]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{requestAnimationFrame(()=>{let e=ea.current?.closest(".bv\\:overflow-y-auto");e&&(e.scrollTop=0)})},N=[],E[9]=_,E[10]=N):(_=E[9],N=E[10]),(0,r.useEffect)(_,N);let eo=d.default;E[11]!==G||E[12]!==X?(k=G??X("EA4H.GeneralTermsAndConditions"),E[11]=G,E[12]=X,E[13]=k):k=E[13],E[14]!==k?(w=(0,t.jsx)(s.default,{level:1,ref:ea,children:k}),E[14]=k,E[15]=w):w=E[15],E[16]!==X?(T=X("EA4H.General.ImportantInformationAboutYourBooking"),E[16]=X,E[17]=T):T=E[17],E[18]!==T?(C=(0,t.jsx)(b.default,{bold:!0,children:T}),E[18]=T,E[19]=C):C=E[19],E[20]!==C||E[21]!==w?(F=(0,t.jsxs)("div",{className:"bv:flex bv:flex-col bv:gap-[10px] bv:mb-[20px] bv:scroll-mt-[100px]",children:[w,C]}),E[20]=C,E[21]=w,E[22]=F):F=E[22],E[23]!==U?(I=U&&(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:U.name}),(0,t.jsx)(b.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:U.description??""}})]},U.name),E[23]=U,E[24]=I):I=E[24],E[25]!==q?(P=q&&q?.map(p),E[25]=q,E[26]=P):P=E[26],E[27]!==$?(A=$&&(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:$.name}),(0,t.jsx)(b.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:$.description??""}})]},$.name),E[27]=$,E[28]=A):A=E[28];let eb=(W?.length??0)>0&&(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:X("EA4H.General.PriceBreakDown")}),(0,t.jsx)("table",{className:"bv:max-w-fit bv:mt-[10px] bv:border-collapse bv:font-bv_bodyFontFamily",children:(0,t.jsxs)("tbody",{children:[[...W??[]].sort(x).map((e,a)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"bv:py-1 bv:px-[10px] bv:border bv:border-solid bv:border-[#ccc]",children:er?.format((0,c.toUTCDate)(e.start))}),(0,t.jsxs)("td",{className:"bv:py-1 bv:px-[10px] bv:border bv:border-solid bv:border-[#ccc] bv:text-center",children:[Q(e.price?.displayPrice)," ",Z]})]},a)),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"bv:py-1 bv:px-[10px] bv:border bv:border-solid bv:border-[#ccc] bv:font-bv_bodyBoldFontWeight bv:bg-bv_cardInnerBackground",children:"Total:"}),(0,t.jsxs)("td",{className:"bv:py-1 bv:px-[10px] bv:border bv:border-solid bv:border-[#ccc] bv:text-center bv:font-bv_bodyBoldFontWeight bv:bg-bv_cardInnerBackground",children:[Q(W?.reduce(h,0))," ",Z]})]})]})})]},"priceBreakdown"),ed=es&&es?.map(e=>(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:e.name}),e.validFor&&es?.length>1&&(0,t.jsxs)(b.default,{size:"small",italic:!0,className:"bv:mt-[5px]",children:[X("EA4H.General.For"),": ",e.validFor]}),(0,t.jsx)(b.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:e.description}})]},e.name));return E[29]!==L?(B=L&&(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:L?.name??""}),(0,t.jsx)(b.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:L?.description??""}})]}),E[29]=L,E[30]=B):B=E[30],E[31]!==K||E[32]!==O||E[33]!==X?(S=!K&&O&&!v(O.externalUrl)&&(0,t.jsxs)("div",{className:"bv:mb-5",children:[(0,t.jsx)(o.default,{size:"small",children:X.dynamic(O.name)}),(0,t.jsx)(b.default,{className:"bv:mt-[10px]",dangerouslySetInnerHTML:{__html:O.description}})]}),E[31]=K,E[32]=O,E[33]=X,E[34]=S):S=E[34],E[35]!==K||E[36]!==O||E[37]!==X?(z=!K&&O&&v(O.externalUrl)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:O.externalUrl,rel:"noopener noreferrer",target:"_blank",children:X.dynamic(O.name)})}),E[35]=K,E[36]=O,E[37]=X,E[38]=z):z=E[38],E[39]!==F||E[40]!==I||E[41]!==P||E[42]!==A||E[43]!==eb||E[44]!==ed||E[45]!==B||E[46]!==S||E[47]!==z?(H=(0,t.jsxs)(t.Fragment,{children:[F,I,P,A,eb,ed,B,S,z]}),E[39]=F,E[40]=I,E[41]=P,E[42]=A,E[43]=eb,E[44]=ed,E[45]=B,E[46]=S,E[47]=z,E[48]=H):H=E[48],E[49]!==eo||E[50]!==V||E[51]!==el||E[52]!==H?(D=(0,t.jsx)(eo,{noHeader:V,onCloseClicked:el,modal
1Name:"TermsAndConditions",children:H}),E[49]=eo,E[50]=V,E[51]=el,E[52]=H,E[53]=D):D=E[53],D}],397881)}]);
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.