1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="6f2c78f1-e82b-4f5a-a65f-c986c7be7eb0",e._sentryDebugIdIdentifier="sentry-dbid-6f2c78f1-e82b-4f5a-a65f-c986c7be7eb0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74520],{15239:(e,s,t)=>{"use strict";t.d(s,{default:()=>l.a});var a=t(54652),l=t.n(a)},16670:(e,s,t)=>{Promise.resolve().then(t.bind(t,37192))},20063:(e,s,t)=>{"use strict";var a=t(47260);t.o(a,"useParams")&&t.d(s,{useParams:function(){return a.useParams}}),t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},37192:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var a=t(95155),l=t(12115),r=t(20063),n=t(36489),i=t(52619),c=t.n(i),o=t(15239),d=t(70397);function u(){let e=(0,r.useRouter)(),s=(0,r.useSearchParams)(),t=s.get("callbackUrl")||"/profile",i=s.get("error"),[o,d]=(0,l.useState)(""),[u,x]=(0,l.useState)(""),[h,m]=(0,l.useState)(!1),[f,p]=(0,l.useState)(!1),[g,b]=(0,l.useState)("");(0,l.useEffect)(()=>{if(i)switch(i){case"CredentialsSignin":b("Invalid email or password");break;case"OAuthAccountNotLinked":b("This email is already associated with another sign-in method");break;case"OAuthCallback":b("Apple Sign In failed. Please try again or use another sign-in method.");break;case"OAuthSignin":b("Could not start sign in. Please try again.");break;case"OAuthCreateAccount":b("Could not create account. Please try again.");break;case"Callback":b("Sign in was interrupted. Please try again.");break;default:b("An error occurred during sign in. Please try again.")}},[i]);let j=async s=>{s.preventDefault(),p(!0),b("");try{let s=await (0,n.signIn)("credentials",{email:o,password:u,redirect:!1,callbackUrl:t});(null==s?void 0:s.error)==="VERIFY_EMAIL"?e.push("/signup?verify=1&email=".concat(encodeURIComponent(o.trim().toLowerCase()))):(null==s?void 0:s.error)?b(s.error):(null==s?void 0:s.ok)&&(e.push(t),e.refresh())}catch(e){b("An error occurred. Please try again.")}finally{p(!1)}};return(0,a.jsxs)(a.Fragment,{children:[g&&(0,a.jsx)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg text-red-600 text-sm",children:g}),(0,a.jsxs)("form",{onSubmit:j,className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-700 mb-2",children:"Email"}),(0,a.jsx)("input",{id:"email",type:"email",value:o,onChange:e=>d(e.target.value),required:!0,className:"w-full px-4 py-3 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"[email protected]"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-700 mb-2",children:"Password"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{id:"password",type:h?"text":"password",value:u,onChange:e=>x(e.target.value),required:!0,className:"w-full px-4 py-3 pr-12 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),(0,a.jsx)("button",{type:"button",onClick:()=>m(e=>!e),"aria-label":h?"Hide password":"Show password",className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 text-slate-400 hover:text-slate-600 transition-colors",children:h?(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}):(0,a.jsxs)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("label",{className:"flex items-center",children:[(0,a.jsx)("input",{type:"checkbox",className:"w-4 h-4 text-blue-600 border-slate-300 rounded focus:ring-blue-500"}),(0,a.jsx)("span",{className:"ml-2 text-sm text-slate-600",children:"Remember me"})]}),(0,a.jsx)(c(),{href:"/forgot-password",className:"text-sm text-blue-600 hover:text-blue-700",children:"Forgot password?"})]}),(0,a.jsx)("button",{type:"submit",disabled:f,className:"w-full py-3 bg-slate-900 text-white font-medium rounded-lg hover:bg-slate-800 transition-colors disabled:opacity-50",children:f?"
1Signing in...":"Sign In"})]}),(0,a.jsxs)("div",{className:"relative my-6",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("div",{className:"w-full border-t border-slate-200"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,a.jsx)("span",{className:"px-4 bg-white text-slate-500",children:"or continue with"})})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("button",{onClick:()=>{(0,n.signIn)("google",{callbackUrl:t})},type:"button",className:"w-full py-3 border border-slate-200 rounded-lg flex items-center justify-center gap-3 hover:bg-slate-50 transition-colors",children:[(0,a.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,a.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,a.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,a.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),(0,a.jsx)("span",{className:"text-slate-700 font-medium",children:"Continue with Google"})]}),(0,a.jsxs)("button",{onClick:()=>{(0,n.signIn)("apple",{callbackUrl:t})},type:"button",className:"w-full py-3 bg-black text-white rounded-lg flex items-center justify-center gap-3 hover:bg-black/90 transition-colors",children:[(0,a.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),(0,a.jsx)("span",{className:"font-medium",children:"Continue with Apple"})]})]}),(0,a.jsxs)("p",{className:"mt-6 text-center text-slate-600 text-sm",children:["Don't have an account?"," ",(0,a.jsx)(c(),{href:"/signup",className:"text-blue-600 font-medium hover:text-blue-700",children:"Create one free"})]})]})}function x(){return(0,a.jsxs)("div",{className:"space-y-6 animate-pulse",children:[(0,a.jsx)("div",{className:"h-20 bg-slate-100 rounded-lg"}),(0,a.jsx)("div",{className:"h-20 bg-slate-100 rounded-lg"}),(0,a.jsx)("div",{className:"h-12 bg-slate-100 rounded-lg"})]})}function h(e){let{hero:s}=e;return(0,a.jsxs)("div",{className:"min-h-screen flex",children:[(0,a.jsxs)("div",{className:"hidden lg:flex lg:w-1/2 xl:w-3/5 relative",children:[(0,a.jsx)(o.default,{src:s.url,alt:"Snow-covered slopes at ".concat(s.name),fill:!0,className:"object-cover",priority:!0}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/60 via-black/30 to-transparent"}),(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-between p-12",children:[(0,a.jsx)(c(),{href:"/",className:"relative z-10",children:(0,a.jsx)("span",{className:"font-display text-3xl tracking-wider text-white",children:"SNOWSURE"})}),(0,a.jsxs)("div",{className:"relative z-10 max-w-lg",children:[(0,a.jsx)("h1",{className:"font-display text-4xl xl:text-5xl text-white mb-4",children:"Never Miss Fresh Powder Again"}),(0,a.jsxs)("p",{className:"text-white/80 text-lg",children:["Track snow conditions at ",d.f4," resorts worldwide. Get personalized alerts when big snow is coming."]}),(0,a.jsxs)("div",{className:"flex items-center gap-6 mt-8 text-white/70 text-sm",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Save favorites"]}),(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Powder alerts"]}),(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"100% Free"]})]})]}),(0,a.jsxs)("p",{className:"text-white/40 text-xs",children:["\uD83D\uDCF7 ",s.credit||s.name]})]})]}),(0,a.jsx)("div",{className:"w-full lg:w-1/2 xl:w-2/5 flex items-center justify-center p-8 bg-white",children:(0,a.jsxs)("div",{className:"w-full max-w-md",children:[(0,a.jsx)("div",{className:"lg:hidden text-center mb-8",children:(0,a.jsx)(c(),{href:"/",className:"inline-block",children:(0,a.jsx)("span",{className:"font-display text-3xl tracking-wider text-slate-900",children:"SNOWSURE"})})}),(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold text-slate-900",children:"Welcome back"}),(0,a.jsx)("p",{className:"text-slate-500 mt-1",children:"Sign in to access your account"})]}),(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(x,{}),children:(0,a.jsx)(u,{})})}),(0,a.jsxs)("div",{className:"lg:hidden mt-8 pt-8 border-t border-slate-200",children:[(0,a.jsx)("p",{className:"text-slate-500 text-sm mb-4",children:"Member benefits:"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 text-xs text-slate-600",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(m,{className:"w-4 h-4 text-blue-500"}
1),"Save favorites"]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(f,{className:"w-4 h-4 text-blue-500"}),"Powder alerts"]}),(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(p,{className:"w-4 h-4 text-blue-500"}),"Track conditions"]})]})]})]})})]})}function m(e){let{className:s}=e;return(0,a.jsx)("svg",{className:s,fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})})}function f(e){let{className:s}=e;return(0,a.jsx)("svg",{className:s,fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"})})}function p(e){let{className:s}=e;return(0,a.jsx)("svg",{className:s,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}},54652:(e,s,t)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var t in s)Object.defineProperty(e,t,{enumerable:!0,get:s[t]})}(s,{default:function(){return c},getImageProps:function(){return i}});let a=t(28140),l=t(75040),r=t(81356),n=a._(t(71124));function i(e){let{props:s}=(0,l.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(s))void 0===t&&delete s[e];return{props:s}}let c=r.Image},70397:(e,s,t)=>{"use strict";t.d(s,{f4:()=>a});let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:556;return"".concat(100*Math.floor(e/100),"+")}()}},e=>{e.O(0,[52619,81356,36489,5449,29793,28441,23731,77358],()=>e(e.s=16670)),_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.