PageSourceSearch

https://wnti.ch/_next/static/chunks/pages/login-caab34be931b70f7.js

js wnti.ch collected 2026-10-02 19:51:10 UTC 2,467 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="af8d6be8-7300-4f8b-85e5-c04f631f0ba7",e._sentryDebugIdIdentifier="sentry-dbid-af8d6be8-7300-4f8b-85e5-c04f631f0ba7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[295],{30190:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(62454),i=r(22626),s=r(57067),a=r(5441);async function o(e,t,r){if(!e.query.jwt)return!1;try{let{data:a,errors:o}=await t.mutate({mutation:i.u3t,variables:{jwt:e.query.jwt},errorPolicy:"all"});if(o?.length||!a?.createSessionWithJWT){if(o?.some(e=>e.message?.includes("TOTP_REQUIRED")))return!1;return u(e),!1}(0,s.setCookie)(n.K8,JSON.stringify(a.createSessionWithJWT),{req:e.req,res:e.res,expires:new Date(a.createSessionWithJWT.expiresAt),sameSite:"strict",secure:!0,httpOnly:!!r})}catch{return u(e),!1}return!0}function u(e){e.res&&!e.res.headersSent&&(e.res.writeHead(302,{Location:`/login?error=${encodeURIComponent(a.a)}`}),e.res.end())}},52384:(e,t,r)=>{"use strict";function n(){return"https://api-wnti.wepublish.cloud"}r.d(t,{e:()=>n})},82805:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(94479)}])},94479:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(2860),i=r(25527),s=r(32781),a=r(62454),o=r(18132),u=r(7201);r(52384),r(30190),r(22626);var c=r(89441),d=r(57067),l=r(49897),f=r(81278),h=r(55729);let y=(0,i.A)("div",{target:"e4x39ye0"})("display:grid;justify-content:center;");function p({sessionToken:e}){let{hasUser:t,setToken:r}=(0,a.Jd)(),i=(0,f.useRouter)(),p=(0,h.useRef)(!1),{elements:{H3:w,Link:b}}=(0,c.K8)();if((0,h.useEffect)(()=>{e&&r(e)},[e,r]),i.query.intended&&i.query.intended.startsWith("/")&&(0,d.setCookie)(o.V,i.query.intended,{expires:(0,l.W)(new Date,{seconds:o.q})}),t&&1){let e=(0,d.getCookie)(o.V)?.toString();(0,d.deleteCookie)(o.V),p.current||(i.replace(e??"/profile"),p.current=!0)}return(0,n.FD)(y,{children:[(0,n.Y)(w,{component:"h1",children:"Login f\xfcr Mitglieder"}),(0,n.FD)(s.A,{variant:"body1",paragraph:!0,children:["(Falls du noch keinen Account hast,"," ",(0,n.Y)(b,{href:"/mitmachen",children:"klicke hier."}),")"]}),(0,n.Y)(u.b,{defaults:{email:i.query?.mail,requirePassword:!!i.query?.requirePassword}})]})}p.getInitialProps=async e=>({})}},e=>{e.O(0,[636,593,792],()=>e(e.s=82805)),_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.