PageSourceSearch

https://vaw-rain.vercel.app/_next/static/chunks/pages/index-f185a23ccc47db84.js

js vaw-rain.vercel.app collected 2026-10-03 07:59:04 UTC 6,832 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(85)}])},8422:function(e,r,t){"use strict";t.d(r,{P:function(){return p},V:function(){return g}});var n=t(5893),i=t(6886),s=t(7357),a=t(5675),o=t.n(a),l=t(3795),c=t(3946),d=t(5861),u=t(4020),h=t(7507),m=t(2746),x=function(e){let r=(0,m.useTranslations)();return(0,n.jsxs)(i.ZP,{container:!0,direction:"row",sx:{height:{xs:"auto",sm:"100vh"}},children:[(0,n.jsxs)(i.ZP,{item:!0,md:6,sm:9,xs:12,py:6,display:"flex",flexDirection:"column",sx:{overflowY:{xs:"visible",sm:"scroll"},height:{xs:"auto",sm:"100vh"}},children:[(0,n.jsx)(s.Z,{display:"flex",alignItems:"center",justifyContent:"center",children:(0,n.jsx)(o(),{src:"/assets/images/logo/logo-full.svg",alt:r("app-title"),width:52,height:52,style:{display:"block"}})}),(0,n.jsx)(s.Z,{children:e.children}),(0,n.jsx)(s.Z,{display:"flex",alignItems:"center",justifyContent:"center",sx:{px:3},children:(0,n.jsx)(d.Z,{variant:"body2",color:"secondary.main",sx:{pt:2},children:r.rich("support-text",{a:e=>(0,n.jsx)(l.Z,{href:"mailto:[email protected]?subject=".concat(r("support-mail-title")),children:e})})})}),(0,n.jsxs)(s.Z,{display:"flex",alignItems:"center",justifyContent:"center",sx:{px:3,pt:3},children:[(0,n.jsx)(c.Z,{color:"secondary",href:"mailto:[email protected]?subject=".concat(r("support-mail-title")),"aria-label":"Email",children:(0,n.jsx)(h.Z,{})}),(0,n.jsx)(c.Z,{color:"secondary",href:"https://x.com/vaw",target:"_blank","aria-label":"X",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",width:"24",height:"24",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{fill:"currentColor",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})}),(0,n.jsx)(c.Z,{color:"secondary",href:"https://www.instagram.com/vawbe/",target:"_blank","aria-label":"Instagram",children:(0,n.jsx)(u.Z,{})})]})]}),(0,n.jsx)(i.ZP,{item:!0,md:6,sm:3,sx:{height:"100vh",bgcolor:"background.default"},children:(0,n.jsx)(s.Z,{sx:{backgroundImage:'url("/assets/images/backgrounds/bg1.png")',backgroundSize:"cover",height:"100%",width:"100%",opacity:.6}})})]})};function g(e){return(0,n.jsx)(x,{children:e})}function p(e){let{children:r}=e;return(0,n.jsx)(s.Z,{flex:1,justifyContent:"center",display:"flex",flexDirection:"column",textAlign:"center",sx:{p:3},children:(0,n.jsx)(s.Z,{flex:1,alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",children:(0,n.jsx)(s.Z,{sx:{maxWidth:480},children:r})})})}},4561:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=(e,r)=>fetch(e,{...r,headers:{Authorization:"Bearer ".concat(localStorage.getItem("auth-token")),...null==r?void 0:r.headers}}).then(e=>(null==r?void 0:r.blob)?e.blob():e.json()),i=(e,r)=>n(e,{...r,body:JSON.stringify(r.body),headers:{"Content-Type":"application/json",...null==r?void 0:r.headers}})},1232:function(e,r,t){"use strict";t.d(r,{K:function(){return n},b:function(){return i}});let n=e=>e&&e.error?null:e,i=(e,r)=>e&&e.error?e.error:r},6074:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var n=t(4561),i=t(1232),s=t(3981);function a(){let{data:e,error:r,isMutating:t,trigger:a}=(0,s.Z)("".concat("https://vaw-garmin-weather-api.herokuapp.com","/").concat("validate-code"),(e,r)=>{let{arg:t}=r;return(0,n.Z)(e+"?code=".concat(t.code,"&email=").concat(t.email,"&newsletter=").concat(t.newsletter),{method:"GET"})});return{data:(0,i.K)(e),isError:(0,i.b)(e,r),isMutating:t,trigger:a}}},85:function(e,r,t){"use strict";t.r(r);var n=t(5893),i=t(6074),s=t(1163),a=t(2746),o=t(5861),l=t(6886),c=t(1812),d=t(4461),u=t(5071),h=t(480),m=t(8422),x=t(6815),g=t(3619),p=t(9433),j=t(6310);let b=()=>{let e=(0,a.useTranslations)(),r=(0,s.useRouter)(),{trigger:t,isMutating:b}=(0,i.Z)(),f=j.Ry({newsletter:j.O7(),email:j.Z_().email().required(e("email-required")),code:j.Z_().required(e("code-required"))});async function Z(n,i){try{let s=await t({...n});s.error?s.error.message?i.setErrors({mutationError:e(s.error.message)}):i.setErrors({mutationError:e("general-error")}):(localStorage.setItem("email",n.email),localStorage.setItem("code",n.code),localStorage.setItem("app",s.user.app),localStorage.setItem("preSubscriptions",s.user.preSubscriptions),s.user.isSubscribed?r.push("/manage"):r.push("/purchase"))}catch(r){console.error("An error occurred during form submission:",r),i.setErrors({mutationError:e("general-error")})}}return(0,n.jsx)(m.P,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{variant:"h3",sx:{pb:2},children:e("intro-title")}),(0,n.jsx)(o.Z,{variant:"body1",sx:{pb:4},children:e.rich("intro-text",{b:e=>(0,n.jsx)("strong",{style:{fontWeight:900},children:e})})}),(0,n.jsx)(p.J9,{initialValues:{email:"",code:"",newsletter:!0,mutationError:""},onSubmit:Z,validationSchema:f,children:r=>(0,n.jsx)("form",{onSubmit:r.handleSubmit,children:(0,n.jsxs)(l.ZP,{container:!0,direction:"column",spacing:4,children:[(0,n.jsxs)(l.ZP,{item:!0,children:[(0,n.jsx)(d.Z,{type:"number",disabled:b,error:!!(r.touched.code&&r.errors.code),label:e("code"),value:r.values.code,name:"code",inputProps:{inputMode:"numeric"},fullWidth:!0,onChange:r.handleChange}),r.touched.code&&r.errors.code&&(0,n.jsx)(x.Z,{error:!0,children:r.errors.code})]}),(0,n.jsxs)(l.ZP,{item:!0,children:[(0,n.jsx)(d.Z,{disabled:b,error:!!(r.touched.email&&r.errors.email),label:e("email"),value:r.values.email,name:"email",fullWidth:!0,onChange:r.handleChange}),r.touched.email&&r.errors.email&&(0,n.jsx)(x.Z,{error:!0,children:r.errors.email})]}),(0,n.jsx)(l.ZP,{item:!0,sx:{textAlign:"left"},children:(0,n.jsx)(h.Z,{disabled:b,control:(0,n.jsx)(u.Z,{disabled:b,checked:r.values.newsletter,name:"newsletter",onChange:r.handleChange}),label:(0,n.jsx)(o.Z,{variant:"body1",children:e.rich("newsletter",{i:e=>(0,n.jsx)(o.Z,{component:"span",variant:"body1",color:"secondary.main",children:e})})})})}),(0,n.jsxs)(l.ZP,{item:!0,children:[r.errors.mutationError&&(0,n.jsx)(x.Z,{sx:{mb:2,textAlign:"center"},error:!0,children:r.errors.mutationError}),(0,n.jsx)(c.Z,{loading:b,variant:"contained",size:"large",type:"submit",endIcon:(0,n.jsx)(g.Z,{}),children:e("submit")})]})]})})}),(0,n.jsx)(o.Z,{variant:"h4",sx:{pb:2,mt:12},children:e("manage-cta-title")}),(0,n.jsx)(o.Z,{variant:"body1",sx:{pb:3},children:e.rich("manage-cta-text",{b:e=>(0,n.jsx)("strong",{style:{fontWeight:900},children:e})})}),(0,n.jsx)(c.Z,{onClick:()=>{r.push("/manage")},variant:"outlined",size:"large",endIcon:(0,n.jsx)(g.Z,{}),sx:{mb:6},children:e("manage-cta-button")})]})})};b.getLayout=m.V,r.default=b}},function(e){e.O(0,[809,846,951,435,774,888,179],function(){return e(e.s=8312)}),_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.