(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7402,9081],{58468:function(e,n,l){var t={"./en/amenities.json":[21224,1224],"./en/auth.json":[52930,2930],"./en/availability.json":[28091,8091],"./en/badges.json":[32367,2367],"./en/checkout.json":[16909,6909],"./en/email.json":[24245,4245],"./en/footer.json":[86449,6449],"./en/general.json":[73203,3203],"./en/guest.json":[34172,4172],"./en/reviews.json":[52508,2508],"./en/rooms.json":[50681,681],"./en/search.json":[95841,5841],"./en/shop.json":[90123,123],"./en/slider.json":[78146,8146],"./en/topbar.json":[3054,3054],"./es/amenities.json":[66298,6298],"./es/auth.json":[16253,6253],"./es/availability.json":[67978,7978],"./es/badges.json":[96826,6826],"./es/checkout.json":[33692,3692],"./es/email.json":[37058,7058],"./es/footer.json":[54324,4324],"./es/general.json":[87447,7447],"./es/guest.json":[38727,8727],"./es/reviews.json":[591,591],"./es/rooms.json":[82527,2527],"./es/search.json":[68955,8955],"./es/shop.json":[27046,7046],"./es/slider.json":[22166,2166],"./es/topbar.json":[23988,3988]};function r(e){if(!l.o(t,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=t[e],r=n[0];return l.e(n[1]).then(function(){return l.t(r,19)})}r.keys=function(){return Object.keys(t)},r.id=58468,e.exports=r},88967:function(e,n,l){Promise.resolve().then(l.bind(l,76073)),Promise.resolve().then(l.bind(l,23081)),Promise.resolve().then(l.bind(l,36229)),Promise.resolve().then(l.bind(l,29093)),Promise.resolve().then(l.bind(l,98612)),Promise.resolve().then(l.bind(l,97542)),Promise.resolve().then(l.bind(l,38962)),Promise.resolve().then(l.bind(l,3697)),Promise.resolve().then(l.bind(l,89814)),Promise.resolve().then(l.bind(l,56038)),Promise.resolve().then(l.bind(l,59255)),Promise.resolve().then(l.bind(l,7316)),Promise.resolve().then(l.bind(l,23348)),Promise.resolve().then(l.bind(l,65861)),Promise.resolve().then(l.bind(l,27966)),Promise.resolve().then(l.bind(l,79875)),Promise.resolve().then(l.bind(l,90935)),Promise.resolve().then(l.bind(l,50460)),Promise.resolve().then(l.bind(l,50363)),Promise.resolve().then(l.bind(l,31440)),Promise.resolve().then(l.bind(l,12209)),Promise.resolve().then(l.bind(l,1649)),Promise.resolve().then(l.bind(l,39081)),Promise.resolve().then(l.bind(l,55821)),Promise.resolve().then(l.bind(l,72076)),Promise.resolve().then(l.bind(l,71393)),Promise.resolve().then(l.bind(l,80320)),Promise.resolve().then(l.bind(l,4133)),Promise.resolve().then(l.bind(l,62039)),Promise.resolve().then(l.bind(l,19808)),Promise.resolve().then(l.t.bind(l,81345,23)),Promise.resolve().then(l.t.bind(l,65469,23)),Promise.resolve().then(l.t.bind(l,9580,23)),Promise.resolve().then(l.t.bind(l,77687,23)),Promise.resolve().then(l.bind(l,21539)),Promise.resolve().then(l.bind(l,27316)),Promise.resolve().then(l.bind(l,59604)),Promise.resolve().then(l.bind(l,18058)),Promise.resolve().then(l.bind(l,40482)),Promise.resolve().then(l.bind(l,90866)),Promise.resolve().then(l.bind(l,32067)),Promise.resolve().then(l.bind(l,40745)),Promise.resolve().then(l.bind(l,36817)),Promise.resolve().then(l.bind(l,6228)),Promise.resolve().then(l.bind(l,98057)),Promise.resolve().then(l.bind(l,35815)),Promise.resolve().then(l.bind(l,28948)),Promise.resolve().then(l.bind(l,34961)),Promise.resolve().then(l.bind(l,12308)),Promise.resolve().then(l.bind(l,36056)),Promise.resolve().then(l.bind(l,51868)),Promise.resolve().then(l.bind(l,16033)),Promise.resolve().then(l.bind(l,98517)),Promise.resolve().then(l.bind(l,15742)),Promise.resolve().then(l.bind(l,47022)),Promise.resolve().then(l.bind(l,46944)),Promise.resolve().then(l.bind(l,46929)),Promise.resolve().then(l.bind(l,43384)),Promise.resolve().then(l.bind(l,90006)),Promise.resolve().then(l.bind(l,70099)),Promise.resolve().then(l.bind(l,32894)),Promise.resolve().then(l.bind(l,29432)),Promise.resolve().then(l.bind(l,20848)),Promise.resolve().then(l.bind(l,58120)),Promise.resolve().then(l.bind(l,56657)),Promise.resolve().then(l.bind(l,74213)),Promise.resolve().then(l.bind(l,9322)),Promise.resolve().then(l.bind(l,12412)),Promise.resolve().then(l.bind(l,4104)),Promise.resolve().then(l.bind(l,39394)),Promise.resolve().then(l.bind(l,86193))},76073:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return b}});var t=l(27573),r=l(67754),s=l(68055),i=l(96504),a=l(76184),o=l(48687),d=l(7653),c=l(59453),u=l(59668),m=l(22992);async function v(e){var n,l,t;let r=await (0,u.Iox)(u.VTK,{where:{name:{_ilike:e}}});return null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(l=t.countries)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:n.iso2}function h(e){var n,l,r,a,o,h,x,f,p,g,b,j,w,y;let{website:N}=e,_=(0,s.eR)("account"),{toast:k}=(0,i.pmc)(),C=N.providerConstants,P=null===(n=N.providerConstants)||void 0===n?void 0:n.session,S=(null==P?void 0:null===(l=P.user)||void 0===l?void 0:l.country)||"Mexico",{data:Z,isLoading:z}=(0,c.a)({queryKey:["country"],queryFn:async()=>v(S),enabled:!!S}),E=Z||(null==C?void 0:null===(r=C.cookies)||void 0===r?void 0:r.countryCode)||"MX",[V,L]=(0,d.useState)(!1),[R,M]=(0,d.useState)(),[H,I]=(0,d.useState)({first_name:(null==P?void 0:null===(a=P.user)||void 0===a?void 0:a.first_name)||"",last_name:(null==P?void 0:null===(o=P.user)||void 0===o?void 0:o.last_name)||"",email:(null==P?void 0:null===(h=P.user)||void 0===h?void 0:h.email)||"",phone:(null==P?void 0:null===(x=P.user)||void 0===x?void 0:x.phone)||"",address:(null==P?void 0:null===(f=P.user)||void 0===f?void 0:f.billing_address)||"",address_2:(null==P?void 0:null===(p=P.user)||void 0===p?void 0:p.billing_address_line_2)||"",zip_code:(null==P?void 0:null===(g=P.user)||void 0===g?void 0:g.zip_code)||"",country:(null==P?void 0:null===(b=P.user)||void 0===b?void 0:b.country)||"",state:(null==P?void 0:null===(j=P.user)||void 0===j?void 0:j.state)||"",city:(null==P?void 0:null===(w=P.user)||void 0===w?void 0:w.city)||"",phone_code:(null==P?void 0:null===(y=P.user)||void 0===y?void 0:y.phone_code)||""});async function O(e){var n,l,t;e.preventDefault(),L(!0);let r=await (0,u.Iox)(u.SCv,{where:{id:{_eq:null==P?void 0:null===(n=P.user)||void 0===n?void 0:n.id}},object:{first_name:H.first_name,last_name:H.last_name,email:H.email,phone:H.phone,phone_code:R,country_code:E,billing_address:H.address,billing_address_line_2:H.address_2,zip_code:H.zip_code,country:H.country,state:H.state,city:H.city}});(null==r?void 0:r.data)&&(k({title:_("profile.updated")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()),(null==r?void 0:r.errors)&&(k({title:null==r?void 0:null===(t=r.errors)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.message}),console.error("updateAccountProfileAfterGuestCreationError",null==r?void 0:r.errors),L(!1))}return z?(0,t.jsxs)("div",{className:"w-full flex flex-col gap-8",children:[(0,t.jsx)(i.OdW,{className:"w-4/12 h-6 bg-border/20"}),(0,t.jsx)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2",children:Array.from({length:8}).map((e,n)=>(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)(i.OdW,{className:"w-4/12 h-3 bg-border/20"}),(0,t.jsx)(i.OdW,{className:"w-full h-10 bg-border/20"})]},n))}),(0,t.jsx)(i.OdW,{className:"w-full h-10 bg-border/20"})]}):(0,t.jsx)(m.Z,{form:H,setForm:I,handleSubmit:O,phoneCode:R,setPhoneCode:M,countryCode:E,loading:V})}var x=l(4574),f=l(61581),p=l(19808);function g(e){var n;let{website:l}=e,a=(0,s.eR)("account"),o=l.providerConstants,d=null==o?void 0:o.session,m="reservations"===(0,r.useSearchParams)().get("page"),{data:v}=(0,c.a)({queryKey:["reservations"],queryFn:async()=>{var e;return await (0,u.Iox)(u.hAJ,{where:{property_id:{_eq:l.property_id},_and:[{member_id:{_eq:null==d?void 0:null===(e=d.user)||void 0===e?void 0:e.id}},{member_id:{_is_null:!1}}],_or:[{status:{_eq:"booked"}},{status:{_eq:"refunded"}},{status:{_eq:"canceled"}}]}})},enabled:!!m&&!!d}),h=null==v?void 0:null===(n=v.data)||void 0===n?void 0:n.reservations;return(0,t.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(null==h?void 0:h.length)===0&&(0,t.jsx)("div",{className:"w-full flex items-center justify-center p-12",children:(0,t.jsx)(x.Z,{size:48,className:"opacity-30"})}),null==h?void 0:h.map(e=>{var n;let l=new Date(e.checkout)<new Date;return(0,t.jsx)(p.default,{href:l?"/account?page=reservations":"/guest/reservation?id=".concat(e.itinerary_id,"&email=").concat(null==d?void 0:null===(n=d.user)||void 0===n?void 0:n.email),className:(0,i.cn)("w-full p-4 border rounded-md",{"opacity-50 cursor-default":l}),children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("div",{className:"flex flex-col gap-2",children:(0,t.jsx)(i.Cts,{className:(0,i.cn)("w-fit",{"bg-lime-500 hover:bg-lime-500 text-white":"booked"===e.status,"bg-red-500 hover:bg-red-500 text-white":"canceled"===e.status||"refunded"===e.status}),children:a("reservations.status.".concat(e.status))})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:null==e?void 0:e.itinerary_id}),(0,t.jsxs)("div",{className:"w-full flex gap-4 items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:"text-sm font-semibold",children:"Checkin"}),(0,t.jsx)("p",{children:e.checkin})]}),(0,t.jsx)(f.Z,{size:14})," ",(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:"text-sm font-semibold",children:"Checkout"}),(0,t.jsx)("p",{children:e.checkout})]})]})]})]})},e.id)})]})}function b(e){let{component:n,website:l}=e,d=(0,s.eR)("account"),c=(0,a.Z)(n),u=(0,r.useSearchParams)().get("page")||"profile";return(0,t.jsx)("section",{className:"w-full py-4",style:c,children:(0,t.jsx)(o.Z,{className:"flex flex-col gap-4 max-w-4xl md:px-0",children:(0,t.jsx)("div",{className:"w-full p-4 border rounded-md",children:(0,t.jsxs)(i.mQc,{defaultValue:u,className:"w-full p-0 shadow-none m-0 bg-transparent",children:[(0,t.jsxs)(i.drW,{className:"gap-2 p-0 m-0 bg-transparent",children:[(0,t.jsx)(i.SPt,{value:"profile",className:"data-[state=active]:bg-primary data-[state=active]:text-primary-foreground bg-transparent text-foreground shadow-none",children:d("profile.tab")}),(0,t.jsx)(i.SPt,{value:"reservations",className:"data-[state=active]:bg-primary data-[state=active]:text-primary-foreground bg-transparent text-foreground shadow-none",children:d("reservations.tab")})]}),(0,t.jsx)(i.Z0O,{className:"bg-border mt-2 mb-4"}),(0,t.jsx)(i.nUL,{value:"profile",children:(0,t.jsx)(h,{website:l})}),(0,t.jsx)(i.nUL,{value:"reservations",children:(0,t.jsx)(g,{website:l})})]})})})})}},23081:function(e,n,l){"use strict";l.d(n,{ListOfAmenities:function(){return u}});var t=l(27573),r=l(7653),s=l(68055),i=l(52958),a=l(39135),o=l(22034),d=l(96504);let c=e=>{let[n,l]=r.useState(0),[t,s]=r.useState(!1),[i,a]=r.useState(null);return{containerRef:r.useCallback(n=>{null!==n&&(l(n.getBoundingClientRect().height),a(n),n.clientHeight>e&&(n.style.maxHeight="".concat(e,"px"),n.style.overflowY="hidden"))},[e]),toggleElement:r.useCallback(()=>{i&&(t?(i.style.maxHeight="".concat(e,"px"),i.style.overflowY="hidden"):(i.style.maxHeight="none",i.style.overflowY="visible"),a(i),s(!t))},[e,i,t]),openElement:t,initialHeight:n}};function u(e){let{amenities:n}=e,l=(0,s.eR)("blocks.amenities"),{containerRef:r,toggleElement:u,openElement:m,initialHeight:v}=c(500);return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)("div",{ref:r,className:"relative grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-3",children:n.map(e=>{let{id:n,name:l}=e;return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Z,{size:16,className:"opacity-60"}),(0,t.jsx)("p",{className:"font-medium",children:l})]},n)})}),v>500?(0,t.jsx)("div",{className:"mt-10 flex justify-center",children:(0,t.jsx)(d.zxk,{variant:"ghost",onClick:u,className:"hover:bg-transparent hover:text-foreground",children:m?(0,t.jsxs)(t.Fragment,{children:[l("viewLessAmenities")," ",(0,t.jsx)(o.Z,{className:"ml-2",size:"12"})]}):(0,t.jsxs)(t.Fragment,{children:[l("viewAllAmenities")," ",(0,t.jsx)(a.Z,{className:"ml-2",size:"12"})]})})}):null]})}},29093:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return c}});var t=l(27573),r=l(7653),s=l(36825),i=l(96504),a=l(76184),o=l(48687),d=l(13299);function c(e){var n;let{component:l}=e,c=(0,a.Z)(l),u=(null==l?void 0:null===(n=l.content)||void 0===n?void 0:n.images)||[],m=Math.min((null==u?void 0:u.length)||1,6)||1,[v,h]=(0,r.useState)(!1),[x,f]=(0,s.E)({slides:{perView:m,spacing:0},initial:0,loop:!1,breakpoints:{"(max-width: 500px)":{slides:{perView:Math.min((null==u?void 0:u.length)||1,3)}}}},[e=>{let n;let l=!1;function t(){clearTimeout(n)}function r(){clearTimeout(n),!l&&e.slides.length>1&&(n=setTimeout(()=>{e.next()},4e3))}e.on("created",()=>{e.container.addEventListener("mouseover",()=>{l=!0,t()}),e.container.addEventListener("mouseout",()=>{l=!1,r()}),r()}),e.on("dragStarted",t),e.on("animationEnded",r),e.on("updated",r)}]);(0,r.useEffect)(()=>{f.current&&h(!0)},[f.current]);let[p,g]=(0,r.useState)(!1),b=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&(g(!0),e.disconnect())})},{threshold:.1});return b.current&&e.observe(b.current),()=>e.disconnect()},[]),(0,t.jsx)("section",{className:"w-full bg-background",style:c,ref:b,children:(0,t.jsxs)(o.Z,{children:[(0,t.jsx)("div",{className:"keen-slider w-full",ref:x,children:null==u?void 0:u.map((e,n)=>{let l=()=>{var n;return(0,t.jsx)("img",{className:"block mx-auto",src:(0,d.p)(e.src,"300"),loading:"lazy",alt:e.alt,style:{height:"".concat(null==e?void 0:null===(n=e.style)||void 0===n?void 0:n.height,"px")||0}})};return(null==e?void 0:e.link)?(0,t.jsx)("a",{href:e.link,className:"keen-slider__slide",rel:"noreferrer noopener nofollow",target:"_blank",children:v&&p&&(0,t.jsx)(l,{})},"badges-image-".concat(n)):(0,t.jsx)("div",{className:"keen-slider__slide",children:v&&p&&(0,t.jsx)(l,{})},"badges-image-".concat(n))})}),!v&&(0,t.jsx)("div",{className:"w-full flex gap-12 justify-around",children:null==u?void 0:u.map((e,n)=>(0,t.jsx)(i.OdW,{className:"bg-border w-20 h-20 mx-2"},n))})]})})}},98612:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return c}});var t=l(27573);l(19711);var r=l(7653),s=l(87659),i=l(36825),a=l(96504),o=l(76184),d=l(48687);function c(e){var n,l,c,u,m;let{component:v}=e,h=(0,o.Z)(v),x=(null===(n=v.content)||void 0===n?void 0:n.images)||[],f=Number(null==x?void 0:x.length)>(Number(null==v?void 0:null===(l=v.template)||void 0===l?void 0:l.columns)||1),[p]=(0,i.E)({slides:{perView:Number(null==v?void 0:null===(c=v.template)||void 0===c?void 0:c.columns)||1,spacing:4*Number(null===(u=v.template)||void 0===u?void 0:u.gap)||0},initial:0,loop:!1,breakpoints:{"(max-width: 500px)":{slides:{perView:1}}}},[e=>{let n;let l=!1;function t(){clearTimeout(n)}function r(){clearTimeout(n),!l&&f&&e.slides.length>1&&(n=setTimeout(()=>{e.next()},2e3))}e.on("created",()=>{e.container.addEventListener("mouseover",()=>{l=!0,t()}),e.container.addEventListener("mouseout",()=>{l=!1,r()}),r()}),e.on("dragStarted",t),e.on("animationEnded",r),e.on("updated",r)}]),[g,b]=(0,r.useState)(!1),j=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&(b(!0),e.disconnect())})},{threshold:.1});return j.current&&e.observe(j.current),()=>e.disconnect()},[]),(0,t.jsx)("section",{className:"w-full py-4 bg-background text-foreground",style:h,ref:j,children:(0,t.jsx)(d.Z,{children:(0,t.jsx)("div",{className:(0,a.cn)("w-full relative keen-slider overflow-hidden",{"items-start":(null===(m=v.template)||void 0===m?void 0:m.structure)==="bottom"}),ref:p,children:null==x?void 0:x.map((e,n)=>{var l,r,i,o,d,c,u,m,h;return(0,t.jsxs)("div",{className:(0,a.cn)("w-full relative keen-slider__slide overflow-hidden flex flex-col md:flex-row",{"flex-col-reverse md:flex-col-reverse":(null===(l=v.template)||void 0===l?void 0:l.structure)==="bottom"}),children:[(0,t.jsxs)("div",{className:(0,a.cn)("w-full flex flex-col gap-8 relative z-10 p-8 md:p-16 rounded-lg",{"justify-center items-center":(null===(r=v.template)||void 0===r?void 0:r.contentPosition)==="center","justify-start items-start":(null===(i=v.template)||void 0===i?void 0:i.contentPosition)==="left","justify-end items-end":(null===(o=v.template)||void 0===o?void 0:o.contentPosition)==="right","bg-black/30":(null===(d=v.template)||void 0===d?void 0:d.structure)==="over","px-0 py-4 md:py-4 md:px-0":(null===(c=v.template)||void 0===c?void 0:c.structure)==="bottom","absolute top-0 left-0 w-full h-full":(null===(u=v.template)||void 0===u?void 0:u.structure)==="over"}),children:[e.content&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:String(e.content)},className:"ql-content relative z-10"}),e.button&&(0,t.jsx)(()=>{if(e.button)return(null==e?void 0:e.link)?(0,t.jsx)(s.default,{href:e.link,children:(0,t.jsx)(a.zxk,{size:"sm",className:"w-fit",children:e.button})}):(0,t.jsx)(a.zxk,{size:"sm",className:"w-fit",children:e.button})},{})]}),e.src&&g&&(0,t.jsx)("div",{className:(0,a.cn)("w-full overflow-hidden rounded-lg pb-[45%] relative",{"h-full left-0 top-0 pb-0":(null===(m=v.template)||void 0===m?void 0:m.structure)==="over"}),children:(0,t.jsx)("img",{className:(0,a.cn)("object-cover h-full w-full transition-opacity duration-500 absolute",{"relative h-72":(null===(h=v.template)||void 0===h?void 0:h.structure)==="over"}),src:e.src,alt:"Banner"})})]},"banner-image-".concat(n))})})})})}},97542:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return u}});var t=l(27573);l(19711);var r=l(7653),s=l(36825),i=l(5191),a=l(1138),o=l(96504),d=l(76184),c=l(48687);function u(e){var n,l,u,m,v,h,x;let{component:f}=e,p=(0,d.Z)(f),g=Number(null==f?void 0:null===(n=f.template)||void 0===n?void 0:n.columns)||1,[b,j]=(0,r.useState)(0),[w,y]=(0,r.useState)(!1),[N,_]=(0,s.E)({slides:{perView:g||1,spacing:Number(null===(l=f.template)||void 0===l?void 0:l.gap)||0},initial:0,breakpoints:{"(max-width: 500px)":{slides:{perView:1}}},slideChanged(e){j(e.track.details.rel)}},[e=>{let n;let l=!1;function t(){clearTimeout(n)}function r(){clearTimeout(n),!l&&e.slides.length>1&&(n=setTimeout(()=>{e.next()},12e3))}e.on("created",()=>{e.container.addEventListener("mouseover",()=>{l=!0,t()}),e.container.addEventListener("mouseout",()=>{l=!1,r()}),r()}),e.on("dragStarted",t),e.on("animationEnded",r),e.on("updated",r)}]),k=null===(m=f.content)||void 0===m?void 0:null===(u=m.images)||void 0===u?void 0:u.slice(0,9),C=Number(null==k?void 0:k.length)>(Number(null==f?void 0:null===(v=f.template)||void 0===v?void 0:v.columns)||1);(0,r.useEffect)(()=>{_.current&&y(!0)},[_.current]);let[P,S]=(0,r.useState)(!1),Z=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&(S(!0),e.disconnect())})},{threshold:.1});return Z.current&&e.observe(Z.current),()=>e.disconnect()},[]),(0,t.jsxs)("section",{className:"w-full bg-background relative",style:p,ref:Z,children:[(0,t.jsxs)(c.Z,{className:(0,o.cn)("flex justify-between items-center relative",{"max-w-full px-0":(null===(h=f.template)||void 0===h?void 0:h.variant)==="full"}),children:[C&&w&&(null==_?void 0:_.current)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.zxk,{className:"absolute left-8 top-2/4 z-20 rounded-full h-8 w-8 p-0 bg-black/50",onClick:e=>{e.stopPropagation(),(null==_?void 0:_.current)&&(null==_||_.current.prev())},disabled:0===b,children:(0,t.jsx)(i.Z,{size:"16"})}),(0,t.jsx)(o.zxk,{className:"absolute right-8 top-2/4 z-20 rounded-full h-8 w-8 p-0 bg-black/50",onClick:e=>{if(e.stopPropagation(),null==_?void 0:_.current){var n;null==_||null===(n=_.current)||void 0===n||n.next()}},disabled:b===(null==_?void 0:null===(x=_.current.track.details)||void 0===x?void 0:x.slides.length)-1,children:(0,t.jsx)(a.Z,{size:"16"})})]}),(0,t.jsx)("div",{className:"w-full relative keen-slider overflow-hidden",ref:N,children:null==k?void 0:k.map((e,n)=>{var l;return(0,t.jsx)("div",{className:(0,o.cn)("w-full relative keen-slider__slide overflow-hidden z-10 pb-[65%] md:pb-[45%]",{"rounded-lg":(null===(l=f.template)||void 0===l?void 0:l.variant)==="default"}),children:w&&P&&(0,t.jsx)("img",{className:"object-cover absolute top-0 left-0 h-full w-full transition-opacity duration-500",src:e.src,loading:"lazy",alt:e.alt})},"carousel-image-".concat(n))})})]}),!w&&(0,t.jsx)("div",{className:"w-full flex gap-8 justify-around absolute top-0 left-0 z-10",children:(0,t.jsx)(o.OdW,{className:"bg-border w-full pb-[65%] md:pb-[45%] rounded-none"})})]})}},3697:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return d}});var t=l(27573),r=l(68055),s=l(76184),i=l(48687),a=l(96504);function o(e){let{className:n,doorLeft:l,doorRight:r,style:s}=e;return(0,t.jsxs)("svg",{viewBox:"0 0 243 60",xmlns:"http://www.w3.org/2000/svg",className:(0,a.cn)("fill-white",n),style:s,children:[(0,t.jsx)("path",{d:"M17.0089 22.5132H16.8274V25.7711L16.6459 25.408C15.9226 24.3211 13.7502 22.3317 10.1311 22.3317C7.77984 22.3317 5.24705 23.2369 3.43754 25.0475C1.99099 26.4948 0 29.2106 0 33.9185C0 42.4264 6.1518 45.5053 10.3126 45.5053C11.9407 45.5053 14.292 45.1422 15.9226 43.1527C16.2856 42.7896 16.4644 42.2475 16.6459 41.8843V44.6001C16.6459 46.4106 16.2829 47.6764 15.3782 48.5817C14.4734 49.4869 13.0269 50.029 10.8544 50.029C7.77984 50.029 6.14917 48.9422 5.06557 47.8554V47.6738H4.88409L1.26508 49.8475L1.0836 50.029L1.26508 50.2106C2.89311 53.108 6.87508 54.9185 11.5777 54.9185C13.5687 54.9185 16.2829 54.5554 18.6343 53.2896C21.7088 51.6606 23.158 48.7632 23.158 44.7817V22.5132H22.9766H17.0062H17.0089ZM17.1903 34.1001C17.1903 36.2738 16.6485 37.9027 15.7438 39.1685C14.839 40.2553 13.5713 40.7975 12.1248 40.7975C8.8687 40.7975 7.05919 38.2632 7.05919 34.1001C7.05919 29.9369 9.05017 27.5817 12.1248 27.5817C13.5713 27.5817 14.839 28.1238 15.7438 29.2106C16.6485 30.1159 17.1903 31.9264 17.1903 34.0975V34.1001Z"}),(0,t.jsx)("path",{d:"M42.6022 22.6158H42.4207V36.1947C42.2392 37.6421 40.6112 40.5395 37.3551 40.5395C34.6409 40.5395 33.1943 38.9105 33.1943 36.0132V22.4342H33.0128L27.5843 22.6158H27.4028V36.3737C27.4028 39.45 28.1261 41.8053 29.3938 43.4342C30.8404 45.0632 32.8314 45.7868 35.5456 45.7868C36.8133 45.7868 38.0784 45.4237 39.3461 44.8816C41.1556 43.7947 42.6022 41.9842 43.1466 39.9947V45.4263H48.7566V22.6158H42.6048H42.6022Z"}),(0,t.jsx)("path",{d:"M66.3047 22.6158C62.6857 22.6158 60.1529 24.6079 59.4296 27.8658L59.2481 28.7711V22.7974H52.9149V45.7895H59.2481V33.479C59.7899 29.8579 62.3227 28.229 66.8465 28.229H68.293V22.7974H68.1116C67.2068 22.6158 66.665 22.6158 66.3021 22.6158H66.3047Z"}),(0,t.jsx)("path",{d:"M85.6648 22.6158V36.1947C85.4834 37.6421 83.8553 40.5395 80.5993 40.5395C77.885 40.5395 76.4385 38.9105 76.4385 36.0132V22.4342H76.257L70.8285 22.6158H70.647V36.3737C70.647 39.45 71.3703 41.8053 72.638 43.4342C74.0845 45.0632 76.0755 45.7868 78.7898 45.7868C82.9506 45.7868 85.4834 42.7105 86.2093 41.079L86.3908 40.5368V45.4237H92.1796V45.2421L91.9981 22.6132H85.6648V22.6158Z"}),(0,t.jsx)("path",{d:"M110.091 22.7973C105.749 22.7973 103.216 26.2368 102.671 27.5052L102.49 28.0473L102.382 14.0342H96.0778L96.1541 45.7894H102.487V32.2105C102.487 30.5815 103.029 29.3131 104.115 28.5894C104.839 28.0473 106.106 27.8658 107.553 27.8658C110.267 27.8658 111.714 29.4947 111.714 32.3921V45.7894H118.228V32.0315C118.228 28.7736 117.505 26.2394 115.877 24.7894C114.431 23.521 112.621 22.7973 110.088 22.7973H110.091Z"}),(0,t.jsx)("path",{d:"M131.984 22.2524C128.004 22.2524 120.585 24.7867 120.585 34.0209C120.585 37.8235 121.853 40.8998 124.385 43.0735C126.376 44.7024 129.091 45.7893 131.805 45.7893C134.519 45.7893 137.233 44.884 139.224 43.0735C141.757 40.8998 143.025 37.8235 143.025 34.0209C143.206 24.7893 135.787 22.2524 131.989 22.2524H131.984ZM136.902 34.3314C136.902 36.5393 136.35 38.1919 135.432 39.4814C134.514 40.584 133.225 41.1367 131.755 41.1367C128.446 41.1367 126.608 38.563 126.608 34.334C126.608 30.1051 128.63 27.713 131.755 27.713C133.225 27.713 134.511 28.2656 135.432 29.3682C136.35 30.2867 136.902 32.1261 136.902 34.334V34.3314Z"}),(0,t.jsx)("path",{d:"M155.504 40.7183C153.876 40.7183 152.972 39.9946 152.972 38.3657V27.3236H157.132V22.2551H152.972V17.9104L147.001 18.6551V22.2551H143.745V27.3236H147.001V38.9104C147.001 41.6262 147.725 43.6183 149.174 44.5236C150.441 45.6104 152.248 45.792 153.698 45.792C155.147 45.792 156.593 45.6104 157.498 45.2499H157.68V40.363H157.498C156.775 40.5446 156.051 40.7262 155.507 40.7262L155.504 40.7183Z"}),(0,t.jsx)("path",{d:"M170.341 21.8919C167.267 21.8919 164.552 22.7972 162.561 24.6077C160.029 26.7814 158.761 30.0393 158.761 33.8393C158.761 39.813 162.38 45.7867 170.341 45.7867C175.951 45.7867 179.389 43.613 180.835 39.0893V38.9077H175.225V39.0893C174.502 40.5367 173.053 41.0814 170.702 41.0814C167.264 41.0814 165.455 39.4524 165.092 35.8314V35.6498H181.556V34.563C181.556 26.4156 177.395 21.8893 170.339 21.8893L170.341 21.8919ZM170.341 26.2367C173.237 26.2367 175.225 28.2288 175.225 31.3051V31.4867H165.094V31.3051C165.636 28.0472 167.446 26.2367 170.341 26.2367V26.2367Z"}),(0,t.jsx)("path",{d:"M190.153 14.2841L186.271 14.2367H183.92L184.02 45.6156V45.7893L184.201 45.7867L189.99 45.7841H190.172V45.6104L190.153 14.2841Z"}),(0,t.jsx)("path",{d:"M221.002 55.2001H204.104L205.945 4.80005H221.002V55.2001Z",fill:l}),(0,t.jsx)("path",{d:"M224.358 0V60L242.045 55.2V4.8L224.358 0ZM230.473 34.3158L228.895 34.5789V25.3684L230.473 25.6316V34.3158Z",fill:r})]})}function d(e){var n;let{website:l,component:a,locale:d}=e,c=(0,r.eR)("blocks.footer"),u=(0,s.Z)(a);return(0,t.jsx)("footer",{className:"w-full py-4 bg-background text-foreground",style:u,children:(0,t.jsxs)(i.Z,{className:"w-full justify-between items-center flex flex-col md:flex-row gap-4 md:gap-8",children:[(0,t.jsxs)("p",{className:"text-sm",children:["\xa9 ",new Date().getFullYear()," ",null==l?void 0:l.name]}),"expedia"===l.property.type&&(0,t.jsx)("a",{rel:"noreferrer nofollow",href:"https://developer.expediapartnersolutions.com/terms/".concat(d),target:"_blank",className:"underline text-sm",children:c("termsAndConditions")}),(0,t.jsxs)("a",{href:"https://guruhotel.com",rel:"noopener noreferrer dofollow",target:"_blank",className:"flex items-center gap-2 sm:ml-auto",children:[(0,t.jsx)("span",{className:"text-xs opacity-60 whitespace-nowrap",children:c("madeIn")}),(0,t.jsx)(o,{className:"h-7 fill-foreground",style:{fill:null==a?void 0:null===(n=a.design)||void 0===n?void 0:n.textColor}})]})]})})}},89814:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return m}});var t=l(27573);l(19711);var r=l(7653),s=l(36825),i=l(5191),a=l(1138),o=l(96504),d=l(76184),c=l(48687),u=l(13299);function m(e){var n,l,m,v,h,x,f;let{component:p,images:g=[]}=e,b=(0,d.Z)(p),[j,w]=(0,r.useState)(0),[y,N]=(0,r.useState)(!1),[_,k]=(0,s.E)({slides:{perView:Number(null==p?void 0:null===(n=p.template)||void 0===n?void 0:n.columns)||1,spacing:Number(null===(l=p.template)||void 0===l?void 0:l.gap)||0},initial:0,breakpoints:{"(max-width: 500px)":{slides:{perView:1}}},slideChanged(e){w(e.track.details.rel)}},[e=>{let n;let l=!1;function t(){clearTimeout(n)}function r(){clearTimeout(n),!l&&e.slides.length>1&&(n=setTimeout(()=>{e.next()},4e3))}e.on("created",()=>{e.container.addEventListener("mouseover",()=>{l=!0,t()}),e.container.addEventListener("mouseout",()=>{l=!1,r()}),r()}),e.on("dragStarted",t),e.on("animationEnded",r),e.on("updated",r)}]);(0,r.useEffect)(()=>{k.current&&N(!0)},[k.current]);let[C,P]=(0,r.useState)(!1),S=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&(P(!0),e.disconnect())})},{threshold:.1});return S.current&&e.observe(S.current),()=>e.disconnect()},[]),(0,t.jsxs)("section",{className:"w-full bg-background relative z-0",style:b,ref:S,children:[(0,t.jsxs)(c.Z,{className:(0,o.cn)("flex justify-between items-center relative",{"max-w-full px-0":(null===(m=p.template)||void 0===m?void 0:m.variant)==="full"}),children:[y&&k.current&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.zxk,{className:"absolute left-0 ml-8 top-2/4 z-20 rounded-full h-8 w-8 p-0 border-white/60 text-white/60 bg-transparent hover:text-white hover:bg-transparent",variant:"outline",onClick:e=>{e.stopPropagation(),k.current&&k.current.prev()},disabled:0===j,children:(0,t.jsx)(i.Z,{size:"16"})}),(0,t.jsx)(o.zxk,{className:"absolute right-0 mr-8 top-2/4 z-20 rounded-full h-8 w-8 p-0 border-white/60 text-white/60 bg-transparent hover:text-white hover:bg-transparent",variant:"outline",onClick:e=>{if(e.stopPropagation(),k.current){var n;null==k||null===(n=k.current)||void 0===n||n.next()}},disabled:j===(null==k?void 0:null===(f=k.current)||void 0===f?void 0:null===(x=f.track)||void 0===x?void 0:null===(h=x.details)||void 0===h?void 0:null===(v=h.slides)||void 0===v?void 0:v.length)-1,children:(0,t.jsx)(a.Z,{size:"16"})})]}),(0,t.jsx)("div",{className:"w-full relative keen-slider overflow-hidden",ref:_,children:null==g?void 0:g.map((e,n)=>{var l;return(0,t.jsx)("div",{className:(0,o.cn)("w-full relative keen-slider__slide overflow-hidden z-10 pb-[65%] md:pb-[45%]",{"rounded-lg":(null===(l=p.template)||void 0===l?void 0:l.variant)==="default"}),children:y&&C&&(0,t.jsx)("img",{alt:"gallery-image-".concat(n),className:"object-cover absolute top-0 left-0 h-full w-full transition-opacity duration-500",src:(0,u.p)(e,"1400"),loading:"lazy"})},"gallery-image-".concat(n))})})]}),!y&&(0,t.jsx)("div",{className:"w-full flex gap-8 justify-around absolute top-0 left-0 z-10",children:(0,t.jsx)(o.OdW,{className:"bg-border w-full pb-[65%] md:pb-[45%] rounded-none"})})]})}},56038:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return h}});var t=l(27573),r=l(68055),s=l(76184),i=l(48687),a=l(7653),o=l(67754),d=l(56415),c=l(30649),u=l(96504),m=l(4750);function v(e){let{locale:n}=e,l=(0,r.eR)("blocks.guest"),s=(0,o.usePathname)(),{push:i}=(0,o.useRouter)(),v=(0,m.r)(),[h,x]=(0,a.useTransition)();return(0,t.jsx)(u.Zbd,{className:"p-4 bg-secondary text-foreground border",children:(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault();let l=e.currentTarget,t=l.reservationNumber.value,r=l.email.value,a=s.match(/\/[0-9a-f-]{36}/);v({eventName:"searchReservation",eventData:{lang:n,email:r,reservationNumber:t}});let o="/".concat(n,"/guest/reservation?itineraryId=").concat(t,"&email=").concat(r);a&&(o="".concat(a[0]).concat(o)),x(()=>{i(o)})},className:"w-full",children:(0,t.jsx)(u.pnl,{delayDuration:400,children:(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(u.__J,{htmlFor:"email",children:l("search.form.email")}),(0,t.jsxs)(u.ua7,{children:[(0,t.jsx)(u.aJU,{asChild:!0,children:(0,t.jsx)(d.Z,{className:"h-4 w-4 cursor-pointer"})}),(0,t.jsx)(u._vU,{className:"max-w-[160px] text-center",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:l("search.form.email")})})]})]}),(0,t.jsx)(u.IIB,{required:!0,type:"email",id:"email",placeholder:"Email",className:"bg-secondary text-foreground"})]}),(0,t.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(u.__J,{htmlFor:"reservationNumber",children:l("search.form.reservationNumber")}),(0,t.jsxs)(u.ua7,{children:[(0,t.jsx)(u.aJU,{asChild:!0,children:(0,t.jsx)(d.Z,{className:"h-4 w-4 cursor-pointer"})}),(0,t.jsx)(u._vU,{className:"max-w-[220px] text-center",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:l("search.form.reservationNumberDescription")})})]})]}),(0,t.jsx)(u.IIB,{required:!0,id:"reservationNumber",placeholder:l("search.form.reservationNumber"),className:"bg-secondary text-foreground"})]})]}),(0,t.jsxs)(u.zxk,{type:"submit",disabled:h,children:[h?(0,t.jsx)(c.Z,{className:"mr-2 h-4 w-4 animate-spin"}):null,l("search.form.submit")]})]})})})})}function h(e){let{component:n,locale:l}=e,a=(0,r.eR)("blocks.guest"),o=(0,s.Z)(n);return(0,t.jsxs)("section",{className:"w-full py-4",style:o,children:[(0,t.jsx)(i.Z,{className:"flex flex-col gap-4 max-w-4xl md:px-0",children:(0,t.jsx)("h1",{className:"my-6 font-semibold text-lg md:text-2xl",children:a("search.title")})}),(0,t.jsx)(i.Z,{className:"flex flex-col gap-4 max-w-4xl md:px-0",children:(0,t.jsx)(v,{locale:l})})]})}},59255:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return a}});var t=l(27573),r=l(96504),s=l(76184),i=l(48687);function a(e){var n,l;let{component:a}=e,o=(0,s.Z)(a);return(0,t.jsx)("section",{className:"w-full bg-background",style:o,children:(0,t.jsx)(i.Z,{className:(0,r.cn)({"max-w-full px-0":(null===(n=a.template)||void 0===n?void 0:n.variant)==="full"}),children:(0,t.jsx)("div",{className:"w-full",dangerouslySetInnerHTML:{__html:(null==a?void 0:null===(l=a.content)||void 0===l?void 0:l.code)||""}})})})}},7316:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return y}});var t=l(27573),r=l(76184),s=l(48687),i=l(12839),a=l(34011),o=l(10701),d=l(7653),c=l(67754),u=l(68055),m=l(59453),v=l(59668),h=l(98590),x=l.n(h),f=l(96504),p=l(22992),g=l(71811),b=l(4750);async function j(e){var n,l,t;let r=await (0,v.Iox)(v.VTK,{where:{iso2:{_eq:e}}});return null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(l=t.countries)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:n.iso2}function w(e){var n,l,r,s,i,a,o,h,w,y,N,_,k,C,P,S,Z,z;let{website:E,currentReservation:V}=e,L=(0,u.eR)("checkout.information"),{handleCreatePayment:R,handleUpdateReservation:M}=(0,g.H)(),H=(0,c.useRouter)(),{toast:I}=(0,f.pmc)(),O=E.providerConstants,q=0===Number((null==E?void 0:null===(n=E.providerOptions)||void 0===n?void 0:n.accountFee)||0)?5:(null==E?void 0:null===(l=E.providerOptions)||void 0===l?void 0:l.accountFee)||5,A=q/100,T=Number(null==V?void 0:V.subtotal)*A,F=Number((T+.16*T).toFixed(2)),D=(0,b.r)(),U=(0,b.o)(),W=null===(r=E.providerConstants)||void 0===r?void 0:r.session,B=null!=W&&null!==(s=W.user)&&void 0!==s&&!!s.id,J=(null==O?void 0:null===(i=O.cookies)||void 0===i?void 0:i.countryCode)||(null==W?void 0:null===(a=W.user)||void 0===a?void 0:a.country)||"Mexico",{data:X,isLoading:Y}=(0,m.a)({queryKey:["country"],queryFn:async()=>j(J),enabled:!!J}),G=(null==O?void 0:null===(o=O.cookies)||void 0===o?void 0:o.countryCode)||X||"MX",[K,$]=(0,d.useState)(!1),[Q,ee]=(0,d.useState)(),[en,el]=(0,d.useState)({first_name:(null==W?void 0:null===(h=W.user)||void 0===h?void 0:h.first_name)||"",last_name:(null==W?void 0:null===(w=W.user)||void 0===w?void 0:w.last_name)||"",email:(null==W?void 0:null===(y=W.user)||void 0===y?void 0:y.email)||"",phone:(null==W?void 0:null===(N=W.user)||void 0===N?void 0:N.phone)||"",address:(null==W?void 0:null===(_=W.user)||void 0===_?void 0:_.billing_address)||"",address_2:(null==W?void 0:null===(k=W.user)||void 0===k?void 0:k.billing_address_line_2)||"",zip_code:(null==W?void 0:null===(C=W.user)||void 0===C?void 0:C.zip_code)||"",country:(null==W?void 0:null===(P=W.user)||void 0===P?void 0:P.country)||"",state:(null==W?void 0:null===(S=W.user)||void 0===S?void 0:S.state)||"",city:(null==W?void 0:null===(Z=W.user)||void 0===Z?void 0:Z.city)||"",phone_code:(null==W?void 0:null===(z=W.user)||void 0===z?void 0:z.phone_code)||""});async function et(e){var n,l,t,r,s,i,a,o,d,c,u,m,h,f,p,g,b,j,w;e.preventDefault(),$(!0);let y=null==V?void 0:null===(n=V.totals)||void 0===n?void 0:n.requested,N=(null==y?void 0:y.policyPayment)&&0!==Number(null==y?void 0:null===(l=y.policyPayment)||void 0===l?void 0:l.pay_later)?Number(null==y?void 0:null===(t=y.policyPayment)||void 0===t?void 0:t.pay_now):Number(null==y?void 0:y.total),_=x().generate();U.update({name:"".concat(en.first_name," ").concat(en.last_name),email:String(en.email),phone:"+".concat(Q).concat(en.phone)}),D({eventName:"Guest information",eventData:{hotel:E.name,arrival:null==V?void 0:V.checkin,departure:null==V?void 0:V.checkout,occupancy:null==V?void 0:V.occupancy.map(e=>({adults:e.adults,children:e.children,childrenAges:e.childrenAges})),currency:null==V?void 0:V.currency,original_currency:null==V?void 0:V.request_currency,nights:null==V?void 0:V.nights,rooms:null==V?void 0:null===(r=V.occupancy)||void 0===r?void 0:r.length,lang:null==V?void 0:V.lang,guest:"".concat(en.first_name," ").concat(en.last_name)},userData:{firstName:en.first_name,lastName:en.last_name,email:String(en.email),phone:"+".concat(Q).concat(en.phone),isMember:B}});let k=await R({orderReference:_,currency:null==y?void 0:y.currency,amount:Math.round(100*(N||0)),monthlyInstallments:!0,paymentMethod:"CARD",paymentProvider:"STRIPE",gurufee:Math.round(100*(F||0)),futureUsage:!0,client:{client_reference:"Client-".concat(_),name:"".concat(en.first_name," ").concat(en.last_name),email:en.email,phone:"+".concat(Q).concat(en.phone)},business:{business_reference:"expedia"===E.property.type?String(null==E?void 0:null===(s=E.property)||void 0===s?void 0:s.shortcode):"zavia"===E.property.type?String("gzav-".concat(null==E?void 0:null===(i=E.property)||void 0===i?void 0:i.zavia_id)):String(E.property.id),name:E.name},origin:"expedia"===E.property.type?"EXPEDIA":"HOTELS"});if(null==k?void 0:null===(a=k.result)||void 0===a?void 0:a.success){let e=await (0,v.Iox)(v.KM0,{object:{first_name:en.first_name,last_name:en.last_name,email:en.email,phone:en.phone,reservation_id:null==V?void 0:V.id,address:en.address,is_member:!!B,phoneCode:Q,country:en.country,state:en.state,city:en.city,billing_address:en.address,billing_address_line_2:en.address_2,zip_code:en.zip_code,lang:null==V?void 0:V.lang,property_id:null==V?void 0:V.property_id}});if(null==e?void 0:e.data){let n=null==e?void 0:null===(d=e.data)||void 0===d?void 0:null===(o=d.insert_guests_one)||void 0===o?void 0:o.id,l=await M({guest_id:n,member_id:null==W?void 0:null===(c=W.user)||void 0===c?void 0:c.id,order_reference:null==k?void 0:null===(u=k.payment)||void 0===u?void 0:u.order_reference,payment_reference:null==k?void 0:null===(m=k.payment)||void 0===m?void 0:m.payment_reference,status:"linked",fee_percentage:String(q||5),fee:String(F),metadata:{...null==V?void 0:V.metadata,payment:null==k?void 0:k.payment},current_step:"guest_information"});D({eventName:"Select address",eventData:{hotel:E.name,arrival:null==V?void 0:V.checkin,departure:null==V?void 0:V.checkout,occupancy:null==V?void 0:V.occupancy.map(e=>({adults:e.adults,children:e.children,childrenAges:e.childrenAges})),currency:null==V?void 0:V.currency,original_currency:null==V?void 0:V.request_currency,nights:null==V?void 0:V.nights,rooms:null==V?void 0:null===(h=V.occupancy)||void 0===h?void 0:h.length,lang:null==V?void 0:V.lang,guest:"".concat(en.first_name," ").concat(en.last_name),line1:en.address,line2:en.address_2,city:en.city,state:en.state,postalCode:en.zip_code,country:en.country}}),(null==l?void 0:l.data)&&H.replace("/checkout/payment?reservationId=".concat(null==V?void 0:V.id)),(null==l?void 0:l.errors)&&(I({title:null==l?void 0:null===(p=l.errors)||void 0===p?void 0:null===(f=p[0])||void 0===f?void 0:f.message}),console.error("updateReservationAfterGuestCreationError",null==l?void 0:l.errors),$(!1))}(null==e?void 0:e.errors)&&(I({title:null==e?void 0:null===(b=e.errors)||void 0===b?void 0:null===(g=b[0])||void 0===g?void 0:g.message}),console.error("insertGuestError",null==e?void 0:e.errors),$(!1))}else I({title:(null==k?void 0:null===(j=k.result)||void 0===j?void 0:j.message)||""}),console.error("createPaymentErrorInInformation",(null==k?void 0:null===(w=k.result)||void 0===w?void 0:w.message)||""),$(!1)}return Y?(0,t.jsx)("div",{className:"w-full flex flex-col gap-4 p-4 border rounded-md bg-secondary",children:(0,t.jsxs)("div",{className:"w-full flex flex-col gap-8",children:[(0,t.jsx)(f.OdW,{className:"w-4/12 h-6 bg-border/20"}),(0,t.jsx)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2",children:Array.from({length:8}).map((e,n)=>(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)(f.OdW,{className:"w-4/12 h-3 bg-border/20"}),(0,t.jsx)(f.OdW,{className:"w-full h-10 bg-border/20"})]},n))}),(0,t.jsx)(f.OdW,{className:"w-full h-10 bg-border/20"})]})}):(0,t.jsx)("div",{className:"w-full flex flex-col gap-4 p-4 border rounded-md bg-secondary",children:(0,t.jsx)(p.Z,{form:en,setForm:el,handleSubmit:et,phoneCode:Q,setPhoneCode:ee,countryCode:G,loading:K,buttonLabel:L("button")})})}function y(e){let{component:n,website:l}=e,d=(0,r.Z)(n),c=null==l?void 0:l.currentReservation,u=(null==c?void 0:c.status)==="timed_out";return(0,t.jsx)("section",{className:"w-full py-4 bg-background text-foreground",style:d,children:(0,t.jsxs)(s.Z,{className:"flex flex-col gap-4 max-w-4xl md:px-0",children:[!u&&(0,t.jsx)(i.Z,{currentReservation:c}),(0,t.jsx)(o.Z,{}),u?(0,t.jsx)(a.Z,{}):(0,t.jsx)(w,{website:l,currentReservation:c})]})})}},23348:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return d}});var t=l(27573),r=l(7653),s=l(39938),i=l.n(s),a=l(76184),o=l(48687);function d(e){var n;let{component:l,locale:s}=e,d=(0,a.Z)(l),[c,u]=(0,r.useState)(),[m,v]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=()=>{u(window.innerWidth<550)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,r.useEffect)(()=>{var e,n;void 0!==c&&v('<script type="text/javascript" src="//www.opentable.com/widget/reservation/loader?rid='.concat(null==l?void 0:null===(e=l.content)||void 0===e?void 0:e.code,"&type=standard&theme=").concat(c?"tall":"wide","&color=1&dark=").concat((null==l?void 0:null===(n=l.template)||void 0===n?void 0:n.variant)==="dark","&iframe=true&domain=com&lang=").concat("es"===s?"es-MX":"en-US",'&newtab=false&ot_source=Restaurant%20website"></script>'))},[c,null==l?void 0:null===(n=l.template)||void 0===n?void 0:n.variant]),m)?(0,t.jsx)("section",{className:"w-full bg-background",style:d,children:(0,t.jsx)(o.Z,{className:"w-full text-center",children:(0,t.jsx)("div",{className:"w-full relative md:h-[120px] flex justify-center",children:(0,t.jsx)(i(),{html:m})})})}):null}},79875:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return v}});var t=l(27573),r=l(7653),s=l(36825),i=l(55154),a=l(96504),o=l(76184),d=l(48687);let c=(e,n)=>e.rating>n.rating?-1:e.rating<n.rating?1:0,u=(e,n)=>e.text.length>n.text.length?-1:e.text.length<n.text.length?1:0,m=RegExp(RegExp("(\\p{L}{1})\\p{L}+"),"gu");function v(e){let{reviews:n=[],component:l}=e,v=(0,o.Z)(l),[h,x]=(0,r.useState)(!1),f=n.sort(c).sort(u).filter(e=>e.rating>3),[p]=(0,s.E)({slides:{perView:Math.min((null==f?void 0:f.length)||1,3),spacing:32},initial:0,loop:!1,breakpoints:{"(max-width: 500px)":{slides:{perView:1}}},created(){x(!0)}},[e=>{let n;let l=!1;function t(){clearTimeout(n)}function r(){clearTimeout(n),!l&&e.slides.length>1&&(n=setTimeout(()=>{e.next()},4e3))}e.on("created",()=>{e.container.addEventListener("mouseover",()=>{l=!0,t()}),e.container.addEventListener("mouseout",()=>{l=!1,r()}),r()}),e.on("dragStarted",t),e.on("animationEnded",r),e.on("updated",r)}]);return f.length<1?null:(0,t.jsx)("section",{className:"w-full bg-background text-foreground",style:v,children:(0,t.jsxs)(d.Z,{children:[(0,t.jsx)("div",{className:"keen-slider",ref:p,children:null==f?void 0:f.map((e,n)=>{var l,r;let s=[...e.author_name.matchAll(m)],o=(((null===(l=s.shift())||void 0===l?void 0:l[1])||"")+((null===(r=s.pop())||void 0===r?void 0:r[1])||"")).toUpperCase();return(0,t.jsx)("div",{className:"keen-slider__slide",children:h&&(0,t.jsx)(a.Zbd,{className:"w-full bg-secondary text-foreground h-full p-4 max-w-lg mx-auto",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)(a.qEK,{children:[(0,t.jsx)(a.F$F,{src:e.profile_photo_url,alt:e.author_name,referrerPolicy:"no-referrer"}),(0,t.jsx)(a.Q5M,{children:o})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:"text-sm",children:null==e?void 0:e.author_name}),(0,t.jsx)("div",{className:"flex",children:[...Array(Number(null==e?void 0:e.rating))].map((e,n)=>(0,t.jsx)(i.Z,{color:"#EDA34C",fill:"#EDA34C",className:"h-4 w-4"},"".concat(e,"-").concat(n)))})]})]}),(0,t.jsx)("p",{className:"line-clamp-4 text-sm",children:e.text})]})},e.time)},"review-".concat(n))})}),!h&&(0,t.jsx)("div",{className:"w-full flex gap-8 justify-around",children:null==f?void 0:f.map((e,n)=>(0,t.jsx)(a.OdW,{className:"bg-border w-full h-48"},n))})]})})}},90935:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return o}});var t=l(27573),r=l(68055),s=l(96504),i=l(76184),a=l(48687);function o(e){var n,l,o;let{component:d}=e,c=(0,r.eR)("blocks.rooms"),u=(0,i.Z)(d);return(0,t.jsx)("section",{className:"w-full py-2 bg-background text-foreground",style:u,children:(0,t.jsx)(a.Z,{className:(0,s.cn)("w-full",{"flex flex-col gap-4 max-w-4xl md:px-0":(null==d?void 0:null===(n=d.template)||void 0===n?void 0:n.variant)==="default"}),children:(0,t.jsx)("p",{className:(0,s.cn)("text-center",{"text-left":(null==d?void 0:null===(l=d.template)||void 0===l?void 0:l.align)==="left","text-right":(null==d?void 0:null===(o=d.template)||void 0===o?void 0:o.align)==="right"}),children:(null==d?void 0:d.text)?null==d?void 0:d.text:c("demoDescription")})})})}},50460:function(e,n,l){"use strict";l.d(n,{Room:function(){return h}});var t=l(27573),r=l(67754),s=l(68055),i=l(1871),a=l(30688),o=l(1138),d=l(96504),c=l(31683),u=l(85069),m=l(19808),v=l(50730);let h=e=>{var n,l,h,x,f,p,g,b,j;let{room:w,index:y,variant:N}=e,_=(0,s.eR)("blocks.rooms");if(!(0,r.usePathname)().includes("rooms")&&y>7)return null;let k=Object.values(w.bed_groups||{}),C=null===(n=(0,u.Z)(null==w?void 0:w.images))||void 0===n?void 0:n.map(e=>(0,c.M)(e,"800")),P=(null===(h=w.occupancy)||void 0===h?void 0:null===(l=h.max_allowed)||void 0===l?void 0:l.children)&&w.occupancy.max_allowed.children>0,S=k.length>0,Z=P?_("maxOccupancyWithChildrens",{adults:null===(g=w.occupancy)||void 0===g?void 0:null===(p=g.max_allowed)||void 0===p?void 0:p.adults,childrens:null===(j=w.occupancy)||void 0===j?void 0:null===(b=j.max_allowed)||void 0===b?void 0:b.children}):_("maxOccupancy",{adults:null===(f=w.occupancy)||void 0===f?void 0:null===(x=f.max_allowed)||void 0===x?void 0:x.adults});return(0,t.jsxs)("article",{id:"room-".concat(w.id),className:(0,d.cn)("flex flex-col gap-4 w-full",{"md:flex-row md:items-center gap-4 md:gap-12 mx-auto w-full":"list"===N||"interleaved"===N,"md:odd:flex-row-reverse":"interleaved"===N,"md:gap-8":"list"===N}),children:[(0,t.jsx)("div",{className:"w-full overflow-hidden rounded-lg",children:Number(null==C?void 0:C.length)>0?(0,t.jsx)(v.Z,{images:C}):null}),(0,t.jsx)(m.default,{href:"/rooms/".concat(w.id),className:"w-full",children:(0,t.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"w-full flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"font-semibold text-lg md:text-xl",children:w.name}),(null==w?void 0:w.description)?(0,t.jsx)("p",{className:"text-sm opacity-60",children:w.description}):null]}),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(i.Z,{size:16,className:"opacity-60"})}),(0,t.jsx)("span",{className:"w-full flex",children:Z})]}),S?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(a.Z,{size:16,className:"opacity-60"})}),(0,t.jsx)("span",{className:"w-full flex",children:k.map(e=>e.description).join(", ")})]}):null]}),(0,t.jsxs)(d.zxk,{className:"mt-2 w-fit hover:bg-transparent hover:text-foreground",size:"sm",variant:"outline",children:[_("seeMore")," ",(0,t.jsx)(o.Z,{size:"12",className:"ml-2"}),(0,t.jsx)("span",{className:"sr-only",children:"".concat(_("seeMore"),": ").concat(w.name)})]})]})})]})}},50363:function(e,n,l){"use strict";l.d(n,{ViewAllRoomsButton:function(){return d}});var t=l(27573),r=l(67754),s=l(68055),i=l(39135),a=l(96504),o=l(19808);let d=e=>{let{rooms:n}=e,l=(0,s.eR)("blocks.rooms");return(0,r.usePathname)().includes("rooms")?null:n.length<8?null:(0,t.jsx)("div",{className:"w-full flex justify-center mt-8",children:(0,t.jsx)(a.zxk,{asChild:!0,variant:"ghost",size:"sm",className:"gap-2 bg-transparent hover:bg-transparent",children:(0,t.jsxs)(o.default,{href:"/rooms",children:[l("viewAllRooms")," ",(0,t.jsx)(i.Z,{size:12,className:"opacity-60"})]})})})}},12209:function(e,n,l){"use strict";l.d(n,{default:function(){return d}});var t=l(27573),r=l(7653),s=l(67754),i=l(3477),a=l(96504),o=l(19808);function d(e){let{buttons:n}=e,l=(0,s.useSearchParams)().toString(),[d,c]=(0,r.useState)(!1);return(0,t.jsxs)(a.yoO,{open:d,onOpenChange:c,children:[(0,t.jsx)(a.aM_,{asChild:!0,children:(0,t.jsx)(a.zxk,{size:"icon",variant:"ghost",children:(0,t.jsx)(i.Z,{size:"16"})})}),(0,t.jsx)(a.uei,{children:(0,t.jsx)(a.xrM,{className:"h-full w-full",children:(0,t.jsx)("div",{className:"flex flex-col items-center justify-center w-full h-full",children:null==n?void 0:n.map((e,n)=>e.children&&e.children.length>0?(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)(a.zxk,{variant:"ghost",children:e.label}),(0,t.jsx)("div",{className:"w-full bg-border flex justify-center p-2 flex-col rounded-lg",children:e.children.map(e=>"custom"===e.type?(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,t.jsx)(o.default,{href:e.link,children:e.label})},e.link):"page"===e.type?(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,t.jsx)(o.default,{href:"/".concat(e.link,"?").concat(l),children:e.label})},e.link):(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>c(!1),children:e.label},e.link))})]},"sidebar-button-".concat(n)):"custom"===e.type?(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,t.jsx)(o.default,{href:e.link,children:e.label})},"sidebar-button-".concat(n)):"page"===e.type?(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,t.jsx)(o.default,{href:"/".concat(e.link,"?").concat(l),children:e.label})},"sidebar-button-".concat(n)):(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>c(!1),children:e.label},"sidebar-button-".concat(n)))})})})]})}},1649:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return m}});var t=l(27573),r=l(67754),s=l(68055),i=l(57749),a=l(1138),o=l(96504),d=l(76184),c=l(48687);let u=[{id:"availability-step",label:"steps.room",isActive:["availability"],isChecked:["information","payment"]},{id:"information-step",label:"steps.information",isActive:["information"],isChecked:["payment"]},{id:"payment-step",label:"steps.payment",isActive:["payment"],isChecked:[]}];function m(e){let{component:n}=e,l=(0,s.eR)("blocks.stepper"),m=(0,r.usePathname)(),v=(0,d.Z)(n);return(0,t.jsx)("section",{className:"w-full py-4 bg-background text-foreground",style:v,children:(0,t.jsx)(c.Z,{className:"flex max-w-4xl md:px-0",children:u.map(e=>{let n=e.isActive.some(e=>m.includes(e)),r=e.isChecked.some(e=>m.includes(e));return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(o.Cts,{id:e.id,className:(0,o.cn)("text-xs text-foreground opacity-40 bg-secondary hover:bg-secondary hover:text-foreground border border-border",{"font-semibold opacity-100":n}),children:[l(e.label),r?(0,t.jsx)(i.Z,{id:e.id,className:"ml-1 h-4 w-4 fill-green-600 text-white"}):null]}),e.id!==u[u.length-1].id?(0,t.jsx)(a.Z,{id:e.id,size:12,className:"opacity-60"}):null]},e.id)})})})}},39081:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return C}});var t=l(27573),r=l(68055),s=l(96504),i=l(76184),a=l(48687),o=l(19808),d=l(7653),c=l(91535),u=l(9487),m=l(46943),v=l(21999),h=l(44251),x=l(7220),f=l(34690),p=l(43641),g=l(67754);function b(e){let{website:n}=e,l=(0,g.useParams)(),[r,s]=(0,d.useState)(),[i,a]=(0,d.useState)(!1),[o,c]=(0,d.useState)(),[u,m]=(0,d.useState)(0);async function v(e){e.preventDefault(),c(void 0),a(!0);let t=e.currentTarget.email.value,r=new URL(window.location.href);r.searchParams.set("propertyName",n.name.replace(/[^a-zA-Z0-9 ]/g,"")),r.searchParams.set("toEmail",t),r.searchParams.set("locale",l.locale);let s=await (0,h.signIn)("email",{email:t,redirect:!1,callbackUrl:r.toString()});(null==s?void 0:s.error)&&c(s.error),(null==s?void 0:s.ok)&&m(1),a(!1)}return(0,t.jsxs)("div",{className:"w-full",children:[1===u?(0,t.jsx)(w,{email:r}):(0,t.jsx)(j,{onSubmit:v,loading:i,email:r,setEmail:s}),o&&(0,t.jsx)("p",{className:"text-red-500 bg-red-50 rounded-md p-2 mt-2",children:o})]})}function j(e){let{onSubmit:n,loading:l,email:i,setEmail:a}=e,o=(0,r.eR)("global.auth");return(0,t.jsx)("div",{className:"w-full flex flex-col gap-2",children:(0,t.jsxs)("form",{onSubmit:n,className:"w-full flex flex-col gap-2 mt-4",children:[(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)(s.__J,{htmlFor:"email",children:o("email")}),(0,t.jsx)(s.IIB,{id:"email",type:"email",name:"email",placeholder:o("email"),onChange:e=>a(e.target.value),defaultValue:i,className:"border-border bg-transparent",required:!0})]}),(0,t.jsx)(s.zxk,{type:"submit",disabled:l||!i,children:l?(0,t.jsx)(f.Z,{size:16,className:"animate-spin"}):o("submit")})]})})}function w(e){let{email:n}=e,l=(0,r.eR)("global.auth"),[i,a]=(0,d.useState)("idle"),[o,c]=(0,d.useState)(!1),[u,m]=(0,d.useState)(),v=x.Z.get("auth_callback_url"),h=async()=>{if(c(!0),v&&(null==u?void 0:u.length)===6){let e=new URL(v).searchParams.get("token");e&&e===u?(a("success"),await new Promise(e=>setTimeout(e,2e3)).then(()=>{window.location.href=v})):(a("error"),c(!1))}};return(0,d.useEffect)(()=>{(null==u?void 0:u.length)===6&&h()},[u]),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold w-fit flex items-center gap-3",children:l("code")}),(0,t.jsx)("p",{className:"text-sm mb-2 opacity-60",children:l("codeDescription",{email:n})}),(0,t.jsx)(s.Z0O,{className:"my-2"}),(0,t.jsxs)(s.ZnJ,{maxLength:6,className:"w-full",onChange:e=>m(e),disabled:o,children:[(0,t.jsxs)(s.hfx,{className:"w-full",children:[(0,t.jsx)(s.cYv,{index:0,className:"w-full h-20 text-lg"}),(0,t.jsx)(s.cYv,{index:1,className:"w-full h-20 text-lg"}),(0,t.jsx)(s.cYv,{index:2,className:"w-full h-20 text-lg"})]}),(0,t.jsx)(s.aMg,{}),(0,t.jsxs)(s.hfx,{className:"w-full",children:[(0,t.jsx)(s.cYv,{index:3,className:"w-full h-20 text-lg"}),(0,t.jsx)(s.cYv,{index:4,className:"w-full h-20 text-lg"}),(0,t.jsx)(s.cYv,{index:5,className:"w-full h-20 text-lg"})]})]}),o&&(0,t.jsxs)("p",{className:"p-2 mt-2 text-center justify-center text-sm flex gap-2 items-center",children:[(0,t.jsx)(f.Z,{size:16,className:"animate-spin"}),l("codeValidating")]}),"error"===i&&(null==u?void 0:u.length)===6&&(0,t.jsx)("p",{className:"text-red-500 bg-red-50 rounded-md p-2 mt-2 text-center text-sm",children:l("codeInvalid")}),(0,t.jsx)(s.Z0O,{className:"my-2"}),(0,t.jsxs)(s.zxk,{variant:"ghost",size:"sm",className:"text-foreground gap-2 h-auto bg-transparent hover:text-foreground hover:bg-transparent text-xs",children:[l("codeRequest")," ",(0,t.jsx)(p.Z,{size:12})]})]})}function y(e){var n,l,i,a,x;let{website:f}=e,p=(0,r.eR)("blocks.topbar.account"),[g,j]=(0,d.useState)(!1),w=(0,h.useSession)(),y=null==w?void 0:null===(i=w.data)||void 0===i?void 0:null===(l=i.user)||void 0===l?void 0:null===(n=l.email)||void 0===n?void 0:n.split("@")[0];return y?(0,t.jsxs)(s.h_2,{children:[(0,t.jsx)(s.$FS,{asChild:!0,children:(0,t.jsxs)(s.zxk,{variant:"outline",size:"sm",className:"gap-2 bg-transparent text-foreground hover:bg-transparent hover:text-foreground border-border capitalize",children:[(0,t.jsx)(u.Z,{strokeWidth:2,size:16}),(0,t.jsx)("span",{children:y})]})}),(0,t.jsxs)(s.AWV,{className:"w-56 shadow-none border-border",children:[(0,t.jsxs)(s.Juw,{className:"text-foreground",children:[(0,t.jsx)("p",{className:"font-normal opacity-60",children:p("menu.welcome")}),(0,t.jsx)("span",{children:null==w?void 0:null===(x=w.data)||void 0===x?void 0:null===(a=x.user)||void 0===a?void 0:a.email})]}),(0,t.jsx)(s.VD$,{className:"bg-border"}),(0,t.jsxs)(s.Qkc,{children:[(0,t.jsx)(o.default,{href:"/account?page=profile",children:(0,t.jsxs)(s.Xiv,{className:"focus:bg-transparent focus:text-primary cursor-pointer",children:[(0,t.jsx)(c.Z,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:p("menu.profile")})]})}),(0,t.jsx)(o.default,{href:"/account?page=reservations",children:(0,t.jsxs)(s.Xiv,{className:"focus:bg-transparent focus:text-primary cursor-pointer",children:[(0,t.jsx)(m.Z,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:p("menu.reservations")})]})})]}),(0,t.jsx)(s.VD$,{className:"bg-border"}),(0,t.jsxs)(s.Xiv,{onClick:()=>(0,h.signOut)(),className:"focus:bg-transparent focus:text-primary cursor-pointer",children:[(0,t.jsx)(v.Z,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:p("menu.logout")})]})]})]}):(0,t.jsxs)(s.VqE,{open:g,onOpenChange:j,children:[(0,t.jsx)(s.hgM,{asChild:!0,children:(0,t.jsxs)(s.zxk,{variant:"outline",size:"sm",className:"gap-2 bg-transparent text-foreground hover:bg-transparent hover:text-foreground border-border",children:[(0,t.jsx)(c.Z,{size:14}),(0,t.jsx)("span",{children:y||p("button")})]})}),(0,t.jsxs)(s.cZJ,{className:"border-border",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold w-full flex items-center gap-3",children:[(0,t.jsx)(u.Z,{strokeWidth:1.6})," ",p("title")]}),(0,t.jsx)(b,{website:f})]})]})}var N=l(71486);function _(){let e=(0,r.eR)("blocks.topbar"),n=(0,g.useParams)(),l=(0,g.useSearchParams)(),i=(0,g.usePathname)(),a=(0,g.useRouter)(),o=n.locale,c=l.get("currency")||"USD",[u,m]=(0,d.useState)(!1),[v,h]=(0,d.useState)(!1),[p,b]=(0,d.useState)(o),[j,w]=(0,d.useState)(c),y=o!==p||c!==j,_=(0,d.useCallback)((e,n)=>{let t=new URLSearchParams(l.toString());return t.set(e,n),t.toString()},[l]);async function C(){h(!0),o!==p&&x.Z.set("i18next",p),c!==j&&x.Z.set("currency",j);let e=i.replace(/^\/(es|en)/,"/".concat(p)),n=_("currency",j);(e!==i||n!==l.toString())&&(a.push(e+"?"+n),await new Promise(e=>setTimeout(e,5e3)),m(!1),h(!1))}return(0,t.jsxs)(s.VqE,{open:u,onOpenChange:m,children:[(0,t.jsx)(s.hgM,{asChild:!0,children:(0,t.jsxs)(s.zxk,{variant:"outline",size:"sm",className:"gap-2 bg-transparent text-foreground hover:bg-transparent hover:text-foreground border-border uppercase",children:[(0,t.jsx)(N.Z,{size:14,className:"opacity-30"}),(0,t.jsxs)("span",{children:[p," ",(0,t.jsx)("span",{className:"opacity-30",children:"/"})," ",j]})]})}),(0,t.jsx)(s.cZJ,{className:"border-border shadow-none",children:(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)("h3",{className:"font-normal text-sm text-foreground opacity-50",children:e("langs.title")}),(0,t.jsxs)("div",{className:"w-full grid grid-cols-3 gap-2",children:[(0,t.jsx)(s.zxk,{className:(0,s.cn)("bg-transparent text-foreground hover:bg-transparent hover:text-foreground font-semibold border border-border",{"ring-2 ring-foreground":"en"===p}),onClick:()=>b("en"),disabled:v,children:e("langs.en")}),(0,t.jsx)(s.zxk,{className:(0,s.cn)("bg-transparent text-foreground hover:bg-transparent hover:text-foreground font-semibold border border-border",{"ring-2 ring-foreground":"es"===p}),onClick:()=>b("es"),disabled:v,children:e("langs.es")})]}),(0,t.jsx)("h3",{className:"font-normal text-sm text-foreground opacity-50 mt-2",children:e("langs.title")}),(0,t.jsx)("div",{className:"w-full grid grid-cols-2 gap-2",children:k.map(n=>(0,t.jsxs)(s.zxk,{className:(0,s.cn)("bg-transparent flex-col h-auto items-start text-foreground hover:bg-transparent hover:text-foreground font-semibold border border-border",{"ring-2 ring-foreground":j===n}),onClick:()=>w(n),disabled:v,children:[e("currencies."+n),(0,t.jsx)("span",{className:"text-foreground font-normal opacity-50",children:n})]},n))}),y&&(0,t.jsx)(s.zxk,{disabled:v,className:"w-full bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground mt-4",onClick:()=>C(),type:"button",children:v?(0,t.jsx)(f.Z,{size:16,className:"animate-spin"}):e("saveChanges")})]})})]})}let k=["MXN","USD","EUR","CAD","GBP","COP","ARS","BRL"];function C(e){let{website:n,component:l}=e,d=(0,r.eR)("blocks.topbar"),c=(0,i.Z)(l);return(0,t.jsx)("section",{className:"w-full bg-background text-foreground py-1",style:c,children:(0,t.jsxs)(a.Z,{className:(0,s.cn)("justify-between flex",{"pl-[56px]":null==n?void 0:n.only_checkout}),children:[(0,t.jsx)(_,{}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(y,{website:n}),(0,t.jsx)(s.zxk,{variant:"default",size:"sm",className:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground",children:(0,t.jsx)(o.default,{href:"/guest",children:d("reservation")})})]})]})})}},55821:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return o}});var t=l(27573),r=l(7653),s=l(96504),i=l(76184),a=l(48687);function o(e){var n,l,o,d,c,u;let{component:m}=e,v=(0,i.Z)(m),h=function(e){let n=RegExp("(?:https?:\\/\\/)?(?:www\\.)?(?:youtube\\.com\\/(?:[^\\/\\n\\s]+\\/\\S+\\/|(?:v|e(?:mbed)?)\\/|\\S*?[?&]v=)|youtu\\.be\\/)([a-zA-Z0-9_-]{11})"),l=e.match(n);return l?l[1]:null}((null==m?void 0:null===(l=m.content)||void 0===l?void 0:null===(n=l.video)||void 0===n?void 0:n.src)||""),x=(0,r.useRef)(null),[f,p]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>{let[n]=e;p(n.isIntersecting)},{root:null,rootMargin:"0px",threshold:.5});return x.current&&e.observe(x.current),()=>{e.disconnect()}},[]),(0,t.jsx)("section",{className:"w-full bg-background",style:v,children:(0,t.jsx)(a.Z,{className:(0,s.cn)({"max-w-full px-0":(null===(o=m.template)||void 0===o?void 0:o.variant)==="full"}),children:(0,t.jsx)("div",{className:"w-full relative",style:{paddingBottom:"".concat(null==m?void 0:null===(u=m.content)||void 0===u?void 0:null===(c=u.video)||void 0===c?void 0:null===(d=c.style)||void 0===d?void 0:d.height,"%")||0},children:(0,t.jsx)("iframe",{ref:x,src:"https://www.youtube-nocookie.com/embed/".concat(h,"?controls=0&modestbranding=1&autoplay=").concat(f?"1":"0"),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",className:"absolute inset-0 w-full h-full"})})})})}},8454:function(e,n,l){"use strict";l.d(n,{ExtrasProvider:function(){return i},z:function(){return a}});var t=l(27573),r=l(7653);let s=(0,r.createContext)(void 0),i=e=>{var n;let{children:l,currentReservation:i}=e,[a,o]=(0,r.useState)((null==i?void 0:null===(n=i.metadata)||void 0===n?void 0:n.extras)||[]),[d,c]=(0,r.useState)(null==i?void 0:i.totals);return(0,t.jsx)(s.Provider,{value:{extras:a,setExtras:o,totalsExtras:d,setTotalsExtras:c},children:l})},a=()=>{let e=(0,r.useContext)(s);if(!e)throw Error("useExtras must be used within a ExtrasProvider");return e}},71811:function(e,n,l){"use strict";l.d(n,{CheckoutPaymentProvider:function(){return a},H:function(){return o}});var t=l(27573),r=l(7653),s=l(59668);let i=(0,r.createContext)(void 0),a=e=>{let{children:n,currentReservation:l,paymentsCurrencyRate:a}=e,[o,d]=(0,r.useState)((null==l?void 0:l.error_message)||null),[c,u]=(0,r.useState)((null==l?void 0:l.current_step)||"initial"),[m,v]=(0,r.useState)(null),h=(0,r.useCallback)(async e=>{var n;let l=await (0,s.y9g)(s.bXR,{input:e});return null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.updatePayment},[]),x=(0,r.useCallback)(async e=>{var n;let l=await (0,s.y9g)(s.neo,{input:e});return null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.createPayment},[]),f=(0,r.useCallback)(async e=>{var n;let l=await (0,s.y9g)(s.eR8,{input:e});return null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.cancelPayment},[]),p=(0,r.useCallback)(async e=>await (0,s.Iox)(s.XH6,{where:{id:{_eq:null==l?void 0:l.id}},set:e}),[]),g=(null==l?void 0:l.currency)||"USD",b=(null==l?void 0:l.request_currency)||"USD",j=Number(null==a?void 0:a[b]),w=(()=>{if(g===b||"USD"!==g&&"MXN"!==g)return 1;{let e=null==a?void 0:a[g];return"USD"===g?j:Number((j/Number(e)).toFixed(4))}})();return(0,t.jsx)(i.Provider,{value:{currentReservation:l,errorMessage:o,setErrorMessage:d,currentStep:c,setCurrentStep:u,handleUpdatePayment:h,handleCreatePayment:x,handleCancelPayment:f,handleUpdateReservation:p,currentCurrencyConversionRate:w,paymentIntent:m,setPaymentIntent:v},children:n})},o=()=>{let e=(0,r.useContext)(i);if(!e)throw Error("useCheckoutPayment must be used within a CheckoutPaymentProvider");return e}},72076:function(e,n,l){"use strict";l.d(n,{default:function(){return s}});var t=l(27573);l(7653);var r=l(44251);function s(e){let{children:n}=e;return(0,t.jsx)(r.SessionProvider,{children:n})}},71393:function(e,n,l){"use strict";l.d(n,{default:function(){return s}});var t=l(27573),r=l(68055);function s(e){let{locale:n,children:l}=e;return(0,t.jsx)(r.uq,{locale:n,children:l})}},80320:function(e,n,l){"use strict";l.d(n,{WebsitesClientQueryProvider:function(){return c}});var t=l(27573),r=l(7653),s=l(87795),i=l(40286),a=l(12411),o=l(83056),d=l(96504);function c(e){let{children:n}=e,{toast:l}=(0,d.pmc)(),[c]=r.useState(()=>new s.S({queryCache:new i.t({onError:e=>{e instanceof Error&&l({duration:8e3,variant:"destructive",title:"Something went wrong",description:e.message})}}),mutationCache:new a.L({onError:e=>{e instanceof Error&&l({duration:8e3,variant:"destructive",title:"Something went wrong",description:e.message})}}),defaultOptions:{queries:{retry:2,refetchOnWindowFocus:!1},mutations:{retry:2}}}));return(0,t.jsx)(o.aH,{client:c,children:n})}},4133:function(e,n,l){"use strict";l.d(n,{default:function(){return w}});var t=l(27573),r=l(7653),s=l(87659),i=l(67754),a=l(68055),o=l(30688),d=l(74678),c=l(97822),u=l(95623),m=l(1595),v=l(96504),h=l(99923),x=l.n(h);function f(){let e=(0,a.eR)("support"),n=[e("cancel.paragraph1"),e("cancel.paragraph2"),e("cancel.paragraph3"),e("cancel.paragraph4")];return(0,t.jsx)("div",{className:"w-full flex flex-col gap-4 bg-white text-neutral-800 rounded-lg p-4 max-w-sm text-sm",children:(0,t.jsx)(x(),{onInit:e=>{n.forEach((l,t)=>{e.typeString(l),t<n.length-1&&e.typeString("<br/><br/>")}),e.start()},options:{autoStart:!0,loop:!1,delay:20,cursorClassName:"hidden"}})})}var p=l(52958),g=l(34690),b=l(68056);function j(e){var n,l,s,i;let{website:o,enableEmail:d}=e,c=(0,a.eR)("support"),[u,m]=(0,r.useState)(!1),[h,x]=(0,r.useState)(!1),[f,j]=(0,r.useState)({}),w="ops-bookings-v2-aaaajuj5j2owaer4c7bpgscyxq@guruhotel.slack.com",y=(null==o?void 0:null===(l=o.notifications)||void 0===l?void 0:null===(n=l.filter(e=>"reservations"===e.type))||void 0===n?void 0:n.map(e=>e.email))||[],N=null==o?void 0:null===(i=o.notifications)||void 0===i?void 0:null===(s=i.find(e=>"reservations"===e.type))||void 0===s?void 0:s.email,_=[...new Set([...y])].filter(e=>e),k=_.length>0?_:[],C=w?[...k,w]:k;async function P(e){var n;e.preventDefault(),x(!0);let l=await (0,b.Z)(String(N),{logo:null==o?void 0:o.name,name:null==o?void 0:o.name,subject:c("email.subject",{name:null==f?void 0:f.name}),title:c("email.subject",{name:null==f?void 0:f.name}),text:[null==f?void 0:f.message,null==f?void 0:f.email,null==f?void 0:f.name],bccs:C,from:null==f?void 0:f.email,fromName:null==f?void 0:f.name}),t=await l.json();x(!1),(null==t?void 0:null===(n=t.data)||void 0===n?void 0:n.id)&&(j({}),m(!0))}return(0,t.jsx)("form",{className:(0,v.cn)("w-full flex flex-col gap-4 bg-white text-neutral-800 translate-y-2 rounded-lg p-4 opacity-0 duration-300 pointer-events-none",{"opacity-100 translate-y-0 pointer-events-auto":d}),onSubmit:P,children:u?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 p-8",children:[(0,t.jsx)("span",{className:"w-8 h-8 flex items-center justify-center border-2 border-green-500 rounded-full",children:(0,t.jsx)(p.Z,{size:20,className:"text-green-500"})}),(0,t.jsx)("h3",{className:"text-sm",children:c("emailForm.success")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)(v.__J,{htmlFor:"name",children:c("emailForm.name")}),(0,t.jsx)(v.IIB,{id:"name",name:"name",className:"bg-white border-neutral-200 text-neutral-800",placeholder:"Nombre completo",onChange:e=>j(n=>({...n,name:e.target.value})),required:!0})]}),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)(v.__J,{children:c("emailForm.email")}),(0,t.jsx)(v.IIB,{className:"bg-white border-neutral-200 text-neutral-800",placeholder:"Correo electr\xf3nico",onChange:e=>j(n=>({...n,email:e.target.value})),required:!0})]}),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsx)(v.__J,{children:c("emailForm.message")}),(0,t.jsx)(v.gxH,{className:"bg-white border-neutral-200 text-neutral-800",placeholder:"Mensaje",onChange:e=>j(n=>({...n,message:e.target.value})),required:!0})]}),(0,t.jsx)(v.zxk,{size:"sm",type:"submit",disabled:h,children:h?(0,t.jsx)(g.Z,{className:"animate-spin",size:16}):c("emailForm.send")})]})})}function w(e){var n;let{website:l}=e,h=(0,a.eR)("support"),x=(0,i.useRouter)(),[p,g]=(0,r.useState)(!1),[b,w]=(0,r.useState)(!1),[y,N]=(0,r.useState)(!1),_=null==l?void 0:null===(n=l.notifications)||void 0===n?void 0:n.find(e=>"whatsapp"===e.type);return(0,t.jsxs)("div",{className:"fixed bottom-8 right-8 flex flex-col items-end gap-4 z-40 w-fit h-fit",children:[(0,t.jsxs)("div",{className:(0,v.cn)("flex flex-col gap-4 opacity-100 duration-300 pointer-events-auto h-auto",{"opacity-0 translate-y-2 pointer-events-none h-0":!p}),children:[(0,t.jsx)(j,{website:l,enableEmail:b}),y&&(0,t.jsx)(f,{}),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2 items-end",children:[(0,t.jsxs)(v.zxk,{className:"w-fit gap-2 border text-md rounded-lg py-3 h-8 bg-neutral-800/80 text-white hover:bg-neutral-800/90",onClick:()=>{x.push("/availability"),g(!1)},children:[h("buttons.book"),(0,t.jsx)(o.Z,{size:14,className:"text-neutral-300"})]}),(0,t.jsxs)(v.zxk,{className:(0,v.cn)("w-fit gap-2 border text-md rounded-lg py-3 h-8 bg-neutral-800/80 text-white hover:bg-neutral-800/90",{"bg-white text-neutral-800 hover:bg-white":b}),onClick:()=>{N(!1),w(!b)},children:[h("buttons.email"),(0,t.jsx)(d.Z,{size:14,className:"text-blue-600"})]}),(0,t.jsx)(s.default,{href:"https://api.whatsapp.com/send/?phone=".concat(null==_?void 0:_.phone,"&type=phone_number&app_absent=0"),target:"_blank",rel:"noopener noreferrer nofollow",children:(0,t.jsxs)(v.zxk,{className:"w-fit gap-2 border text-md rounded-lg py-3 h-8 bg-neutral-800/80 text-white hover:bg-neutral-800/90",children:[h("buttons.whatsapp"),(0,t.jsx)(c.Z,{size:14,className:"text-lime-500"})]})}),(0,t.jsxs)(v.zxk,{className:(0,v.cn)("w-fit gap-2 border text-md rounded-lg py-3 h-8 bg-neutral-800/80 text-white hover:bg-neutral-800/90",{"bg-white text-neutral-800 hover:bg-white":y}),onClick:()=>{N(!y),w(!1)},children:[h("buttons.cancel"),(0,t.jsx)(u.Z,{size:14,className:"text-red-500"})]})]})]}),(0,t.jsx)(v.zxk,{size:"sm",className:(0,v.cn)("w-12 h-12 p-0 gap-2 bg-amber-300 hover:bg-amber-400 border text-amber-950 border-white/30 rounded-full",{"ring ring-amber-100 bg-amber-400":p}),onClick:()=>{g(!p),N(!1),w(!1)},children:p?(0,t.jsx)(u.Z,{size:20,strokeWidth:3}):(0,t.jsx)(m.Z,{size:20,strokeWidth:3})})]})}},62039:function(e,n,l){"use strict";l.d(n,{TrackingCodes:function(){return i}});var t=l(27573),r=l(26863),s=l(23067);function i(e){let{website:n}=e,l=[],r=a(n,"googleAnalyticsv4")||a(n,"googleAnalytics");r&&l.push((0,t.jsx)(s.GoogleAnalytics,{gaId:r},"ga-script"));let i=a(n,"googleTagManager");i&&l.push((0,t.jsx)(s.GoogleTagManager,{gtmId:i},"gtm-script"));let c=a(n,"mixpanel");c&&l.push((0,t.jsx)(d,{code:c},"mixpanel-script"));let u=a(n,"facebookPixel");return u&&l.push((0,t.jsx)(o,{code:u},"facebook-pixel-script")),l}function a(e,n){var l;let t=null==e?void 0:null===(l=e.tracking_codes)||void 0===l?void 0:l.find(e=>e.name===n);return null==t?void 0:t.code}function o(e){let{code:n}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.default,{id:"script-facebook-pixel",strategy:"afterInteractive",children:"!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '".concat(n,"'); fbq('track', 'PageView');")})})}function d(e){let{code:n}=e;return(0,t.jsx)(r.default,{id:"script-mixpanel",strategy:"afterInteractive",async:!0,children:'(function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" ");\n    for(h=0;h<i.length;h++)g(a,i[h]);var j="set set_once union unset remove delete".split(" ");a.get_group=function(){function b(c){d[c]=function(){call2_args=arguments;call2=[c].concat(Array.prototype.slice.call(call2_args,0));a.push([e,call2])}}for(var d={},e=["get_group"].concat(Array.prototype.slice.call(arguments,0)),c=0;c<j.length;c++)b(j[c]);return d};b._i.push([e,f,c])};b.__SV=1.2;e=f.createElement("script");e.type="text/javascript";e.async=!0;e.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?\n    MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\\/\\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]);\n    mixpanel.init(\''.concat(n,"', {debug: false});\n    // mixpanel.track('Sign up');")})}},48687:function(e,n,l){"use strict";l.d(n,{Z:function(){return s}});var t=l(27573),r=l(96504);function s(e){let{children:n,className:l,style:s}=e;return(0,t.jsx)("div",{className:(0,r.cn)("max-w-7xl mx-auto px-4 w-full",l),style:s,children:n})}},13299:function(e,n,l){"use strict";function t(e,n){return(null==e?void 0:e.includes("gh-onboarding"))||(null==e?void 0:e.includes("travelapi.com"))?e:(null==e?void 0:e.replace(/rs:fill:\d+:\d+/,"rs:fill:".concat(n)))+".webp"}l.d(n,{p:function(){return t}})},68056:function(e,n,l){"use strict";async function t(e,n){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"generic";return await fetch("/api/deprecated/send-email?type=".concat(l,"&to=").concat(e?encodeURIComponent(e):void 0),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}l.d(n,{Z:function(){return t}})},49620:function(e,n,l){"use strict";l.d(n,{useTranslationClient:function(){return o}});var t=l(23579),r=l(42349),s=l(65474),i=l(52682),a=l(48576);function o(e,n,l){return t.ZP.resolvedLanguage!==e&&t.ZP.changeLanguage(e),(0,r.$G)(n,l)}t.ZP.use(r.Db).use(i.Z).use((0,s.Z)((e,n)=>l(58468)("./".concat(e,"/").concat(n,".json")))).init({...(0,a.FW)(),lng:void 0,detection:{order:["path","htmlTag","cookie","navigator"]}})},48576:function(e,n,l){"use strict";l.d(n,{FW:function(){return s}});let t=["en","es"],r="rooms";function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return{supportedLngs:t,fallbackLng:"en",lng:e,fallbackNS:r,defaultNS:r,ns:n}}},77687:function(){}},function(e){e.O(0,[6424,5795,9587,2044,7659,2866,2992,6155,7197,4815,2776,8590,8608,6580,4251,7795,8283,6504,6835,9668,9231,8134,5861,6229,8962,1440,7966,1293,286,1744],function(){return e(e.s=88967)}),_N_E=e.O()}]);