1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,797654,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var r={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},s={0:8203,1:8204,2:8205,3:65279},l=[,,,,].fill(String.fromCodePoint(s[0])).join("");function i(e,t,r="auto"){let a;return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${a=JSON.stringify(t),`${l}${Array.from(a).map(e=>{let t=e.charCodeAt(0);if(t>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${a} on character ${e} (${t})`);return Array.from(t.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(s[e])).join("")}).join("")}`}`}Object.from
1Entries(Object.entries(s).map(e=>e.reverse())),Object.fromEntries(Object.entries(r).map(e=>e.reverse()));var a=`${Object.values(r).map(e=>`\\u{${e.toString(16)}}`).join("")}`,n=RegExp(`[${a}]{4,}`,"gu");function o(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(n,""),encoded:(null==(r=t.match(n))?void 0:r[0])||""}.cleaned)}e.s(["C",()=>i,"isRecord",()=>t,"stegaClean",()=>o])},36102,e=>{"use strict";function t(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",()=>t])},895751,e=>{"use strict";let t=(0,e.i(510965).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],895751)},994179,e=>{"use strict";var t=e.i(666567),r=e.i(294237),s=e.i(647163);let l=(0,r.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i({className:e,variant:r,...i}){return(0,t.jsx)("div",{className:(0,s.cn)(l({variant:r}),e),...i})}e.s(["Badge",()=>i])},130723,e=>{"use strict";let t=(0,e.i(510965).default)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",()=>t],130723)},864347,e=>{"use strict";let t=(0,e.i(510965).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",()=>t])},84135,e=>{"use strict";let t=(0,e.i(510965).default)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>t],84135)},23750,e=>{"use strict";var t=e.i(666567),r=e.i(647163);function s({className:e,type:s,...l}){return(0,t.jsx)("input",{type:s,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...l})}e.s(["Input",()=>s])},955800,e=>{"use strict";var t=e.i(364074);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let s=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",()=>s])},669756,141322,84739,e=>{"use strict";var t=e.i(379783),r=e.i(536895);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let r=!1,l=e.map(e=>{let l=s(e,t);return r||"function"!=typeof l||(r=!0),l});if(r)return()=>{for(let t=0;t<l.length;t++){let r=l[t];"function"==typeof r?r():s(e[t],null)}}}}function i(...e){return t.useCallback(l(...e),e)}e.s(["composeRefs",()=>l,"useComposedRefs",()=>i],141322);var a=e.i(666567),n=t.forwardRef((e,r)=>{let{children:s,...l}=e,i=t.Children.toArray(s),n=i.find(u);if(n){let e=n.props.children,s=i.map(r=>r!==n?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,a.jsx)(o,{...l,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,s):null})}return(0,a.jsx)(o,{...l,ref:r,children:s})});n.displayName="Slot";var o=t.forwardRef((e,r)=>{let{children:s,...i}=e;if(t.isValidElement(s)){var a;let e,n,o=(a=s,(n=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.
1isReactWarning)?a.ref:(n=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref);return t.cloneElement(s,{...function(e,t){let r={...t};for(let s in t){let l=e[s],i=t[s];/^on[A-Z]/.test(s)?l&&i?r[s]=(...e)=>{i(...e),l(...e)}:l&&(r[s]=l):"style"===s?r[s]={...l,...i}:"className"===s&&(r[s]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}(i,s.props),ref:r?l(r,o):o})}return t.Children.count(s)>1?t.Children.only(null):null});o.displayName="SlotClone";var c=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function u(e){return t.isValidElement(e)&&e.type===c}e.s(["Slot",()=>n],84739);var d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let s=t.forwardRef((e,t)=>{let{asChild:s,...l}=e,i=s?n:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i,{...l,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});function m(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>d,"dispatchDiscreteCustomEvent",()=>m],669756)},178896,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:s=!0}={}){return function(t){if(e?.(t),!1===s||!t.defaultPrevented)return r?.(t)}}e.s(["composeEventHandlers",()=>t])},217534,e=>{"use strict";var t=e.i(379783),r=e.i(666567);function s(e,l=[]){let i=[],a=()=>{let r=i.map(e=>t.createContext(e));return function(s){let l=s?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[function(s,l){let a=t.createContext(l),n=i.length;i=[...i,l];let o=s=>{let{scope:l,children:i,...o}=s,c=l?.[e]?.[n]||a,u=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(c.Provider,{value:u,children:i})};return o.displayName=s+"Provider",[o,function(r,i){let o=i?.[e]?.[n]||a,c=t.useContext(o);if(c)return c;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${s}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let s=()=>{let s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=s.reduce((t,{useScope:r,scopeName:s})=>{let l=r(e)[`__scope${s}`];return{...t,...l}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:l}),[l])}};return s.scopeName=r.scopeName,s}(a,...l)]}e.s(["createContextScope",()=>s])},459301,e=>{"use strict";var t=e.i(379783),r=e.i(217534),s=e.i(141322),l=e.i(84739),i=e.i(666567);function a(e){let a=e+"CollectionProvider",[n,o]=(0,r.createContextScope)(a),[c,u]=n(a,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:s}=e,l=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,i.jsx)(c,{scope:r,itemMap:a,collectionRef:l,children:s})};d.displayName=a;let m=e+"CollectionSlot",f=t.default.forwardRef((e,t)=>{let{scope:r,children:a}=e,n=u(m,r),o=(0,s.useComposedRefs)(t,n.collectionRef);return(0,i.jsx)(l.Slot,{ref:o,children:a})});f.displayName=m;let h=e+"CollectionItemSlot",p="data-radix-collection-item",g=t.default.forwardRef((e,r)=>{let{scope:a,children:n,...o}=e,c=t.default.useRef(null),d=(0,s.useComposedRefs)(r,c),m=u(h,a);return t.default.useEffect(()=>(m.itemMap.set(c,{ref:c,...o}),()=>void m.itemMap.delete(c))),(0,i.jsx)(l.Slot,{...{[p]:""},ref:d,children:n})});return g.displayName=h,[{Provider:d,Slot:f,ItemSlot:g},function(r){let s=u(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},o]}e.s(["createCollection",()=>a])},546621,e=>{"use strict";var t=e.i(379783);e.i(666567);var r=t.createContext(void 0);function s(e){let s=t.useContext(r);return e||s||"ltr"}e.s(["useDirection",()=>s])},215981,e=>{"use strict";var t=e.i(379783);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}e.s(["useCallbackRef",()=>r])},508372,e=>{"use strict";var t=e.i(379783),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},847946,e=>{"use strict";var t=e.i(379783),r=e.i(508372),s=t["useId".toString()]||(()=>void 0),l=0;function i(e){let[i,a]=t.useState(s());return(0,r.useLayoutEffect)(()=>{e||a(e=>e??String(l++))},[e]),e||(i?`radix-${i}`:"")}e.s(["useId",()=>i])},571585,e=>{"use strict";var t=e.i(379783),r=e.i(215981);function s({prop:e,defaultProp:s,onChange:l=()=>{}}){let[i,a]=function({defaultProp:e,onChange:s}){let l=t.useState(e),[i]=l,a=t.useRef(i),n=(0,r.useCallbackRef)(s);return t.useEffect(()=>{a.current!==i&&(n(i),a.current=i)},[i,a,n]),l}({defaultProp:s,onChange:l}
1),n=void 0!==e,o=n?e:i,c=(0,r.useCallbackRef)(l);return[o,t.useCallback(t=>{if(n){let r="function"==typeof t?t(e):t;r!==e&&c(r)}else a(t)},[n,e,a,c])]}e.s(["useControllableState",()=>s])},674126,e=>{"use strict";var t=e.i(379783),r=e.i(141322),s=e.i(508372),l=e=>{var l;let a,n,{present:o,children:c}=e,u=function(e){var r,l;let[a,n]=t.useState(),o=t.useRef({}),c=t.useRef(e),u=t.useRef("none"),[d,m]=(r=e?"mounted":"unmounted",l={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>l[e][t]??e,r));return t.useEffect(()=>{let e=i(o.current);u.current="mounted"===d?e:"none"},[d]),(0,s.useLayoutEffect)(()=>{let t=o.current,r=c.current;if(r!==e){let s=u.current,l=i(t);e?m("MOUNT"):"none"===l||t?.display==="none"?m("UNMOUNT"):r&&s!==l?m("ANIMATION_OUT"):m("UNMOUNT"),c.current=e}},[e,m]),(0,s.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let s=i(o.current).includes(r.animationName);if(r.target===a&&s&&(m("ANIMATION_END"),!c.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},s=e=>{e.target===a&&(u.current=i(o.current))};return a.addEventListener("animationstart",s),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",s),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}m("ANIMATION_END")},[a,m]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{e&&(o.current=getComputedStyle(e)),n(e)},[])}}(o),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),m=(0,r.useComposedRefs)(u.ref,(l=d,(n=(a=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?l.ref:(n=(a=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?l.props.ref:l.props.ref||l.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:m}):null};function i(e){return e?.animationName||"none"}l.displayName="Presence",e.s(["Presence",()=>l])},406253,e=>{"use strict";var t=e.i(379783),r=e.i(178896),s=e.i(459301),l=e.i(141322),i=e.i(217534),a=e.i(847946),n=e.i(669756),o=e.i(215981),c=e.i(571585),u=e.i(546621),d=e.i(666567),m="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[p,g,x]=(0,s.createCollection)(h),[v,b]=(0,i.createContextScope)(h,[x]),[y,w]=v(h),j=t.forwardRef((e,t)=>(0,d.jsx)(p.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(p.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(N,{...e,ref:t})})}));j.displayName=h;var N=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,orientation:a,loop:h=!1,dir:p,currentTabStopId:x,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:j=!1,...N}=e,C=t.useRef(null),S=(0,l.useComposedRefs)(s,C),k=(0,u.useDirection)(p),[R=null,T]=(0,c.useControllableState)({prop:x,defaultProp:v,onChange:b}),[E,L]=t.useState(!1),M=(0,o.useCallbackRef)(w),P=g(i),I=t.useRef(!1),[D,O]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(m,M),()=>e.removeEventListener(m,M)},[M]),(0,d.jsx)(y,{scope:i,orientation:a,dir:k,loop:h,currentTabStopId:R,onItemFocus:t.useCallback(e=>T(e),[T]),onItemShiftTab:t.useCallback(()=>L(!0),[]),onFocusableItemAdd:t.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>O(e=>e-1),[]),children:(0,d.jsx)(n.Primitive.div,{tabIndex:E||0===D?-1:0,"data-orientation":a,...N,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(m,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),j)}}I.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>L(!1))})})}),C="RovingFocusGroupItem",S=t.forwardRef((e,s)=>
1{let{__scopeRovingFocusGroup:l,focusable:i=!0,active:o=!1,tabStopId:c,...u}=e,m=(0,a.useId)(),f=c||m,h=w(C,l),x=h.currentTabStopId===f,v=g(l),{onFocusableItemAdd:b,onFocusableItemRemove:y}=h;return t.useEffect(()=>{if(i)return b(),()=>y()},[i,b,y]),(0,d.jsx)(p.ItemSlot,{scope:l,id:f,focusable:i,active:o,children:(0,d.jsx)(n.Primitive.span,{tabIndex:x?0:-1,"data-orientation":h.orientation,...u,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let l=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(l))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(l)))return k[l]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let l=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)l.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&l.reverse();let i=l.indexOf(e.currentTarget);l=h.loop?(r=l,s=i+1,r.map((e,t)=>r[(s+t)%r.length])):l.slice(i+1)}setTimeout(()=>A(l))}})})})});S.displayName=C;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>S,"Root",()=>j,"createRovingFocusGroupScope",()=>b])},286591,e=>{"use strict";let t=(0,e.i(510965).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",()=>t],286591)},574244,e=>{"use strict";let t=(0,e.i(510965).default)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>t],574244)},874432,e=>{"use strict";let t=(0,e.i(510965).default)("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);e.s(["Snowflake",()=>t],874432)},390864,e=>{"use strict";var t=e.i(864347);e.s(["ChevronDown",()=>t.default])},705576,e=>{"use strict";let t=(0,e.i(510965).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",()=>t],705576)},342446,e=>{"use strict";var t=e.i(666567),r=e.i(379783),s=e.i(647163),l=e.i(843148);let i=({className:e,heading:i="Arctic Adventures",description:a="Experience the magic of Alta with our guided activities.",button:n,activityImages:o=[],activities:c,blogPosts:u,lang:d,videoUrl:m})=>{let f=(0,r.useRef)(null);(0,r.useEffect)(()=>{m&&f.current&&f.current.play().catch(()=>{})},[m]);let h=(0,r.useMemo)(()=>o.map(e=>e.src).join("|"),[o]),[p,g]=(0,r.useState)(null);(0,r.useEffect)(()=>{o.length>=2?g(function(e){if(e.length<=2)return[...e];let t=[...e];for(let e=t.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1));[t[e],t[r]]=[t[r],t[e]]}return t.slice(0,2)}(o)):1===o.length?g([o[0],o[0]]):g(null)},[h]);let[x,v]=p&&p.length>=2?p:[{src:"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg",alt:""},{src:"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-2.svg",alt:""}];return(0,t.jsx)(t.Fragment,{children:m?(0,t.jsxs)("section",{className:(0,s.cn)("relative h-[100svh] min-h-[560px] w-full overflow-hidden",e),children:[(0,t.jsx)("video",{ref:f,src:m,className:"absolute inset-0 h-full w-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-hidden":!0}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/40 via-black/20 to-black/70"}),(0,t.jsxs)("div",{className:"relative z-10 flex h-full flex-col items-start justify-end px-6 pb-20 md:px-16 md:pb-28",children:[(0,t.jsx)("h1",{className:"max-w-3xl font-serif text-4xl leading-[1.05] text-white sm:text-5xl md:text-6xl lg:text-7xl",children:i}),(0,t.jsx)("p",{className:"mt-6 max-w-xl text-base leading-relaxed text-white/85 md:text-lg",children:a})]})]}):(0,t.jsx)("section",{className:(0,s.cn)("relative border-b border-muted bg-background",e),children:(0,t.jsx)("div",{className:"stripe-section stripe-section--hero",children:(0,t.jsx)("div",{className:"stripe-section__content",children:(0,t.jsx)("div",{className:"stripe-container pt-6 md:pt-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 items-center gap-10 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex w-full max-w-[31.25rem] flex-col gap-9 lg:max-w-[37.5rem] lg:py-[13%] xl:py-[17%]",children:[(0,t.jsx)("h1",{className:"text-[clamp(3.5rem,calc(6.5vw+2.3rem),9.5rem)] leading-[0.85] tracking-[-0.03em] text-foreground",children:i}),(0,t.jsx)("p",{className:"text-[clamp(1.125rem,1.125vw,1.4rem)] leading-normal text-muted-foreground",children:a})]}),(0,t.jsxs)("div",{className:"relative ml-auto aspect-square w-full max-w-[34rem] overflow-hidden justify-self-end",children:[(0,t.jsx)("div",{className:"absolute right-[0%] top-[4%] z-10 w-[66%] overflow-hidden rounded-2xl",children:(0,t.jsx)(l.AspectRatio,{ratio:.918918919,children:(0,t.jsx)("img",{src:x.src,alt:x.alt,className:"block size-full object-cover object-center"})})}),(0,t.jsx)("div",{className:"absolute left-[0%] bottom-[8%] z-20 w-[68%] overflow-hidden rounded-2xl shadow-md",children:(0,t.jsx)(l.AspectRatio,{ratio:1.381308411,children:(0,t.jsx)("img",{src:v.src,alt:v.alt,className:"block size-full object-cover object-center"})})})]})]})})})})})})};e.s(["TravelHero",()=>i])},843148,e=>{"use strict";var t=e.i(666567),r=e.i(379783),s=e.i(669756),l=r.forwardRef((e,r)=>{let{ratio:l=1,style:i,...a}=e;return(0,t.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/l}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,t.jsx)(s.Primitive.div,{...a,ref:r,style:{...i,position:"absolute",top:0,right:0,bottom:0,left:0}})})});l.displayName="AspectRatio";var i=e.i(647163);let a=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(l,{ref:s,className:(0,i.cn)("relative h-full w-full overflow-hidden",e),...r}));a.displayName=l.displayName,e.s(["AspectRatio",()=>a],843148)},854705,e=>{"use strict";var t=e.i(379783);function r(e,s=[]){let[l,i]=(0,t.useState)(s),[a,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{i(s),n(!1)},[s,e]),l}function s(e,r=[]){let[l,i]=(0,t.useState)(r),[a,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{i(r),n(!1)},[r]),l}function l(e,r=[]){let[s,i]=(0,t.useState)(r),[a,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{i(r),n(!1)},[r]),s}function i(e,r=[]){let[s,l]=(0,t.useState)(r),[a,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>
1{l(r),n(!1)},[r,e]),s}function a(e,r=[]){let[s,l]=(0,t.useState)(r),[i,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{l(r),n(!1)},[r,e]),s}function n(e,r=[]){let[s,l]=(0,t.useState)(r),[i,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{l(r),a(!1)},[r,e]),s}e.s(["useAccommodation",()=>r,"useActivities",()=>a,"useBlogCategories",()=>l,"useBlogPosts",()=>s,"usePackages",()=>n,"useRentals",()=>i])},187816,e=>{"use strict";var t=e.i(666567),r=e.i(379783),s=e.i(895751),l=e.i(167881),i=e.i(543302),a=e.i(924078),n=e.i(647163);function o({heroCard:e,activities:o,items:c,locale:u}){let[d,m]=(0,r.useState)(0),[f,h]=(0,r.useState)(!0),p=(0,r.useRef)(null),g=(0,r.useRef)(null),x=(0,r.useRef)(0),v=(0,r.useRef)(0),b=c||[...e?[{id:"hero",title:e.title,description:e.description,primaryCTA:e.primaryCTA,primaryCTALink:e.primaryCTALink,secondaryCTA:e.secondaryCTA,secondaryCTALink:e.secondaryCTALink,imageUrl:e.backgroundImage||"/placeholder.svg?height=800&width=600",isHero:!0}]:[],...(o||[]).map(e=>({id:e._id,title:e.title||e.shortDescription||"Premium Experience",description:e.shortDescription||"",primaryCTA:"Learn More",primaryCTALink:(0,n.createLocalePath)(u,`/premium-trips/${e.slug}`),imageUrl:e.mainImage?.asset?.url?(0,a.urlFor)(e.mainImage).url():"/placeholder.svg?height=800&width=600",isHero:!1}))];(0,r.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{let t=Math.round(e.scrollTop/window.innerHeight);t!==d&&t>=0&&t<b.length&&m(t)};return e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)},[d,b.length]),(0,r.useEffect)(()=>{let e=g.current;if(!e)return;let t=new IntersectionObserver(e=>{e.forEach(e=>{h(e.isIntersecting)})},{threshold:.1,rootMargin:"-50px 0px"});return t.observe(e),()=>t.disconnect()},[]);let y=e=>{m(e);let t=p.current;if(t){let r=t.children[e];r&&r.scrollIntoView({behavior:"smooth",block:"start"})}};return(0,t.jsxs)("div",{ref:g,className:"relative",style:{height:`${100*b.length}vh`},children:[(0,t.jsx)("div",{ref:p,"data-scroll-container":!0,className:"sticky top-0 h-screen w-full overflow-y-scroll snap-y snap-mandatory [&::-webkit-scrollbar]:hidden",onTouchStart:e=>{x.current=e.touches[0].clientY},onTouchMove:e=>{v.current=e.touches[0].clientY},onTouchEnd:()=>{let e=x.current-v.current;Math.abs(e)>50&&(e>0&&d<b.length-1?y(d+1):e<0&&d>0&&y(d-1))},style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:b.map((e,r)=>(0,t.jsxs)("div",{className:"h-screen w-full relative flex items-center justify-center flex-shrink-0 snap-start snap-always",children:[(0,t.jsxs)("div",{className:"absolute inset-0 bg-black",children:[(0,t.jsx)("img",{src:e.imageUrl||"/placeholder.svg",alt:e.title,className:"h-full w-full object-cover opacity-90"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"})]}),(0,t.jsx)("div",{className:"relative z-10 w-full h-full flex flex-col justify-end p-6 pb-24 md:pb-32 md:px-16 lg:px-24 max-w-7xl mx-auto",children:(0,t.jsxs)("div",{className:"space-y-4 md:space-y-6 max-w-3xl",children:[(0,t.jsx)("h2",{className:"text-white text-2xl md:text-6xl lg:text-7xl font-bold tracking-tight",children:e.title}),(0,t.jsx)("p",{className:"text-white/90 text-base md:text-2xl lg:text-3xl leading-relaxed",children:e.description}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-3 md:gap-4 pt-4 md:pt-8",children:[(0,t.jsx)(l.Button,{size:"lg",asChild:!0,className:"bg-white text-black hover:bg-white/90 font-semibold md:text-lg md:h-14 md:px-10",children:(0,t.jsxs)(i.default,{href:e.primaryCTALink,children:[e.primaryCTA,(0,t.jsx)(s.ArrowRight,{className:"w-4 h-4 md:w-5 md:h-5 ml-2"})]})}),e.secondaryCTA&&e.secondaryCTALink?(0,t.jsx)(l.Button,{size:"lg",variant:"outline",asChild:!0,className:"border-white/40 text-white hover:bg-white/10 backdrop-blur-sm bg-transparent md:text-lg md:h-14 md:px-10",children:(0,t.jsx)(i.default,{href:e.secondaryCTALink,children:e.secondaryCTA})}):e.isHero?(0,t.jsx)(l.Button,{size:"lg",variant:"outline",asChild:!0,className:"border-white/40 text-white hover:bg-white/10 backdrop-blur-sm bg-transparent md:text-lg md:h-14 md:px-10",children:(0,t.jsx)(i.default,{href:`${(0,n.createLocalePath)(u,"/premium-trips")}#premium-trips-grid`,children:"Discover All Premium Trips"})}):null]})]})}),0===r&&(0,t.jsxs)("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 animate-bounce",children:[(0,t.jsx)("p",{className:"text-white/60 text-sm",children:"Scroll to explore"}),(0,t.jsx)("div",{className:"w-6 h-10 border-2 border-white/40 rounded-full flex items-start justify-center p-2",children:(0,t.jsx)("div",{className:"w-1.5 h-1.5 bg-white/60 rounded-full"})})]})]},e.id))}),f&&(0,t.jsx)("div",{className:"hidden md:flex fixed right-8 top-1/2 -translate-y-1/2 flex-col items-center gap-3 z-50",children:b.map((e,r)=>(0,t.jsx)("button",{onClick:()=>y(r),className:`h-2 rounded-full transition-all ${r===d?"w-2 bg-white scale-150":"w-2 bg-white/40 hover:bg-white/60"}`,"aria-label":`Go to slide ${r+1}`},r))})]})}e.s(["SocialScrollSection",()=>o])},820263,e=>{"use strict";var t=e.i(666567),r=e.i(379783),s=e.i(854705),l=e.i(924078),i=e.i(647163),a=e.i(342446),n=e.i(23750),o=e.i(62870),c=e.i(167881),u=e.i(705576),d=e.i(895751),m=e.i(761557),f=e.i(994179),h=e.i(10708),p=e.i(187816),g=e.i(876841),x=e.i(804704),v=e.i(543302);function b({lang:e,blogT:b,initialBlogPosts:y,initialBlogCategories:w}){let j=(0,s.useBlogPosts)(e,y),N=(0,s.useBlogCategories)(e,w),[C,S]=(0,r.useState)(""),[k,A]=(0,r.useState)("date"),[R,T]=(0,r.useState)("all"),E=j.map(t=>{let r=t.categories&&Array.isArray(t.categories)?t.categories.filter(e=>e&&e.name):[],s=r.length>0?r[0].name:null;return{id:t.slug?.current||t._id,title:t.title||"Blog Post",description:t.body?.[0]?.children?.[0]?.text?.slice(0,100)+"...",image:t.image?.asset?(0,l.urlFor)(t.image).url()||(0,i.getSafeImageUrl)(t.image,"/placeholder.svg"):(0,i.getSafeImageUrl)(t.image?.asset?.url,"/placeholder.svg"),category:s,date:new Date(t.publishedAt).toLocaleDateString("nb"===e?"nb-NO":"en-US",{year:"numeric",month:"long",day:"numeric"}),publishedAt:t.publishedAt,author:"Ãventyr Team",slug:t.slug?.current||""}}),L=(0,r.useMemo)(()=>{let e=[];for(let t of j){if(!t?.image?.asset)continue;let r=(0,l.urlFor)(t.image).url();!r||r.endsWith("/placeholder.jpg")||e.push({src:r,alt:t.image?.alt||t.title||"Blog post image"})}return e},[j]),M=E.filter(e=>{if(!e.slug||""===e.slug.trim())return console.warn("Blog post missing slug, skipping:",e.title),!1;let t=e.title.toLowerCase().includes(C.toLowerCase())||e.description.toLowerCase().includes(C.toLowerCase())||e.category&&e.category.toLowerCase().includes(C.toLowerCase()),r="all"===R||e.category===R;return t&&r}).sort((e,t)=>
1{switch(k){case"date":return new Date(t.publishedAt).getTime()-new Date(e.publishedAt).getTime();case"title":return e.title.localeCompare(t.title);case"category":return(e.category||"").localeCompare(t.category||"");default:return 0}});return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,t.jsx)(a.TravelHero,{heading:b?.title||"Blog",description:b?.subtitle||"Discover stories, guides, and insights from the Arctic",button:{text:b?.exploreBlog||"Explore Blog",url:(0,i.createLocalePath)(e,"/blog")},activityImages:L}),(0,t.jsx)(x.StripeSection,{edgeStripes:!0,className:"!bg-white",children:(0,t.jsx)("section",{className:"py-12",children:(0,t.jsx)("div",{className:"stripe-container px-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[(0,t.jsx)("div",{className:"lg:col-span-1",children:(0,t.jsx)("div",{className:"sticky top-24 space-y-8 bg-white p-6 rounded-lg border",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold mb-4 flex items-center",children:[(0,t.jsx)(m.Filter,{className:"h-5 w-5 mr-2"})," ",b?.filters?.title||"Filters"]}),(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{htmlFor:"search",children:b?.filters?.search||"Search"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(u.Search,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),(0,t.jsx)(n.Input,{id:"search",placeholder:b?.filters?.searchPlaceholder||"Search posts...",value:C,onChange:e=>S(e.target.value),className:"pl-8"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{children:b?.filters?.category||"Category"}),(0,t.jsxs)(o.Select,{value:R,onValueChange:T,children:[(0,t.jsx)(o.SelectTrigger,{className:"w-full",children:(0,t.jsx)(o.SelectValue,{placeholder:b?.filters?.category||"Category"})}),(0,t.jsxs)(o.SelectContent,{children:[(0,t.jsx)(o.SelectItem,{value:"all",className:"hover:bg-blue-600 hover:text-white focus:bg-blue-600 focus:text-white",children:b?.filters?.allCategories||"All Categories"}),N&&Array.isArray(N)&&N.map(e=>(0,t.jsx)(o.SelectItem,{value:e.name,className:"hover:bg-blue-600 hover:text-white focus:bg-blue-600 focus:text-white",children:e.name},e._id||e.name))]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{children:b?.filters?.sort||"Sort by"}),(0,t.jsxs)(o.Select,{value:k,onValueChange:A,children:[(0,t.jsx)(o.SelectTrigger,{className:"w-full",children:(0,t.jsx)(o.SelectValue,{placeholder:b?.filters?.sort||"Sort by"})}),(0,t.jsxs)(o.SelectContent,{children:[(0,t.jsx)(o.SelectItem,{value:"date",className:"hover:bg-blue-600 hover:text-white focus:bg-blue-600 focus:text-white",children:b?.filters?.sortByDate||"Date"}),(0,t.jsx)(o.SelectItem,{value:"title",className:"hover:bg-blue-600 hover:text-white focus:bg-blue-600 focus:text-white",children:b?.filters?.sortByTitle||"Title"}),(0,t.jsx)(o.SelectItem,{value:"category",className:"hover:bg-blue-600 hover:text-white focus:bg-blue-600 focus:text-white",children:b?.filters?.sortByCategory||"Category"})]})]})]}),(0,t.jsx)("div",{className:"pt-4 border-t",children:(0,t.jsx)(c.Button,{variant:"outline",onClick:()=>{S(""),A("date"),T("all")},className:"w-full",children:b?.filters?.reset||"Reset Filters"})})]})]})})}),(0,t.jsxs)("div",{className:"lg:col-span-3",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold",children:b?.title||"Blog"}),(0,t.jsxs)("p",{className:"text-muted-foreground",children:[M.length," ",b?.results||"results"]})]}),0===M.length?(0,t.jsx)("div",{className:"text-center py-12",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:b?.noResults||"No blog posts found matching your criteria."})}):(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:M.map(r=>{let s=r.slug&&r.slug.trim()?r.slug.trim():null;return s?(0,t.jsx)("div",{className:"cursor-pointer",children:(0,t.jsx)(v.default,{href:(0,i.createLocalePath)(e,`/blog/${s}`),className:"group",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl",children:[(0,t.jsx)("img",{src:r.image,alt:r.title,className:"h-full w-full object-cover object-center transition-transform duration-500 ease-out group-hover:scale-105",style:{aspectRatio:"3/4"}}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),(0,t.jsx)("div",{className:"absolute top-4 right-4",children:(0,t.jsx)("span",{className:"text-xs text-white/90 bg-black/30 backdrop-blur-sm px-2 py-1 rounded-md",children:r.date})}),(0,t.jsx)("div",{className:"absolute bottom-6 left-6 right-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-start space-y-2",children:[r.category&&(0,t.jsx)("div",{className:"flex items-center gap-2 mb-1",children:(0,t.jsx)(f.Badge,{className:"bg-[#ffc985] text-black text-xs px-2 py-1",children:r.category})}),(0,t.jsx)("h5",{className:"text-lg font-bold text-white",children:r.title}),(0,t.jsx)("p",{className:"text-sm text-white/90 mb-2",children:r.description}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-white/90 mt-2",children:[b?.readMore||"Read more",(0,t.jsx)(d.ArrowRight,{className:"ml-2 size-4 transition-transform group-hover:translate-x-1"})]})]})})]})})},r.id):(console.warn("Blog post missing slug:",r),null)}
1).filter(Boolean)})]})]})})})}),(0,t.jsx)(p.SocialScrollSection,{items:[{id:"how-to-dress",title:b?.scroll?.howToDress?.title||"How to Dress for the Arctic",description:b?.scroll?.howToDress?.description||"Essential clothing and gear guide for your Arctic adventure.",primaryCTA:b?.scroll?.howToDress?.cta||"View Guide",primaryCTALink:(0,i.createLocalePath)("/how-to-dress",e),imageUrl:"https://aeventyr1.b-cdn.net/Website%20Photos/%C3%86ventyr/Rental/Gemini_Generated_Image_l477upl477upl477.avif"},{id:"travel-to-alta",title:b?.scroll?.travelToAlta?.title||"How to Travel to Alta",description:b?.scroll?.travelToAlta?.description||"Discover the best ways to reach Alta, Norway.",primaryCTA:b?.scroll?.travelToAlta?.cta||"Plan Your Journey",primaryCTALink:(0,i.createLocalePath)("/travel-to-alta",e),imageUrl:"https://aeventyr1.b-cdn.net/Website%20Photos/%C3%86ventyr/Northern%20Light/iStock-1997642165.avif"},{id:"alta-northern-lights",title:b?.scroll?.northernLights?.title||"Alta - The City of Northern Lights",description:b?.scroll?.northernLights?.description||"Experience the magic of Alta, one of the world's best destinations for viewing the Aurora Borealis.",primaryCTA:b?.scroll?.northernLights?.cta||"Explore Alta",primaryCTALink:(0,i.createLocalePath)("/northern-lights",e),imageUrl:"https://aeventyr1.b-cdn.net/Website%20Photos/%C3%86ventyr/665d8796239d074c214fa0b5_617b9fb1b5299b21f27dbbe0_Alta-eventyr-scaled%20(1)%20(1).jpeg"}],locale:e}),(0,t.jsx)(g.Footer,{})]})}e.s(["default",()=>b])},822966,e=>{e.v(t=>Promise.all(["static/chunks/5e7666bdcc7b414d.js"].map(t=>e.l(t))).then(()=>t(715550)))},440574,e=>{e.v(t=>Promise.all(["static/chunks/e276dad05e32eb4c.js"].map(t=>e.l(t))).then(()=>t(33857)))}]);
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.