PageSourceSearch

https://freddy-quinn-archiv.at/_next/static/chunks/app/(auth)/register/page-f91d8ab32b97906f.js

js freddy-quinn-archiv.at collected 2026-10-03 02:08:22 UTC 4,057 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[566],{7036:function(e,r,s){Promise.resolve().then(s.bind(s,3777))},3777:function(e,r,s){"use strict";s.r(r),s.d(r,{default:function(){return u}});var t=s(7437),a=s(9376),n=s(2265),l=s(605),o=s(7648);function u(){let e=(0,a.useRouter)(),[r,s]=(0,n.useState)(""),[u,i]=(0,n.useState)(""),[d,c]=(0,n.useState)(""),[m,h]=(0,n.useState)(""),[p,f]=(0,n.useState)(!1),x=async s=>{s.preventDefault(),h(""),f(!0);try{let s=await fetch("/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r,email:u,password:d})}),t=await s.json();if(!s.ok){h(t.error||"Registrierung fehlgeschlagen"),f(!1);return}let a=await (0,l.signIn)("credentials",{email:u,password:d,redirect:!1});(null==a?void 0:a.error)?e.push("/login"):(e.push("/"),e.refresh())}catch(e){h("Ein Fehler ist aufgetreten. Bitte versuche es erneut."),f(!1)}};return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"max-w-md w-full space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"mt-6 text-center text-3xl font-extrabold text-gray-900",children:"Konto erstellen"}),(0,t.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["Oder"," ",(0,t.jsx)(o.default,{href:"/login",className:"font-medium text-blue-600 hover:text-blue-500",children:"bei deinem bestehenden Konto anmelden"})]})]}),(0,t.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:x,children:[m&&(0,t.jsx)("div",{className:"bg-red-50 border border-red-400 text-red-700 px-4 py-3 rounded",children:m}),(0,t.jsxs)("div",{className:"rounded-md shadow-sm space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"name",className:"sr-only",children:"Name"}),(0,t.jsx)("input",{id:"name",name:"name",type:"text",autoComplete:"name",className:"appearance-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm",placeholder:"Name (optional)",value:r,onChange:e=>s(e.target.value)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"sr-only",children:"Email address"}),(0,t.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,className:"appearance-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm",placeholder:"E-Mail-Adresse",value:u,onChange:e=>i(e.target.value)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"sr-only",children:"Password"}),(0,t.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"new-password",required:!0,minLength:6,className:"appearance-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm",placeholder:"Passwort (min. 6 Zeichen)",value:d,onChange:e=>c(e.target.value)})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"submit",disabled:p,className:"group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",children:p?"Konto wird erstellt...":"Konto erstellen"})})]})]})})}},9376:function(e,r,s){"use strict";var t=s(5475);s.o(t,"useParams")&&s.d(r,{useParams:function(){return t.useParams}}),s.o(t,"usePathname")&&s.d(r,{usePathname:function(){return t.usePathname}}),s.o(t,"useRouter")&&s.d(r,{useRouter:function(){return t.useRouter}}),s.o(t,"useSearchParams")&&s.d(r,{useSearchParams:function(){return t.useSearchParams}})}},function(e){e.O(0,[648,605,971,117,744],function(){return e(e.s=7036)}),_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.