1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[120],{5759:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slug]]",function(){return l(7901)}])},7901:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return li},default:function(){return ls}});var a,i,s,r,n,c=l(5893),d=l(8130),o=l(2261),x=l(7294),m=l(9304),p=l(6340),u=l(6198),h=l(3967),g=l.n(h);let b=e=>{let{children:t,variant:l="dark",cardSize:a="medium",id:i}=e,s=(0,x.useRef)(),r="small"===a,n="medium"===a;return(0,c.jsxs)("div",{children:[(0,c.jsx)(o.tq,{className:"w-full",slidesPerView:r?1.3:1.15,spaceBetween:r?16:8,breakpoints:{768:{slidesPerView:r?2.5:2.3},1024:{slidesPerView:r?3.5:2.7,spaceBetween:16},1280:{slidesPerView:r?4.25:n?3.25:2.8},1440:{slidesPerView:r||n?4.25:3.75},1920:{slidesPerView:r?5.65:n?4.25:3.5,spaceBetween:r?24:16}},modules:[m.W_,m.LW],onBeforeInit:e=>{s.current=e},scrollbar:{draggable:!0,el:".scroll-container-".concat(i)},children:x.Children.map(t,e=>(0,c.jsx)(o.o5,{className:"!h-auto",children:e}))}),(0,c.jsxs)("div",{className:"mt-8 flex items-center gap-x-4 text-new-blue-light",children:[(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.slidePrev()},className:"flex","aria-label":"Previous slide",children:[(0,c.jsx)(p.Z,{width:6}),(0,c.jsx)(p.Z,{width:6})]}),(0,c.jsx)("div",{className:g()({"text-black":"dark"===l,"text-white":"light"===l}),children:"â¢"}),(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.slideNext()},className:"flex","aria-label":"Next slide",children:[(0,c.jsx)(u.Z,{width:6}),(0,c.jsx)(u.Z,{width:6})]}),(0,c.jsx)("div",{className:"scroll-container-".concat(i," h-[2px] flex-grow bg-light-grey")})]})]})};var v=l(5188),j=l(5675),f=l.n(j),w=l(1664),N=l.n(w);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}var _=function(e){return x.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 9"},e),a||(a=x.createElement("path",{fill:"currentColor",d:"M10.8 4.87A3.933 3.933 0 0 0 6.87.941C3.51.941.971 4.513.864 4.665a.36.36 0 0 0 0 .41c.107.152 2.646 3.724 6.007 3.724A3.933 3.933 0 0 0 10.8 4.87m-2.5 0a1.429 1.429 0 1 1-2.858 0 1.429 1.429 0 0 1 2.858 0"})))},k=l(165),C=l(1767);let S=e=>(0,c.jsxs)(N(),{className:g()("transition-background-color group flex h-full flex-col pb-6 pl-4 pr-4 pt-4 text-white duration-500 hover:bg-opacity-75 xl:pb-8 xl:pl-6 xl:pt-6",{"bg-tweedsmuir-lodge":"tweedsmuir"===e.brand,"bg-mv-cascadia":"cascadia"===e.brand,"bg-pantheon-heli-ranch":"pantheon"===e.brand,"bg-sand-creek-ranch":"sand-creek"===e.brand,"bg-whistler":"whistler"===e.brand,"bg-eagle-lodge":"eagle-lodge"===e.brand}),href:e.cta.href,children:[(0,c.jsxs)("div",{className:"mb-6 flex items-start lg:mb-8",children:[e.image&&(0,c.jsx)("div",{className:"relative aspect-[123/160] w-full overflow-hidden lg:aspect-[131/160] xl:aspect-[147/160] 3xl:aspect-[357/389]",children:(0,c.jsx)(f(),{src:e.image.src,alt:e.image.alt,fill:!0,className:"object-cover object-center transition-transform duration-500 group-hover:scale-110",sizes:"(min-width: 1920px) 17vw, (min-width: 1280px) 24vw, (min-width: 768px) 32vw, 75vw"})}),e.location&&(0,c.jsxs)("div",{className:"ml-2 flex items-center gap-x-2 whitespace-nowrap text-[13px] font-semibold uppercase leading-[0.5]",style:{writingMode:"vertical-rl",textOrientation:"mixed"},children:[(0,c.jsx)(_,{width:8}),e.location]})]}),(0,c.jsxs)("div",{className:"flex items-start gap-x-4 lg:mb-4",children:[(0,c.jsx)(v.Z,{width:"1em",className:"mt-1.5"}),(0,c.jsx)(k.sn,{children:e.title})]}),(0,c.jsx)("table",{className:"mt-auto w-full text-[13px] uppercase",children:(0,c.jsxs)("tbody",{children:[e.capacity&&(0,c.jsxs)(D,{children:[(0,c.jsx)(E,{children:"Capacity"}),(0,c.jsx)("td",{className:"flex items-center gap-x-2",children:e.capacity})]}),e.rooms&&(0,c.jsxs)(D,{children:[(0,c.jsx)(E,{children:"Rooms"}),(0,c.jsx)("td",{children:e.rooms})]}),e.lodging&&(0,c.jsxs)(D,{children:[(0,c.jsx)(E,{children:"Lodging"}),(0,c.jsx)("td",{children:(0,C.N)(e.lodging)})]}),e.helicopter&&(0,c.jsxs)(D,{children:[(0,c.jsx)(E,{children:"Helicopter"}),(0,c.jsx)("td",{children:e.helicopter})]})]})})]}),D=e=>(0,c.jsx)("tr",{className:"flex justify-between border-b border-white/50 py-4 leading-3 last:border-b-0 last:pb-0",children:e.children}),E=e=>(0,c.jsx)("th",{className:"font-thin tracking-widest",children:e.children});var A=l(7987),P=l(3594);let R=e=>{let{ctas:t,pretitle:l,pretitleElement:a="span",title:i,titleElement:s="h2",body:r,variant:n="dark",className:d,containerSize:o="normal"}=e,x=l||i||r||!!(null==t?void 0:t.length);return(0,c.jsx)("div",{className:g()("px-8 empty:p-0 md:px-12 lg:px-16 xl:px-20",{"text-black":"dark"===n,"text-white":"light"===n,"3xl:px-[148px]":"normal"===o,"3xl:px-[100px]":"small"===o},d),children:x&&(0,c.jsxs)("div",{className:"pb-12 empty:hidden lg:grid lg:grid-cols-[1.4fr,1fr] lg:gap-x-10 xl:gap-x-20 3xl:gap-x-[160px]",children:[(0,c.jsxs)("div",{className:"mb-6 self-center last:mb-0 lg:mb-0",children:[l&&(0,c.jsxs)("div",{className:"mb-6 flex items-center gap-x-2 lg:gap-x-4",children:[(0,c.jsx)(v.Z,{className:"xl:2-6 w-4 flex-shrink-0 animate-spin-slow lg:w-[18px]"}),(0,c.jsx)(k.j4,{as:a,children:l})]}),i&&(0,c.jsx)(A.H2,{as:s,children:i})]}),(r||!!(null==t?void 0:t.length))&&(0,c.jsxs)("div",{className:"self-center",children:[r&&(0,c.jsx)(k.CK,{className:"mb-8 last:mb-0 3xl:mb-10",as:"div",children:(0,C.N)(r)}),t&&!!t.length&&(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-4",children:t.map((e,l)=>(0,c.jsx)(P.z,{as:N(),href:e.href,variant:l%2==0&&t.length>1?"primary":"link",className:g()({"text-white":"light"===n}),children:e.title},"".concat(e.title).concat(e.href)))})]})]})})};var M=l(3137);let U=e=>{let{id:t,slides:l,title:a,titleElement:i,pretitle:s,pretitleElement:r,body:n,ctas:d}=e;return(0,c.jsxs)("div",{children:[(0,c.jsx)(M.t,{className:"text-deep-blue"}),(0,c.jsxs)("div",{className:"bg-deep-blue py-12 text-white",children:[(0,c.jsx)(R,{title:a,pretitle:s,pretitleElement:r,titleElement:i,body:n,ctas:d,variant:"light",containerSize:"small"}),(0,c.jsx)("div",{className:"pl-8 md:pl-12 lg:pl-16 xl:pl-20 3xl:pl-[100px]",children:(0,c.jsx)(b,{id:t,cardSize:"medium",variant:"light",children:l.map(e=>(0,c.jsx)(S,{...e},e.id))})})]})]})};var L=l(8075),z=l(7030);let T=e=>e.map(L.M).filter(z.EN),F=(e,t)=>({src:t&&e.sizes[t]?e.sizes[t]:e.url,alt:e.alt}),B=e=>{let{layout:t,index:l}=e;return(0,c.jsx)(U,{id:"destinations-carousel-".concat(l),title:t.title_content,pretitleElement:t.pretitle_heading,titleElement:t.title_heading,pretitle:t.pretitle_content,body:t.content,ctas:t.link_array?T(t.link_array):[],slides:Array.isArray(t.fullDestinations)?t.fullDestinations.map(e=>{var t,l;return{title:e.title.rendered,id:e.id.toString(),image:Array.isArray(e.acf.gallery)&&e.acf.gallery[0]?F(e.acf.gallery[0]):void 0,cta:{href:e.link,title:""},brand:e.acf.branding,rooms:e.acf.rooms,capacity:e.acf.capacity,helicopter:e.acf.helicopter,lodging:null===(t=e.lodgings)||void 0===t?void 0:t.map(e=>e.name).join(", "),location:null===(l=e.destinationTypes)||void 0===l?void 0:l.map(e=>e.name).join(", ")}}):[]})};var I=l(7398),G=l(7249);let Z=e=>{var t;return(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)(f(),{fill:!0,src:"/_next/static/media/trees.e06ad1a5.jpeg",alt:"Aerial shot of snow covered forest",className:"object-cover object-center opacity-30"}),(0,c.jsx)("div",{className:"absolute inset-0 bg-white/30 bg-[radial-gradient(#F2F2F2,transparent)]"}),(0,c.jsxs)("div",{className:"relative flex flex-col px-8 pb-12 pt-20 text-black md:px-[120px] md:pb-[104px] lg:flex-row lg:gap-x-12 lg:pb-[120px] lg:pt-[104px] xl:gap-x-16 xl:px-40 3xl:gap-x-48 3xl:py-[164px]",children:[(0,c.jsxs)("div",{className:"mb-[44px] flex flex-grow flex-col lg:mb-0",children:[e.pretitle&&(0,c.jsxs)("div",{className:"mb-6 flex items-center gap-x-2",children:[(0,c.jsx)(v.Z,{width:16,className:"animate-spin-slow"}),e.pretitle&&(0,c.jsx)(k.j4,{as:e.pretitleElement,children:e.pretitle})]}),(0,c.jsx)("div",{children:e.title&&(0,c.jsx)(A.H3,{as:null!==(t=e.titleElement)&&void 0!==t?t:"h2",className:"mb-6",children:e.title})}),e.ctas&&(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-4",children:e.ctas.map((e,t,l)=>(0,c.jsx)(P.z,{as:N(),variant:t%2==0&&l.length>1?"primary":"link",href:e.href,target:e.target,children:e.title},e.href))})]}),(0,c.jsx)("div",{className:"lg:w-[65%] xl:w-[56%]",children:(0,c.jsx)(I.fC,{type:"multiple",children:e.items.map((e,t)=>(0,c.jsxs)(I.ck,{value:e.title,className:"border-b border-black first:border-t",children:[(0,c.jsx)(I.h4,{children:(0,c.jsxs)(I.xz,{className:"group flex w-full flex-wrap items-center justify-between py-6 text-left text-lg font-medium md:justify-start",children:[(0,c.jsx)("span",{className:"mb-4 w-full text-[15px] text-grey md:mb-0 md:mr-4 md:w-auto xl:mr-8 3xl:mr-[104px]",children:(t+1).toString().padStart(2,"0")}),(0,c.jsx)("div",{className:"md:mr-20 lg:mr-6 xl:mr-8",children:(0,C.N)(e.title)}),(0,c.jsx)("div",{className:"transition-transform group-data-[state=open]:rotate-180 md:ml-auto",children:(0,c.jsx)(G.Z,{width:8})})]})}),(0,c.jsx)(I.VY,{className:"overflow-hidden pb-8 text-xl font-light data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down",children:"string"==typeof e.content?(0,C.N)(e.content):e.content})]},e.title))})})]})]})},O=e=>{let{layout:t}=e;return(0,c.jsx)(Z,{title:t.title_content,titleElement:t.title_heading,pretitle:t.pretitle_content,pretitleElement:t.pretitle_heading,ctas:t.link_array?T(t.link_array):void 0,items:Array.isArray(t.fullFaqs)?t.fullFaqs.map(e=>({title:e.title.rendered,content:e.acf.answer})):[]})},H=e=>{let{id:t,images:l,cta:a}=e,i=(0,x.useRef)();return(0,c.jsxs)("div",{children:[(0,c.jsx)(o.tq,{centeredSlides:!0,loop:!0,className:"w-full",slidesPerView:1.25,spaceBetween:8,breakpoints:{768:{slidesPerView:1.7,spaceBetween:16},1024:{slidesPerView:2},1280:{slidesPerView:2.6}},modules:[m.W_,m.LW],onBeforeInit:e=>{i.current=e},scrollbar:{draggable:!0,el:".scroll-container-".concat(t)},children:l.map(e=>(0,c.jsx)(o.o5,{className:"overflow-hidden",children:(0,c.jsx)("div",{className:"relative aspect-[37/45] overflow-hidden md:aspect-[11/9] lg:aspect-[11/10] xl:aspect-[13/10] 3xl:aspect-[743/550]",children:(0,c.jsx)(f(),{fill:!0,src:e.src,alt:e.alt,className:"object-cover object-center",sizes:"(min-width: 1280px) 38vw, (min-width: 1024px) 49vw, (min-width: 768px) 58vw, 80vw"})})},e.src))}),(0,c.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-x-4 px-8 text-new-blue-light md:mt-6 md:px-12 lg:px-16 xl:mt-8 xl:px-[76px]",children:[a&&(0,c.jsx)(P.z,{as:N(),href:a.href,target:a.target,children:a.title}),(0,c.jsx)("div",{className:"scroll-container-".concat(t," hidden h-[2px] flex-grow overflow-hidden bg-light-grey md:block")}),(0,c.jsxs)("div",{className:"flex items-center gap-x-2 md:gap-x-4",children:[(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.slidePrev()},className:"flex","aria-label":"Previous slide",children:[(0,c.jsx)(p.Z,{width:6}),(0,c.jsx)(p.Z,{width:6})]}),(0,c.jsx)("div",{className:"text-black",children:"â¢"}),(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.slideNext()},className:"flex","aria-label":"Next slide",children:[(0,c.jsx)(u.Z,{width:6}),(0,c.jsx)(u.Z,{width:6})]})]})]})]})},K=e=>{let{layout:t,index:l}=e;return(0,c.jsx)(H,{id:l.toString(),images:Array.isArray(t.gallery)?t.gallery.map(e=>F(e)):[],cta:Array.isArray(t.link_array)&&t.link_array[0]?(0,L.M)(t.link_array[0]):void 0})};var V=l(2298);function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}var q=function(e){return x.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 9"},e),i||(i=x.createElement("path",{fill:"currentColor",d:"M.913 4.255.588 3.93l-.324.325.324.326zm.325.326L4.914.906l-.65-.65L.588 3.93zm-.65 0 3.675 3.674.65-.65L1.24 3.93zm.325.134h11.484v-.919H.913z"})))},Y=l(4646);let X=e=>{var t,l;let a=(0,x.useRef)();return(0,c.jsxs)("div",{className:"w-full lg:flex lg:min-h-[520px] 3xl:min-h-[663px]",children:[(0,c.jsxs)("div",{className:g()("relative flex flex-shrink-0 lg:w-[51%] 3xl:w-[56%]",{"lg:order-2":"right"===e.orientation}),children:[(0,c.jsx)("div",{className:g()("h-full w-full",{"border-[16px] md:border-[24px] xl:border-[32px] 3xl:border-[43px]":e.brand,"border-tweedsmuir-lodge":"tweedsmuir"===e.brand,"border-mv-cascadia":"
1cascadia"===e.brand,"border-pantheon-heli-ranch":"pantheon"===e.brand,"border-sand-creek-ranch":"sand-creek"===e.brand,"border-whistler":"whistler"===e.brand,"border-eagle-lodge":"eagle-lodge"===e.brand}),children:(0,c.jsx)(o.tq,{className:"h-full",loop:!0,modules:[m.W_],onBeforeInit:e=>{a.current=e},children:e.images.map((e,t)=>(0,c.jsx)(o.o5,{children:(0,c.jsx)("div",{className:"relative aspect-[41/46] md:aspect-[15/11] lg:aspect-auto lg:h-full",children:(0,c.jsx)(f(),{src:e.src,alt:e.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1024px) 38vw, (min-width: 768px) 63vw, 92vw"})})},t))})}),e.brand&&e.images.length>1&&(0,c.jsxs)("div",{className:"absolute bottom-0 z-10 flex w-full justify-between text-white lg:bottom-auto lg:right-0 lg:top-1/2 lg:w-auto lg:-translate-y-1/2 lg:flex-col lg:justify-start lg:gap-y-2 xl:right-2 3xl:right-[18px]",children:[(0,c.jsx)(J,{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.slidePrev()},brand:e.brand,"aria-label":"Previous slide",children:(0,c.jsx)(q,{width:12})}),(0,c.jsx)(J,{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.slideNext()},brand:e.brand,"aria-label":"Next slide",children:(0,c.jsx)(V.Z,{width:12})})]})]}),(0,c.jsxs)("div",{className:"bg-white p-8 pb-10 md:p-10 lg:flex-grow xl:px-12 xl:py-10 3xl:p-16 3xl:pl-20",children:[!!(null===(t=e.locations)||void 0===t?void 0:t.length)&&(0,c.jsxs)("div",{className:"mb-3 flex items-center gap-x-4",children:[(0,c.jsx)(Y.J,{name:"location-pin",width:13,className:g()({"text-tweedsmuir-lodge":"tweedsmuir"===e.brand||!e.brand,"text-mv-cascadia":"cascadia"===e.brand,"text-pantheon-heli-ranch":"pantheon"===e.brand,"text-sand-creek-ranch":"sand-creek"===e.brand,"text-whistler":"whistler"===e.brand,"text-eagle-lodge":"eagle-lodge"===e.brand})}),(0,c.jsx)("div",{className:"flex items-center",children:null===(l=e.locations)||void 0===l?void 0:l.map(e=>(0,c.jsxs)("div",{className:"group flex items-center text-[13px] font-semibold",children:[(0,c.jsx)("p",{className:"uppercase text-grey",children:e}),(0,c.jsx)("p",{className:"mx-2 text-new-blue-light group-last:hidden",children:"|"})]},e))})]}),e.title&&(0,c.jsx)(k.sn,{className:"mb-6 text-black",children:(0,C.N)(e.title)}),e.body&&(0,c.jsx)("div",{className:"mb-6",children:(0,C.N)(e.body)}),(0,c.jsx)("div",{className:"mb-8",children:e.content}),e.ctas&&(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-4 xl:gap-x-14",children:e.ctas.map((t,l)=>(0,c.jsx)(P.z,{brand:e.brand,as:N(),href:t.href,target:t.target,variant:l%2==0?"primary":"link",children:t.title},t.title))})]})]})},J=e=>{let{brand:t,onClick:l,children:a,...i}=e;return(0,c.jsx)("button",{onClick:l,className:g()("flex h-[40px] w-[40px] items-center justify-center rounded-full xl:h-[48px] xl:w-[48px] xl:[&>svg]:w-[14px]",{"bg-tweedsmuir-lodge":"tweedsmuir"===t,"bg-mv-cascadia":"cascadia"===t,"bg-pantheon-heli-ranch":"pantheon"===t,"bg-sand-creek-ranch":"sand-creek"===t,"bg-whistler":"whistler"===t,"bg-eagle-lodge":"eagle-lodge"===t}),...i,children:a})},Q=e=>{let{body:t,ctas:l,items:a,pretitle:i,title:s,titleElement:r,pretitleElement:n,hideDecoration:d}=e;return(0,c.jsxs)("div",{children:[!d&&(0,c.jsx)(M.t,{className:"text-snow"}),(0,c.jsx)("div",{className:"py-t bg-snow 3xl:pt-20",children:(0,c.jsx)(R,{body:t,ctas:l,pretitle:i,title:s,pretitleElement:n,titleElement:r})}),(0,c.jsx)("div",{className:"flex flex-col gap-y-8 bg-snow p-4 pb-20 md:gap-y-14 md:px-[120px] 3xl:gap-y-20 3xl:px-60",children:a.map((e,t)=>(0,c.jsx)(X,{...e,orientation:t%2==0?"left":"right"},e.id))})]})};var $=l(5319),ee=l(370),et=l(3427),el=l(81);let ea=e=>(0,c.jsxs)("div",{children:[(0,c.jsx)("table",{className:"mb-14 w-full uppercase",children:(0,c.jsxs)("tbody",{children:[(0,c.jsxs)(ei,{children:[(0,c.jsx)(es,{children:"Ability Level"}),(0,c.jsxs)("td",{className:"flex items-center gap-x-2",children:[e.abilityLevel.beginner&&(0,c.jsx)($.Z,{width:8,className:"text-beginner-green"}),e.abilityLevel.intermediate&&(0,c.jsx)(ee.Z,{width:8,className:"text-intermediate-blue"}),e.abilityLevel.advanced&&(0,c.jsx)(et.Z,{width:8,className:"text-black"}),e.abilityLevel.expert&&(0,c.jsx)(el.Z,{width:12,className:"text-black"})]})]}),e.nights&&(0,c.jsxs)(ei,{children:[(0,c.jsx)(es,{children:"Nights"}),(0,c.jsx)("td",{children:(0,c.jsx)(k.j4,{children:e.nights})})]}),e.groupSize&&(0,c.jsxs)(ei,{children:[(0,c.jsx)(es,{children:"Group Size"}),(0,c.jsx)("td",{children:(0,c.jsx)(k.j4,{children:e.groupSize})})]}),e.groupsPerHeli&&(0,c.jsxs)(ei,{children:[(0,c.jsx)(es,{children:"Groups Per Helicopter"}),(0,c.jsx)("td",{children:(0,c.jsx)(k.j4,{children:e.groupsPerHeli})})]})]})}),(0,c.jsxs)("div",{className:"flex flex-wrap gap-x-8 gap-y-4 md:gap-x-14",children:[e.inquireUrl&&(0,c.jsx)(P.z,{as:N(),href:e.inquireUrl,variant:"primary",children:"Explore Availability"}),(0,c.jsx)(P.z,{variant:"secondary",as:N(),href:e.url,children:"View Details"})]})]}),ei=e=>(0,c.jsx)("tr",{className:"flex justify-between border-b border-text-grey/50 py-4 leading-3 last:border-b-0",children:e.children}),es=e=>(0,c.jsx)("th",{className:"font-normal",children:(0,c.jsx)(k.j4,{children:e.children})}),er=e=>
1(0,c.jsxs)("div",{children:[(0,c.jsx)("table",{className:"mb-14 w-full uppercase",children:(0,c.jsxs)("tbody",{children:[e.capacity&&(0,c.jsxs)(en,{children:[(0,c.jsx)(ec,{children:"Capacity"}),(0,c.jsx)(ed,{children:(0,c.jsx)(k.j4,{children:e.capacity})})]}),e.rooms&&(0,c.jsxs)(en,{children:[(0,c.jsx)(ec,{children:"Rooms"}),(0,c.jsx)(ed,{children:(0,c.jsx)(k.j4,{children:e.rooms})})]}),e.lodging&&(0,c.jsxs)(en,{children:[(0,c.jsx)(ec,{children:"Lodging"}),(0,c.jsx)(ed,{children:(0,c.jsx)(k.j4,{children:(0,C.N)(e.lodging)})})]}),e.helicopter&&(0,c.jsxs)(en,{children:[(0,c.jsx)(ec,{children:"Helicopter"}),(0,c.jsx)(ed,{children:(0,c.jsx)(k.j4,{children:e.helicopter})})]}),e.terrain&&(0,c.jsxs)(en,{children:[(0,c.jsx)(ec,{children:"Terrain Details"}),(0,c.jsx)(ed,{children:(0,c.jsx)(k.j4,{children:e.terrain})})]}),e.packages&&(0,c.jsxs)(en,{className:"flex-wrap",children:[(0,c.jsx)(ec,{children:"Packages Available"}),(0,c.jsx)(ed,{className:"mt-2 w-full !text-left",children:(0,c.jsx)(k.j4,{className:"capitalize",children:e.packages.join(", ")})})]})]})}),(0,c.jsxs)("div",{className:"flex flex-wrap gap-x-8 gap-y-4 md:gap-x-14",children:[e.inquireUrl&&(0,c.jsx)(P.z,{href:"".concat(e.inquireUrl,"?accordion-active-item=").concat(e.brand),as:N(),variant:"primary",brand:e.brand,children:"Explore Availability"}),(0,c.jsx)(P.z,{variant:"secondary",brand:e.brand,as:N(),href:e.url,children:"View Details"})]})]}),en=e=>(0,c.jsx)("tr",{className:g()("flex justify-between border-b border-text-grey/50 py-4 leading-3 last:border-b-0 last:pb-0",e.className),children:e.children}),ec=e=>(0,c.jsx)("th",{className:"text-nowrap pr-4 text-left font-normal",children:(0,c.jsx)(k.j4,{children:e.children})}),ed=e=>(0,c.jsx)("td",{className:g()("text-right",e.className),children:e.children}),eo=e=>{var t;let{layout:l,inquireUrl:a}=e,i="packages"===l.post_type?l.fullPackages:l.fullDestinations;return(0,c.jsx)(Q,{title:l.title_content,titleElement:l.title_heading,pretitle:l.pretitle_content,pretitleElement:l.pretitle_heading,body:l.content,hideDecoration:l.hide_decoration,ctas:Array.isArray(l.link_array)?T(l.link_array):void 0,items:null!==(t=null==i?void 0:i.map((e,t)=>{var l,i,s;switch(e.type){case"cpt_packages":return{id:e.id.toString(),orientation:t%2==0?"left":"right",images:e.acf.image?[F(e.acf.image)]:[],title:e.title.rendered,body:e.acf.short_description,ctas:Array.isArray(e.acf.link_array)?T(e.acf.link_array):void 0,locations:null===(l=e.locations)||void 0===l?void 0:l.map(e=>e.name),content:(0,c.jsx)(ea,{abilityLevel:{beginner:e.acf.ability_level.includes("beginner"),intermediate:e.acf.ability_level.includes("intermediate"),advanced:e.acf.ability_level.includes("advanced"),expert:e.acf.ability_level.includes("expert")},nights:e.acf.nights,groupSize:e.acf.group_size,groupsPerHeli:e.acf.group_per_helicopter,url:e.link,inquireUrl:a})};case"cpt_destinations":return{id:e.id.toString(),orientation:t%2==0?"left":"right",images:Array.isArray(e.acf.gallery)?e.acf.gallery.map(e=>F(e)):[],brand:e.acf.branding,locations:null===(i=e.destinationTypes)||void 0===i?void 0:i.map(e=>e.name),title:e.title.rendered,body:e.acf.short_description,ctas:Array.isArray(e.acf.link_array)?T(e.acf.link_array):void 0,content:(0,c.jsx)(er,{capacity:e.acf.capacity,rooms:e.acf.rooms,helicopter:e.acf.helicopter,terrain:e.acf.terrain_details,packages:e.acf.Packages?e.acf.Packages.map(e=>e.post_title):void 0,brand:e.acf.branding,url:e.link,lodging:null===(s=e.lodgings)||void 0===s?void 0:s.map(e=>e.name).join(", "),inquireUrl:a})}}}))&&void 0!==t?t:[]})};var ex=l(9908);let em=e=>{let{layout:t}=e;return(0,c.jsx)(ex.p,{ctas:Array.isArray(t.link_array)?T(t.link_array):void 0,primaryContent:t.primary_content,secondaryContent:t.secondary_content,alignment:t.content_alignment,hasDecoration:!t.remove_decoration})};function ep(){return(ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}var eu=function(e){return x.createElement("svg",ep({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"},e),s||(s=x.createElement("path",{fill:"currentColor",d:"M10.47 2.104 9.222.866l-3.77 3.8
101-3.77-3.8L.434 2.103l5.018 5.06z"})))},eh=l(1163);let eg="lg:grid-cols-[8%,1fr,10%]",eb=e=>{let{body:t,ctas:l,pretitle:a,title:i,items:s,variant:r="light"}=e,n=(0,x.useRef)(null),{query:d}=(0,eh.useRouter)(),[o,m]=(0,x.useState)([]),p=d["active-accordion-item"],u="string"==typeof p&&s.find(e=>e.id===p)?p:void 0;return(0,x.useEffect)(()=>{if(u){var e;null===(e=n.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}),m([u])}},[u]),(0,c.jsxs)("div",{children:["dark"===r&&(0,c.jsx)(M.t,{className:"text-snow"}),(0,c.jsxs)("div",{className:g()("pb-24 pt-16 md:pb-[100px] md:pt-[72px] 3xl:pb-[148px] 3xl:pt-20",{"bg-snow":"dark"===r}),children:[(0,c.jsx)(R,{title:i,body:t,pretitle:a,ctas:l}),(0,c.jsx)(I.fC,{type:"multiple",value:o,onValueChange:m,children:s.map((e,t)=>{var l;return(0,c.jsxs)(I.ck,{value:null!==(l=e.id)&&void 0!==l?l:e.title,className:g()("group border-b border-[#D9D9D9] text-black transition-colors",{"data-[state=open]:text-white":e.brand,"data-[state=open]:bg-tweedsmuir-lodge":"tweedsmuir"===e.brand,"data-[state=open]:bg-pantheon-heli-ranch":"pantheon"===e.brand,"data-[state=open]:bg-whistler":"whistler"===e.brand,"data-[state=open]:bg-mv-cascadia":"cascadia"===e.brand,"data-[state=open]:bg-eagle-lodge":"eagle-lodge"===e.brand,"data-[state=open]:bg-sand-creek-ranch":"sand-creek"===e.brand}),children:[(0,c.jsx)(I.h4,{className:"data-[state=closed]:bg-white",children:(0,c.jsxs)(I.xz,{className:g()("group flex w-full flex-wrap items-center justify-between bg-gradient-to-r from-50% to-50% bg-[length:200%_100%] bg-[100%_0%] p-8 text-left transition-[background-position] duration-700 data-[state=closed]:from-white data-[state=closed]:to-white data-[state=closed]:hover:from-black data-[state=closed]:hover:bg-[0%_0%] data-[state=closed]:hover:text-white lg:grid lg:px-16 lg:py-10 xl:px-20 xl:py-12 3xl:items-center 3xl:px-[148px] 3xl:py-16",eg),children:[(0,c.jsxs)("div",{ref:e.id===u?n:void 0,className:"mb-[18px] flex w-full scroll-mt-20 items-center gap-x-2 lg:mb-0 lg:w-auto lg:scroll-mt-52 lg:gap-x-[18px]",children:[(0,c.jsx)("div",{className:g()("h-[1px] w-4 bg-grey transition-colors group-data-[state=closed]:group-hover:bg-white lg:w-6",{"group-data-[state=open]:bg-current-color":e.brand})}),(0,c.jsx)("span",{className:g()("block font-medium text-grey transition-colors group-data-[state=closed]:group-hover:text-white",{"group-data-[state=open]:text-current-color":e.brand}),children:(t+1).toString().padStart(2,"0")})]}),(0,c.jsx)("span",{className:"w-10/12 text-2xl font-semibold uppercase md:text-[32px] lg:text-[40px] 3xl:text-[64px]",children:e.title}),(0,c.jsxs)("div",{className:g()("mb-1.5 flex h-6 w-6 flex-shrink-0 flex-col items-center justify-center justify-self-end rounded-full border border-black text-black transition-transform group-hover:transition-[transform,border-color,color] group-data-[state=open]:rotate-180 group-data-[state=closed]:group-hover:border-white group-data-[state=closed]:group-hover:text-white group-data-[state=closed]:group-hover:duration-1000 lg:mb-0 lg:h-10 lg:w-10 3xl:h-14 3xl:w-14",{"group-data-[state=open]:border-white group-data-[state=open]:text-white":e.brand}),children:[(0,c.jsx)(eu,{className:"w-1 lg:w-2"}),(0,c.jsx)(eu,{className:"-mt-[1px] w-1 lg:-mt-0.5 lg:w-2"})]})]})}),(0,c.jsxs)(I.VY,{className:g()("overflow-hidden px-8 data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down data-[state=open]:pb-8 lg:grid lg:px-16 lg:data-[state=open]:pb-10 xl:px-20 xl:data-[state=open]:pb-12 3xl:items-center 3xl:px-[148px] 3xl:data-[state=open]:pb-16",eg),children:[(0,c.jsx)("div",{}),"string"==typeof e.content?(0,c.jsx)("div",{className:g()("font-alt text-2xl leading-normal xl:text-[28px] 3xl:text-[40px]",{"text-grey":!e.brand}),children:(0,C.N)(e.content)}):e.content,(0,c.jsx)("div",{})]})]},e.title)})})]})]})},ev=e=>{let{icon:t,title:l,variant:a="dark",body:i,subtitle:s}=e,r="light"===a,n="dark"===a;return(0,c.jsxs)("div",{className:g()("flex flex-col",{"text-deep-blue":n,"text-white":r}),children:[(0,c.jsxs)("div",{className:g()("flex flex-col border-b pb-6",{"border-light-grey":n,"border-grey-on-blue":r}),children:[t&&(0,c.jsx)(Y.J,{name:t,width:24,className:g()("mb-3",{"text-new-blue-light":"light"===a,"text-new-blue-dark":"dark"===a})}),l&&(0,c.jsx)("p",{className:g()("mb-1 break-words text-2xl font-bold uppercase",{"text-black":n}),children:l}),s&&(0,c.jsx)(k.j4,{children:s})]}),i&&(0,c.jsx)("div",{className:"mt-6 font-light",children:(0,C.N)(i)})]})},ej=e=>{let{className:t,columns:l=3,items:a,variant:i="dark"}=e;return(0,c.jsx)("div",{className:g()("grid grid-cols-1 gap-x-8 gap-y-16 sm:grid-cols-2 md:gap-x-12",{"sm:grid-cols-3 xl:gap-x-[120px]":3===l,"lg:gap-x-16 xl:grid-cols-4":4===l},t),children:a.map(e=>(0,c.jsx)(ev,{...e,variant:i},e.title))})},ef=e=>
1(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:(0,C.N)(e.content)}),e.ctas&&(0,c.jsx)("div",{className:"mt-8 flex flex-wrap gap-x-4 gap-y-4",children:e.ctas.map(e=>(0,c.jsx)(P.z,{target:e.target,as:N(),href:e.href,variant:e.variant,children:e.title},e.href)).filter(z.EN)})]}),ew=e=>{let{layout:t}=e;return(0,c.jsx)(eb,{ctas:Array.isArray(t.link_array)?T(t.link_array):void 0,title:t.title_content,titleElement:t.title_heading,pretitleElement:t.pretitle_heading,body:t.content,pretitle:t.pretitle_content,items:Array.isArray(t.accordions)?t.accordions.map(e=>({title:e.accordion_heading,brand:"none"===e.brand?void 0:e.brand,content:"content"===e.accordion_type?(0,c.jsx)(ef,{content:e.accordion_content,ctas:e.link_array?T(e.link_array):void 0}):(0,c.jsx)(ej,{variant:"none"===e.brand?"dark":"light",items:e.icon_grid?e.icon_grid.map(e=>({title:e.title,subtitle:e.sub_title,icon:e.icons,body:e.content})):[]})})):[]})};var eN=l(162);let ey=e=>{var t;return(0,c.jsxs)(N(),{className:"transition-background-color group flex h-full flex-col bg-deep-blue pb-6 pl-6 pr-4 pt-6 text-white duration-500 hover:bg-opacity-95",href:e.cta.href,children:[(0,c.jsxs)("div",{className:"mb-8 flex items-start",children:[e.image&&(0,c.jsx)("div",{className:"relative aspect-[235/288] w-full overflow-hidden",children:(0,c.jsx)(f(),{src:e.image.src,alt:e.image.alt,fill:!0,className:"object-cover object-center transition-transform duration-500 group-hover:scale-110",sizes:"(min-width: 1920px) 23vw, (min-width: 1280px) 28vw, (min-width: 768px) 32vw, 75vw"})}),(0,c.jsx)("div",{className:"ml-2 flex items-center gap-x-4 whitespace-nowrap text-[13px] font-semibold uppercase leading-[0.5]",style:{writingMode:"vertical-rl",textOrientation:"mixed"},children:null===(t=e.helicopters)||void 0===t?void 0:t.map(t=>(0,c.jsxs)(x.Fragment,{children:[t,(0,c.jsx)(eN.Z,{className:g()({"last:hidden":e.helicopters&&e.helicopters.length>1}),width:16})]},t))})]}),(0,c.jsxs)("div",{className:"mb-4 flex items-start gap-x-4",children:[(0,c.jsx)(v.Z,{width:"1em",className:"mt-1.5"}),(0,c.jsx)(k.sn,{children:(0,C.N)(e.title)})]}),(0,c.jsx)("table",{className:"mt-auto w-full text-[13px] uppercase",children:(0,c.jsxs)("tbody",{children:[(0,c.jsxs)(e_,{children:[(0,c.jsx)(ek,{children:"Ability Level"}),(0,c.jsxs)("td",{className:"flex items-center gap-x-2",children:[e.abilityLevel.beginner&&(0,c.jsx)($.Z,{width:8}),e.abilityLevel.intermediate&&(0,c.jsx)(ee.Z,{width:8}),e.abilityLevel.advanced&&(0,c.jsx)(et.Z,{width:8}),e.abilityLevel.expert&&(0,c.jsx)(el.Z,{width:12})]})]}),e.nights&&(0,c.jsxs)(e_,{children:[(0,c.jsx)(ek,{children:"Nights"}),(0,c.jsx)("td",{children:e.nights})]}),e.groupSize&&(0,c.jsxs)(e_,{children:[(0,c.jsx)(ek,{children:"Group Size"}),(0,c.jsx)("td",{children:e.groupSize})]}),e.groupsPerHeli&&(0,c.jsxs)(e_,{children:[(0,c.jsx)(ek,{children:"Groups Per Helicopter"}),(0,c.jsx)("td",{children:e.groupsPerHeli})]})]})})]})},e_=e=>(0,c.jsx)("tr",{className:"flex justify-between border-b border-white/50 py-4 leading-3 last:border-b-0",children:e.children}),ek=e=>(0,c.jsx)("th",{className:"font-thin tracking-widest",children:e.children}),eC=e=>{let{id:t,slides:l,title:a,titleElement:i,pretitle:s,pretitleElement:r,body:n,ctas:d}=e;return(0,c.jsxs)("div",{className:"py-12",children:[(0,c.jsx)(R,{title:a,titleElement:i,pretitle:s,pretitleElement:r,body:n,ctas:d,containerSize:"small"}),(0,c.jsx)("div",{className:"pl-8 md:pl-12 lg:pl-16 xl:pl-20 3xl:pl-[100px]",children:(0,c.jsx)(b,{id:t,cardSize:"large",children:l.map(e=>(0,c.jsx)(ey,{...e},e.id))})})]})},eS=e=>{var t,l;let{layout:a,index:i}=e;return(0,c.jsx)(eC,{title:a.title_content,titleElement:a.title_heading,pretitle:a.pretitle_content,pretitleElement:a.pretitle_heading,body:a.content,ctas:Array.isArray(a.link_array)?T(a.link_array):void 0,id:i.toString(),slides:null!==(l=null===(t=a.fullPackages)||void 0===t?void 0:t.map(e=>({id:e.id.toString(),title:e.title.rendered,image:e.acf.image?F(e.acf.image):void 0,cta:{href:e.link,title:""},helicopters:e.acf.helicopter.split(","),abilityLevel:{beginner:e.acf.ability_level.includes("beginner"),intermediate:e.acf.ability_level.includes("intermediate"),advanced:e.acf.ability_level.includes("advanced"),expert:e.acf.ability_level.includes("expert")},nights:e.acf.nights,groupSize:e.acf.group_size,groupsPerHeli:e.acf.group_per_helicopter})))&&void 0!==l?l:[]})},eD=e=>{let{body:t,ctas:l,pretitle:a,pretitleElement:i="span",largeImage:s,smallImage:r,title:n,titleElement:d,orientation:o="left",variant:x="dark"}=e;return s||r||n||t||l?(0,c.jsxs)("div",{className:g()("flex flex-col px-6 py-14 text-black md:px-0 lg:grid lg:gap-x-16 lg:px-20 xl:gap-x-20 xl:px-[104px] 3xl:gap-x-36 3xl:px-56 3xl:py-20",{"bg-snow":"dark"===x,"bg-white":"light"===x,"lg:grid-cols-[43%_1fr]":"left"
1===o,"lg:grid-cols-[1fr_43%]":"right"===o}),children:[s&&(0,c.jsx)("div",{className:"relative aspect-[13/15] md:mx-16 md:mb-12 md:aspect-[16/9] lg:mx-0 lg:mb-0 lg:aspect-[21/20] xl:aspect-[79/70]",children:(0,c.jsx)(f(),{src:s.src,alt:s.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1024px) 36vw, (min-width: 768px) 83vw, 93vw"})}),(0,c.jsxs)("div",{className:g()("-order-1 md:order-1",{"lg:order-1":"left"===o,"lg:-order-1":"right"===o}),children:[(0,c.jsxs)("div",{className:g()("mb-10 md:mb-2 md:pl-[104px] md:pr-[140px] lg:mb-10 lg:px-0 lg:pt-10 3xl:pt-24"),children:[a&&(0,c.jsxs)("div",{className:"mb-6 flex gap-x-4 uppercase",children:[(0,c.jsx)(v.Z,{className:"animate-spin-slow",width:24}),(0,c.jsx)(i,{children:a})]}),n&&(0,c.jsx)(A.H3,{className:"mb-8",as:d,children:n}),t&&(0,c.jsx)(k.CK,{className:"mb-6",as:"div",children:(0,C.N)(t)}),l&&(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-4",children:l.map((e,t)=>(0,c.jsx)(P.z,{variant:t%2==0&&l.length>1?"primary":"link",as:N(),href:e.href,target:e.target,children:e.title},e.href))})]}),r&&(0,c.jsx)("div",{className:g()("relative hidden md:ml-auto md:mr-6 md:block md:aspect-[12/11] md:w-1/2 lg:ml-0 lg:mr-0 lg:aspect-[277/260] lg:w-[73%] 3xl:aspect-[409/384] 3xl:w-3/5",{"lg:ml-auto":"right"===o}),children:(0,c.jsx)(f(),{src:r.src,alt:r.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1920px) 22vw, (min-width: 1024px) 30vw, (min-width: 768px) 50vw, 93vw"})})]})]}):null};var eE={src:"/_next/static/media/mountains.87d44158.png"};let eA=e=>{let{body:t,ctas:l,pretitle:a,largeImage:i,titleElement:s,pretitleElement:r,smallImage:n,title:d,orientation:o="left",variant:x="light"}=e;return(0,c.jsxs)("div",{className:g()("relative flex flex-col px-6 py-14 text-black md:px-0 lg:grid lg:gap-x-16 lg:px-20 xl:gap-x-20 xl:px-[104px] 3xl:gap-x-[116px] 3xl:px-56 3xl:py-[104px]",{"bg-white":"light"===x,"bg-snow":"dark"===x,"lg:grid-cols-[38%_1fr]":"left"===o,"lg:grid-cols-[1fr_38%]":"right"===o}),children:["image"===x&&(0,c.jsx)(f(),{src:eE.src,alt:"Mountain range",fill:!0,className:"object-cover object-center"}),i&&(0,c.jsx)("div",{className:"relative aspect-[13/15] md:mx-16 md:mb-12 md:aspect-[16/9] lg:mx-0 lg:mb-0 lg:mt-24 lg:aspect-[21/20] xl:aspect-[322/303]",children:(0,c.jsx)(f(),{src:i.src,alt:i.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1024px) 38vw"})}),(0,c.jsxs)("div",{className:g()("relative z-10 -order-1 md:order-1",{"lg:order-1":"left"
1===o,"lg:-order-1":"right"===o}),children:[(0,c.jsxs)("div",{className:g()("mb-16 md:mb-2 md:pl-[104px] md:pr-[140px] lg:mb-10 lg:px-0 3xl:mb-[104px]"),children:[a&&(0,c.jsxs)("div",{className:"mb-6 flex items-center gap-x-4 uppercase lg:mb-8 lg:gap-x-8",children:[(0,c.jsx)(v.Z,{className:"animate-spin-slow",width:24}),(0,c.jsx)(k.j4,{className:"text-grey",as:r,children:a})]}),d&&(0,c.jsx)(A.H3,{className:"mb-8",as:s,children:d}),t&&(0,c.jsx)("div",{className:"mb-12 font-alt text-2xl font-semibold leading-tight text-grey lg:mb-[72px] lg:text-4xl 2xl:text-5xl 2xl:leading-[1.3] [&_strong]:text-black",children:(0,C.N)(t)}),l&&(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-14 gap-y-6",children:l.map((e,t)=>(0,c.jsx)(P.z,{variant:t%2==0&&l.length>1?"primary":"secondary",as:N(),href:e.href,target:e.target,children:e.title},e.href))})]}),n&&(0,c.jsx)("div",{className:g()("relative hidden w-full md:ml-auto md:mr-6 md:mt-12 md:block md:aspect-[12/11] lg:ml-0 lg:mr-0 lg:aspect-[277/260] 3xl:aspect-[888/635]",{"lg:ml-auto":"right"===o}),children:(0,c.jsx)(f(),{src:n.src,alt:n.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1024px) 62vw"})})]})]})},eP=e=>{let{layout:t}=e;return"default"===t.variations?(0,c.jsx)(eD,{largeImage:t.large_image?F(t.large_image):void 0,smallImage:t.small_image?F(t.small_image):void 0,title:t.title_content,titleElement:t.title_heading,pretitleElement:t.pretitle_heading,pretitle:t.pretitle_content,body:t.content,ctas:Array.isArray(t.link_array)?T(t.link_array):void 0,orientation:t.layout_alignment,variant:"none"===t.background_color?"light":"dark"}):(0,c.jsx)(eA,{largeImage:t.large_image?F(t.large_image):void 0,smallImage:t.small_image?F(t.small_image):void 0,title:t.title_content,titleElement:t.title_heading,pretitleElement:t.pretitle_heading,pretitle:t.pretitle_content,body:t.content,ctas:Array.isArray(t.link_array)?T(t.link_array):void 0,orientation:t.layout_alignment,variant:"none"===t.background_color?"dark":"white"===t.background_color?"light":"image"})},eR=e=>{let{body:t,cta:l,image:a,title:i,variant:s}=e;return(0,c.jsxs)(N(),{className:g()("transition-background-color group block h-full p-4 pt-6 duration-500 hover:bg-opacity-75 lg:p-6 lg:pb-4 3xl:pb-6",{"bg-white":"light"===s,"bg-snow":"dark"===s}),href:l.href,children:[(0,c.jsxs)("p",{className:"mb-6 flex gap-x-4 text-lg font-semibold uppercase text-black lg:text-2xl",children:[(0,c.jsx)(v.Z,{width:16}),i]}),a&&(0,c.jsx)("div",{className:"relative mb-4 aspect-[31/30] overflow-hidden lg:mb-6 lg:aspect-[58/65] 3xl:mb-8 3xl:aspect-[253/285]",children:(0,c.jsx)(f(),{src:a.src,alt:a.alt,fill:!0,className:"object-cover object-center transition-transform duration-500 group-hover:scale-110",sizes:"(min-width: 1920px) 13vw, (min-width: 1280px) 18vw, (min-width: 1024px) 22vw, (min-width: 768px) 33vw, 71vw"})}),t&&(0,c.jsx)("div",{className:"mb-4",children:(0,C.N)(t)}),(0,c.jsx)("div",{className:"flex justify-end text-new-blue-light",children:(0,c.jsx)(V.Z,{width:11})})]})},eM=e=>{let{body:t,ctas:l,id:a,pretitle:i,pretitleElement:s,slides:r,title:n,titleElement:d,variant:o="light"}=e;return(0,c.jsxs)("div",{children:["dark"===o&&(0,c.jsx)(M.t,{className:"text-snow"}),(0,c.jsxs)("div",{className:g()("py-12 xl:py-20",{"bg-snow 3xl:pb-[124px]":"dark"===o,"bg-white":"light"===o}),children:[(0,c.jsx)(R,{title:n,pretitle:i,ctas:l,body:t,titleElement:d,pretitleElement:s}),(0,c.jsx)("div",{className:"pl-4 md:pl-8 lg:pl-10 xl:pl-14 3xl:pl-[100px]",children:(0,c.jsx)(b,{id:a,cardSize:"small",children:r.map(e=>(0,c.jsx)(eR,{...e,variant:"dark"===o?"light":"dark"},e.id))})})]})]})},eU=e=>{let{layout:t,index:l}=e,a=[];return"manual"===t.post_type&&t.manual_cards&&(a=t.manual_cards.map((e,t)=>({title:e.title,image:e.image?F(e.image):void 0,body:e.content,cta:{href:e.link,title:""},id:t.toString()}))),"pages"===t.post_type&&t.fullPages&&(a=t.fullPages.map((e,t)=>({title:e.title.rendered,image:e.acf.card_image?F(e.acf.card_image):void 0,body:e.acf.short_description,cta:{href:e.link,title:""},id:t.toString()}))),(0,c.jsx)(eM,{title:t.title_content,pretitle:t.pretitle_content,body:t.content,variant:"white"===t.brand?"light":"dark",ctas:t.link_array?T(t.link_array):void 0,id:l.toString(),slides:a})},eL=e=>{let t=(0,x.useRef)();return(0,c.jsxs)("div",{className:"bg-top-center relative bg-black pb-16 text-white md:pb-20 xl
1:pb-28 3xl:pb-36",children:[(0,c.jsxs)("div",{className:"pb-20 pt-16 text-center md:pt-20 xl:pt-28 3xl:pt-36",children:[(0,c.jsxs)("div",{className:"mb-16 flex items-center justify-center gap-x-2 lg:gap-x-4",children:[(0,c.jsx)(v.Z,{className:"xl:2-6 w-4 flex-shrink-0 animate-spin-slow lg:w-[18px]"}),(0,c.jsx)(k.j4,{children:"Guest Reviews"})]}),(0,c.jsx)(o.tq,{className:"mx-auto w-full max-w-3xl px-4 sm:px-16 xl:max-w-4xl 3xl:max-w-5xl",slidesPerView:1,modules:[m.W_,m.LW],onBeforeInit:e=>{t.current=e},scrollbar:{draggable:!0,el:".scroll-container-quotes"},children:e.quotes.map((e,t)=>(0,c.jsxs)(o.o5,{children:[(0,c.jsx)("div",{className:"my-0 text-2xl font-semibold uppercase xl:text-[32px]",children:e.title}),(0,c.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,c.jsx)("span",{children:(0,c.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M6.6 25.7419C4.53333 25.7419 2.93333 25.0086 1.8 23.5419C0.733334 22.0752 0.2 19.9086 0.2 17.0419C0.2 14.0419 0.833334 11.2086 2.1 8.54189C3.36667 5.87522 5.23333 3.20856 7.7 0.541894C7.76667 0.475224 7.86667 0.44189 8 0.44189C8.2 0.44189 8.36667 0.54189 8.5 0.741892C8.63333 0.941893 8.63333 1.10856 8.5 1.24189C7.03333 3.30856 6.03333 5.30856 5.5 7.24189C4.96667 9.10856 4.7 11.1752 4.7 13.4419C4.7 15.2419 4.93333 16.7086 5.4 17.8419C5.93333 18.9086 6.63333 19.8419 7.5 20.6419L3.7 21.3419C3.63333 20.2086 3.93333 19.3419 4.6 18.7419C5.26667 18.1419 6.13333 17.8419 7.2 17.8419C8.46667 17.8419 9.43333 18.2086 10.1 18.9419C10.8333 19.6752 11.2 20.6419 11.2 21.8419C11.2 23.1086 10.8 24.0752 10 24.7419C9.2 25.4086 8.06667 25.7419 6.6 25.7419ZM21.3 25.7419C19.2333 25.7419 17.6333 25.0086 16.5 23.5419C15.3667 22.0752 14.8 19.9086 14.8 17.0419C14.8 14.1086 15.4333 11.3086 16.7 8.64189C17.9667 5.97522 19.8333 3.27522 22.3 0.541894C22.3667 0.475224 22.4667 0.44189 22.6 0.44189C22.8 0.44189 22.9667 0.54189 23.1 0.741892C23.2333 0.941893 23.2333 1.10856 23.1 1.24189C21.6333 3.30856 20.6333 5.30856 20.1 7.24189C19.6333 9.10856 19.4 11.1752 19.4 13.4419C19.4 15.2419 19.6333 16.6752 20.1 17.7419C20.5667 18.8086 21.2333 19.7752 22.1 20.6419L18.3 21.3419C18.2333 20.2086 18.5333 19.3419 19.2 18.7419C19.9333 18.1419 20.8333 17.8419 21.9 17.8419C23.1 17.8419 24.0333 18.2086 24.7 18.9419C25.4333 19.6752 25.8 20.6419 25.8 21.8419C25.8 24.4419 24.3 25.7419 21.3 25.7419Z",fill:"white"})})}),(0,c.jsx)("div",{className:"my-12 font-alt text-[20px] font-semibold sm:text-[22px] lg:text-[26px] xl:text-[28px] 3xl:text-[32px]",children:(0,C.N)(e.quote)}),(0,c.jsx)("span",{children:(0,c.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M19.4 0.141897C21.4667 0.141897 23.0667 0.87523 24.2 2.3419C25.2667 3.80856 25.8 5.97523 25.8 8.8419C25.8 11.8419 25.1667 14.6752 23.9 17.3419C22.6333 20.0086 20.7667 22.6752 18.3 25.3419C18.2333 25.4086 18.1333 25.4419 18 25.4419C17.8 25.4419 17.6333 25.3419 17.5 25.1419C17.3667 24.9419 17.3667 24.7752 17.5 24.6419C18.9667 22.5752 19.9667 20.5752 20.5 18.6419C21.0333 16.7752 21.3 14.7086 21.3 12.4419C21.3 10.6419 21.0667 9.17523 20.6 8.0419C20.0667 6.97523 19.3667 6.0419 18.5 5.2419L22.3 4.5419C22.3667 5.67523 22.0667 6.5419 21.4 7.1419C20.7333 7.7419 19.8667 8.0419 18.8 8.0419C17.5333 8.0419 16.5667 7.67523 15.9 6.9419C15.1667 6.20856 14.8 5.2419 14.8 4.0419C14.8 2.77523 15.2 1.80856 16 1.1419C16.8 0.47523 17.9333 0.141897 19.4 0.141897ZM4.7 0.141897C6.76666 0.141897 8.36667 0.87523 9.5 2.3419C10.6333 3.80856 11.2 5.97523 11.2 8.8419C11.2 11.7752 10.5667 14.5752 9.3 17.2419C8.03333 19.9086 6.16667 22.6086 3.7 25.3419C3.63333 25.4086 3.53333 25.4419 3.4 25.4419C3.2 25.4419 3.03333 25.3419 2.9 25.1419C2.76667 24.9419 2.76667 24.7752 2.9 24.6419C4.36666 22.5752 5.36667 20.5752 5.9 18.6419C6.36667 16.7752 6.6 14.7086 6.6 12.4419C6.6 10.6419 6.36667 9.20856 5.9 8.1419C5.43333 7.07523 4.76667 6.10856 3.9 5.2419L7.7 4.5419C7.76667 5.67523 7.46667 6.5419 6.8 7.1419C6.06667 7.7419 5.16667 8.0419 4.1 8.0419C2.9 8.0419 1.96667 7.67523 1.3 6.9419C0.566666 6.20856 0.199999 5.2419 0.199999 4.0419C0.199999 1.4419 1.7 0.141897 4.7 0.141897Z",fill:"white"})})})]}),(0,c.jsxs)("div",{className:"flex items-center justify-center gap-8 text-[13px] uppercase tracking-widest",children:[(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"2",viewBox:"0 0 24 2",fill:"none",children:(0,c.jsx)("path",{d:"M0 0.941895H24",stroke:"white"})}),(0,c.jsx)("span",{children:e.author})]})]},t))}),(0,c.jsxs)("div",{className:"ga-x-2 ml-36 mt-12 flex items-center text-new-blue-light md:gap-x-4",children:[(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.slidePrev()},className:"flex","aria-label":"Previous slide",children:[(0,c.jsx)(p.Z,{width:6}),(0,c.jsx)(p.Z,{width:6})]}),(0,c.jsx)("div",{className:"text-white",children:"â¢"}),(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.slideNext()},className:"flex","aria-label":"Next slide",children:[(0,c.jsx)(u.Z,{width:6}),(0,c.jsx)(u.Z,{width:6})]}),(0,c.jsx)("div",{className:"scroll-container-quotes ml-2 h-[2px] flex-grow bg-[#ffffff33] md:ml-4"})]})]}),(0,c.jsx)(M.t,{className:"absolute bottom-0 w-full"})]})},ez=e=>{let{layout:t}=e;return(0,c.jsx)(eL,{quotes:t.quotes?t.quotes.map(e=>({title:e.quote_title,author:e.author,quote:e.quote_content})):[]})},eT=e=>(0,c.jsx)("div",{className:"px-6 py-8 md:px-8 lg:px-12 xl:px-16 xl:py-20 3xl:px-[224px]",children:(0,c.jsx)(ej,{columns:4,items:e.items})}),eF=e=>(0,c.jsx)("div",{className:"mx-auto grid max-w-[1184px] grid-cols-1 px-8 py-4 md:grid-cols-4 md:gap-y-8 md:p-10 lg:px-24 xl:px-[120px] xl:py-12",children:e.items.map((e,t)=>(0,c.jsxs)(N(),{href:e.cta.href,className:g()("flex items-center gap-x-4 border-b border-black/20 py-6 last:border-b-0 md:flex-col md:justify-center md:gap-x-0 md:gap-y-4 md:border-b-0 md:border-r md:px-6 md:text-center",{"md:border-r-0":(t+1)%4==0}),children:[e.icon&&(0,c.jsx)(Y.J,{name:e.icon,width:24,className:"text-new-blue-light"}),(0,c.jsx)("p",{className:"text-lg font-medium text-deep-blue md:text-xl lg:text-[22px] 3xl:text-2xl",children:e.cta.title}),(0,c.jsx)(V.Z,{className:"ml-auto text-new-blue-light md:ml-0",width:16})]},e.cta.title))}),eB=e=>{let{layout:t}=e;return"icon-grid"===t.variations?(0,c.jsx)(eT,{items:t.icon_grid?t.icon_grid.map(e=>({title:e.title,subtitle:e.sub_title,icon:"none"===e.icons?void 0:e.icons,body:e.content})):[]}):(0,c.jsx)(eF,{items:t.linkedicons?t.linkedicons.map(e=>({icon:e.icons,cta:{href:e.link.url,title:e.link.title,target:e.link.target}})):[]})},eI=e=>{let{columns:t=3,children:l,variant:a="light",title:i,body:s,ctas:r,pretitle:n}=e;return(0,c.jsxs)("div",{className:g()({"pt-8":"light"===a}),children:["dark"===a&&(0,c.jsx)(M.t,{className:"text-snow"}),(0,c.jsx)(R,{className:g()({"bg-snow":"dark"===a,"pt-8":"light"===a}),title:i,body:s,ctas:r,pretitle:n}),(0,c.jsx)("div",{className:g()("grid grid-cols-1 gap-6 px-4 sm:grid-cols-2 lg:grid-cols-3 lg:px-8",{"3xl:px-[124px]":3===t,"xl:gr
1id-cols-4 3xl:px-[100px]":4===t,"bg-snow pb-12 3xl:pb-[156px]":"dark"===a}),children:l})]})},eG=e=>(0,c.jsxs)("div",{className:"block bg-deep-blue px-6 pb-8 pt-6 uppercase text-white",children:[e.image&&(0,c.jsx)("div",{className:"relative mb-8 aspect-[55/64]",children:(0,c.jsx)(f(),{src:e.image.src,alt:e.image.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1280px) 19vw, (min-width: 1024px) 25vw,(min-width: 640px) 38vw, 88vw"})}),e.title&&(0,c.jsx)(k.sn,{className:"mb-6",children:(0,C.N)(e.title)}),(0,c.jsx)("p",{className:"border-b border-white/30 pb-4",children:e.subtitle}),e.email&&(0,c.jsx)(N(),{href:"mailto:".concat(e.email),className:"block pt-4",children:e.email})]}),eZ=e=>{var t;let{layout:l}=e;return(0,c.jsx)(eI,{columns:4,children:null===(t=l.members)||void 0===t?void 0:t.map(e=>(0,c.jsx)(eG,{title:e.title.rendered,image:e.acf.image?F(e.acf.image):void 0,email:e.acf.member_email,subtitle:e.acf.member_title,id:e.id.toString()},e.id))})},eO=e=>{let{body:t,ctas:l,image:a,title:i,titleElement:s="h2"}=e;return(0,c.jsx)("div",{className:"flex min-h-screen p-6 text-white md:p-12 lg:p-10 xl:px-16 xl:py-12 3xl:p-20",children:(0,c.jsxs)("div",{className:"relative flex w-full items-center justify-center px-8 py-[120px]",children:[a&&(0,c.jsx)(f(),{src:a.src,alt:a.alt,fill:!0,className:"object-cover object-center"}),(0,c.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,c.jsxs)("div",{className:"relative mx-auto max-w-[632px] text-center",children:[i&&(0,c.jsx)(A.H1,{as:s,className:"mb-12 last:mb-0",children:i}),t&&(0,c.jsx)(k.CK,{className:"mb-12 last:mb-0",as:"div",children:(0,C.N)(t)}),l&&(0,c.jsx)("div",{className:"flex justify-center gap-x-4",children:l.map(e=>(0,c.jsx)(P.z,{variant:"mono",as:N(),href:e.href,target:e.target,children:e.title},e.href))})]})]})})},eH=e=>{let{layout:t}=e;return(0,c.jsx)(eO,{title:t.title_content,titleElement:t.title_heading,body:t.content,ctas:t.link_array?T(t.link_array):void 0,image:t.background_image?F(t.background_image):void 0})};function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}var eV=function(e){return x.createElement("svg",eK({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 17"},e),r||(r=x.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M7.346 2.759V.824h1.31l-.005 1.3v.808l-.724 5.233zm.005 12.768v-.808l.721-5.235.584 5.406v1.934h-1.31zm7.351-7.357h-.637l-5.406.582 5.235.724h.808l1.297.005v-1.31zM0 8.17l1.3.006h.808l5.233.72-5.406.585H0z",clipRule:"evenodd"})))};let eW=e=>{let{preTitle:t,preTitleElement:l="h3",title:a,titleElement:i="h3",body:s,ctas:r}=e;return(0,c.jsxs)("div",{className:"static-map",children:[(0,c.jsx)(M.t,{className:"text-deep-blue"}),(0,c.jsx)("div",{className:"flex max-h-[1161px] min-h-[calc(100vh_-_91px)] text-white",children:(0,c.jsxs)("div",{className:"relative flex w-full items-end justify-center overflow-hidden",children:[(0,c.jsx)(f(),{src:"/_next/static/media/static-map.4dd26daa.png",alt:"Map of the earth showing the different countries guests have come from",className:"object-cover object-center",fill:!0}),(0,c.jsxs)("div",{className:"relative mb-12 max-w-[82%] md:max-w-[69%] lg:max-w-[43%] xl:max-w-[38%] 2xl:mb-32 2xl:max-w-[34%] 3xl:mb-40",children:[a&&(0,c.jsxs)("div",{className:"mb-6 flex items-center gap-x-4 lg:mb-4 3xl:mb-8",children:[(0,c.jsx)(eV,{className:"h-[16px] w-[16px]"}),(0,c.jsx)(k.j4,{as:l,children:t})]}),a&&(0,c.jsx)(A.H3,{as:i,className:"mb-8",children:a}),s&&(0,c.jsx)(k.CK,{className:"mb-8",as:"div",children:(0,C.N)(s)}),r&&(0,c.jsx)("div",{className:"flex gap-x-4",children:r.map(e=>(0,c.jsx)(P.z,{variant:e.variant,as:N(),href:e.href,target:e.target,children:e.title},e.href))})]})]})})]})},eq=e=>{let{layout:t}=e;return(0,c.jsx)(eW,{preTitle:t.pretitle_content,preTitleElement:t.pretitle_heading,title:t.title_content,titleElement:t.title_heading,body:t.content,ctas:t.link_array?T(t.link_array):void 0})},eY=e=>(0,c.jsxs)(N(),{className:"transition-background-color group flex h-full flex-col bg-deep-blue px-6 pb-8 pt-6 duration-500 hover:bg-opacity-95",href:e.cta.href,children:[e.image&&(0,c.jsx)("div",{className:"relative mb-8 aspect-[55/64] overflow-hidden",children:(0,c.jsx)(f(),{src:e.image.src,alt:e.image.alt,fill:!0,className:"object-cover object-center transition-transform duration-500 group-hover:scale-110",sizes:"(min-width: 1920px) 24vw, (min-width: 1024px) 29vw, (min-width: 768px) 34vw, 77vw"})}),(0,c.jsxs)("div",{className:"flex flex-grow flex-col px-4",children:[(0,c.jsxs)("div",{className:"mb-6 flex justify-between gap-x-4 text-grey-on-blue",children:[e.category&&(0,c.jsxs)("div",{className:"flex gap-x-2",children:[(0,c.jsx)(v.Z,{width:"1em"}),(0,c.jsx)(k.j4,{children:e.category})]}),e.date&&(0,c.jsx)(k.j4,{className:"ml-auto",children:e.date})]}),(0,c.jsx)(k.sn,{className:"mb-8 text-white",children:e.title}),(0,c.jsx)("div",{className:"mt-auto flex justify-end text-new-blue-light",children:(0,c.jsx)(V.Z,{width:"1em"})})]})]}),eX=e=>{let{id:t,slides:l,title:a,titleElement:i,pretitle:s,pretitleElement:r,body:n,ctas:d}=e;return(0,c.jsxs)("div",{className:"py-12",children:[(0,c.jsx)(R,{title:a,titleElement:i,pretitle:s,pretitleElement:r,body:n,ctas:d,containerSize:"small"}),(0,c.jsx)("div",{className:"pl-8 md:pl-12 lg:pl-16 xl:pl-20 3xl:pl-[100px]",children:(0,c.jsx)(b,{id:t,cardSize:"large",children:l.map(e=>(0,c.jsx)(eY,{...e},e.id))})})]})},eJ=e=>{var t,l;let{layout:a,index:i}=e;return(0,c.jsx)(eX,{id:i.toString(),title:a.title_content,titleElement:a.title_heading,pretitleElement:a.pretitle_heading,pretitle:a.pretitle_content,body:a.content,ctas:a.link_array?T(a.link_array):void 0,slides:null!==(l=null===(t=a.fullPosts)||void 0===t?void 0:t.map(e=>({title:e.title.rendered,date:e.acf.date,image:e.acf.card_image?F(e.acf.card_image):void 0,cta:{href:e.link,title:""},id:e.id.toString()})))&&void 0!==l?l:[]})},eQ=e=>(0,c.jsxs)("div",{className:"flex h-full flex-col bg-deep-blue px-6 pb-8 pt-6",children:[e.image&&(0,c.jsx)("div",{className:"relative mb-8 aspect-[55/64]",children:(0,c.jsx)(f(),{src:e.image.src,alt:e.image.alt,fill:!0,className:"object-cover object-center",sizes:"(min-width: 1024px) 25vw,(min-width: 640px) 38vw, 88vw"})}),(0,c.jsxs)("div",{className:"flex flex-grow flex-col px-4",children:[(0,c.jsxs)("div",{className:"mb-6 flex justify-between gap-x-4 text-grey-on-blue",children:[e.category&&(0,c.jsxs)("div",{className:"flex gap-x-2",children:[(0,c.jsx)(v.Z,{width:"1em"}),(0,c.jsx)(k.j4,{children:e.category})]}),e.date&&(0,c.jsx)(k.j4,{className:"ml-auto",children:e.date})]}),(0,c.jsxs)("div",{className:"mb-8 text-white",children:[(0,c.jsx)(k.sn,{className:"mb-6 last:mb-0",children:e.title}),e.body&&(0,c.jsx)("div",{children:(0,C.N)(e.body)})]}),(0,c.jsx)(P.z,{variant:"secondary",as:N(),href:e.cta.href,className:"mt-auto text-white",children:"View Details"})]})]}),e$=e=>{var t;let{layout:l}=e;return(0,c.jsx)(eI,{columns:3,variant:"dark",children:null===(t=l.fullPosts)||void 0===t?void 0:t.map(e=>(0,c.jsx)(eQ,{title:e.title.rendered,cta:{href:e.link,title:""},id:e.id.toString(),date:e.acf.date,body:e.acf.short_description,image:e.acf.card_image?F(e.acf.card_image):void 0},e.id))})};var e0=l(434);let e1=e=>(0,c.jsxs)("div",{className:"flex flex-col gap-y-10",children:[e.title&&!e.isMobile&&(0,c.jsx)(k.sn,{children:e.title}),e.body&&(0,c.jsx)("div",{className:"text-xl font-light",children:(0,C.N)(e.body)}),e.ctas&&(0,c.jsx)("div",{className:"flex flex-wrap gap-4",children:e.ctas.map((e,t,l)=>(0,c.jsx)(P.z,{as:N(),href:e.href,target:e.target,variant:t%2==0&&l.length>1?"primary":"secondary",children:e.title},e.href))}),(0,c.jsx)("div",{children:e.items.map(e=>(0,c.jsxs)("div",{className:g()("items-center border-b border-black/20 py-12 first:border-t last:border-b-0 lg:pr-16",{"grid grid-cols-[24px_1fr] gap-x-6":e.icon}),children:[e.icon&&(0,c.jsx)(Y.J,{name:e.icon,width:18,className:g()({"text-new-blue-light":!["diamond","double-diamond"].includes(e.icon),"text-black":["diamond","double-diamond"].includes(e.icon)})}),(0,c.jsx)("p",{className:"col-start-2 text-lg font-medium uppercase text-black",children:e.title}),e.subtitle&&(0,c.jsx)(k.j4,{className:"col-start-2 mt-3 text-new-blue-dark",children:e.subt
1itle}),e.body&&(0,c.jsx)(k.CK,{as:"div",className:"col-span-3 mt-6 sm:col-span-2 sm:col-start-2",children:(0,C.N)(e.body)}),e.ctas&&(0,c.jsx)("div",{className:"col-start-2 mt-8 flex flex-wrap gap-x-4 gap-y-4",children:e.ctas.map((e,t,l)=>(0,c.jsx)(P.z,{href:e.href,target:e.target,variant:t%2==0&&l.length>1?"primary":"secondary",as:N(),children:e.title},e.href))})]},e.title))})]}),e2=e=>(0,c.jsx)(I.fC,{type:"multiple",children:e.items.map(e=>(0,c.jsxs)(I.ck,{value:e.title,className:"border-b border-black/20",children:[(0,c.jsx)(I.h4,{children:(0,c.jsxs)(I.xz,{className:"group flex w-full items-center justify-between gap-x-4 py-8 text-left text-lg font-medium text-black",children:[(0,c.jsx)("span",{children:e.title}),(0,c.jsx)(G.Z,{className:"flex-shrink-0 transition-transform group-data-[state=open]:rotate-180",width:8})]})}),(0,c.jsx)(I.VY,{className:"overflow-hidden data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down",children:(0,c.jsx)(k.CK,{as:"div",className:"pb-8",children:(0,C.N)(e.body)})})]},e.title))}),e4=e=>(0,c.jsxs)("div",{className:"flex flex-col gap-y-8",children:[e.title&&!e.isMobile&&(0,c.jsx)(k.sn,{children:e.title}),(0,c.jsx)("div",{className:"grid gap-x-4 sm:grid-cols-2 sm:gap-x-6 md:gap-x-8 2xl:grid-cols-3 2xl:gap-x-16",children:e.items.map((e,t)=>(0,c.jsxs)("div",{className:g()("flex items-center gap-x-4 border-t border-black/20 py-6 first:border-t-0",{"sm:border-t-0":t<=1,"2xl:border-t-0":t<=2}),children:[e.icon&&(0,c.jsx)(Y.J,{name:e.icon,width:24,className:"text-new-blue-dark"}),(0,c.jsx)("span",{className:"text-sm font-thin text-black",children:e.title})]},e.title))})]}),e3=e=>(0,c.jsxs)("div",{className:"bg-snow px-12 py-16",children:[e.title&&!e.isMobile&&(0,c.jsx)(k.sn,{className:"mb-8 text-black",children:e.title}),(0,c.jsx)("div",{className:"grid grid-cols-3 gap-x-4 sm:gap-x-8 2xl:gap-x-14",children:e.items.map(e=>(0,c.jsxs)("div",{className:"flex items-center gap-x-4 border-b border-black/20 py-4",children:[(0,c.jsx)("div",{className:"w-6",children:(0,C.N)(e.icon)}),(0,c.jsx)("span",{className:"text-sm font-light tracking-wider text-black",children:e.title})]},e.title))})]}),e6=e=>(0,c.jsxs)("div",{className:"flex flex-col gap-y-10",children:[e.title&&!e.isMobile&&(0,c.jsx)(k.sn,{children:e.title}),e.body&&(0,c.jsx)("div",{className:"text-xl font-light",children:(0,C.N)(e.body)}),(0,c.jsx)("div",{className:"grid grid-cols-2 gap-4",children:e.images.map(e=>(0,c.jsx)("div",{className:"relative aspect-[23/25] w-full",children:(0,c.jsx)(f(),{className:"object-cover object-center",fill:!0,src:e.src,alt:e.alt,sizes:"50vw"})},e.src))})]}),e8=e=>{var t;let l=Math.min(Object.keys(e.columns).length,4),a=null===(t=e.showTitle)||void 0===t||t;return(0,c.jsxs)("div",{className:"text-dark-sage",children:[a&&(0,c.jsx)(k.sn,{className:"mb-4",children:e.title}),(0,c.jsx)(k.CK,{as:"div",className:"pb-10 empty:hidden",children:(0,C.N)(e.body)}),(0,c.jsx)("div",{className:g()("mb-4 grid auto-rows-min gap-4",1===l?"grid-cols-1 max-w-[500px]":2===l?"grid-cols-1 sm:grid-cols-2":3===l?"grid-cols-1 sm:grid-cols-2 2xl:grid-cols-3":"grid-cols-1 sm:grid-cols-2 min-[1720px]:grid-cols-4"),children:Object.entries(e.columns).sort((e,t)=>{let[l]=e,[a]=t;return Number(l)-Number(a)}).map(e=>{let[t,l]=e;return(0,c.jsx)("div",{className:"grid gap-4",children:l.map((e,t)=>(0,c.jsxs)("div",{className:g()("break-inside-avoid border border-[rgba(118,135,120,0.20)] px-4 pb-8 pt-6",{"pt-2":!e.title&&!e.subtitle}),children:[e.title&&(0,c.jsx)(k.CK,{className:"mb-4 text-center !font-medium uppercase !leading-[1.11]",children:e.title}),e.subtitle&&(0,c.jsx)(k.CK,{className:"mb-8 text-center !text-sm !font-medium uppercase !leading-[1.11]",children:e.subt
1itle}),e.packageList.map((e,t)=>(0,c.jsxs)("div",{children:[e.title&&(0,c.jsx)(k.CK,{className:g()("my-3 text-center !text-base",{"!font-normal":"normal"===e.titleFontWeight,"!font-medium":"bold"===e.titleFontWeight}),children:e.title}),e.packageItem.map((e,t)=>(0,c.jsxs)("div",{className:"mb-1 flex justify-between last:mb-0 last:pb-4",children:[(0,c.jsx)(k.CK,{className:"!text-sm",children:e.label}),(0,c.jsx)(k.CK,{className:"!text-sm",children:e.value})]},t))]},t))]},t))},t)})}),e.footnote&&(0,c.jsx)(k.CK,{children:(0,C.N)(e.footnote)})]})},e5=e=>{var t,l,a;let{body:i,items:s,title:r,variant:n="light",titleElement:d,pretitleElement:o,pretitle:m,tabSize:p="default"}=e,u=(0,x.useRef)(null),{query:h}=(0,eh.useRouter)(),[b,v]=(0,x.useState)(null!==(a=null===(t=s[0])||void 0===t?void 0:t.id)&&void 0!==a?a:null===(l=s[0])||void 0===l?void 0:l.title),j=h["active-details-tab"],f="string"==typeof j&&s.find(e=>e.id===j)?j:void 0;return(0,x.useEffect)(()=>{if(f){var e;null===(e=u.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}),v(f)}},[f]),(0,c.jsxs)("div",{className:g()("scroll-mt-20",{"mb-20":"light"===n}),ref:u,children:["dark"===n&&(0,c.jsx)("div",{className:"text-snow",children:(0,c.jsx)(M.t,{})}),(0,c.jsxs)("div",{className:g()("pt-8 lg:pt-24",{"bg-snow pb-8 lg:pb-20":"dark"===n}),children:[(0,c.jsx)(R,{title:r,body:i,titleElement:d,pretitleElement:o,pretitle:m}),(0,c.jsx)(e9,{items:s,value:b,setValue:v}),(0,c.jsx)(e7,{items:s,variant:n,value:b,setValue:v,tabSize:p})]})]})},e9=e=>{let{items:t,value:l,setValue:a}=e;return(0,c.jsx)(I.fC,{className:"lg:hidden",type:"single",collapsible:!0,value:l,onValueChange:a,children:t.map(e=>{var t,l;return(0,c.jsxs)(I.ck,{value:null!==(t=e.id)&&void 0!==t?t:e.title,className:"border-b border-b-black/20",children:[(0,c.jsx)(I.h4,{children:(0,c.jsxs)(I.xz,{value:null!==(l=e.id)&&void 0!==l?l:e.title,className:g()("group flex w-full items-center justify-between gap-x-4 p-10 text-left text-3xl font-semibold uppercase data-[state=open]:text-black"),children:[(0,c.jsx)("span",{children:e.title}),(0,c.jsx)(G.Z,{className:"flex-shrink-0 transition-transform group-data-[state=open]:rotate-180",width:12})]},e.title)}),(0,c.jsx)(I.VY,{className:"overflow-hidden px-10 pb-10 data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down",children:e.enableContentToggle?(0,c.jsx)(tt,{title:e.title,layouts:e.content,isMobile:!0}):(0,c.jsx)(te,{layouts:e.content,isMobile:!0})})]},e.title)})})},e7=e=>{let{items:t,variant:l,value:a,setValue:i,tabSize:s}=e,r=(0,x.useRef)(null),[n,d]=(0,x.useState)(0);return(0,x.useEffect)(()=>{let e=()=>{var e;let t=document.getElementsByClassName("js-header")[0];d(null!==(e=null==t?void 0:t.getBoundingClientRect().height)&&void 0!==e?e:0)};return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}},[]),(0,c.jsxs)(e0.fC,{orientation:"vertical",className:"hidden gap-x-20 lg:flex",value:a,onValueChange:e=>{r.current&&window.scrollTo({top:r.current.offsetTop-n}),null==i||i(e)},ref:r,children:[(0,c.jsx)(e0.aV,{className:g()("sticky flex flex-shrink-0 flex-col self-baseline border-r border-black/20 text-2xl font-bold",{"w-4/12":"narrow"===s,"w-5/12":"default"===s}),style:{top:"".concat(n,"px")},children:t.map(e=>{var t;return(0,c.jsxs)(e0.xz,{value:null!==(t=e.id)&&void 0!==t?t:e.title,className:g()("group flex w-[calc(100%+1px)] items-center justify-between gap-x-6 border-b border-r border-b-black/20 border-r-transparent py-10 pl-36 pr-12 text-left uppercase transition-[color] duration-300 hover:text-new-blue-dark data-[state=active]:text-black",{"data-[state=active]:border-r-white":"light"===l,"data-[state=active]:border-r-snow":"dark"===l}),children:[(0,c.jsx)("span",{children:e.title}),(0,c.jsxs)("div",{className:"flex rounded-full border border-black p-5 opacity-0 group-data-[state=active]:opacity-100",children:[(0,c.jsx)(u.Z,{width:6}),(0,c.jsx)(u.Z,{width:6})]})]},e.title)})}),t.map(e=>{var t;return(0,c.jsx)(e0.VY,{value:null!==(t=e.id)&&void 0!==t?t:e.title,className:"flex-grow pr-[148px] pt-12 text-black",children:(0,c.jsx)("div",{className:g()("mb-14 flex flex-col empty:hidden",{"gap-y-10":!e.enableContentToggle}),children:e.enableContentToggle?(0,c.jsx)(tt,{title:e.title,layouts:e.content}):(0,c.jsx)(te,{layouts:e.content})})}
1,e.title)})]})},te=e=>(0,c.jsx)(c.Fragment,{children:e.layouts.map((t,l)=>{switch(t.type){case"blurbs":return(0,c.jsx)(e1,{...t,isMobile:e.isMobile},l);case"accordion":return(0,c.jsx)(e2,{...t},l);case"amenities":return(0,c.jsx)(e4,{...t,isMobile:e.isMobile},l);case"highlighted-grid":return(0,c.jsx)(e3,{...t,isMobile:e.isMobile},l);case"image-grid":return(0,c.jsx)(e6,{...t,isMobile:e.isMobile},l);case"pricing-accordion":return(0,c.jsx)(e8,{...t,showTitle:!e.isContentToggle},l)}})}),tt=e=>{let[t,l]=(0,x.useState)(0),a=e.layouts[t];return(0,c.jsxs)("div",{className:"max-lg:mt-2",children:[(0,c.jsx)(k.sn,{className:"mb-12 max-lg:hidden lg:mb-14",children:e.title}),e.layouts.length>1&&(0,c.jsx)("div",{className:"mb-8 flex justify-center gap-x-4 lg:mb-12",children:e.layouts.map((e,a)=>(0,c.jsx)("button",{onClick:()=>{l(a)},className:g()("from-50% to-50% bg-no-repeat transition-[color,background-position] duration-300","border px-6 py-3 text-[15px] font-[450] uppercase lg:min-h-[58px] lg:min-w-[180px]",{"border-new-blue-dark bg-new-blue-dark text-white":t===a,"border-new-blue-dark bg-gradient-to-r from-new-blue-dark to-white bg-[length:200%_100%] bg-[100%_0%] text-black hover:bg-[0%_0%] hover:text-white":t!==a}),children:"title"in e&&e.title?e.title:"Option ".concat(a+1)},a))}),a&&(0,c.jsx)(te,{layouts:[a],isMobile:e.isMobile,isContentToggle:!0})]})},tl=e=>{let{layout:t}=e;return(0,c.jsx)(e5,{title:t.title_content,items:t.accordion?t.accordion.map(e=>e.content?{title:e.accordion_title,id:e.accordion_id?e.accordion_id:void 0,content:e.content.map(ti),enableContentToggle:e.enable_content_toggle}:null).filter(z.EN):[],body:t.content,pretitleElement:t.pretitle_heading,titleElement:t.title_heading,pretitle:t.pretitle_content,tabSize:ta(t)})},ta=e=>e.accordion&&e.accordion.some(e=>!!Array.isArray(e.content)&&e.content.some(e=>"pricing_accordion"===e.acf_fc_layout))?"narrow":"default",ti=e=>{switch(e.acf_fc_layout){case"content_list":return{type:"blurbs",title:e.title,body:e.content,ctas:e.link_array?T(e.link_array):void 0,items:e.content_block?e.content_block.map(e=>({title:e.title,body:e.content,subtitle:e.subtitle,icon:"none"===e.icons?void 0:e.icons,ctas:e.link_array?T(e.link_array):void 0})):[]};case"accordion":return{type:"accordion",items:e.accordion?e.accordion.map(e=>({title:e.accordion_header,body:e.accordion_content})):[]};case"image_gallery":return{type:"image-grid",title:e.title,body:e.content,images:e.gallery?e.gallery.map(e=>F(e)):[]};case"amenities":return{type:"amenities",title:e.amenities_title,items:e.amenities?e.amenities.map(e=>({icon:"none"===e.icons?void 0:e.icons,title:e.title})):[]};case"pricing_accordion":{let t=e.package?e.package.reduce((e,t)=>{let l=t.placement;return e[l]||(e[l]=[]),e[l].push({title:t.title,subtitle:t.subtitle,packageList:t.package_list?t.package_list.map(e=>({title:e.title,titleFontWeight:e.title_font_weight,packageItem:e.package_item?e.package_item.map(e=>({label:e.label,value:e.value})):[]})):[]}),e},{}):{};return{type:"pricing-accordion",title:e.title,body:e.content,columns:t,footnote:e.footnote}}}};function ts(e,t){let l=new Date().getMonth(),a=new Date(e+"1").getMonth();return tr(new Date(l<a?new Date().getFullYear():new Date().getFullYear()+1,a,Number(t)))}function tr(e){let t=e.toLocaleString("en-US",{month:"long"}),l=e.getDate(),a="th";return l%10==1&&11!==l?a="st":l%10==2&&12!==l?a="nd":l%10==3&&13!==l&&(a="rd"),t+" "+l.toString()+a}function tn(e,t,l){let a=Math.round(Number(e.replace(/[a-zA-Z,$]/g,""))*t);if(isNaN(a))return"TBD";let i=Intl.NumberFormat("en-US",{style:"currency",currency:l,minimumFractionDigits:0,maximumFractionDigits:0}).format(a);return"USD"===l.toUpperCase()?"USD ".concat(i):i}l(4155).env.DEBUG;let tc=e=>{let{activeCurrency:t,setActiveCurrency:l,currencyOptions:a}=e;return(0,c.jsx)("select",{onChange:e=>{let t=e.target.value;a.includes(t)&&l(t)},value:t,className:"ml-1 cursor-pointer rounded border border-grey bg-black py-1 pl-0 text-[13px] uppercase text-white outline-none",children:a.map(e=>(0,c.jsx)("option",{value:e,children:e},e))})},td=e=>{var t;let l=null===(t=e.rates)||void 0===t?void 0:t[e.activeCurrency],a=e.rates?Object.keys(e.rates):void 0,[i,s]=(0,x.useState)(!0);return(0,x.useEffect)(()=>{let e=()=>{s(window.innerWidth<1920)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,c.jsxs)("div",{className:"overflow-hidden",children:[e.content&&(0,c.jsx)("div",{className:"mb-12 text-lg font-semibold uppercase text-grey",children:(0,C.N)(e.content)}),(0,c.jsx)("div",{className:"overflow-auto",children:(0,c.jsxs)("table",{className:"w-full text-left",children:[(0,c.jsx)("thead",{className:"bg-black text-white",children:(0,c.jsxs)("tr",{children:[(0,c.jsx)(to,{children:"Start Date"}),(0,c.jsx)(to,{children:"End Date"}),(0,c.jsx)(to,{children:"Nights"}),(0,c.jsx)(to,{children:"Package"}),(0,c.jsx)(to,{children:"Inclusions"}),(0,c.jsxs)(to,{className:"!pr-6",noWrap:!0,children:["Price",l&&(null==a?void 0:a.length)&&(0,c.jsx)(tc,{activeCurrency:e.activeCurrency,setActiveCurrency:e.setActiveCurrency,currencyOptions:a})]}),(0,c.jsx)(to,{children:"Status"}),(0,c.jsx)(to,{})]})}),(0,c.jsx)("tbody",{className:"border border-light-grey",children:e.rows.map((t,a)=>{let s=t.inquire_now?function(e,t,l,a,i,s,r){if(!function(e){try{return new URL(e),!0}catch(e){return console.log(e),!1}}(e))return"";let n=new URL(e).href.split("?")[0],c=[],d="";t&&c.push("destination=".concat(encodeURIComponent(t))),l&&c.push("package=".concat(encodeURIComponent(l.replace("&","&")))),a&&c.push("nights=".concat(encodeURIComponent(a)));let o=function(e,t,l){if(!e||!t||!l)return"";{let a=new Date("".concat(t," ").concat(l,", ").concat(e)),i=a.getDate(),s=a.getMonth()+1;return"".concat(a.getFullYear(),"-").concat(s<10?"0"+s.toString():s,"-").concat(i<10?"0"+i.toString():i)}}(i,s,r);return o&&c.push("date=".concat(encodeURIComponent(o))),c.length&&(d=c.join("&")),"".concat(n).concat(d?"?"+d:"")}(t.inquire_now,e.destination,t.program,t.nights,e.year,t.month,t.date):"";return(0,c.jsxs)("tr",{className:g()("border-b border-light-grey last:border-b-0",{"bg-white":"available"===t.status,"bg-snow":"sold-out"===t.status,"curs
1or-pointer transition-colors hover:bg-light-grey/50":i&&s}),onClick:i&&s?()=>{window.location.href=s}:void 0,onKeyDown:i&&s?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),window.location.href=s)}:void 0,tabIndex:i&&s?0:void 0,role:i&&s?"button":void 0,"aria-label":i&&s?"Inquire about ".concat(t.program," starting ").concat(ts(t.month,t.date)):void 0,children:[(0,c.jsx)(tx,{children:(0,c.jsx)("span",{className:"capitalize",children:ts(t.month,t.date)})}),(0,c.jsx)(tx,{children:function(e,t,l){let a=new Date().getMonth(),i=new Date(e+"1").getMonth();return tr(new Date(new Date(a<i?new Date().getFullYear():new Date().getFullYear()+1,i,Number(t)).getTime()+864e5*Number(l)))}(t.month,t.date,t.nights)}),(0,c.jsx)(tx,{children:t.nights}),(0,c.jsx)(tx,{children:t.program}),(0,c.jsx)(tx,{children:t.inclusion}),(0,c.jsxs)(tx,{children:["featured-offer"===t.status&&t.original_price&&(0,c.jsx)("span",{className:"block line-through",children:l?tn(t.original_price,l,e.activeCurrency):t.original_price}),l?tn(t.price,l,e.activeCurrency):t.price]}),(0,c.jsx)(tx,{children:(0,c.jsx)("span",{className:"text-nowrap",children:function(e){switch(e){case"available":return"Available";case"featured-offer":return"Featured Offer";case"limited-seats":return"Limited Seats";default:return"Sold Out"}}(t.status)})}),s?(0,c.jsx)(tx,{children:(0,c.jsx)(P.z,{as:N(),href:s,className:"text-nowrap",onClick:i?e=>{e.stopPropagation()}:void 0,children:"Inquire Now"})}):(0,c.jsx)(tx,{})]},a)})})]})})]})},to=e=>(0,c.jsx)("th",{className:g()("px-8 py-6 font-normal",e.className),children:(0,c.jsx)(k.j4,{className:e.noWrap?"flex flex-nowrap":"",children:e.children})}),tx=e=>(0,c.jsx)("td",{className:"text-nowrap p-4 px-8",children:e.children}),tm=()=>{let[e,t]=(0,x.useState)(null),[l,a]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{(async()=>{a(!0);try{let e=await fetch("https://geoip.verbinteractive.com/");if(!e.ok)throw Error("Response status: ".concat(e.status));let l=await e.json();t(l)}catch(e){console.error(e)}finally{a(!1)}})()},[]),{data:e,isLoading:l}},tp={BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BA:"BAM",BB:"BBD",WF:"XPF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BH:"BHD",BI:"BIF",BJ:"XOF",BT:"BTN",JM:"JMD",BV:"NOK",BW:"BWP",WS:"WST",BQ:"USD",BR:"BRL",BS:"BSD",JE:"GBP",BY:"BYR",BZ:"BZD",RU:"RUB",RW:"RWF",RS:"RSD",TL:"USD",RE:"EUR",TM:"TMT",TJ:"TJS",RO:"RON",TK:"NZD",GW:"XOF",GU:"USD",GT:"GTQ",GS:"GBP",GR:"EUR",GQ:"XAF",GP:"EUR",JP:"JPY",GY:"GYD",GG:"GBP",GF:"EUR",GE:"GEL",GD:"XCD",GB:"GBP",GA:"XAF",SV:"USD",GN:"GNF",GM:"GMD",GL:"DKK",GI:"GIP",GH:"GHS",OM:"OMR",TN:"TND",JO:"JOD",HR:"HRK",HT:"HTG",HU:"HUF",HK:"HKD",HN:"HNL",HM:"AUD",VE:"VEF",PR:"USD",PS:"ILS",PW:"USD",PT:"EUR",SJ:"NOK",PY:"PYG",IQ:"IQD",PA:"PAB",PF:"XPF",PG:"PGK",PE:"PEN",PK:"PKR",PH:"PHP",PN:"NZD",PL:"PLN",PM:"EUR",ZM:"ZMK",EH:"MAD",EE:"EUR",EG:"EGP",ZA:"ZAR",EC:"USD",IT:"EUR",VN:"VND",SB:"SBD",ET:"ETB",SO:"SOS",ZW:"ZWL",SA:"SAR",ES:"EUR",ER:"ERN",ME:"EUR",MD:"MDL",MG:"MGA",MF:"EUR",MA:"MAD",MC:"EUR",UZ:"UZS",MM:"MMK",ML:"XOF",MO:"MOP",MN:"MNT",MH:"USD",MK:"MKD",MU:"MUR",MT:"EUR",MW:"MWK",MV:"MVR",MQ:"EUR",MP:"USD",MS:"XCD",MR:"MRO",IM:"GBP",UG:"UGX",TZ:"TZS",MY:"MYR",MX:"MXN",IL:"ILS",FR:"EUR",IO:"USD",SH:"SHP",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",NI:"NIO",NL:"EUR",NO:"NOK",NA:"NAD",VU:"VUV",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NZ:"NZD",NP:"NPR",NR:"AUD",NU:"NZD",CK:"NZD",XK:"EUR",CI:"XOF",CH:"CHF",CO:"COP",CN:"CNY",CM:"XAF",CL:"CLP",CC:"AUD",CA:"CAD",CG:"XAF",CF:"XAF",CD:"CDF",CZ:"CZK",CY:"EUR",CX:"AUD",CR:"CRC",CW:"ANG",CV:"CVE",CU:"CUP",SZ:"SZL",SY:"SYP",SX:"ANG",KG:"KGS",KE:"KES",SS:"SSP",SR:"SRD",KI:"AUD",KH:"KHR",KN:"XCD",KM:"KMF",ST:"STD",SK:"EUR",KR:"KRW",SI:"EUR",KP:"KPW",KW:"KWD",SN:"XOF",SM:"EUR",SL:"SLL",SC:"SCR",KZ:"KZT",KY:"KYD",SG:"SGD",SE:"SEK",SD:"SDG",DO:"DOP",DM:"XCD",DJ:"DJF",DK:"DKK",VG:"USD",DE:"EUR",YE:"YER",DZ:"DZD",US:"USD",UY:"UYU",YT:"EUR",UM:"USD",LB:"LBP",LC:"XCD",LA:"LAK",TV:"AUD",TW:"TWD",TT:"TTD",TR:"TRY",LK:"LKR",LI:"CHF",LV:"EUR",TO:"TOP",LT:"LTL",LU:"EUR",LR:"LRD",LS:"LSL",TH:"THB",TF:"EUR",TG:"XOF",TD:"XAF",TC:"USD",LY:"LYD",VA:"EUR",VC:"XCD",AE:"AED",AD:"EUR",AG:"XCD",AF:"AFN",AI:"XCD",VI:"USD",IS:"ISK",IR:"IRR",AM:"AMD",AL:"ALL",AO:"AOA",AS:"USD",AR:"ARS",AU:"AUD",AT:"EUR",AW:"AWG",IN:"INR",AX:"EUR",AZ:"AZN",IE:"EUR",ID:"IDR",UA:"UAH",QA:"QAR",MZ:"MZN"},tu=e=>e in tp,th=e=>{let{data:t,isLoading:l}=tm(),a=(0,x.useMemo)(()=>
1{if(l||!t)return e;let a=e,{cc:i}=t;return tu(i)&&(a=tp[i]),a},[e,t,l]);return{isLoading:l,currency:a}},tg=e=>{let[t,l]=(0,x.useState)("CAD"),{currency:a}=th("CAD");(0,x.useEffect)(()=>{a&&l(a)},[a]);let i=e.panels[0],{query:s}=(0,eh.useRouter)(),r=s["active-accordion-item"],n=e.panels.find(e=>e.tables.some(e=>e.table_id===r)),d=e.panels.find(e=>e.isPrimaryPanel),o="string"==typeof r&&e.panels.length>1&&n?n.id:(null==d?void 0:d.id)||"panel-0";return i?(0,c.jsx)(c.Fragment,{children:e.panels.length>1?(0,c.jsxs)(e0.fC,{defaultValue:o,children:[(0,c.jsx)(e0.aV,{className:"flex flex-wrap justify-center gap-x-6 gap-y-3 px-6 py-16",children:e.panels.map(e=>(0,c.jsx)(e0.xz,{value:e.id,className:"w-[448px] max-w-full border border-new-blue-dark bg-gradient-to-r from-new-blue-dark from-50% to-white to-50% bg-[length:200%_100%] bg-[100%_0%] bg-no-repeat px-6 py-5 text-[15px] font-medium uppercase leading-4 tracking-widest text-black transition-[color,background-position] duration-300 hover:bg-[0%_0%] hover:text-white focus:bg-[0%_0%] focus:text-white data-[state=active]:bg-[0%_0%] data-[state=active]:text-white",children:e.panelName},e.id))}),e.panels.map(a=>(0,c.jsx)(e0.VY,{value:a.id,className:"data-[state=inactive]:hidden data-[state=active]:animate-fade-in",forceMount:!0,children:(0,c.jsx)(eb,{title:a.title,titleElement:a.titleElement,pretitle:a.pretitle,pretitleElement:a.pretitleElement,body:a.content,items:a.tables.map(a=>({id:a.table_id,title:a.title,content:a.table_rows?(0,c.jsx)(td,{rows:a.table_rows,content:a.content,destination:a.title,year:a.year,rates:e.rates,activeCurrency:t,setActiveCurrency:l}):null}))})},a.id))]},o):(0,c.jsx)(eb,{title:i.title,titleElement:i.titleElement,pretitle:i.pretitle,pretitleElement:i.pretitleElement,body:i.content,items:i.tables.map(a=>({id:a.table_id,title:a.title,content:a.table_rows?(0,c.jsx)(td,{rows:a.table_rows,content:a.content,destination:a.title,year:a.year,rates:e.rates,activeCurrency:t,setActiveCurrency:l}):null}))})}):null},tb=e=>{let{layout:t}=e,l=[];return(Array.isArray(t.additional_panels)&&t.additional_panels.forEach((e,a)=>{e.tables&&!e.hide_panel&&l.push({id:"panel-".concat(a+(t.tables?1:0)),isPrimaryPanel:e.is_primary_panel,panelName:e.panel_name,title:e.title_content,titleElement:e.title_heading,pretitle:e.pretitle_content,pretitleElement:e.pretitle_heading,content:e.content,tables:e.tables})}),l.length)?(0,c.jsx)(tg,{panels:l,rates:t.rates}):null};var tv=l(6858),tj=l(7346);let tf=e=>{let[t,l]=(0,x.useState)("all"),[a,i]=(0,x.useState)(0),s=(0,x.useRef)(),r="all"===t?e.images:e.images.filter(e=>e.category.toString()===t);return(0,c.jsx)(tj.fC,{children:(0,c.jsxs)("div",{className:"mx-2 py-12 lg:mx-8 xl:mx-[100px]",children:[(0,c.jsxs)(tv.fC,{type:"single",className:"mb-16 flex flex-wrap justify-center gap-x-6 gap-y-3",value:t,onValueChange:e=>{e&&l(e)},children:[(0,c.jsx)(tw,{value:"all",children:"View All"}),e.filters.map(e=>(0,c.jsx)(tw,{value:e.id.toString(),children:e.label},e.id))]}),(0,c.jsx)("div",{className:"grid gap-2 md:grid-cols-12 lg:gap-6",children:r.map((e,t)=>(0,c.jsxs)(tj.xz,{onClick:()=>{i(t)},className:g()("group relative h-[300px] transform transition duration-300 hover:scale-105 lg:h-[300px] xl:h-[480px]","md:[&:nth-child(12n+1)]:col-span-5 md:[&:nth-child(12n+2)]:col-span-3 md:[&:nth-child(12n+3)]:col-span-4","md:[&:nth-child(12n+4)]:col-span-3 md:[&:nth-child(12n+5)]:col-span-6 md:[&:nth-child(12n+6)]:col-span-3","md:[&:nth-child(12n+7)]:col-span-5 md:[&:nth-child(12n+8)]:col-span-3 md:[&:nth-child(12n+9)]:col-span-4","md:[&:nth-child(12n+10)]:col-span-6 md:[&:nth-child(12n+11)]:col-span-3 md:[&:nth-child(12n+12)]:col-span-3"),children:[(0,c.jsx)(f(),{fill:!0,className:"object-cover object-center",src:e.image.src,alt:e.image.alt,sizes:"(min-width: 768px) 48vw, 100vw"}),!!e.tags.length&&(0,c.jsx)("span",{className:g()("pointer-events-none absolute left-3 top-3 z-10 flex flex-wrap gap-2 text-left","transition-opacity duration-300 [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover:opacity-100 [@media(hover:hover)]:group-focus-visible:opacity-100"),children:e.tags.map(e=>(0,c.jsx)("span",{className:"bg-deep-blue/80 px-3 py-1.5 text-xs uppercase leading-none tracking-wide text-white backdrop-blur-sm",children:e},e))})]},e.image.src))}),(0,c.jsxs)(tj.h_,{children:[(0,c.jsx)(tj.aV,{className:"DialogOverlay"}),(0,c.jsxs)(tj.VY,{onCloseAutoFocus:e=>{e.preventDefault()},className:"fixed left-0 top-0 z-50 flex h-full w-full flex-col justify-center bg-[rgba(0,0,0,0.75)]",children:[(0,c.jsx)(tj.Dx,{className:"DialogTitle hidden",children:t}),(0,c.jsx)(tj.x8,{asChild:!0,className:"absolute right-4 top-4",children:(0,c.jsx)("button",{className:"IconButton","aria-label":"Close",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)("path",{d:"M23.6484 21.9504C23.7598 22.0619 23.8483 22.1943 23.9086 22.3399C23.9689 22.4856 24 22.6417 24 22.7994C24 22.9571 23.9689 23.1132 23.9086 23.2588C23.8483 23.4045 23.7598 23.5369 23.6484 23.6484C23.5369 23.7598 23.4045 23.8483 23.2588 23.9086C23.1132 23.9689 22.9571 24 22.7994 24C22.6417 24 22.4856 23.9689 22.3399 23.9086C22.1943 23.8483 22.0619 23.7598 21.9504 23.6484L12 13.6964L2.04955 23.6484C1.8244 23.8735 1.51902 24 1.2006 24C0.882181 24 0.576804 23.8735 0.351648 23.6484C0.126491 23.4232 6.2768e-09 23.1178
10 22.7994C-6.2768e-09 22.481 0.126491 22.1756 0.351648 21.9504L10.3036 12L0.351648 2.04955C0.126491 1.8244 0 1.51902 0 1.2006C0 0.882181 0.126491 0.576804 0.351648 0.351648C0.576804 0.126491 0.882181 0 1.2006 0C1.51902 0 1.8244 0.126491 2.04955 0.351648L12 10.3036L21.9504 0.351648C22.1756 0.126491 22.481 -6.2768e-09 22.7994 0C23.1178 6.2768e-09 23.4232 0.126491 23.6484 0.351648C23.8735 0.576804 24 0.882181 24 1.2006C24 1.51902 23.8735 1.8244 23.6484 2.04955L13.6964 12L23.6484 21.9504Z",fill:"#E8EFF1"})})})}),(0,c.jsx)(o.tq,{className:"w-full",loop:!0,centeredSlides:!0,slidesPerView:1.3,breakpoints:{768:{slidesPerView:1.4},1024:{slidesPerView:1.5},1280:{slidesPerView:1.6},1920:{slidesPerView:1.7}},modules:[m.W_,m.LW],initialSlide:a,onBeforeInit:e=>{s.current=e},scrollbar:{draggable:!0,el:".scroll-container-gallery-modal"},children:r.map(e=>(0,c.jsx)(o.o5,{className:"group",children:(0,c.jsx)("div",{className:"relative h-[65vh] overflow-hidden group-[:not(.swiper-slide-active)]:scale-[0.85] md:h-[80vh]",children:(0,c.jsx)(f(),{fill:!0,className:"object-cover object-center md:object-contain",src:e.image.src,alt:e.image.alt,sizes:"80vw"})})},e.image.src))}),(0,c.jsxs)("div",{className:"mx-24 mt-8 flex items-center gap-x-4 text-new-blue-light",children:[(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.slidePrev()},className:"flex","aria-label":"Previous slide",children:[(0,c.jsx)(p.Z,{width:6}),(0,c.jsx)(p.Z,{width:6})]}),(0,c.jsx)("div",{className:"text-white",children:"â¢"}),(0,c.jsxs)("button",{onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.slideNext()},className:"flex","aria-label":"Next slide",children:[(0,c.jsx)(u.Z,{width:6}),(0,c.jsx)(u.Z,{width:6})]}),(0,c.jsx)("div",{className:"scroll-container-gallery-modal h-[2px] flex-grow bg-light-grey"})]})]})]})]})})},tw=e=>(0,c.jsx)(tv.ck,{className:"border border-new-blue-dark bg-gradient-to-r from-new-blue-dark from-50% to-white to-50% bg-[length:200%_100%] bg-[100%_0%] bg-no-repeat px-8 py-4 text-sm uppercase text-black transition-[color,background-position] duration-300 hover:bg-new-blue-dark hover:bg-[0%_0%] hover:text-white focus:bg-[0%_0%] focus:text-black data-[state=on]:bg-new-blue-dark data-[state=on]:bg-[0%_0%] data-[state=on]:text-white",value:e.value,children:e.children}),tN=e=>{var t,l,a,i;let{layout:s}=e;return(0,c.jsx)(tf,{images:null!==(a=null===(t=s.galleries)||void 0===t?void 0:t.flatMap(e=>e.images.map(t=>{var l,a;return{image:F(t),category:e.category.id,tags:null!==(a=null===(l=t.accommodations)||void 0===l?void 0:l.map(e=>e.title))&&void 0!==a?a:[]}})))&&void 0!==a?a:[],filters:null!==(i=null===(l=s.galleries)||void 0===l?void 0:l.map(e=>e.category))&&void 0!==i?i:[]})};function ty(e,t){var l;if(t)return null===(l=e.find(e=>e.title.toLowerCase()===t.toString().replaceAll("_"," ").toLowerCase()))||void 0===l?void 0:l.id}let t_=e=>{var t,l;let{query:a}=(0,eh.useRouter)(),{destination1:i,destination2:s}=a,r=ty(e.destinations,null==i?void 0:i.toString()),n=ty(e.destinations,null==s?void 0:s.toString()),[d,o]=(0,x.useState)(null!=r?r:null===(t=e.destinations[0])||void 0===t?void 0:t.id),[m,p]=(0,x.useState)(null!=n?n:null===(l=e.destinations[1])||void 0===l?void 0:l.id),[u,h]=(0,x.useState)([e.destinations.find(e=>e.id===d),e.destinations.find(e=>e.id===m)].filter(z.EN));return((0,x.useEffect)(()=>{var t,l;let a=null!=r?r:null===(t=e.destinations[0])||void 0===t?void 0:t.id,i=null!=n?n:null===(l=e.destinations[1])||void 0===l?void 0:l.id;o(a),p(i),h([e.destinations.find(e=>e.id===a),e.destinations.find(e=>e.id===i)].filter(z.EN))},[r,n,e.destinations]),d&&m)?(0,c.jsxs)("div",{className:"pb-8 md:pb-0",children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center justify-between px-6 md:px-12 lg:px-16 xl:px-20 3xl:flex-nowrap 3xl:justify-between 3xl:px-[100px]",children:[(0,c.jsx)(A.H2,{as:"h1",className:"mb-8 w-full text-black 3xl:mb-0 3xl:w-auto",children:"Explore + Compare"}),(0,c.jsxs)("form",{className:"mb-6 flex w-full flex-col items-center gap-x-4 gap-y-4 md:flex-row 3xl:w-auto",onSubmit:t=>{t.preventDefault(),h([e.destinations.find(e=>e.id===d),e.destinations.find(e=>e.id===m)].filter(z.EN))},children:[(0,c.jsx)(tD,{name:"destination1",onChange:o,value:d,children:e.destinations.map(e=>(0,c.jsx)("option",{value:e.id,children:e.title},e.id))}
1),(0,c.jsx)(tD,{name:"destination2",onChange:p,value:m,children:e.destinations.map(e=>(0,c.jsx)("option",{value:e.id,children:e.title},e.id))}),(0,c.jsx)(P.z,{type:"submit",className:"w-full md:w-auto",children:"Compare"})]})]}),(0,c.jsx)(tk,{selectedDestinations:u}),(0,c.jsx)(tC,{selectedDestinations:u})]}):null},tk=e=>{let{selectedDestinations:t}=e;return(0,c.jsxs)("div",{className:"hidden md:block",children:[(0,c.jsx)("div",{className:"grid grid-cols-2",children:t.map((e,t)=>(0,c.jsxs)("div",{className:g()("flex flex-col bg-deep-blue pt-16 text-white 3xl:pt-[104px]",{"pl-6 pr-4 3xl:pl-[144px] 3xl:pr-20":0===t,"pl-4 pr-6 3xl:pl-20 3xl:pr-[144px]":1===t}),children:[e.image&&(0,c.jsx)("div",{className:"relative aspect-[43/35] flex-shrink-0 overflow-hidden lg:aspect-[11/9] xl:aspect-[68/45] 3xl:aspect-[132/65]",children:(0,c.jsx)(f(),{className:"object-cover object-center",fill:!0,src:e.image.src,alt:e.image.alt,sizes:"(min-width: 1920px) 38vw, (min-width: 768px) 45vw, 300px"})}),(0,c.jsxs)("div",{className:"flex flex-grow flex-col justify-center px-4 pb-12 pt-8 3xl:p-10",children:[(0,c.jsx)(A.H3,{className:"mb-10",children:e.title}),e.body&&(0,c.jsx)(k.CK,{className:"mb-6",as:"div",children:(0,C.N)(e.body)}),(0,c.jsx)(P.z,{as:N(),href:e.url,variant:"link",className:"mt-auto text-white",children:"Explore Destination"})]})]},t))}),(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-x-16 gap-y-12 bg-snow px-12 pt-10 lg:pb-32 3xl:gap-x-[120px] 3xl:px-[184px] 3xl:py-14",children:[t.map((e,t)=>(0,c.jsx)("div",{className:"flex flex-col gap-y-12",children:e.details.map(e=>(0,c.jsxs)(tS,{className:"w-[320px]",title:e.title,icon:e.icon,children:[(0,c.jsx)(k.j4,{className:"mb-4 block text-deep-blue lg:mb-6",children:e.subt
1itle}),e.body&&(0,c.jsx)(k.CK,{as:"div",className:"text-deep-blue",children:(0,C.N)(e.body)})]},e.title))},t)),t.map((e,t)=>(0,c.jsx)("div",{children:!!e.packages.length&&(0,c.jsx)(tS,{title:"Programs Available",icon:"group",className:"w-[320px]",children:(0,c.jsx)("div",{className:"grid grid-cols-2 gap-4",children:e.packages.map(e=>(0,c.jsx)("p",{className:"text-sm font-semibold uppercase text-black",children:e.title},e.title))})})},t)),t.map((e,t)=>(0,c.jsx)("div",{children:!!e.lodgeAmenities.length&&(0,c.jsx)(tS,{title:"Lodging",icon:"group",className:"w-[692px]",children:(0,c.jsxs)("div",{children:[(0,c.jsx)(k.j4,{className:"mb-2",children:"Included Amenities"}),(0,c.jsx)("div",{className:"grid gap-x-4 md:gap-x-16 lg:grid-cols-2",children:e.lodgeAmenities.map(e=>(0,c.jsxs)("div",{className:"flex items-center gap-x-4 border-b border-black/20 py-6",children:[e.icon&&(0,c.jsx)(Y.J,{name:e.icon,width:17,className:"text-new-blue-dark"}),(0,c.jsx)("p",{className:"text-sm text-black",children:e.title})]},e.title))})]})})},t))]})]})},tC=e=>{let{selectedDestinations:t}=e;return(0,c.jsx)("div",{className:"md:hidden",children:t.map((e,t)=>(0,c.jsxs)("div",{className:"mb-8 last:mb-0",children:[(0,c.jsxs)("div",{className:"mb-2 pl-6",children:[(0,c.jsxs)(k.j4,{className:"text-grey-on-blue",children:["Destination ",t+1]}),(0,c.jsx)(k.sn,{children:e.title})]}),(0,c.jsxs)("div",{className:"flex h-full overflow-auto",children:[(0,c.jsxs)("div",{className:"ml-6 flex rounded-l-lg rounded-r-lg bg-deep-blue text-white",children:[e.image&&(0,c.jsx)("div",{className:"relative w-[300px] flex-shrink-0 overflow-hidden rounded-l-lg",children:(0,c.jsx)(f(),{className:"object-cover object-center",fill:!0,src:e.image.src,alt:e.image.alt,sizes:"(min-width: 1920px) 38vw, (min-width: 768px) 45vw, 300px"})}),(0,c.jsxs)("div",{className:"flex w-[400px] flex-shrink-0 flex-col justify-center p-8",children:[e.body&&(0,c.jsx)(k.CK,{className:"mb-6",as:"div",children:(0,C.N)(e.body)}),(0,c.jsx)(P.z,{as:N(),href:e.url,variant:"link",className:"text-white",children:"Explore Destination"})]})]}),(0,c.jsxs)("div",{className:"my-1 -ml-3 flex gap-x-8 rounded-xl bg-snow px-8 py-4",children:[e.details.map(e=>(0,c.jsxs)(tS,{className:"w-[320px]",title:e.title,icon:e.icon,children:[(0,c.jsx)(k.j4,{className:"mb-4 block text-deep-blue",children:e.subt
1itle}),e.body&&(0,c.jsx)(k.CK,{as:"div",className:"text-deep-blue",children:(0,C.N)(e.body)})]},e.title)),!!e.packages.length&&(0,c.jsx)(tS,{title:"Programs Available",icon:"group",className:"w-[320px]",children:(0,c.jsx)("div",{className:"grid grid-cols-2 gap-4",children:e.packages.map(e=>(0,c.jsx)("p",{className:"text-sm font-semibold uppercase text-black",children:e.title},e.title))})}),!!e.lodgeAmenities.length&&(0,c.jsx)(tS,{title:"Lodging",icon:"group",className:"w-[692px]",children:(0,c.jsxs)("div",{children:[(0,c.jsx)(k.j4,{className:"mb-2",children:"Included Amenities"}),(0,c.jsx)("div",{className:"grid grid-cols-3 gap-x-4",children:e.lodgeAmenities.map(e=>(0,c.jsxs)("div",{className:"flex items-center gap-x-4 border-b border-black/20 py-6",children:[e.icon&&(0,c.jsx)(Y.J,{name:e.icon,width:17,className:"text-new-blue-dark"}),(0,c.jsx)("p",{className:"text-sm text-black",children:e.title})]},e.title))})]})})]})]})]},t))})},tS=e=>(0,c.jsxs)("div",{className:g()("flex-shrink-0 md:w-auto",e.className),children:[(0,c.jsxs)("div",{className:"border-b border-black/30 pb-4 lg:pb-6",children:[e.icon&&(0,c.jsx)(Y.J,{name:e.icon,height:22,className:"mb-4 text-new-blue-dark lg:mb-6"}),(0,c.jsx)(k.sn,{className:"text-black",children:e.title})]}),(0,c.jsx)("div",{className:"pt-4 lg:pt-6",children:e.children})]}),tD=e=>(0,c.jsx)("div",{className:"border",children:(0,c.jsx)("select",{onChange:t=>{e.onChange(t.target.value)},value:e.value,name:e.name,className:"w-full border-r-[24px] border-r-white px-6 py-4 text-[15px] uppercase text-black md:w-auto",children:e.children})}),tE=e=>{var t,l;let{layout:a}=e;return(0,c.jsx)(t_,{destinations:null!==(l=null===(t=a.destinations)||void 0===t?void 0:t.map(e=>({title:e.title.rendered,id:e.id.toString(),image:e.acf.gallery&&e.acf.gallery[0]?F(e.acf.gallery[0]):void 0,body:e.acf.short_description,details:e.acf.general_amenities?e.acf.general_amenities.map(e=>({title:e.title,subtitle:e.subtitle,icon:"none"===e.icons?void 0:e.icons,body:e.description})):[],packages:e.acf.Packages?e.acf.Packages.map(e=>({title:e.post_title})):[],lodgeAmenities:e.acf.lodge_amenities?e.acf.lodge_amenities.map(e=>({title:e.amenity_name,icon:"none"===e.icons?void 0:e.icons})):[],url:e.link})))&&void 0!==l?l:[]})};var tA=l(4298),tP=l.n(tA);let tR=e=>{let{nights:t,date:l,package:a,destination:i,utm_campaign:s,utm_content:r,utm_medium:n,utm_source:d,utm_term:o}=e.query,[m,p]=(0,x.useState)(""),[u,h]=(0,x.useState)(!1),[g,b]=(0,x.useState)(""),v=(0,x.useRef)(null),j=e=>"string"==typeof e?e:"",[f,w]=(0,x.useState)({utm_campaign:j(s),utm_content:j(r),utm_medium:j(n),utm_source:j(d),utm_term:j(o)});(0,x.useEffect)(()=>{w(e=>({utm_campaign:window.sessionStorage.getItem("utm_campaign")||e.utm_campaign,utm_content:window.sessionStorage.getItem("utm_content")||e.utm_content,utm_medium:window.sessionStorage.getItem("utm_medium")||e.utm_medium,utm_source:window.sessionStorage.getItem("utm_source")||e.utm_source,utm_term:window.sessionStorage.getItem("utm_term")||e.utm_term}))},[]);let N=e=>{let[t,l,a]=e.split("-");return a&&l&&t?"".concat(a,"/").concat(l,"/").concat(t):""},[y,_]=(0,x.useState)(l&&"string"==typeof l?N(l):""),k=e=>{_(N(e.currentTarget.value))},C=async e=>{e.preventDefault();let t=document.getElementById("g-recaptcha-response"),l=null==t?void 0:t.value;if(!l||""===l.trim())return b("Please complete the reCAPTCHA verification."),!1;if(u)return!1;b(""),h(!0);let a=new FormData(e.currentTarget),i={first_name:a.get("first_name"),last_name:a.get("last_name"),email:a.get("email"),phone:a.get("phone"),winter_destination:a.get("00N4w00000HjOWf"),winter_package:a.get("00NG000000AI5DC"),preferred_arrival_date:y||a.get("00NG000000AI5DH"),nights:a.get("00N4w00000FuwWa"),country:a.get("country"),comments:a.get("00NG000000AI5Mk"),referring_url:m,utm_campaign:f.utm_campaign,utm_content:f.utm_content,utm_medium:f.utm_medium,utm_source:f.utm_source||"Unknown",utm_term:f.utm_term,created_date:a.get("00NG000000AIgmd"),season:a.get("00NG000000Dxzeh"),captcha_settings:a.get("captcha_settings"),"g-recaptcha-response":l};try{if(!(await fetch("".concat("https://admin.bellacoolaheliskiing.com","/wp-json/headless/v1/inquiry-submission"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw Error("Submission failed");window.location.href="https://bellacoolaheliskiing.com/inquire-now/success/"}catch(e){console.error("Error submitting inquiry:",e),b("There was an error submitting your inquiry. Please try again."),h(!1)}};return(0,x.useEffect)(()=>{p(document.referrer||window.location.href)},[]),(0,x.useEffect)(()=>{var t;let l=()=>{if(v.current&&window.grecaptcha&&window.grecaptcha.render&&null===e.recaptchaWidgetId.current)try{e.recaptchaWidgetId.current=window.grecaptcha.render(v.current,{sitekey:"6LepsGwfAAAAAPsBo51rZcuehszRtB0Jox2KxjhM"})}catch(e){console.error("Error rendering reCAPTCHA:",e)}};if(null===(t=window.grecaptcha)||void 0===t?void 0:t.render)l();else{let e=setInterval(()=>{var t;(null===(t=window.grecaptcha)||void 0===t?void 0:t.render)&&(l(),clearInterval(e))},100);return()=>{clearInterval(e)}}},[e.recaptchaWidgetId]),(0,c.jsxs)("form",{className:"mx-auto w-[600px] max-w-full px-4 py-12 lg:py-20",onSubmit:e=>{C(e)},children:[(0,c.jsx)(tL,{type:"hidden",name:"captcha_settings",value:'{"keyname":"'.concat("BCHS_API_Key_Pair",'","fallback":"true","orgId":"00DG0000000hgBD","ts":""}')}
1),(0,c.jsx)(tL,{type:"hidden",name:"oid",value:"00DG0000000hgBD"}),(0,c.jsx)(tL,{type:"hidden",name:"retURL",value:"https://bellacoolaheliskiing.com/inquire-now/success"}),(0,c.jsx)(tL,{type:"hidden",id:"00NG000000AIgmd",name:"00NG000000AIgmd",value:(()=>{let e=new Date;return"".concat(e.getDate(),"/").concat(e.getMonth(),"/").concat(e.getFullYear())})()}),(0,c.jsxs)("select",{id:"00NG000000Dxzeh",name:"00NG000000Dxzeh",title:"Season",defaultValue:"Winter",hidden:!0,children:[(0,c.jsx)("option",{value:"",children:"--None--"}),(0,c.jsx)("option",{value:"Winter",children:"Winter"}),(0,c.jsx)("option",{value:"Summer",children:"Summer"}),(0,c.jsx)("option",{value:"Summer; Winter",children:"Summer; Winter"})]}),(0,c.jsx)(tL,{hidden:!0,id:"00NJR00000DrU6z",maxLength:255,name:"00NJR00000DrU6z",size:20,type:"text",defaultValue:m}),(0,c.jsx)(tL,{type:"hidden",name:"utm_campaign__c",value:f.utm_campaign,readOnly:!0}),(0,c.jsx)(tL,{type:"hidden",name:"utm_content__c",value:f.utm_content,readOnly:!0}),(0,c.jsx)(tL,{type:"hidden",name:"utm_medium__c",value:f.utm_medium,readOnly:!0}),(0,c.jsx)(tL,{type:"hidden",name:"utm_source__c",value:f.utm_source,readOnly:!0}),(0,c.jsx)(tL,{type:"hidden",name:"utm_term__c",value:f.utm_term,readOnly:!0}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"00N4w00000HjOWf",children:"Destination:"}),(0,c.jsxs)("select",{className:"border border-grey-on-blue px-2 py-2",id:"00N4w00000HjOWf",multiple:!0,name:"00N4w00000HjOWf",title:"Winter Destination",defaultValue:"string"==typeof i?[i]:i,children:[(0,c.jsx)("option",{value:"Eagle Lodge",children:"Eagle Lodge"}),(0,c.jsx)("option",{value:"Tweedsmuir Park Lodge",children:"Tweedsmuir Park Lodge"}),(0,c.jsx)("option",{value:"MV Cascadia",children:"MV Cascadia"}),(0,c.jsx)("option",{value:"Pantheon Heli Ranch",children:"Pantheon Heli Ranch"}),(0,c.jsx)("option",{value:"Sand Creek Ranch",children:"Sand Creek Ranch"}),(0,c.jsx)("option",{value:"Whistler",children:"Whistler"})]})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"00NG000000AI5DC",children:"Package:"}),(0,c.jsxs)("select",{className:"border border-grey-on-blue px-2 py-2",id:"00NG000000AI5DC",multiple:!0,name:"00NG000000AI5DC",title:"Winter Package",defaultValue:"string"==typeof a?[a]:a,children:[(0,c.jsx)("option",{value:"Small Group Vertical",children:"Small Group Vertical"}),(0,c.jsx)("option",{value:"Expert Group Vertical",children:"Expert Group Vertical"}),(0,c.jsx)("option",{value:"Unlimited Vertical",children:"Unlimited Vertical"}),(0,c.jsx)("option",{value:"Private Helicopter, Shared Lodge",children:"Private Helicopter, Shared Lodge"}),(0,c.jsx)("option",{value:"Private Helicopter & Lodge",children:"Private Helicopter & Lodge"}),(0,c.jsx)("option",{value:"Heli Assisted Touring",children:"Heli Assisted Touring"})]})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"00N4w00000FuwWa",children:"Nights:"}),(0,c.jsx)("div",{className:"border border-grey-on-blue",children:(0,c.jsxs)("select",{className:"w-full border-r-8 border-r-transparent px-2 py-2",id:"00N4w00000FuwWa",name:"00N4w00000FuwWa",defaultValue:t,children:[(0,c.jsx)("option",{value:"1",children:"Single Day Heli Skiing"}),(0,c.jsx)("option",{value:"4",children:"4 Nights"}),(0,c.jsx)("option",{value:"5",children:"5 Nights"}),(0,c.jsx)("option",{value:"7",children:"7 Nights"})]})})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"unformatted_date",children:"Preferred Arrival Date:"}),(0,c.jsxs)("span",{className:"dateInput dateOnlyInput",children:[(0,c.jsx)(tL,{id:"unformatted_date",name:"unformatted_date",size:12,type:"date",defaultValue:l,onChange:e=>{k(e)}}),(0,c.jsx)(tL,{id:"00NG000000AI5DH",name:"00NG000000AI5DH",size:12,defaultValue:y,hidden:!0})]})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"first_name",children:"First Name*"}),(0,c.jsx)(tL,{id:"first_name",maxLength:40,name:"first_name",size:20,type:"text",required:!0})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"last_name",children:"Last Name*"}),(0,c.jsx)(tL,{id:"last_name",maxLength:80,name:"last_name",size:20,type:"text",required:!0})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"email",children:"Email*"}),(0,c.jsx)(tL,{id:"email",maxLength:80,name:"email",size:20,type:"email",required:!0})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"phone",children:"Phone*"}),(0,c.jsx)(tL,{id:"phone",maxLength:40,name:"phone",size:20,type:"text",required:!0})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"country",children:"Country*"}),(0,c.jsx)("div",{className:"border border-grey-on-blue",children:(0,c.jsxs)("select",{name:"country",className:"w-full border-r-8 border-r-transparent px-2 py-2",required:!0,children:[(0,c.jsx)("option",{value:"Canada",children:"Canada"}),(0,c.jsx)("option",{value:"United States",children:"United States"}),(0,c.jsx)("option",{value:"United Kingdom",children:"United Kingdom"}),(0,c.jsx)("option",{value:"Germany",children:"Germany"}),(0,c.jsx)("option",{value:"Switzerland",children:"Switzerland"}),(0,c.jsx)("option",{value:"Austria",children:"Austria"}),(0,c.jsx)("option",{value:"France",children:"France"}),(0,c.jsx)("option",{value:"Australia",children:"Australia"}),(0,c.jsx)("option",{value:"New Zealand",children:"New Zealand"}),(0,c.jsx)("option",{value:"Other",children:"Other"})]})})]}),(0,c.jsxs)(tU,{children:[(0,c.jsx)(tM,{htmlFor:"00NG000000AI5Mk",children:"Comments:"}),(0,c.jsx)("textarea",{id:"00NG000000AI5Mk",name:"00NG000000AI5Mk",rows:3,wrap:"soft",className:"border border-grey-on-blue px-4 py-2"})]}),(0,c.jsx)("div",{ref:v}),g&&(0,c.jsx)("div",{className:"mt-4 rounded border-2 border-maple-leaf bg-[#FEE] px-4 py-3 text-maple-leaf",children:g}),(0,c.jsx)(P.z,{type:"submit",name:"submit",className:"ml-auto mt-8","aria-label":"submit",disabled:u,children:u?"Submitting...":"Submit"})]})},tM=e=>{let{children:t,...l}=e;return(0,c.jsx)("label",{className:"font-semibold",...l,children:t})},tU=e=>(0,c.jsx)("div",{className:"mb-4 flex flex-col gap-y-2",children:e.children}),tL=e=>(0,c.jsx)("input",{className:"w-full border border-grey-on-blue px-4 py-2",...e}),tz=()=>{let{query:e,isReady:t}=(0,eh.useRouter)(),l=(0,x.useRef)(null);return(0,x.useEffect)(()=>()=>{let e=l.current;window.grecaptcha&&window.grecaptcha.reset&&null!==e&&window.grecaptcha.reset(e)},[]),(0,c.jsxs)("div",{children:[(0,c.jsx)(tP(),{src:"https://www.google.com/recaptcha/api.js"}),(0,c.jsx)(tP(),{id:"captcha",children:'function timestamp() { var response = document.getElementById("g-recaptcha-response"); if (response == null || !response.value || response.value.trim() == "") { var captchaSettings = document.getElementsByName("captcha_settings")[0]; if (captchaSettings) { var elems = JSON.parse(captchaSettings.value); elems["ts"] = JSON.stringify(new Date().getTime()); captchaSettings.value = JSON.stringify(elems); } } } setInterval(timestamp, 500);'}),t&&(0,c.jsx)(tR,{query:e,recaptchaWidgetId:l})]})},tT=e=>{let{layout:t}=e;if("inquire-form"===t.forms)return(0,c.jsx)(tz,{})},tF=e=>{let{id:t,slides:l,title:a,titleElement:i,pretitle:s,pretitleElement:r,body:n,ctas:d}=e;return(0,c.jsxs)("div",{children:[(0,c.jsx)(M.t,{className:"text-deep-blue"}),(0,c.jsxs)("div",{className:"bg-deep-blue py-12 text-white",children:[(0,c.jsx)(R,{title:a,pretitle:s,pretitleElement:r,titleElement:i,body:n,ctas:d,variant:"light",containerSize:"small"}),(0,c.jsx)("div",{className:"pl-8 md:pl-12 lg:pl-16 xl:pl-20 3xl:pl-[100px]",children:(0,c.jsx)(b,{id:t,cardSize:"medium",variant:"light",children:l.map(e=>(0,c.jsx)(eG,{...e},e.id))})})]})]})},tB=e=>{var t,l;let{layout:a,index:i}=e;return(0,c.jsx)(tF,{title:a.title_content,pretitle:a.pretitle_content,body:a.content,ctas:a.link_array?T(a.link_array):[],id:"member-carousel-".concat(i),slides:null!==(l=null===(t=a.fullMembers)||void 0===t?void 0:t.map(e=>({title:e.title.rendered,image:e.acf.image?F(e.acf.image):void 0,id:e.id.toString(),subtitle:e.acf.member_title,email:e.acf.member_email})))&&void 0!==l?l:[]})},tI=e=>(0,c.jsxs)("div",{className:"mx-auto max-w-[1000px] px-8 py-8",children:[(0,C.N)(e.content),e.ctas&&(0,c.jsx)("div",{className:g()("mt-8 flex flex-wrap items-center gap-x-4 gap-y-4",{"justify-start":"left"===e.linkAlignment,"justify-center":"center"===e.linkAlignment,"justify-end":"right"===e.linkAlignment}),children:e.ctas.map(e=>(0,c.jsx)(P.z,{variant:e.variant,as:N(),href:e.href,target:e.target,children:e.title},e.href))})]}),tG=e=>{var t;let{layout:l}=e;return(0,c.jsx)(tI,{content:l.content,linkAlignment:null!==(t=l.link_alignment)&&void 0!==t?t:"left",ctas:l.link_array?T(l.link_array):void 0})},tZ=e=>{let{layout:t}=e;return(0,c.jsx)("iframe",{src:t.iframe_url,className:"h-screen w-full"})},tO=e=>
1(0,c.jsx)("div",{className:"w-[600px] p-8 lg:p-20",children:e.sitemap.map(e=>(0,c.jsxs)("div",{children:[(0,c.jsx)(N(),{className:"mb-4 block underline",href:e.url,children:e.title}),e.children.map(e=>(0,c.jsx)(N(),{className:"mb-4 block pl-8 underline",href:e.url,children:e.title},e.url))]},e.url))}),tH=e=>{let{layout:t}=e;return t.sitemap?(0,c.jsx)(tO,{sitemap:t.sitemap}):null};l(571);var tK=l(5152);let tV=l.n(tK)()(()=>Promise.all([l.e(108),l.e(153)]).then(l.bind(l,9153)),{loadableGenerated:{webpack:()=>[9153]},ssr:!1}),tW=e=>{let t=(0,x.useRef)(null);return(0,c.jsxs)("div",{className:"relative h-screen min-h-[811px] w-full overflow-hidden md:min-h-[1024px] lg:min-h-[768px] xl:min-h-[720px] 2xl:min-h-[1118px]",children:[(0,c.jsx)(tV,{theme:e.theme,mapState:e.mapState,pins:e.pins,onMarkerClick:function(e){t.current&&t.current.flyTo({center:[e.lng,e.lat],zoom:10})},mapRef:t}),(0,c.jsxs)("div",{className:"absolute left-5 top-0 flex w-[calc(100%_-_40px)] flex-col bg-white pt-[8px] md:left-6 md:top-6 md:max-w-[299px]",children:[e.pins.map((e,l)=>(0,c.jsx)(P.z,{variant:"mono",onClick:()=>{t.current&&t.current.flyTo({center:[e.lng,e.lat],zoom:10})},className:"left w-full border-b-[1px] border-[rgba(0,0,0,0.2)] !py-[11px] px-8 text-left text-base font-[450] uppercase md:!py-[18px] md:text-sm 3xl:text-[0.938rem]",children:e.title},l)),(0,c.jsx)("p",{className:"relative px-8 py-4 pl-[80px] before:absolute before:left-8 before:top-1/2 before:block before:w-[32px] before:border-2 before:border-maple-leaf",children:"Explore More Than 1100 Heli Ski Runs"})]})]})},tq=e=>{var t,l;let{layout:a}=e;return(0,c.jsx)(tW,{theme:"dark",mapState:{zoom:parseInt(a.map_state.zoom),latitude:Number(a.map_state.lat),longitude:Number(a.map_state.long)},pins:null!==(l=null===(t=a.pins)||void 0===t?void 0:t.map(e=>({id:e.acf.pin_id,title:e.acf.pin_title,url:e.acf.url,lat:Number(e.acf.coordinates.Lat),lng:Number(e.acf.coordinates.long),menu_order:Number(e.menu_order)})))&&void 0!==l?l:[]})},tY=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],tX=e=>{let{title:t,value:l,unit:a,icon:i,textSummary:s,isHalfWidth:r=!1}=e;return(0,c.jsxs)("div",{className:"flex h-full w-full justify-center gap-6 bg-white px-6 py-8",children:[(0,c.jsxs)("div",{className:"flex w-1/2 flex-col items-center justify-center",children:[i&&(0,c.jsx)(Y.J,{name:i,className:g()("mx-auto mb-2 w-[60px] text-[#107DBA]",{"sm:mb-6 md:w-20 2xl:w-[100px]":r,"md:mb-4":!r})}),s&&(0,c.jsx)("p",{className:"text-center text-lg font-[450]",children:s})]}),l&&(0,c.jsxs)("div",{className:"flex w-1/2 flex-col justify-center text-deep-blue",children:[(0,c.jsxs)("p",{className:"mx-auto w-fit whitespace-nowrap px-5 font-main",children:[(0,c.jsx)("span",{className:g()("leading-none",{"text-[41px] font-extrabold md:text-[56px] lg:text-[64px] xl:text-[80px] 2xl:text-[100px]":r,"text-4xl font-medium xl:text-5xl 2xl:text-[60px]":!r}),children:l}),a&&(0,c.jsxs)("span",{className:g()("inline-block align-top font-main font-medium uppercase lg:text-xl",{"ml-1 md:mt-1 xl:mt-2 2xl:mt-3":r,"2xl:mt-1":!r}),children:[["C","F"].includes(a)?"\xb0":"",a]})]}),t&&(0,c.jsx)("p",{className:g()("text-center text-lg font-medium uppercase md:text-xl 2xl:text-2xl",{"order-first":!r}),children:tY.includes(t.toUpperCase())?t.slice(0,3):t})]})]})},tJ=e=>{let{items:t}=e;return(0,c.jsx)("div",{className:"flex h-full flex-col justify-center gap-4 bg-white py-4 sm:flex-row md:w-[520px] md:gap-3 md:py-2 lg:w-[680px] xl:w-[830px] xl:gap-8",children:t.map((e,t)=>e.title&&e.value&&(0,c.jsxs)("div",{className:"flex flex-col justify-around text-deep-blue xl:w-[200px] 2xl:w-[250px]",children:[(0,c.jsxs)("p",{className:"mx-auto w-fit whitespace-nowrap px-5 font-main",children:[(0,c.jsx)("span",{className:"text-[41px] font-extrabold leading-none md:text-[56px] lg:text-[64px] xl:text-[80px] 2xl:text-[100px]",children:e.value}),e.unit&&(0,c.jsxs)("span",{className:"inline-block align-top font-main text-base font-medium uppercase md:mt-1 md:text-lg lg:text-xl xl:mt-2 2xl:mt-3",children:[["C","F"].includes(e.unit)?"\xb0":"",e.unit]})]}),(0,c.jsx)("p",{className:"text-center text-lg font-medium uppercase md:text-xl 2xl:text-2xl",children:e.title}),e.description&&(0,c.jsx)("p",{className:"text-center text-lg font-[450]",children:e.description})]},t))})},tQ=e=>{let{currentTemp:t}=e;return(0,c.jsx)("div",{className:"flex h-full justify-center bg-white py-4 md:w-full md:gap-3 xl:gap-8",children:(0,c.jsxs)("div",{className:"xl:w-[300px]'} flex flex-col justify-center text-deep-blue",children:[t.value&&(0,c.jsxs)("p",{className:"mx-auto w-fit whitespace-nowrap px-5 font-main",children:[(0,c.jsx)("span",{className:"text-[41px] font-extrabold leading-none md:text-[56px] lg:text-[64px] xl:text-[80px] 2xl:text-[100px]",children:t.value}),t.unit&&(0,c.jsxs)("span",{className:"inline-block align-top font-main text-base font-medium uppercase md:mt-1 md:text-lg lg:text-xl xl:mt-2 2xl:mt-3",children:[["C","F"].includes(t.unit)?"\xb0":"",t.unit]})]}),(0,c.jsx)("p",{className:"text-center text-lg font-medium uppercase md:text-xl 2xl:text-2xl",children:t.title})]})})},t$=e=>{let{icon:t,textSummary:l,items:a,currentTemp:i}=e;return(0,c.jsxs)("div",{className:"flex w-full justify-center bg-white px-6 py-6 max-md:flex-col lg:px-16",children:[(0,c.jsxs)("div",{className:"flex flex-col justify-center gap-3 border-b-[1px] border-b-[rgba(0,0,0,0.2)] py-3 sm:flex-row sm:gap-10 md:border-b-0 md:border-r-[1px] md:border-r-[rgba(0,0,0,0.2)] md:py-0 md:pr-4 lg:w-[380px] xl:pr-16 2xl:w-[500px]",children:[(0,c.jsxs)("div",{className:"flex flex-col items-center justify-center xl:w-[280px] 2xl:w-[100px]",children:[t&&(0,c.jsx)(Y.J,{name:t,className:"mx-auto mb-2 w-[60px] text-[#107DBA] sm:mb-6 md:w-20 2xl:w-[100px]"}),l&&(0,c.jsx)("p",{className:"max-w-[300px] text-center text-lg font-[450]",children:l})]}),(0,c.jsx)(tQ,{currentTemp:i})]}),(0,c.jsx)(tJ,{items:a})]})},t0={weekday:"long",day:"numeric",month:"long",year:"numeric"},t1={hour:"2-digit",minute:"numeric",timeZone:"UTC",timeZoneName:"short"},t2={bigSnowMountain:"Eagle Lodge & MV Cascadia",talchako:"Tweedsmuir Park Lodge",isolationPeak:"Sand Creek Ranch"},t4=e=>{var t,l,a,i,s,r,n,d,o,m,p,u,h;
1let{title:v,nextUpdatedDate:j,weatherForecasts:f}=e,[w,N]=(0,x.useState)(t2.bigSnowMountain);if(!(null==f?void 0:null===(t=f[0])||void 0===t?void 0:t.forecasts))return null;let y=f.find(e=>e.location===w),_=null==y?void 0:null===(l=y.forecasts)||void 0===l?void 0:l[0],C=j?new Date(j):"",S=0,D=0;null==y||null===(a=y.forecasts)||void 0===a||a.forEach((e,t)=>{var l,a;1!==t&&(S+=(null===(l=e.accumulatedSnow)||void 0===l?void 0:l.value)?Number(e.accumulatedSnow.value):0,t<2&&(D+=(null===(a=e.accumulatedSnow)||void 0===a?void 0:a.value)?Number(e.accumulatedSnow.value):0))});let E={title:"Current Temperature",value:null==_?void 0:null===(i=_.temperature)||void 0===i?void 0:i.value,unit:null==_?void 0:null===(s=_.temperature)||void 0===s?void 0:s.unit},P=[{title:"24 Hours",value:String(D),unit:"CM"},{title:"7 Days",value:String(S),unit:"CM"}];return(null==y?void 0:null===(n=y.additionalData)||void 0===n?void 0:null===(r=n.accumulatedSnowBase)||void 0===r?void 0:r.display)&&y.additionalData.accumulatedSnowBase.depth&&P.push({title:"Accumulated Snow Base",value:y.additionalData.accumulatedSnowBase.depth,unit:String(y.additionalData.accumulatedSnowBase.unit),description:y.additionalData.altitude?y.additionalData.altitude:""}),(0,c.jsxs)("div",{className:"mt-8",children:[(0,c.jsx)(M.t,{className:"text-snow"}),(0,c.jsxs)("div",{className:"mx-auto w-full bg-snow px-8 pb-[60px] text-black md:pb-20 lg:pb-[124px] 3xl:px-[148px]",children:[(0,c.jsxs)("div",{className:"flex justify-between py-10 max-xl:flex-col lg:py-[60px] xl:items-center 3xl:pb-20",children:[(0,c.jsx)(A.H2,{className:"font-extrabold max-xl:mb-6 3xl:max-w-[858px]",children:v}),(0,c.jsxs)("div",{className:"flex flex-col 3xl:w-[588px]",children:[(0,c.jsx)(k.CK,{className:"text-lg font-light leading-8",children:"Current Conditions Updated:"}),C&&(0,c.jsx)(k.CK,{className:"text-lg !font-[450] leading-8",children:"Next update by ".concat(new Intl.DateTimeFormat("en-US",t0).format(C)," at ").concat(new Intl.DateTimeFormat("en-US",t1).format(C))})]})]}),(0,c.jsx)("div",{className:"mb-20 flex justify-center gap-6 max-md:hidden",children:Object.entries(t2).map(e=>{let[t,l]=e;return(0,c.jsx)("button",{onClick:()=>{N(l)},className:g()("w-1/3 border border-new-blue-dark px-6 py-3 text-[15px] font-[450] uppercase tracking-[1.5px] lg:min-w-[290px] 3xl:w-[430px]","bg-[linear-gradient(to_right,#0f7dba_50%,white_50%)] bg-[length:200%_100%] transition-[color,background-position] duration-500","hover:bg-[0%_0%] hover:text-white focus:bg-[0%_0%] focus:text-white",{"bg-[0%_0%] text-white":l===w,"bg-[100%_0]":l!==w}),children:l},t)})}),(0,c.jsx)("div",{className:"mb-8 bg-new-blue-dark md:hidden",children:(0,c.jsx)("select",{onChange:e=>{N(e.target.value)},value:w,className:"h-[90px] w-full text-wrap border-r-[24px] border-r-new-blue-dark bg-new-blue-dark p-6 text-[15px] font-[450] uppercase tracking-[1.5px] text-white sm:h-[100%]",children:Object.values(t2).map(e=>(0,c.jsx)("option",{value:e,className:"bg-new-blue-dark",children:e},e))})}),_&&(0,c.jsxs)("div",{className:"mt-6 flex flex-col gap-6 xl:mt-8 xl:gap-8",children:[(0,c.jsx)(t$,{icon:_.icon,textSummary:_.textSummary,items:P,currentTemp:E}),(0,c.jsxs)("div",{className:"flex gap-6 max-md:flex-col xl:gap-8",children:[(0,c.jsx)(tX,{title:"Wind Speed",value:null===(d=_.surfaceWind)||void 0===d?void 0:d.value,unit:null===(o=_.surfaceWind)||void 0===o?void 0:o.unit,icon:"wind",isHalfWidth:!0}),(0,c.jsx)(tX,{title:"Freezing Level",value:null===(p=_.freezingLevel)||void 0===p?void 0:null===(m=p.height)||void 0===m?void 0:m.value,unit:null===(h=_.freezingLevel)||void 0===h?void 0:null===(u=h.height)||void 0===u?void 0:u.unit,icon:"temperature",isHalfWidth:!0})]})]}),(null==y?void 0:y.forecasts)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(A.H3,{className:"py-16 lg:text-center",children:"Forecast Ahead"}),(0,c.jsx)("div",{className:"grid gap-6 max-lg:hidden md:grid-cols-2 xl:grid-cols-4 xl:gap-8",children:y.forecasts.slice(1).map(e=>{var t,l;return(0,c.jsx)(tX,{title:e.period,value:null===(t=e.temperature)||void 0===t?void 0:t.value,unit:null===(l=e.temperature)||void 0===l?void 0:l.unit,icon:e.icon,textSummary:e.textSummary},e.period)})}),(0,c.jsx)("div",{className:"-mr-8 lg:hidden",children:(0,c.jsx)(b,{id:"weather",children:y.forecasts.slice(1).map(e=>{var t,l;return(0,c.jsx)(tX,{title:e.period,value:null===(t=e.temperature)||void 0===t?void 0:t.value,unit:null===(l=e.temperature)||void 0===l?void 0:l.unit,icon:e.icon,textSummary:e.textSummary},e.period)})})})]})]}),(0,c.jsx)(M.t,{className:"bg-snow text-deep-blue"})]})};var t3=l(3256);let t6=e=>{var t,l,a,i,s,r,n,d;let{layout:o}=e,x=null===(t=o.weatherFeeds)||void 0===t?void 0:t[0];if(!x)return null;let m=null===(l=o.weatherFeeds)||void 0===l?void 0:l.map(e=>{var t,l,a,i,s,r,n,c,d,o,x;return{location:e.location?function(e){switch(e){case"Big Snow Mountain":return"Eagle Lodge & MV Cascadia";case"Isolation Peak":return"Sand Creek Ranch";case"Talchako":return"Tweedsmuir Park Lodge";default:return}}(e.location["#value"]):void 0,forecasts:null===(i=e.forecasts)||void 0===i?void 0:null===(a=i.daily)||void 0===a?void 0:null===(l=a.automated)||void 0===l?void 0:null===(t=l.forecast)||void 0===t?void 0:t.map(e=>{var t,l,a,i,s,r,n,c,d,o,x,m,p,u,h,g,b,v,j,f,w,N;return{period:null===(t=e.period)||void 0===t?void 0:t["#value"],textSummary:null===(l=e.textSummary)||void 0===l?void 0:l["#value"],icon:Object.keys(t3.q).includes("weather-".concat(null===(a=e.iconCode)||void 0===a?void 0:a["#value"]))?"weather-".concat(null===(i=e.iconCode)||void 0===i?void 0:i["#value"]):void 0,temperature:{textSummary:null===(s=e.temperatures)||void 0===s?void 0:s.textSummary,value:Array.isArray(null===(r=e.temperatures)||void 0===r?void 0:r.surfaceTemperature)?null===(n=e.temperatures.surfaceTemperature[0])||void 0===n?void 0:n["#value"]:null===(d=e.temperatures)||void 0===d?void 0:null===(c=d.surfaceTemperature)||void 0===c?void 0:c["#value"],unit:Array.isArray(null===(o=e.temperatures)||void 0===o?void 0:o.surfaceTemperature)?null===(x=e.temperatures.surfaceTemperature[0])||void 0===x?void 0:x["@units"]:null===(p=e.temperatures)||void 0===p?void 0:null===(m=p.surfaceTemperature)||void 0===m?void 0:m["@units"]},accumulatedSnow:(null===(u=e.precipitation)||void 0===u?void 0:u.accumulation)?{value:e.precipitation.accumulation["#value"],unit:e.precipitation.accumulation["@units"]}:void 0,surfaceWind:{value:null===(g=e.surfaceWind)||void 0===g?void 0:null===(h=g.speed)||void 0===h?void 0:h["#value"],unit:null===(v=e.surfaceWind)||void 0===v?void 0:null===(b=v.speed)||void 0===b?void 0:b["@units"]},freezingLevel:{height:{value:null===(f=e.freezingLevel)||void 0===f?void 0:null===(j=f.height)||void 0===j?void 0:j["#value"],unit:null===(N=e.freezingLevel)||void 0===N?void 0:null===(w=N.height)||void 0===w?void 0:w["@units"]}}}}),additionalData:{accumulatedSnowBase:{depth:null===(r=e.additionalData)||void 0===r?void 0:null===(s=r.accumulatedSnowBase)||void 0===s?void 0:s.depth,unit:null===(c=e.additionalData)||void 0===c?void 0:null===(n=c.accumulatedSnowBase)||void 0===n?void 0:n.unit,display:null===(o=e.additionalData)||void 0===o?void 0:null===(d=o.accumulatedSnowBase)||void 0===d?void 0:d.display}
1,altitude:null===(x=e.additionalData)||void 0===x?void 0:x.altitude}}});return(0,c.jsx)(t4,{title:o.title_content,titleElement:o.title_heading,createdDate:null===(s=x.dateTime)||void 0===s?void 0:null===(i=s.find(e=>"xmlCreation"===e["@name"]))||void 0===i?void 0:null===(a=i.date)||void 0===a?void 0:a["#value"],nextUpdatedDate:null===(d=x.dateTime)||void 0===d?void 0:null===(n=d.find(e=>"nextXmlCreation"===e["@name"]))||void 0===n?void 0:null===(r=n.date)||void 0===r?void 0:r["#value"],weatherForecasts:m})},t8=e=>{let{acfLayout:t,index:l,inquireUrl:a}=e;try{switch(t.acf_fc_layout){case"faqs":return(0,c.jsx)(O,{layout:t});case"large_accordion":return(0,c.jsx)(ew,{layout:t});case"destinations_carousel":return(0,c.jsx)(B,{layout:t,index:l});case"full_width_image_with_content":return(0,c.jsx)(eH,{layout:t});case"gallery_slider":return(0,c.jsx)(K,{layout:t,index:l});case"info_cards":return(0,c.jsx)(eo,{layout:t,inquireUrl:a});case"interactive_map":return(0,c.jsx)(tq,{layout:t});case"intro_content":return(0,c.jsx)(em,{layout:t});case"split_content":return(0,c.jsx)(eP,{layout:t});case"package_carousel":return(0,c.jsx)(eS,{layout:t,index:l});case"small_card_carousel":return(0,c.jsx)(eU,{layout:t,index:l});case"quotes":return(0,c.jsx)(ez,{layout:t});case"static_map":return(0,c.jsx)(eq,{layout:t});case"icon_content_grid":return(0,c.jsx)(eB,{layout:t});case"members_grid":return(0,c.jsx)(eZ,{layout:t});case"blog_carousel":return(0,c.jsx)(eJ,{layout:t,index:l});case"blog_cards":return(0,c.jsx)(e$,{layout:t});case"detailed_accordion":return(0,c.jsx)(tl,{layout:t});case"table_content":return(0,c.jsx)(tb,{layout:t});case"gallery":return(0,c.jsx)(tN,{layout:t});case"comparison_table":return(0,c.jsx)(tE,{layout:t});case"forms":return(0,c.jsx)(tT,{layout:t});case"members_carousel":return(0,c.jsx)(tB,{layout:t,index:l});case"basic_content":return(0,c.jsx)(tG,{layout:t});case"iframe":return(0,c.jsx)(tZ,{layout:t});case"sitemap":return(0,c.jsx)(tH,{layout:t});case"weather":return(0,c.jsx)(t6,{layout:t})}}catch(e){return console.log("[frontendUtils] Error in paragraph: ".concat(t.acf_fc_layout)),console.log(e),null}};var t5=l(7817);function t9(){return(t9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}var t7=function(e){return x.createElement("svg",t9({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 33"},e),n||(n=x.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.875 32.442h-1.174V24.75c0-1.074-2.021-.504-3.74.15-1.72.655-3.515.663-3.515.663v-2.55L0 16.54s2.659.587 2.97-.973c.31-1.569-.957-5.066-.957-5.066s4.462 2.189 4.873 1.291c.41-.897.41-2.7.41-2.7s4.798 7.523 5.679 5.518c.88-1.996-2.231-11.087-2.231-11.087s2.214 2.29 3.355 1.224C15.248 3.682 16.473 0 16.473 0s1.232 4.672 2.29 4.999c1.064.327 3.362-1.065 3.362-1.065s-3.463 9.729-2.306 10.685c1.157.948 5.661-5.435 5.661-5.435s-.57 2.214.57 2.617c1.15.41 5-.822 5-.822s-1.863 3.707-1.233 4.613c.62.906 2.725.906 2.725.906l-8.06 6.332v2.566s-2.248.143-3.808-.67c-1.56-.822-3.707-1.024-3.74.075-.042 1.216-.042 7.649-.042 7.649z",clipRule:"evenodd"})))};let le=e=>{let{image:t,title:l,video:a,pretitle:i,isCanadaEyebrow:s=!1}=e,[r,n]=(0,x.useState)(!0),d=(0,x.useRef)(null);return(0,c.jsxs)("div",{className:"relative h-screen w-full overflow-hidden",children:[a&&(0,c.jsxs)("div",{className:"relative h-full w-full",children:[(0,c.jsx)("video",{ref:d,className:"h-full w-full object-cover",src:a.src,playsInline:!0,autoPlay:!0,muted:!0,loop:!0}),(0,c.jsx)("button",{onClick:()=>{d.current&&(r?d.current.pause():d.current.play(),n(!r))},className:"absolute bottom-[20px] right-[20px] z-10 grid h-[32px] w-[32px] place-items-center rounded-[50%] border-[2px] border-[solid] border-[white] bg-transparent p-0 [filter:drop-shadow(0_0_4px_rgb(black,_0.4))]",children:(0,c.jsx)("span",{className:g()("relative h-[14px] w-[10px] [transition:border-color_0.3s_ease-in-out] before:transition-opacity before:duration-300 before:ease-in-out after:transition-opacity after:duration-300 after:ease-in-out",{"-mr-[4px] border-b-[7px] border-l-[10px] border-r-0 border-t-[7px] border-solid border-b-transparent border-l-white border-t-transparent before:opacity-0 before:content-[''] after:opacity-0 after:content-['']":!r,"relative border-transparent before:absolute before:left-0 before:top-1/2 before:h-[14px] before:w-[2px] before:translate-y-[-50%] before:bg-white before:opacity-100 before:content-[''] after:absolute after:right-0 after:top-1/2 after:h-[14px] after:w-[2px] after:translate-y-[-50%] after:bg-white after:opacity-100 after:content-['']":r})})})]}),t&&!a&&(0,c.jsx)("div",{className:"relative h-full w-full",children:(0,c.jsx)(f(),{fill:!0,src:t.src,alt:t.alt,className:"object-cover object-center",sizes:"100vw"})}),(0,c.jsx)("div",{className:"absolute inset-0 bg-black/30"}),(0,c.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60"}
1),(0,c.jsxs)("div",{className:"absolute bottom-[105px] w-full px-8 md:bottom-[120px] md:px-[92px] lg:bottom-[70px] lg:px-20 xl:bottom-[89px] xl:px-[100px] 3xl:bottom-[124px]",children:[i?s?(0,c.jsxs)("div",{className:"mb-6 flex items-center gap-x-6 text-white lg:mb-8",children:[(0,c.jsx)(k.j4,{children:i}),(0,c.jsx)(t7,{width:32,className:"text-[#DF3B31]"})]}):(0,c.jsxs)("div",{className:"mb-6 flex items-center gap-x-6 text-white lg:mb-8",children:[(0,c.jsx)(v.Z,{className:"animate-spin-slow",width:24}),(0,c.jsx)(k.j4,{children:i})]}):null,l&&(0,c.jsx)(A.H1,{className:"text-white",children:(0,C.N)(l)})]})]})},lt=e=>{let{layout:t,isHomepage:l=!1}=e;return"small"===t.hero_size?(0,c.jsx)(t5.H,{title:t.hero_heading,pretitle:t.hero_tagline}):(0,c.jsx)(le,{image:F(t.hero_image),title:t.hero_heading,pretitle:t.hero_tagline,video:"video"===t.background_type&&t.hero_video?{src:t.hero_video.url}:void 0,isCanadaEyebrow:l})},ll=e=>{let{breadcrumbs:t}=e;return(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 px-8 py-4 text-[13px] uppercase lg:px-20",children:t.map((e,l)=>l===t.length-1?(0,c.jsx)("span",{children:(0,C.N)(e.title)},e.path):(0,c.jsxs)(x.Fragment,{children:[(0,c.jsx)("span",{children:(0,c.jsx)(N(),{href:e.path,className:"gtm-breadcrumbs",children:(0,C.N)(e.title)})}),(0,c.jsxs)("span",{className:"flex text-new-blue-light",children:[(0,c.jsx)(u.Z,{width:5}),(0,c.jsx)(u.Z,{width:5})]})]},e.path))})},la=e=>(0,c.jsxs)("div",{children:[(0,c.jsx)(ex.p,{alignment:e.post.acf.intro_content.content_alignment,primaryContent:e.post.acf.intro_content.primary_content,secondaryContent:e.post.acf.intro_content.secondary_content,ctas:e.post.acf.intro_content.link_array?T(e.post.acf.intro_content.link_array):void 0}),e.post.acf.general_amenities&&(0,c.jsx)(eT,{items:e.post.acf.general_amenities.map(e=>({icon:"none"===e.icons?void 0:e.icons,title:e.title,subtitle:e.subtitle,body:e.description}))})]});var li=!0;function ls(e){if(!e.post)return;let t="/"===e.post.link;return(0,c.jsxs)(d.F,{mainMenu:e.mainMenu,secondaryMenus:e.secondaryMenus,generalSettings:e.generalSettings,banners:e.banners,popups:e.popups,meta:e.post.aioseo_head,isHomepage:t,children:["hero_size"in e.post.acf&&(0,c.jsx)(lt,{layout:{hero_size:e.post.acf.hero_size,background_type:e.post.acf.background_type,hero_image_center_point:e.post.acf.hero_image_center_point,hero_video:e.post.acf.hero_video,hero_image:e.post.acf.hero_image,video_fallback_image:e.post.acf.video_fallback_image,hero_tagline:e.post.acf.hero_tagline,hero_heading:e.post.acf.hero_heading,hero_heading_element:e.post.acf.hero_heading_element},isHomepage:t}),e.breadcrumbs&&!t&&(0,c.jsx)(ll,{breadcrumbs:[...e.breadcrumbs.parents.map(e=>({title:e.title?e.title:"Home",path:e.url})),{title:e.breadcrumbs.currentTitle,path:e.post.link}]}),"cpt_destinations"===e.post.type&&(0,c.jsx)(la,{post:e.post}),"page_layout"in e.post.acf&&e.post.acf.page_layout&&e.post.acf.page_layout.map((t,l)=>{var a;return(0,c.jsx)(t8,{acfLayout:t,index:l,inquireUrl:null===(a=e.generalSettings)||void 0===a?void 0:a.booking_url},l)})]})}}},function(e){e.O(0,[394,733,885,888,774,179],function(){return e(e.s=5759)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.