"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4682],{86812:function(e,t,n){var r=n(85893);n(67294);var i=n(99603),l=n(34426);t.Z=e=>{let{onClick:t,icon:n,className:s=""}=e;return(0,r.jsx)("button",{className:(0,l.AK)("w-11 h-11 p-0 bg-extraLightGrey transition hover:bg-secondaryGrey rounded-full z-[5] disabled:text-primaryGreyFont",s),onClick:t,children:(0,r.jsx)(i.G,{icon:n,className:"rtl:rotate-180"})})}},93731:function(e,t,n){var r=n(85893);n(67294);var i=n(34426),l=n(76145),s=n(45373);t.Z=e=>{let{discountPercents:t,className:n,iconClassName:a,label:o,badgeClassName:c}=e,{tHotels:d}=(0,l.EI)();return(0,r.jsxs)("div",{style:{direction:"ltr"},className:(0,i.AK)("flex items-center rounded-md overflow-hidden ltr:flex-row rtl:flex-row-reverse",null!=n?n:""),children:[(0,r.jsxs)("p",{className:(0,i.AK)("text-[0.75rem] font-medium text-primary bg-[#e8edfa] py-0.5 px-1.5 z-[1] flex items-center gap-1 ltr:flex-row rtl:flex-row-reverse",t?"ltr:rounded-tr-full ltr:rounded-br-full rtl:rounded-tl-full rtl:rounded-bl-full":"rounded-md",c),children:[(0,r.jsx)(s.GN,{icon:s.tl,className:a}),o||d("specialPrice")]}),t&&(0,r.jsxs)("p",{className:"text-[0.75rem] font-noraml py-0.5 ltr:pr-1.5 ltr:pl-[18px] rtl:pl-1.5 rtl:pr-[18px] ltr:-ml-3 rtl:-mr-3 text-white bg-primary ltr:rounded-r-md rtl:rounded-l-md",children:["-",t,"%"]})]})}},42909:function(e,t,n){n.d(t,{bl:function(){return l},E1:function(){return c},Cl:function(){return d}});var r=n(85893),i=n(34426),l=e=>{let{children:t,cssProps:n=""}=e;return(0,r.jsx)("div",{className:(0,i.AK)("grid grid-cols-1 gap-2 p-3 ltr:rounded-br-[10px] ltr:rounded-tr-[10px] rtl:rounded-bl-[10px] rtl:rounded-tl-[10px] border border-secondaryGrey sm:gap-3 sm:min-w-[300px] md:p-8",n),children:t})},s=n(58723),a=n(93731),o=n(76145),c=e=>{let{coverImage:t,cssProps:n="",imageClassName:l="",exclusive:c}=e,{tHotels:d}=(0,o.EI)();return(0,r.jsxs)("div",{className:(0,i.AK)("grid min-w-[130px] w-full sm:max-w-[280px] sm:min-w-[280px] md:max-w-[332px] md:min-w-[332px] md:min-h-[315px] relative",n),children:[c&&(0,r.jsx)(a.Z,{label:d("exclusiveDeal"),className:"absolute bottom-2 left-2",iconClassName:"hidden xs:inline-block"}),(0,r.jsx)(s.Z,{className:"buddy-image ".concat(l),image:t,size:{default:25,sm:100,md:50,xl:35},style:{width:"100%",height:"100%",objectFit:"cover"}})]})},d=e=>{let{cityDestination:t,className:n=""}=e,l="".concat(t.city,", ").concat(t.state,", ").concat(t.country);return(0,r.jsx)("p",{className:(0,i.AK)("text-sm ltr:text-left rtl:text-right text-primaryGreyFont font-normal truncate xs:whitespace-normal xs:overflow-auto ",n),children:l})}},67308:function(e,t,n){n.d(t,{l8:function(){return m.l8},Zg:function(){return m.Zg},At:function(){return m.At},g4:function(){return m.g4},JZ:function(){return S},aJ:function(){return c},tg:function(){return d},y$:function(){return N},bl:function(){return x.bl},E1:function(){return x.E1},PH:function(){return m.PH},Cl:function(){return x.Cl},G_:function(){return u},p$:function(){return v},av:function(){return y},ko:function(){return A},uE:function(){return m.uE},gP:function(){return a},K3:function(){return h},kI:function(){return Z.Z},al:function(){return b},TT:function(){return m.TT},TH:function(){return m.TH},BK:function(){return m.BK},eY:function(){return m.eY},JJ:function(){return m.JJ},l6:function(){return m.l6},he:function(){return m.he}});var r=n(85893),i=n(67294),l=n(26528),s=n(57583),a=()=>{let{tCommon:e}=(0,l.ce)();return(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)("p",{className:l.Nm,children:e("errorHasOccurred")}),(0,r.jsx)("p",{className:"".concat(l.Ik," cursor-pointer"),onClick:()=>{window.location.reload()},children:e("errorMessageReloadPage")})]})},o=n(50549);n(64787);var c=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid gap-4 pb-6",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(o.Z,{width:"50%"}),(0,r.jsx)(o.Z,{width:"30%"})]}),(0,r.jsx)(o.Z,{width:"100%"})]}),Array.from([,,,,,].keys()).map(e=>(0,r.jsxs)("div",{className:"grid gap-4 pb-8",children:[(0,r.jsx)(o.Z,{width:160}),(0,r.jsxs)("div",{className:"grid gap-1",children:[(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(120px,_130px)_minmax(25px,_30px)] gap-4 justify-between",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(120px,_130px)_minmax(25px,_30px)] gap-4 justify-between",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(120px,_130px)_minmax(25px,_30px)] gap-4 justify-between",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(120px,_130px)_minmax(25px,_30px)] gap-4 justify-between",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(120px,_130px)_minmax(25px,_30px)] gap-4 justify-between",children:[(0,r.jsx)(o.Z,{}),(0,r.jsx)(o.Z,{})]})]})]},e))]}),d=()=>(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(120px,_125px)_1fr] sm:grid-cols-[minmax(230px,_235px)_1fr] md:grid-cols-[minmax(160px,_175px)_1fr] lg:grid-cols-[minmax(250px,_275px)_1fr]",children:[(0,r.jsx)("div",{className:"-mt-1",children:(0,r.jsx)(o.Z,{width:"100%",className:"h-[240px] md:h-[246px]"})}),(0,r.jsxs)("div",{className:"grid p-3 gap-1 border-r border-b border-t rounded-br-md rounded-tr-md md:p-5",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,r.jsx)(o.Z,{height:23,className:"w-full",width:"100%"}),(0,r.jsx)(o.Z,{height:19,className:"w-full",width:"70%"})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)(o.Z,{width:"25%"}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(16px,_18px),_auto] gap-2",children:[(0,r.jsx)(o.Z,{width:18}),(0,r.jsx)(o.Z,{width:"25%"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-[minmax(16px,_18px),_auto] gap-2",children:[(0,r.jsx)(o.Z,{width:18}),(0,r.jsx)(o.Z,{width:"30%"})]})]})}),(0,r.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-end",children:[(0,r.jsx)(o.Z,{width:"100%",className:"w-[75px] sm:w-[110px]",height:34}),(0,r.jsxs)("div",{className:"grid justify-items-end items-center",children:[(0,r.jsx)(o.Z,{width:80}),(0,r.jsx)(o.Z,{width:110})]})]})]})]}),u=e=>{let{loading:t,children:n}=e;return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-[hsla(0,0%,100%,.75)] bg-opacity-50 z-50",children:(0,r.jsx)("div",{className:"sticky top-[96px] flex justify-center items-center pt-[96px]",children:(0,r.jsx)("div",{className:"w-16 h-16 border-t-4 border-primary border-solid rounded-full animate-spin"})})})}),n]})},m=n(1427),x=n(42909),p=n(77558),f=n(34426),h=e=>{let{showMoreLink:t,className:n=""}=e,{tCommon:i}=(0,l.ce)();return(0,r.jsx)(r.Fragment,{children:t?(0,r.jsx)(p.Z,{href:t,target:"_blank",children:(0,r.jsx)("button",{className:(0,f.AK)("flex min-w-[132px] w-full border border-primary rounded-full py-3 px-8 hover:bg-softBlue transition-colors text-primary",n),children:i("showMore")})}):(0,r.jsx)("button",{className:(0,f.AK)("flex min-w-[132px] w-full border border-primary rounded-full py-3 px-8 hover:bg-softBlue transition-colors text-primary",n),children:i("showMore")})})},g=n(45373),j=n(47475),y=e=>{let{title:t,list:n,titleIcon:i}=e;return(0,r.jsxs)("div",{className:(0,f.AK)("grid items-center gap-4 mb-8 last-of-type:mb-0",j.Z2.noHotelSearch?"":"border border-secondaryGrey rounded-[10px] md:border-0 p-6 md:p-0"),children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsxs)("p",{className:"".concat(l.Nm," flex items-center gap-2"),children:[i&&(0,r.jsx)(g.GN,{icon:i}),t]})}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3",children:n.map((e,t)=>(0,r.jsxs)("div",{className:"flex justify-between items-center gap-4",children:[(0,r.jsx)("p",{className:l.YI,children:e.name}),(0,r.jsx)("span",{className:l.CH,children:e.distance})]},e.name+t+e.distance))})]})},v=e=>{let{data:t}=e,{links:n}=t;return(0,r.jsx)("nav",{children:(0,r.jsx)("ul",{className:l.dh,children:null==n?void 0:n.map((e,t)=>(0,r.jsxs)("li",{className:(0,f.AK)(l.wQ,"px-0 gap-2"),children:[(0,r.jsx)(p.Z,{href:e.link.url,children:(0,r.jsx)("span",{className:l.bO,children:e.link.name})}),!!e.hotels&&(0,r.jsxs)("p",{className:l.CH,children:["(",e.hotels,")"]})]},t))})})},b=e=>{let{title:t,data:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"".concat(l.ht," mt-2"),children:t}),(0,r.jsx)("ul",{className:"flex flex-wrap gap-x-6 gap-y-1",children:n.map((e,t)=>(0,r.jsx)("li",{className:(0,f.AK)("text-[0.9375rem] leading-[150%] font-normal text-primaryGreyFont marker:text-secondaryGrey",t>0&&"list-disc"),children:e.title},"".concat(e.id,"-").concat(t)))})]})},w=n(58723),N=e=>{let{photos:t,selectedImage:n,handleImageClick:l}=e,s=e=>{l(e)};return(0,i.useEffect)(()=>{if(null==n?void 0:n.id){let e=document.querySelector('[data-image-id="'.concat(n.id,'"]'));e&&e.scrollIntoView({behavior:"auto",block:"center"})}},[n]),(0,r.jsx)("div",{className:(0,f.AK)("primary-scrollbar overflow-auto columns-1 pl-4 pr-2 pt-4 mr-2 sm:columns-2 md:columns-3 md:pl-8 md:pr-6 md:pt-8 mb-4 md:mb-8 lg:columns-4 xl:columns-5"),children:t.map((e,t)=>(0,r.jsx)("div",{className:"overflow-hidden rounded-2xl w-full break-inside-avoid mb-4",children:(0,r.jsxs)("div",{"data-image-id":e.id,className:"cursor-none relative md:cursor-pointer",onClick:()=>s(e),children:[(0,r.jsx)(w.Z,{image:e.image,size:{default:25,xl:20,lg:33,md:50,sm:100},style:{width:"100%",objectFit:"cover"}}),(0,r.jsx)("div",{className:"absolute w-full h-full top-0 transition-all duration-200 hover:bg-black/30"})]})},5*t))})},S=e=>{let{children:t,className:n=""}=e;return(0,r.jsx)(l.tZ,{className:(0,f.AK)("py-[0] border border-secondaryGrey rounded-lg",n),children:t})},A=e=>{let{value:t,label:n}=e;return(0,r.jsx)("div",{className:"w-full overflow-hidden",children:(0,r.jsx)("div",{className:"flex justify-center items-center min-h-[0.5rem] box-border rounded-lg relative text-primary bg-progressPrimaryRoot","aria-label":null!=n?n:"progress-bar",children:(0,r.jsx)("div",{className:"left-0 block min-h-[0.5rem] rounded-lg text-inherit absolute bg-primary",style:{width:"".concat(t>100?100:t<0?0:t,"%")}})})})},Z=n(93731)},1427:function(e,t,n){n.d(t,{l8:function(){return v},Zg:function(){return h},At:function(){return N},g4:function(){return S},PH:function(){return R},uE:function(){return P},TT:function(){return x},TH:function(){return o},BK:function(){return p},eY:function(){return m},JJ:function(){return f},l6:function(){return d},he:function(){return c}});var r=n(85893),i=n(67294),l=n(34426),s=n(14690);let a=(0,i.createContext)(null),o=()=>{let e=(0,i.useContext)(a);return e?e.currentSelection:{meal:-1,cancellation:-1}},c=()=>{let e=(0,i.useContext)(a);return e?e.setMealSelection:()=>{}},d=()=>{let e=(0,i.useContext)(a);return e?e.setCancellationSelection:()=>{}};function u(e,t){return()=>{let n=(0,i.useContext)(a),r=o();if(!n)return[];let l=n.data,c=e(l);return c.map(e=>{let n=t(e,r),i=(0,s.C_)(l,n,r);return{...i,value:e}}).filter(e=>e.available)}}let m=u(e=>e.mealOptionsList,e=>({meal:e.optionId,cancellation:-1})),x=()=>{let e=(0,i.useContext)(a),t=o();if(!e||!t.planId)return null;let n=e.data.plans[t.planId];return n},p=u(e=>e.cancellationOptionsList,(e,t)=>({meal:t.meal,cancellation:e.optionId})),f=()=>{let e=m(),t=p(),n=o(),r=t.find(e=>e.value.optionId==n.cancellation),i=e.find(e=>e.value.optionId==n.meal);return{meal:i||null,cancellation:r||null}};var h=e=>{let{children:t,rate:n}=e,o=(0,i.useMemo)(()=>{let e;return n?(n.cancellationOptions.forEach((e,t)=>e.optionId=t),n.mealTypeOptions.forEach((e,t)=>e.optionId=t),e={plans:n.roomPlans,mealOptions:(0,l.S0)(n.mealTypeOptions,e=>e.optionId),cancellationOptions:(0,l.S0)(n.cancellationOptions,e=>e.optionId),mealOptionsList:n.mealTypeOptions,cancellationOptionsList:n.cancellationOptions}):e={plans:{},mealOptions:{},cancellationOptions:{},mealOptionsList:[],cancellationOptionsList:[]},{rate:n,data:e,currentSelection:(0,s.ve)(e)}},[n]),[c,d]=(0,i.useState)(o.currentSelection),u={rate:o.rate,data:o.data,currentSelection:c,setMealSelection:e=>{d((0,s.uf)(o.data,{...c,meal:e}))},setCancellationSelection:e=>{d((0,s.uf)(o.data,{...c,cancellation:e}))}};return(0,r.jsx)(a.Provider,{value:u,children:t})},g=n(75131),j=n(26528),y=n(51385),v=e=>{let{title:t,description:n,isChecked:i,priceDiff:s,selected:a}=e,o=(0,y.G)(),c=(null==s?void 0:s.amount)||0,d=null;return s&&c&&!i&&(d=(0,j.lb)(o,s),c>0&&(d="+".concat(d))),(0,r.jsx)(g.Ee.Option,{value:a,className:e=>{let{checked:t}=e;return(0,l.AK)("border-0",t?"z-10 bg-softBlue":"","relative flex cursor-pointer p-4 focus:outline-none")},children:e=>{let{active:i,checked:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:(0,l.AK)(s?"bg-primary border-transparent":"bg-white border-gray-300",i?"ring-2 ring-offset-2 ring-indigo-600":"","mt-0.5 h-4 w-4 shrink-0 cursor-pointer rounded-full border flex items-center justify-center"),"aria-hidden":"true",children:(0,r.jsx)("span",{className:"rounded-full bg-white w-1.5 h-1.5"})}),(0,r.jsxs)("span",{className:"ml-3 flex flex-col w-full",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,r.jsx)(g.Ee.Label,{as:"span",className:(0,l.AK)("text-primaryFont block text-sm font-medium"),children:t}),d&&(0,r.jsx)(g.Ee.Description,{as:"span",className:(0,l.AK)(s?"text-primary":"text-primaryGreyFont","block text-sm"),children:d})]}),(0,r.jsx)(g.Ee.Description,{as:"span",className:(0,l.AK)(s?"text-primary":"text-primaryGreyFont","block text-sm"),children:n})]})]})}},t)},b=n(47475),w=n(50549);n(64787);var N=()=>(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 justify-between",children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsx)(w.Z,{height:200,borderRadius:b.Z2.isRoundedForm?"0.25rem 0.25rem 0 0":"0"}),(0,r.jsxs)("div",{className:(0,l.AK)("grid py-4 px-4 gap-3 border-r border-l border-b",b.Z2.isRoundedForm?"rounded-bl-md rounded-br-md":""),children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(w.Z,{width:"70%"}),(0,r.jsx)(w.Z,{width:"40%"}),(0,r.jsx)(w.Z,{width:"20%"}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-x-4",children:[(0,r.jsx)(w.Z,{}),(0,r.jsx)(w.Z,{}),(0,r.jsx)(w.Z,{}),(0,r.jsx)(w.Z,{})]})]}),(0,r.jsxs)("div",{className:"grid",children:[(0,r.jsx)(w.Z,{width:"40%"}),(0,r.jsx)(w.Z,{width:"40%"})]}),(0,r.jsx)("div",{children:(0,r.jsx)(w.Z,{count:5})}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(w.Z,{height:54}),(0,r.jsx)(w.Z,{height:54})]})]})]},t))}),S=e=>{let{title:t,description:n,included:i,className:s=""}=e;return(0,r.jsxs)("div",{className:(0,l.AK)("".concat(s)),children:[(0,r.jsx)("p",{className:(0,l.AK)("leading-[120%] text-[0.875rem] font-medium","".concat(i?"text-primaryGreen":"text-primaryFont")),children:t}),n&&(0,r.jsx)("p",{className:"text-[0.875rem] text-primaryGreyFont leading-[1.4]",children:n})]})},A=n(58723),Z=n(45373),K=n(86812),P=e=>{let{photos:t,cssProps:n="",setFullScreen:s}=e,[a,o]=(0,i.useState)(t[0]),c=t.findIndex(e=>e===a),d=t.length,u=e=>{o(e)},m=b.Z2.noHotelSearch;return(0,r.jsxs)("div",{className:(0,l.AK)("flex flex-col gap-4 pt-4 px-4",t.length>1?"mb-6":"",n),children:[(0,r.jsxs)("div",{className:"w-full h-[510px] flex relative md:h-[410px]",children:[t.length>1&&(0,r.jsx)(K.Z,{icon:Z.ac,onClick:()=>{c>0?u(t[c-1]):0===c&&u(t[t.length-1])},className:"hotel-desktop-gallery-prev absolute top-[50%] ltr:left-[46px] rtl:right-[46px] ltr:-translate-x-[50%] rtl:translate-x-[50%] -translate-y-[50%] hidden sm:flex"}),(0,r.jsxs)("div",{onClick:()=>{let e=t.findIndex(e=>e===a);m&&s&&s(e)},className:(0,l.AK)("h-[inherit] overflow-hidden relative w-full",m?"cursor-pointer":"",b.Z2.isRoundedForm?"rounded-md":""),children:[(0,r.jsx)(A.Z,{image:a,size:{default:40,md:100},style:{width:"100%",height:"inherit",objectFit:"cover"}}),t.length>1&&(0,r.jsxs)("div",{className:"absolute flex items-center gap-2 bottom-6 left-6 px-2 py-1 bg-white border border-secondaryGrey rounded-2xl",children:[(0,r.jsx)(Z.GN,{icon:Z.fS,size:"lg",className:"text-primary"}),(0,r.jsxs)("p",{className:j.XP,children:[c+1,"/",d]})]})]}),t.length>1&&(0,r.jsx)(K.Z,{icon:Z.eF,onClick:()=>{c<t.length-1?u(t[c+1]):c===t.length-1&&u(t[0])},className:"hotel-desktop-gallery-next absolute top-[50%] ltr:right-[46px] rtl:left-[46px] ltr:translate-x-[50%] rtl:-translate-x-[50%] -translate-y-[50%] hidden sm:flex"})]}),(0,r.jsx)("div",{className:"w-full hidden relative gap-[9px] md:flex md:flex-wrap ",children:t.length>1&&(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>{let n=a.id===e.id;return(0,r.jsx)("div",{className:"cursor-pointer",onClick:()=>u(e),children:(0,r.jsx)("div",{"data-id":e.id,className:(0,l.AK)("w-[60px] h-[60px] rounded-md overflow-hidden transition-opacity hover:opacity-100",n?"opacity-100 outline outline-[3px] outline-primary/30":"opacity-50 outline-0"),children:(0,r.jsx)(A.Z,{image:e,size:{default:10,lg:15},style:{width:"100%",height:"100%",objectFit:"cover"}})})},6*t)})})})]})},k=n(57491);let F=new Map([[k.jG.KingSize,Z.Ii],[k.jG.LargeQueenSize,Z.Ag],[k.jG.SofaBed,Z.j],[k.jG.TwinBed,Z.Ag],[k.jG.FutonMat,Z.f1],[k.jG.SingleBed,Z.qE],[k.jG.DoubleBed,Z.V1],[k.jG.BunkBed,Z.S0]]);var R=e=>{let{beds:t,cssProps:n}=e;return 0===t.length?null:(0,r.jsx)("div",{className:(0,l.AK)("flex items-center flex-wrap gap-1",n||""),children:t.map((e,t)=>{let n=Array.from(Array(e.count).keys());return(0,r.jsxs)("p",{className:"text-[0.875rem] font-normal leading-[100%] text-primaryFont flex items-center lg:leading-[120%] lg:text-[1rem]",children:[e.name,(0,r.jsx)("span",{className:"flex gpa-1 px-2",children:n.map((t,n)=>(0,r.jsx)(Z.GN,{icon:F.get(e.type)||Z.V1,className:"text-[1rem]"},(n+1)*3))})]},e.type*(t+1))})})}},54682:function(e,t,n){n.d(t,{Ad:function(){return r.Ad},At:function(){return i.At},BK:function(){return i.BK},BL:function(){return r.BL},Cl:function(){return i.Cl},E1:function(){return i.E1},EI:function(){return l.EI},G_:function(){return i.G_},JJ:function(){return i.JJ},JZ:function(){return i.JZ},Jd:function(){return r.Jd},K3:function(){return i.K3},ON:function(){return r.ON},PH:function(){return i.PH},Rs:function(){return r.Rs},TH:function(){return i.TH},TT:function(){return i.TT},Tg:function(){return r.Tg},UU:function(){return l.UU},Uo:function(){return l.Uo},VF:function(){return r.VF},YM:function(){return r.YM},Zg:function(){return i.Zg},aJ:function(){return i.aJ},al:function(){return i.al},av:function(){return i.av},bl:function(){return i.bl},eY:function(){return i.eY},ei:function(){return l.ei},g4:function(){return i.g4},gP:function(){return i.gP},he:function(){return i.he},im:function(){return r.im},kI:function(){return i.kI},ko:function(){return i.ko},l6:function(){return i.l6},l8:function(){return i.l8},oe:function(){return r.oe},p$:function(){return i.p$},tg:function(){return i.tg},uE:function(){return i.uE},y$:function(){return i.y$},zA:function(){return r.zA}});var r=n(74986),i=n(67308),l=n(76145)},74986:function(e,t,n){n.d(t,{Ad:function(){return i},ON:function(){return p},YM:function(){return c},im:function(){return u},zA:function(){return x},oe:function(){return m},Tg:function(){return d},VF:function(){return a},yY:function(){return o},iB:function(){return j},Rs:function(){return g},Jd:function(){return y},BL:function(){return h},sH:function(){return s}});var r,i,l=n(57491);let s=(e,t,n)=>{if(!t)return e;let[r,i]=e.split("?"),l=new URLSearchParams(i);return l.has("placement")?l.set("placement",t.toString()):l.append("placement",t.toString()),n&&(l.has("variant")?l.set("variant",n):l.append("variant",n)),"".concat(r,"?").concat(l.toString())},a=e=>{if(null==e?void 0:e.roomPlans){let t=Object.values(e.roomPlans);return 1===t.length?t[0]:t.find(e=>e.prepaymentType===l.Rr.FullPrepayment)}},o=e=>e.length<40?"text-[2rem] xs:text-[2.25rem]":e.length<45?"text-[1.65rem] xs:text-[1.65rem]":(e.length,"text-[1.5rem] xs:text-[1.5rem]"),c=(e,t,n,r,i)=>{let l=n,s=r.length;if(0===t&&(l+=s,s=0),t>0){let n=l+s,r=Math.ceil(s/t),a=Math.ceil(s/t);if(n>e+t){let t=Math.ceil(l/e);return Math.max(t,r,i)}if(a>i)return a}let a=Math.ceil(l/e);return Math.max(a,i)},d=e=>{let{streetLineFirst:t,city:n,postalCode:r,state:i,country:l}=e;return[t,n,r,i,l].filter(e=>e).join(", ")},u=e=>{switch(e){case l.HB.petsPolicy:return l.yL.PetsPolicy;case l.HB.internetPolicy:return l.yL.InternetPolicy;case l.HB.ageRestrictionsPolicy:return l.yL.AgeRestrictionsPolicy;case l.HB.curfewPolicy:return l.yL.CurfewPolicy;case l.HB.parkingPolicy:return l.yL.ParkingPolicy;default:return"no_translation"}},m=e=>{switch(e){case l.pu.cleanliness:return l.fE.Cleanliness;case l.pu.comfort:return l.fE.Comfort;case l.pu.location:return l.fE.Location;case l.pu.facilities:return l.fE.Facilities;case l.pu.staff:return l.fE.Staff;case l.pu.valueForMoney:return l.fE.ValueForMoney;case l.pu.wifiQuality:return l.fE.WifiQuality;case l.pu.breakfast:return l.fE.Breakfast;default:return"no_translation"}},x=e=>e>=9?"scoreName9":e>=8?"scoreName8":e>=7?"scoreName7":"scoreName6",p=(e,t)=>{if(e)return{...e,address:f(t)}},f=e=>({streetAddress:e.streetLineFirst,addressCountry:e.country,addressLocality:e.city,addressRegion:e.state,postalCode:e.postalCode,"@type":"PostalAddress"}),h=(e,t)=>{let{commonDescription:n,listingDescription:r}=e,{lat:i,lng:l}=r.coordinates,s=null==n?void 0:n.basePriceFormatted,a=r.popularAmenities.map(e=>({"@type":"LocationFeatureSpecification",name:e.title,value:!0})),o=r.reviews.map(e=>({"@type":"Review",author:{"@type":"Person",name:e.authorName},datePublished:e.date,reviewBody:e.pros,reviewRating:{"@type":"Rating",ratingValue:e.score/10,worstRating:1,bestRating:10}}));return{image:n.coverImage.url,address:f(r.address),priceRange:"Prices from ".concat(s," per night"),"@context":"https://schema.org","@type":"Hotel",name:e.title,review:o,aggregateRating:{"@type":"AggregateRating",bestRating:10,reviewCount:n.reviews,ratingValue:n.reviewScore/10},geo:{"@type":"GeoCoordinates",latitude:i,longitude:l},hasMap:{"@type":"Map",mapType:"http://schema.org/VenueMap",url:"https://www.google.com/maps?q=".concat(i,",").concat(l)},potentialAction:{"@type":"ReserveAction",target:{"@type":"EntryPoint",urlTemplate:t.canonicalUrl,inLanguage:"en-US",actionPlatform:["http://schema.org/DesktopWebPlatform","http://schema.org/IOSPlatform","http://schema.org/AndroidPlatform"]},result:{"@type":"LodgingReservation",name:"Reserve now"}},amenityFeature:a,url:t.canonicalUrl,description:t.metadata.metaDescription}};(r=i||(i={})).OverviewSection="details",r.RoomsSection="rooms",r.ReviewsSection="reviews",r.SurroundingsSection="surroundingsSection",r.AmenitiesSection="amenities",r.AboutSection="aboutSection",r.FAQSection="faqSection",r.LocationSection="location",r.GallerySection="gallery",r.BookARoom="reserve",r.Policies="policies";let g=[{id:i.OverviewSection,i18Key:"hotelOverviewSection"},{id:i.RoomsSection,i18Key:"hotelRoomsSection"},{id:i.ReviewsSection,i18Key:"hotelReviewsSection"},{id:i.SurroundingsSection,i18Key:"hotelNearbySection"},{id:i.AmenitiesSection,i18Key:"hotelAmenitiesSection"},{id:i.AboutSection,i18Key:"hotelPoliciesSection"},{id:i.FAQSection,i18Key:"hotelFaqSection"}],j=[{id:i.RoomsSection,i18Key:"hotelRoomsSection"},{id:i.AboutSection,i18Key:"hotelAboutHotelSection"},{id:i.GallerySection,i18Key:"hotelGallerySection"},{id:i.AmenitiesSection,i18Key:"hotelAmenitiesSection"},{id:i.LocationSection,i18Key:"locationSectionLabel"},{id:i.Policies,i18Key:"hotelPoliciesSection"}],y=[{id:i.AboutSection,i18Key:"hotelAboutHotelSection"},{id:i.RoomsSection,i18Key:"hotelRoomsSection"},{id:i.GallerySection,i18Key:"hotelGallerySection"},{id:i.OverviewSection,i18Key:"hotelOverviewSection"},{id:i.AmenitiesSection,i18Key:"hotelAmenitiesSection"},{id:i.SurroundingsSection,i18Key:"hotelNearbySection"},{id:i.ReviewsSection,i18Key:"hotelReviewsSection"},{id:i.LocationSection,i18Key:"locationSectionLabel"}]}}]);