PageSourceSearch

https://www.snowsure.ai/_next/static/chunks/app/layout-b4159c472f4…?dpl=dpl_BS6EaxhfscC7awTyVKP6F3nyZV7J

js snowsure.ai collected 2026-10-05 13:50:25 UTC 52,369 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6d98d4ec-7d58-449e-8d56-29cf0e1c6ace",e._sentryDebugIdIdentifier="sentry-dbid-6d98d4ec-7d58-449e-8d56-29cf0e1c6ace")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2395:(e,t,s)=>{"use strict";s.d(t,{S:()=>l});var n=s(12115),r=s(11951);function a(){let e="undefined"==typeof document?"":document.cookie;return{ready:!0,region:(0,r.XP)(e),choice:(0,r.Xj)(e)}}function l(){let[e,t]=(0,n.useState)({ready:!1,region:"unknown",choice:null});(0,n.useEffect)(()=>{t(a());let e=()=>t(a());return window.addEventListener(r.YE,e),()=>window.removeEventListener(r.YE,e)},[]);let s=(0,n.useCallback)(e=>{var t,s;document.cookie=(0,r.K7)(e,"https:"===window.location.protocol),null==(t=(s=window).gtag)||t.call(s,"consent","update",(0,r.Pm)((0,r.Xr)("other",{...e,at:"",v:1}))),window.dispatchEvent(new Event(r.YE))},[]),l=(0,r.Xr)(e.region,e.choice);return{ready:e.ready,region:e.region,choice:e.choice,allowed:l,needsBanner:e.ready&&(0,r.I2)(e.region,e.choice),save:s}}},11951:(e,t,s)=>{"use strict";s.d(t,{CY:()=>a,I2:()=>d,K7:()=>x,Pm:()=>h,XP:()=>o,Xj:()=>i,Xr:()=>c,YE:()=>r});let n="ss_consent",r="ss-consent-change";function a(e){return"other"!==e}function l(e,t){if(!e)return null;for(let s of e.split(";")){let[e,...n]=s.trim().split("=");if(e===t)return n.join("=")}return null}function i(e){var t=l(e,n);if(!t)return null;try{let e=JSON.parse(decodeURIComponent(t));if(!e||"object"!=typeof e||"boolean"!=typeof e.analytics||"boolean"!=typeof e.marketing||1!==e.v)return null;return{analytics:e.analytics,marketing:e.marketing,at:"string"==typeof e.at?e.at:"",v:1}}catch(e){return null}}function o(e){let t=l(e,"ss_region");return"eea"===t||"uk"===t||"ch"===t||"other"===t?t:"unknown"}function c(e,t){if(t)return{analytics:t.analytics,marketing:t.marketing};let s=!a(e);return{analytics:s,marketing:s}}function d(e,t){return a(e)&&null===t}function h(e){let t=e=>e?"granted":"denied";return{analytics_storage:t(e.analytics),ad_storage:t(e.marketing),ad_user_data:t(e.marketing),ad_personalization:t(e.marketing)}}function x(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;return"".concat(n,"=").concat(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return encodeURIComponent(JSON.stringify({analytics:e.analytics,marketing:e.marketing,at:t.toISOString(),v:1}))}(e,s),"; Path=/; Max-Age=").concat(15552e3,"; SameSite=Lax").concat(t?"; Secure":"")}},23099:(e,t,s)=>{"use strict";s.d(t,{default:()=>a});var n=s(95155),r=s(20063);function a(e){let{children:t}=e,s=(0,r.usePathname)();return(null==s?void 0:s.startsWith("/admin"))?null:(0,n.jsx)(n.Fragment,{children:t})}},31725:(e,t,s)=>{"use strict";s.d(t,{default:()=>v});var n=s(95155),r=s(41218),a=s(52619),l=s.n(a),i=s(12115),o=s(20063),c=s(36489),d=s(68915),h=s(45101),x=s(37869),u=s(95517),m=s(15239),f=s(56011);function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"whitespace-nowrap text-sm font-medium transition-colors uppercase tracking-wide ".concat(e?"text-white/90 hover:text-white":"text-slate-600 hover:text-slate-900").concat(t?" ".concat(t):"")}function v(){var e,t;let[s,a]=(0,i.useState)(!1),[v,g]=(0,i.useState)(!1),[j,w]=(0,i.useState)(!1),[b,y]=(0,i.useState)(null),N=(0,i.useRef)(null),k=(0,o.usePathname)();(0,o.useRouter)();let{useMetric:S,setUseMetric:P}=(0,h.vY)(),{ct:C}=(0,x.Y)(),{data:L,status:E}=(0,c.useSession)(),{isPro:_}=(0,d.Ew)();if(null==k?void 0:k.startsWith("/admin"))return null;let A=(null==k?void 0:k.startsWith("/resorts/"))&&"/resorts"!==k,W=(null==k?void 0:k.startsWith("/destinations/"))&&"/destinations"!==k,M=(null==k?void 0:k.startsWith("/passes/"))&&"/passes"!==k,F=(null==k?void 0:k.startsWith("/news/"))&&"/news"!==k,I=(["/","/snow-report","/resorts","/destinations","/journal","/about","/news","/answer-engine","/concierge","/pro"].includes(k||"")||A||W||M||F)&&!v&&!s;(0,i.useEffect)(()=>{(async()=>{var e,t;if(null==L||null==(e=L.user)?void 0:e.email)try{let e=await fetch("/api/user?userId=".concat(encodeURIComponent(L.user.email)));if(e.ok){let s=await e.json();(null==(t=s.data)?void 0:t.profileImageUrl)&&y(s.data.profileImageUrl)}}catch(e){console.error("[Header] Failed to load profile image from server:",e)}})()},[null==L||null==(e=L.user)?void 0:e.email]),(0,i.useEffect)(()=>{let e=e=>{var t;(null==e||null==(t=e.detail)?void 0:t.profileImage)&&y(e.detail.profileImage)};return window.addEventListener("profile-updated",e),()=>{window.removeEventListener("profile-updated",e)}},[]),(0,i.useEffect)(()=>{let e=()=>{g(window.scrollY>50)};return window.addEventListener("scroll",e,{passive:!0}
1),e(),()=>window.removeEventListener("scroll",e)},[]);let T=b||(null==L||null==(t=L.user)?void 0:t.image);(0,i.useEffect)(()=>{let e=e=>{N.current&&!N.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let U=async()=>{w(!1),await (0,c.signOut)({callbackUrl:"/"})},R=()=>{var e,t;return(null==L||null==(e=L.user)?void 0:e.name)?L.user.name[0].toUpperCase():(null==L||null==(t=L.user)?void 0:t.email)?L.user.email[0].toUpperCase():"?"},D="authenticated"===E&&(null==L?void 0:L.user);return(0,n.jsx)("header",{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-300 ".concat(I?"bg-transparent":"bg-white/95 backdrop-blur-md border-b border-slate-100"),children:(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-6 h-16 md:h-20",children:[(0,n.jsxs)("div",{className:"flex items-center gap-6 lg:gap-10 min-w-0",children:[(0,n.jsxs)(l(),{href:"/",className:"flex items-baseline shrink-0",children:[(0,n.jsx)("span",{className:"font-display text-2xl lg:text-3xl tracking-wider transition-colors duration-300 ".concat(I?"text-white":"text-slate-900"),children:"SNOWSURE"}),(0,n.jsx)("span",{className:"text-[8px] font-medium transition-colors duration-300 -translate-y-3 ml-0.5 ".concat(I?"text-white/70":"text-slate-400"),children:"™"}),_&&(0,n.jsx)("span",{className:"ml-2 font-display text-2xl lg:text-3xl tracking-wider transition-colors duration-300 ".concat(I?"text-[#7DD3FC]":"text-[#0284C7]"),children:"PRO"})]}),(0,n.jsxs)("div",{className:"hidden md:flex items-center gap-6 lg:gap-8 min-w-0",children:[(0,n.jsx)(l(),{href:"/snow-report",className:p(I),children:C.nav.snowReport}),(0,n.jsx)(l(),{href:"/resorts",className:p(I),children:C.nav.allResorts}),(0,n.jsx)(l(),{href:"/destinations",className:p(I),children:C.nav.destinations}),(0,n.jsx)(l(),{href:"/maps",className:p(I),children:C.nav.maps}),(0,n.jsx)(l(),{href:"/journal",className:p(I),children:C.nav.news}),!_&&(0,n.jsx)(l(),{href:"/pro",className:"whitespace-nowrap text-sm font-bold transition-colors uppercase tracking-wide ".concat(I?"text-[#7DD3FC] hover:text-white":"text-[#0284C7] hover:text-[#0369a1]"),children:"PRO"})]})]}),(0,n.jsxs)("div",{className:"hidden md:flex items-center gap-3 shrink-0",children:[(0,n.jsx)(u.c,{className:I?"text-white [&_select]:bg-slate-800/80 [&_select]:border-white/20 [&_select]:text-white":""}),"loading"===E?(0,n.jsx)("div",{className:"w-9 h-9 rounded-full bg-slate-200 animate-pulse"}):D?(0,n.jsxs)("div",{className:"relative",ref:N,children:[(0,n.jsxs)("button",{onClick:()=>w(!j),className:"flex items-center gap-2 group",children:[(0,n.jsx)("div",{className:"w-9 h-9 rounded-full flex items-center justify-center overflow-hidden border-2 transition-colors ".concat(I?"border-white/50 bg-white/20":"border-slate-200 bg-slate-100"),children:T?(0,n.jsx)(m.default,{src:T,alt:"Profile",width:36,height:36,className:"object-cover w-full h-full",unoptimized:T.startsWith("data:")}):(0,n.jsx)("span",{className:"text-sm font-medium ".concat(I?"text-white":"text-slate-600"),children:R()})}),(0,n.jsx)("svg",{className:"w-4 h-4 transition-transform ".concat(j?"rotate-180":""," ").concat(I?"text-white/70":"text-slate-400"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),j&&(0,n.jsxs)("div",{className:"absolute right-0 mt-2 w-56 bg-white rounded-xl shadow-lg border border-slate-100 py-2 animate-fade-in",children:[(0,n.jsxs)("div",{className:"px-4 py-3 border-b border-slate-100",children:[(0,n.jsx)("p",{className:"font-medium text-slate-900 truncate",children:L.user.name||"User"}),(0,n.jsx)("p",{className:"text-sm text-slate-500 truncate",children:L.user.email})]}),(0,n.jsxs)("div",{className:"py-1",children:[(0,n.jsxs)(l(),{href:"/profile",onClick:()=>w(!1),className:"flex items-center gap-3 px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 transition-colors",children:[(0,n.jsx)("svg",{className:"w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),"My Profile"]}),(0,n.jsxs)(l(),{href:"/profile?tab=dashboard",onClick:()=>w(!1),className:"flex items-center gap-3 px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 transition-colors",children:[(0,n.jsx)("svg",{className:"w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),"My Favorites"]}),(0,n.jsxs)(l(),{href:"/profile?tab=alerts",onClick:()=>w(!1),className:"flex items-center gap-3 px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 transition-colors",children:[(0,n.jsx)("svg",{className:"w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})}),"Powder Alerts"]}),(0,n.jsxs)(l(),{href:"/profile?tab=settings",onClick:()=>w(!1),className:"flex items-center gap-3 px-4 py-2 text-sm text-slate-700 hover:bg-slate-50 transition-colors",children:[(0,n.jsxs)("svg",{className:"w-4 h-4 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Settings"]})]}),(0,n.jsx)("div",{className:"border-t border-slate-100 pt-1 mt-1",children:(0,n.jsxs)("button",{onClick:U,className:"flex items-center gap-3 px-4 py-2 text-sm text-red-600 hover:bg-red-50 transition-colors w-full text-left",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),"Sign Out"]})})]})]}):(0,n.jsx)(l(),{href:"/login",className:"whitespace-nowrap text-sm font-medium transition-colors ".concat(I?"text-white/90 hover:text-white":"text-slate-600 hover:text-slate-900"),children:"Sign In"})]}),(0,n.jsx)("button",{type:"button",className:"md:hidden p-3 -mr-2 min-h-[44px] min-w-[44px] flex items-center justify-center",onClick:()=>a(!s),"aria-label":s?"Close menu":"Open menu","aria-expanded":s,"aria-controls":"mobile-menu",children:(0,n.jsx)("svg",{"aria-hidden":"true",className:"w-6 h-6 transition-colors ".concat(I?"text-white":"text-slate-900"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s?(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]}),s&&(0,n.jsx)("div",{id:"mobile-menu",className:"md:hidden py-4 border-t border-slate-100 bg-white animate-fade-in",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(l(),{href:"/snow-report",className:"text-slate-600 hover:text-slate-900 uppercase tracking-wide text-sm font-medium",onClick:()=>a(!1),children:"Snow Report"}),(0,n.jsx)(l(),{href:"/resorts",className:"text-slate-600 hover:text-slate-900 uppercase tracking-wide text-sm font-medium",onClick:()=>a(!1),children:"All Resorts"}),(0,n.jsx)(l(),{href:"/destinations",className:"text-slate-600 hover:text-slate-900 uppercase tracking-wide text-sm font-medium",onClick:()=>a(!1),children:"Destinations"}),(0,n.jsx)(l(),{href:"/maps",className:"text-slate-600 hover:text-slate-900 uppercase tracking-wide text-sm font-medium",onClick:()=>a(!1),children:"Maps"}),(0,n.jsx)(l(),{href:"/journal",className:"text-slate-600 hover:text-slate-900 uppercase tracking-wide text-sm font-medium",onClick:()=>a(!1),children:"News"}),!_&&(0,n.jsx)(l(),{href:"/pro",className:"uppercase tracking-wide text-sm font-bold text-[#0284C7] hover:text-[#0369a1]",onClick:()=>a(!1),children:"PRO"}),(0,n.jsx)(l(),{href:"/developers",className:"text-slate-600 hover:text-slate-900 uppercase tracking-wide text-sm font-medium",onClick:()=>a(!1),children:C.nav.developers}),(0,n.jsx)(f.A,{variant:"nav"}),(0,n.jsxs)("div",{className:"pt-4 border-t border-slate-100 flex flex-col gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-slate-500",children:"Units"}),(0,n.jsxs)("div",{className:"flex items-center gap-1 p-0.5 rounded-full bg-slate-100",children:[(0,n.jsx)("button",{onClick:()=>P(!0),className:"px-3 py-1.5 text-xs font-medium rounded-full transition-colors ".concat(S?"bg-slate-900 text-white":"text-slate-500"),children:(0,r.lA)(!0)}),(0,n.jsx)("button",{onClick:()=>P(!1),className:"px-3 py-1.5 text-xs font-medium rounded-full transition-colors ".concat(S?"text-slate-500":"bg-slate-900 text-white"),children:(0,r.lA)(!1)})]})]}),D?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 py-2",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-full bg-slate-100 flex items-center justify-center overflow-hidden",children:T?(0,n.jsx)(m.default,{src:T,alt:"Profile",width:40,height:40,className:"object-cover w-full h-full",unoptimized:T.startsWith("data:")}):(0,n.jsx)("span",{className:"text-sm font-medium text-slate-600",children:R()})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-medium text-slate-900",children:L.user.n
1ame||"User"}),(0,n.jsx)("p",{className:"text-xs text-slate-500",children:L.user.email})]})]}),(0,n.jsx)(l(),{href:"/profile",className:"text-slate-600 hover:text-slate-900 text-sm font-medium",onClick:()=>a(!1),children:"My Profile"}),(0,n.jsx)(l(),{href:"/profile?tab=dashboard",className:"text-slate-600 hover:text-slate-900 text-sm font-medium",onClick:()=>a(!1),children:"My Favorites"}),(0,n.jsx)("button",{onClick:()=>{U(),a(!1)},className:"text-red-600 hover:text-red-700 text-sm font-medium text-left",children:"Sign Out"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{href:"/login",className:"text-slate-600 hover:text-slate-900 text-sm font-medium",onClick:()=>a(!1),children:"Sign In"}),(0,n.jsx)(l(),{href:"/signup",className:"bg-blue-600 text-white text-sm font-medium py-2 px-4 rounded-lg text-center hover:bg-blue-700 transition-colors",onClick:()=>a(!1),children:"Create Free Account"})]})]})]})})]})})}},41218:(e,t,s)=>{"use strict";s.d(t,{B:()=>b,EX:()=>n,GH:()=>f,Hl:()=>u,Ll:()=>c,RI:()=>N,Vk:()=>j,Vw:()=>_,YT:()=>m,_E:()=>g,dH:()=>L,eJ:()=>i,hw:()=>p,jE:()=>P,lA:()=>x,lQ:()=>w,lb:()=>v,nN:()=>o,nW:()=>A,p8:()=>d,tk:()=>h,uJ:()=>y,v3:()=>k,vY:()=>C,w_:()=>E,xd:()=>S});let n=e=>e/2.54,r=e=>9*e/5+32,a=e=>"number"==typeof e&&Number.isFinite(e);function l(e){return e.toLocaleString("en-US")}function i(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?"cm":"in"}function o(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?"cm":'"'}function c(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?"km/h":"mph"}function d(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?"\xb0C":"\xb0F"}function h(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?"m":"ft"}function x(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return"".concat(d(e)," / ").concat(i(e))}function u(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?l(Math.round(t?e:.621371*e)):"—"}function m(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(u(e,t)," ").concat(c(t)):"—"}function f(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?m(3.6*e,t):"—"}function p(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?l(Math.round(t?e:r(e))):"—"}function v(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(p(e,t),"\xb0"):"—"}function g(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(p(e,t)).concat(d(t)):"—"}function j(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?"0".concat(d(!0)):"32".concat(d(!1))}function w(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?t?"".concat(e.toFixed(1),"\xb0C"):"".concat(Math.round(r(e)),"\xb0F"):"—"}function b(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=a(e)?e:0;return Math.round(t?s:n(s))}function y(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?l(b(e,t)):"—"}function N(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(y(e,t)).concat(o(t)):"—"}function k(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(y(e,t)," ").concat(i(t)):"—"}function S(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?String(Math.round(10*(t?e:n(e)))/10):"—"}function P(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(N(e,t),"/h"):"—"}function C(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?t?"".concat(Math.round(e)," cm"):"".concat(n(e).toFixed(1),'"'):"—"}function L(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?t?"".concat(e.toFixed(1)," cm"):"".concat(n(e).toFixed(1)," in"):"—"}function E(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?l(Math.round(t?e:3.281*e)):"—"}function _(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?"".concat(E(e,t)).concat(h(t)):"—"}function A(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a(e)?t?"".concat(l(Math.round(e))," m"):"".concat(l(Math.round(3.28084*e))," ft"):"—"}},41290:()=>{},44994:(e,t,s)=>{"use strict";s.d(t,{AuthProvider:()=>x});var n=s(95155),r=s(36489),a=s(12115),l=s(20063),i=s(2395),o=s(98901);let c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function d(){var e,t,s;let n=(0,l.usePathname)(),d=(0,l.useSearchParams)(),{ready:h,allowed:x,choice:u}=(0,i.S)(),{data:m,status:f}=(0,r.useSession)(),p=null!=(t=null==n?void 0:n.startsWith("/embed/"))&&t,v=null!==u&&!x.analytics;(0,a.useEffect)(()=>{h&&!p&&(x.analytics?(0,o.Bu)():v&&(0,o.Re)())},[h,x.analytics,v,p]);let g=null==m||null==(e=m.user)?void 0:e.id;(0,a.useEffect)(()=>{!p&&("authenticated"===f?g&&c.test(g)&&(0,o.G)(g):"unauthenticated"===f&&(0,o.G)(null))},[f,g,p]);let j=null!=(s=null==d?void 0:d.toString())?s:"",w=(0,a.useRef)(null);return(0,a.useEffect)(()=>
1{if(!n||p)return;let e="".concat(window.location.origin).concat(n).concat(j?"?".concat(j):"");w.current!==e&&(w.current=e,(0,o.Dg)(e))},[n,j,p]),null}function h(){return(0,n.jsx)(a.Suspense,{fallback:null,children:(0,n.jsx)(d,{})})}function x(e){let{children:t}=e;return(0,n.jsxs)(r.SessionProvider,{children:[t,(0,n.jsx)(h,{})]})}},45101:(e,t,s)=>{"use strict";s.d(t,{RY:()=>h,UnitProvider:()=>c,vY:()=>d});var n=s(95155),r=s(12115),a=s(41218);let l=(0,r.createContext)(void 0),i="snowsure.units",o=e=>"—"===e?"--":e;function c(e){let{children:t}=e,[s,c]=(0,r.useState)(!0),[d,h]=(0,r.useState)(null),[x,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=function(){try{let e=window.localStorage.getItem(i);return"imperial"!==e&&("metric"===e||null)}catch(e){return null}}();null!==e&&c(e)},[]);let m=(0,r.useCallback)(e=>{c(e);try{window.localStorage.setItem(i,e?"metric":"imperial")}catch(e){}},[]);(0,r.useEffect)(()=>{d&&x&&f(d,s)},[s,d,x]);let f=async(e,t)=>{try{await fetch("/api/user",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,field:"units",value:t?"metric":"imperial"})})}catch(e){console.error("[Units] Failed to sync to server:",e)}},p=(0,r.useCallback)(async e=>{h(e);try{let s=await fetch("/api/user?userId=".concat(encodeURIComponent(e)));if(s.ok){var t;let e=await s.json();(null==(t=e.data)?void 0:t.units)&&m("metric"===e.data.units)}}catch(e){console.error("[Units] Failed to fetch from server:",e)}u(!0)},[m]),v=(0,r.useCallback)(async e=>{h(e),await f(e,s)},[s]),g={useMetric:s,setUseMetric:m,toggleUnits:()=>m(!s),syncFromServer:p,syncToServer:v,snow:e=>o((0,a.uJ)(e,s)),temp:e=>o((0,a.hw)(e,s)),elev:e=>o((0,a.w_)(e,s)),wind:e=>o((0,a.Hl)(e,s)),snowUnit:(0,a.nN)(s),tempUnit:(0,a.p8)(s),elevUnit:(0,a.tk)(s),windUnit:(0,a.Ll)(s)};return(0,n.jsx)(l.Provider,{value:g,children:t})}function d(){let e=(0,r.useContext)(l);if(void 0===e)throw Error("useUnits must be used within a UnitProvider");return e}function h(){var e,t;return null==(t=null==(e=(0,r.useContext)(l))?void 0:e.useMetric)||t}},45445:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var n=s(95155),r=s(68321),a=s(20063),l=s(11951),i=s(2395);let o="G-5ZFY8HV17W";function c(){let e=(0,a.usePathname)(),{ready:t,allowed:s}=(0,i.S)();if((null==e?void 0:e.startsWith("/embed/"))||!t)return null;let c=JSON.stringify((0,l.Pm)(s));return(0,n.jsxs)(n.Fragment,{children:[s.analytics&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.default,{id:"google-analytics",strategy:"afterInteractive",children:"\n              window.dataLayer = window.dataLayer || [];\n              function gtag(){dataLayer.push(arguments);}\n              window.gtag = gtag;\n              gtag('consent', 'default', ".concat(c,");\n              gtag('js', new Date());\n              gtag('config', '").concat(o,"');\n            ")}),(0,n.jsx)(r.default,{src:"https://www.googletagmanager.com/gtag/js?id=".concat(o),strategy:"afterInteractive"})]}),s.marketing&&(0,n.jsx)(r.default,{id:"travelpayouts",src:"https://emrldtp.cc/NTQ1NTQ4.js?t=545548",strategy:"afterInteractive"})]})}},56011:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n=s(95155),r=s(12115),a=s(36489);function l(e){let{variant:t="nav",className:s="",transparent:l=!1}=e,{data:i}=(0,a.useSession)(),[o,c]=(0,r.useState)(!1),[d,h]=(0,r.useState)("general"),[x,u]=(0,r.useState)(""),[m,f]=(0,r.useState)(!1),[p,v]=(0,r.useState)(!1),[g,j]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(!o)return;let e=e=>{"Escape"===e.key&&c(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[o]);let w="link"===t?"text-sm text-slate-400 hover:text-cyan-400 transition-colors ".concat(s):"button"===t?"text-sm font-medium py-2 px-4 rounded-lg bg-blue-600 text-white hover:bg-blue-700 ".concat(s):"whitespace-nowrap text-sm font-medium transition-colors uppercase tracking-wide ".concat(l?"text-white/90 hover:text-white":"text-slate-600 hover:text-slate-900"," ").concat(s),b=async()=>{if(!x.trim())return void j("Please enter a message.");f(!0),j(null);try{var e,t;let s=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:d,message:x.trim(),source:"website",platform:"web",userEmail:(null==i||null==(e=i.user)?void 0:e.email)||void 0,userName:(null==i||null==(t=i.user)?void 0:t.name)||void 0})}),n=await s.json();if(!s.ok||!n.success)throw Error(n.error||"Failed to send feedback");v(!0)}catch(e){j(e instanceof Error?e.message:"Failed to send feedback")}finally{f(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",className:w,onClick:()=>c(!0),children:"Feedback"}),o&&(0,n.jsx)("div",{className:"fixed inset-0 z-[80] flex items-center justify-center bg-slate-950/70 p-4",onClick:()=>c(!1),children:(0,n.jsxs)("div",{role:"dialog","aria-labelledby":"feedback-title",className:"w-full max-w-md rounded-xl border border-slate-700 bg-slate-900 p-5 shadow-xl",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("h2",{id:"feedback-title",className:"text-lg font-semibold text-white",children:"Send feedback"}),(0,n.jsx)("p",{className:"mt-1 text-sm text-slate-400",children:"Bugs, ideas, or anything else — it goes to the SnowSure inbox."}),p?(0,n.jsx)("p",{className:"mt-4 text-sm text-emerald-400",children:"Thanks — we got it."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"mt-4 flex gap-2",children:[["general","General"],["bug","Bug"],["feature","Feature"]].map(e=>{let[t,s]=e;return(0,n.jsx)("button",{type:"button",onClick:()=>h(t),className:"rounded-full px-3 py-1 text-xs font-medium ".concat(d===t?"bg-cyan-500 text-slate-950":"bg-slate-800 text-slate-300"),children:s},t)})}),(0,n.jsx)("textarea",{value:x,onChange:e=>u(e.target.value),rows:5,className:"mt-3 w-full rounded-lg border border-slate-700 bg-slate-950 px-3 py-2 text-sm text-white",placeholder:"What happened, and where?"}),g&&(0,n.jsx)("p",{className:"mt-2 text-xs text-red-400",children:g}),(0,n.jsx)("button",{type:"button",onClick:()=>void b(),disabled:m,className:"mt-3 w-full rounded-lg bg-cyan-500 py-2 text-sm font-medium text-slate-950 disabled:opacity-50",children:m?"Sending…":"Send"})]}),(0,n.jsx)("button",{type:"button",className:"mt-3 text-xs text-slate-500 hover:text-slate-300",onClick:()=>{c(!1),v(!1),u(""),j(null)},children:"Close"})]})})]})}},63946:(e,t,s)=>{"use strict";s.d(t,{default:()=>a});var n=s(95155);let r=(0,s(67909).default)(()=>s.e(98210).then(s.bind(s,98210)),{loadableGenerated:{webpack:()=>[98210]},ssr:!1});function a(){return(0,n.jsx)(r,{})}},74581:(e,t,s)=>{"use strict";s.d(t,{od:()=>o,Op:()=>d,U2:()=>i});let n={ios:"https://apps.apple.com/app/snowsure/id".concat("6758299394")};var r=s(19585),a=s(95704);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.env.NEXT_PUBLIC_APP_LAUNCHED;return"1"===e?"post-launch":"pre-launch"}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.env.NEXT_PUBLIC_APP_LAUNCHED;return"post-launch"===l(e)}let o=n.ios,c={"pre-launch":{appPage:{description:"Road alerts on your phone — the SnowSure iPhone app arrives soon. Reserve a Founding Member spot.",jsonLdDescription:"Road alerts on your phone — the SnowSure iPhone app arrives soon.",heroLine
1:"Road alerts on your phone — the app arrives soon.",ogDescription:"Road alerts on your phone. Reserve a Founding Member spot before launch."},pro:{banner:"The iPhone app — Watch, widgets, and Live Activities — arrives ".concat(r.BF,". Founding Members get the App Store link before the listing is public."),ledger:"Pro covers the web and the app on every device you sign in to — Apple or Google. Mountain View, Live Activities and the Watch app arrive with the iPhone app, ".concat(r.BF,". Offline forecasts ship with that build."),faqAnswer:"No. Pro is the same account on the website and the iPhone app. The iPhone app — Watch, widgets, and Live Activities — arrives ".concat(r.BF,". Offline forecasts ship with that build. Founding Members get the App Store link before the listing is public.")},help:{status:"The iPhone app is in App Store review.",ctaLabel:"Reserve a Founding Member spot",ctaHref:"/app",ctaTail:" and we will write when it is live."}},"post-launch":{appPage:{description:"Road alerts on your phone — the SnowSure iPhone app is on the App Store. Free to download; Pro is the same account as the website.",jsonLdDescription:"Road alerts on your phone — the SnowSure iPhone app is on the App Store.",heroLine:"Road alerts on your phone — the app is on the App Store.",ogDescription:"Road alerts on your phone. Now on the App Store."},pro:{banner:"The iPhone app — Watch, widgets, and Live Activities — is on the App Store. Pro is the same account on both.",ledger:"Pro covers the web and the app on every device you sign in to — Apple or Google. Mountain Vie
1w, Live Activities and the Watch app are in the iPhone app, on the App Store now. Offline forecasts ship with it.",faqAnswer:"No. Pro is the same account on the website and the iPhone app. The iPhone app — Watch, widgets, and Live Activities — is on the App Store (".concat(n.ios,"). Offline forecasts ship with it.")},help:{status:"The iPhone app is on the App Store.",ctaLabel:"Download it from the App Store",ctaHref:n.ios,ctaTail:"."}}};function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.env.NEXT_PUBLIC_APP_LAUNCHED;return c[l(e)]}},85239:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,41290,23)),Promise.resolve().then(s.bind(s,63946)),Promise.resolve().then(s.bind(s,44994)),Promise.resolve().then(s.bind(s,86037)),Promise.resolve().then(s.bind(s,92666)),Promise.resolve().then(s.bind(s,88743)),Promise.resolve().then(s.bind(s,31725)),Promise.resolve().then(s.bind(s,23099)),Promise.resolve().then(s.bind(s,90314)),Promise.resolve().then(s.bind(s,45445)),Promise.resolve().then(s.bind(s,37869)),Promise.resolve().then(s.bind(s,45101)),Promise.resolve().then(s.bind(s,1360)),Promise.resolve().then(s.bind(s,37025)),Promise.resolve().then(s.bind(s,48854)),Promise.resolve().then(s.t.bind(s,52619,23)),Promise.resolve().then(s.t.bind(s,81356,23)),Promise.resolve().then(s.t.bind(s,52322,23)),Promise.resolve().then(s.t.bind(s,58063,23)),Promise.resolve().then(s.t.bind(s,95231,23))},86037:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var n=s(95155),r=s(12115),a=s(20063);function l(e){var t,s;let{header:l,footer:i,instagram:o,children:c}=e,d=(0,a.usePathname)(),h=null!=(t=null==d?void 0:d.startsWith("/embed/"))&&t,x=null!=(s=null==d?void 0:d.startsWith("/admin"))&&s;return h?(0,n.jsx)(n.Fragment,{children:c}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-3 focus:left-3 focus:z-[100] focus:bg-slate-900 focus:text-white focus:px-4 focus:py-2 focus:rounded-lg focus:shadow-lg focus:outline-none focus:ring-2 focus:ring-cyan-400",children:"Skip to main content"}),(0,n.jsxs)("div",{className:"w-full overflow-x-hidden min-h-screen ".concat(x?"bg-[#070b12]":"bg-white"),children:[l,(0,n.jsx)("main",{id:"main-content",className:"min-h-screen overflow-x-hidden",children:c}),(0,n.jsx)(r.Suspense,{fallback:null,children:o}),i]})]})}},88743:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var n=s(95155),r=s(52619),a=s.n(r),l=s(15239),i=s(20063),o=s(37869),c=s(56011),d=s(1360),h=s(89611),x=s(74581);function u(){let e=(0,i.usePathname)(),{ct:t}=(0,o.Y)(),s=(0,h.vW)((0,d.a)());return(null==e?void 0:e.startsWith("/admin"))?null:(0,n.jsx)("footer",{className:"bg-slate-900 border-t border-slate-800",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-8 md:gap-12",children:[(0,n.jsxs)("div",{className:"col-span-2",children:[(0,n.jsxs)(a(),{href:"/",className:"inline-flex items-center gap-3 mb-4",children:[(0,n.jsx)(l.default,{src:"/snowsure-icon-white.png",alt:"SnowSure",width:36,height:36}),(0,n.jsxs)("div",{className:"flex items-baseline",children:[(0,n.jsx)("span",{className:"font-display text-2xl tracking-wider text-white",children:"SNOWSURE"}),(0,n.jsx)("span",{className:"text-[8px] font-medium -translate-y-3 ml-0.5 text-cyan-400",children:"™"})]})]}),(0,n.jsx)("p",{className:"text-slate-400 text-sm max-w-xs leading-relaxed",children:t.footer.tagline}),(0,n.jsxs)("div",{className:"mt-6 pt-6 border-t border-slate-700 space-y-4",children:[(0,n.jsxs)("p",{className:"text-slate-500 text-xs max-w-xs leading-relaxed",children:["Created by"," ",(0,n.jsx)(a(),{href:"https://afo.re",target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300",children:"Afore"}),t.footer.aforeCredit]}),(0,n.jsxs)("p",{className:"text-slate-500 text-xs max-w-sm leading-relaxed",children:[t.footer.snowdataPoweredPrefix,t.footer.snowdataPoweredPrefix?" ":null,(0,n.jsx)(a(),{href:"https://snowdata.ai",target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300",children:"Snowdata"}),t.footer.snowdataCompanySuffix,(0,n.jsx)(a(),{href:"https://snowdata.ai",target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300",children:"Snowdata"}),t.footer.snowdataDistributes," ",(0,n.jsx)(a(),{href:"https://snowdata.ai",target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 whitespace-nowrap",children:t.footer.snowdataLink})]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-xs font-semibold text-white uppercase tracking-wider mb-4",children:"Snow Report"}),(0,n.jsxs)("ul",{className:"space-y-3",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/snow-report",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Global Rankings"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/powder-trips",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Powder Trips"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/destinations",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Destinations"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"All Resorts"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts#europe",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Europe"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts#north-america",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"North America"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts#asia",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Japan & Asia"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/seasons",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Season Tracker"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/el-nino",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"El Ni\xf1o Winter"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/el-nino/predictions",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"El Ni\xf1o ledger"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/trends",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Snow Trends"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/leaderboards",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Leaderboards"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/passes",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Passes"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/access",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Road Access"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/widgets",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Free Widgets"})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-xs font-semibold text-white uppercase tracking-wider mb-4",children:"Top Destinations"}),(0,n.jsxs)("ul",{className:"space-y-3",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts/val-disere",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Val d'Is\xe8re"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts/matterhorn-ski-paradise",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Zermatt"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/destinations/niseko",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Niseko"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts/aspen-mountain",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Aspen"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts/ski-arlberg",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"St. Anton"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/destinations/chamonix",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Chamonix"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/destinations/queenstown",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Queenstown"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/destinations/wanaka",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Wanaka"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/resorts/thredbo",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Thredbo"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/destinations/banff",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Banff"})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-xs font-semibold text-white uppercase tracking-wider mb-4",children:"Company"}),(0,n.jsxs)("ul",{className:"space-y-3",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/concierge",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"SnowSure Concierge"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/answer-engine",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Answer Engine"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/ard",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"ARD & Conformance"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/about",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"How It Works"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/methodology",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:t.footer.methodology})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/el-nino/methodology",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"El Ni\xf1o methodology"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/forecast-trust",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:t.footer.forecastTrust})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/for-resorts",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"For Resorts"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/for-resorts/claude",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Claude guide"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/work-with-us",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Work With Us"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/journal",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Snow News"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/news",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Company News"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/help",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Help & Support"})}),(0,n.jsx)("li",{children:(0,n.jsx)(c.A,{variant:"link"})}),(0,n.jsx)("li",{children:(0,x.U2)()?(0,n.jsx)(a(),{href:x.od,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Get the app ↗"}):(0,n.jsx)(a(),{href:"/app",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Get the app"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/pro",className:"text-sm text-cyan-400 hover:text-cyan-300 transition-colors",children:"SnowSure Pro"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"https://www.lux.ski",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"LUXSKI Hotels â
1†—"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"https://afo.re",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Afore ↗"})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-xs font-semibold text-white uppercase tracking-wider mb-4",children:"For Developers"}),(0,n.jsxs)("ul",{className:"space-y-3",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/developers",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Overview"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/developers/mcp",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"MCP Server"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/llms",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"SnowSure for AI"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/openapi.json",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"OpenAPI Spec"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/llms.txt",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"llms.txt"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:"/news",className:"text-sm text-slate-400 hover:text-cyan-400 transition-colors",children:"Developer News"})})]})]})]}),(0,n.jsx)("div",{className:"mt-12 pt-8 border-t border-slate-800",children:(0,n.jsxs)("div",{className:"flex flex-col lg:flex-row items-start lg:items-center justify-between gap-6",children:[(0,n.jsxs)("div",{className:"flex flex-col md:flex-row items-start gap-6",children:[(0,n.jsx)("a",{href:"https://protectourwinters.org/",target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 hover:opacity-80 transition-opacity",children:(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)("div",{className:"w-12 h-12 rounded-full border-2 border-cyan-400 flex items-center justify-center",children:(0,n.jsx)("span",{className:"text-cyan-400 font-bold text-lg",children:"POW"})})})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("a",{href:"https://protectourwinters.org/",target:"_blank",rel:"noopener noreferrer",className:"text-white font-semibold hover:text-cyan-400 transition-colors",children:"Protect Our Winters"}),(0,n.jsx)("p",{className:"text-slate-400 text-sm mt-1 max-w-md",children:"We turn passionate outdoor people into climate advocates, working together to protect a future with clean air, clean water and a healthy planet."})]})]}),(0,n.jsxs)("a",{href:"https://chatgpt.com/apps/snowsure/asdk_app_6a32759f0a04819192e230c5b9f4a360",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 bg-slate-800 hover:bg-slate-700 border border-slate-700 hover:border-cyan-400/50 rounded-full px-5 py-3 transition-all group",children:[(0,n.jsx)("div",{className:"w-8 h-8 rounded-full bg-[#10a37f] flex items-center justify-center flex-shrink-0",children:(0,n.jsx)("svg",{className:"w-5 h-5 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.815 3.355-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.795.795 0 0 0-.393.681zm1.097-2.365l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z"})})}),(0,n.jsxs)("div",{className:"text-left",children:[(0,n.jsx)("p",{className:"text-white text-sm font-medium group-hover:text-cyan-400 transition-colors",children:"Add on ChatGPT"}),(0,n.jsx)("p",{className:"text-slate-500 text-xs",children:"Official ChatGPT App"})]}),(0,n.jsx)("svg",{className:"w-4 h-4 text-slate-500 group-hover:text-cyan-400 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})}),(0,n.jsxs)("div",{className:"mt-8 pt-8 border-t border-slate-800",children:[(0,n.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"text-sm text-slate-500",children:["\xa9 ",s," Afore. All rights reserved."]}),(0,n.jsx)("p",{className:"text-xs text-slate-500 mt-1",children:"310 Market Street, Basalt, Colorado, 81621"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-6",children:[(0,n.jsx)(a(),{href:"/help",className:"text-sm text-slate-500 hover:text-slate-300 transition-colors",children:"Help"}),(0,n.jsx)(a(),{href:"/privacy",className:"text-sm text-slate-500 hover:text-slate-300 transition-colors",children:"Privacy"}),(0,n.jsx)(a(),{href:"/terms",className:"text-sm text-slate-500 hover:text-slate-300 transition-colors",children:"Terms"}),(0,n.jsx)("span",{className:"text-slate-700",children:"|"}),(0,n.jsx)("span",{className:"text-sm text-slate-500",children:"Data updated hourly"})]})]}),(0,n.jsx)("div",{className:"mt-6 pt-6 border-t border-slate-800 text-center",children:(0,n.jsx)("p",{className:"text-xs text-slate-600",children:"Photos provided by resort partners, Unsplash, and our content team."})})]})]})})}},90314:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var n=s(12115);let r="ss-stale-build-reloaded";function a(){try{if(sessionStorage.getItem(r))return;sessionStorage.setItem(r,"1")}catch(e){}window.location.reload()}function l(){return(0,n.useEffect)(()=>{let e="dpl_BS6EaxhfscC7awTyVKP6F3nyZV7J",t=null,s=e=>{var t,s;let n=String(null!=(s=null==e?void 0:e.message)?s:"");("ChunkLoadError"===(null==e||null==(t=e.error)?void 0:t.name)||/Loading chunk .* failed|ChunkLoadError/i.test(n))&&a()},n=()=>
1{if("hidden"===document.visibilityState){t=Date.now();return}let s=null!=t?Date.now()-t:0;t=null,!(s<216e5)&&e&&fetch("/api/build-id",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{(null==t?void 0:t.id)&&t.id!==e&&a()}).catch(()=>{})};return window.addEventListener("error",s),document.addEventListener("visibilitychange",n),()=>{window.removeEventListener("error",s),document.removeEventListener("visibilitychange",n)}},[]),null}},92666:(e,t,s)=>{"use strict";s.d(t,{default:()=>o});var n=s(95155),r=s(52619),a=s.n(r),l=s(20063),i=s(2395);function o(){let e=(0,l.usePathname)(),{needsBanner:t,save:s}=(0,i.S)();return(null==e?void 0:e.startsWith("/embed/"))||!t?null:(0,n.jsx)("div",{role:"dialog","aria-labelledby":"consent-title","data-testid":"consent-banner",className:"fixed inset-x-0 bottom-0 z-50 border-t border-slate-200 bg-white/95 p-4 text-slate-900 shadow-lg backdrop-blur",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[(0,n.jsxs)("p",{id:"consent-title",className:"text-sm leading-relaxed",children:["We use Google Analytics to see how the site is used and a Travelpayouts tag to attribute flight bookings. Neither loads until you choose."," ",(0,n.jsx)(a(),{href:"/privacy/choices",className:"underline hover:text-sky-700",children:"Manage choices"})]}),(0,n.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>s({analytics:!1,marketing:!1}),className:"rounded-md border border-slate-300 px-4 py-2 text-sm hover:bg-slate-50",children:"Essential only"}),(0,n.jsx)("button",{type:"button",onClick:()=>s({analytics:!0,marketing:!0}),className:"rounded-md bg-slate-900 px-4 py-2 text-sm text-white hover:bg-slate-700",children:"Accept all"})]})]})})}},95517:(e,t,s)=>{"use strict";s.d(t,{c:()=>l});var n=s(95155),r=s(59757),a=s(37869);function l(e){let{className:t=""}=e,{locale:s,setLocale:l,ct:i}=(0,a.Y)();return(0,n.jsxs)("label",{className:"inline-flex items-center gap-2 text-sm ".concat(t),children:[(0,n.jsx)("span",{className:"sr-only",children:i.languageSwitcher.label}),(0,n.jsx)("select",{value:s,onChange:e=>l(e.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm text-neutral-700 shadow-sm focus:border-neutral-900 focus:outline-none focus:ring-1 focus:ring-neutral-900","aria-label":i.languageSwitcher.label,children:r.dI.map(e=>(0,n.jsx)("option",{value:e,children:r.vK[e]},e))})]})}},98901:(e,t,s)=>{"use strict";let n;s.d(t,{Bu:()=>x,Dg:()=>p,G:()=>v,Re:()=>u,u4:()=>f});var r=s(95704);let a=null,l=null,i=[],o=!1;function c(){let e="phc_ti3mSnKf2jXfjBUEjovPsi5iYvWf3HpfbCkUu5WENPTw";return e&&e.trim()?e.trim():null}function d(e,t){t?e.identify(t):e._isIdentified()&&e.reset()}function h(e){e.has_opted_out_capturing()&&e.opt_in_capturing({captureEventName:null})}function x(){let e=c();return e?!function(){var e,t;let s=window.navigator,n=window,r=null!=(t=null!=(e=s.doNotTrack)?e:n.doNotTrack)?t:s.msDoNotTrack;return"1"===r||"yes"===r}()?(o=!1,l)?(h(l),Promise.resolve(!0)):(a||(a=s.e(89432).then(s.bind(s,67385)).then(t=>{let s=t.default;return s.init(e,{api_host:function(){let e=r.env.NEXT_PUBLIC_POSTHOG_HOST;return e&&e.trim()?e.trim():"https://us.i.posthog.com"}(),capture_pageview:!1,capture_pageleave:!0,autocapture:!1,respect_dnt:!0,person_profiles:"identified_only",disable_session_recording:!0}),s}).catch(()=>null).then(e=>{if(l=e,!e)return i=[],null;h(e);void 0!==n&&(d(e,n),n=void 0);let t=i;for(let{event:s,props:n}of(i=[],t))e.capture(s,n);return e})),a.then(e=>null!==e)):(o=!0,i=[],Promise.resolve(!1)):Promise.resolve(!1)}function u(){o=!0,i=[],n=void 0;try{null==l||l.opt_out_capturing()}catch(e){}}function m(e,t){if(c()&&!o)try{if(l)return void l.capture(e,t);i.length>=20&&i.shift(),i.push({event:e,props:t})}catch(e){}}function f(e,t){m(e,t)}function p(e){m("$pageview",{$current_url:e})}function v(e){if(c()&&!o)try{l?d(l,e):n=e}catch(e){}}}},e=>{e.O(0,[31741,75017,52619,81356,36489,19905,37869,33286,5449,29793,28441,23731,77358],()=>e(e.s=85239)),_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.