PageSourceSearch

https://app.8020-os.com/_next/static/chunks/app/login/page-ea4e0340.js

js 8020-os.com collected 2026-10-09 22:13:54 UTC 6,466 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{58247:function(e,t,s){Promise.resolve().then(s.bind(s,66374))},66374:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return b}});var a=s(57437),r=s(2265),l=s(80605),i=s(99376),n=s(27648),c=s(49322),o=s(89345),d=s(66337),m=s(87769),x=s(42208),h=s(33145),u=s(60429),p=s(56795);function f(){try{let e=new URLSearchParams(window.location.search).get("callbackUrl");if(e&&e.startsWith("/")&&!e.startsWith("//"))return e}catch{}return"/dashboard"}function b(){let[e,t]=(0,r.useState)(""),[s,b]=(0,r.useState)(""),[g,y]=(0,r.useState)(!1),[j,v]=(0,r.useState)(""),[N,w]=(0,r.useState)(!1),k=(0,i.useRouter)(),{status:S}=(0,l.useSession)()||{};(0,r.useEffect)(()=>{"authenticated"===S&&k.replace(f())},[S,k]);let C=async t=>{t.preventDefault(),v(""),w(!0);try{let t=await (0,l.signIn)("credentials",{email:e,password:s,redirect:!1});t?.error?v(t.error):k.replace(f())}catch(e){v("Ein Fehler ist aufgetreten")}finally{w(!1)}};return"loading"===S||"authenticated"===S?(0,a.jsx)("div",{className:"min-h-screen gradient-bg flex items-center justify-center",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-[#ff0033]"})}):(0,a.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,a.jsx)("div",{className:"flex-1 gradient-bg flex items-center justify-center p-4",children:(0,a.jsxs)(u.E.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"w-full max-w-md bg-white rounded-2xl shadow-2xl p-8",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)(n.default,{href:"/",className:"inline-block mb-6",children:(0,a.jsx)(h.default,{src:"/logo.png",alt:"8020 OS",width:180,height:45,className:"h-10 w-auto",priority:!0})}),(0,a.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Willkommen zur\xfcck"}),(0,a.jsx)("p",{className:"text-gray-600 mt-2",children:"Melde dich in deinem Konto an"})]}),j&&(0,a.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg flex items-center gap-3 text-red-700",children:[(0,a.jsx)(c.Z,{className:"w-5 h-5 flex-shrink-0"}),(0,a.jsx)("span",{children:j})]}),(0,a.jsxs)("form",{onSubmit:C,className:"space-y-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"E-Mail-Adresse"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(o.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,a.jsx)("input",{type:"email",value:e,onChange:e=>t(e.target.value),className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#ff0033] focus:border-transparent outline-none transition",placeholder:"[email protected]",required:!0})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Passwort"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(d.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,a.jsx)("input",{type:g?"text":"password",value:s,onChange:e=>b(e.target.value),className:"w-full pl-10 pr-12 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#ff0033] focus:border-transparent outline-none transition",placeholder:"••••••••",required:!0}),(0,a.jsx)("button",{type:"button",onClick:()=>y(!g),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:g?(0,a.jsx)(m.Z,{className:"w-5 h-5"}):(0,a.jsx)(x.Z,{className:"w-5 h-5"})})]})]}),(0,a.jsx)("button",{type:"submit",disabled:N,className:"w-full py-3 px-4 bg-[#ff0033] text-white rounded-lg font-semibold hover:bg-[#cc0029] transition disabled:opacity-50 disabled:cursor-not-allowed",children:N?"Wird angemeldet...":"Anmelden"}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(n.default,{href:"/forgot-password",className:"text-sm text-gray-600 hover:text-[#ff0033] transition",children:"Passwort vergessen?"})})]})]})}),(0,a.jsx)(p.s,{})]})}},56795:function(e,t,s){"use strict";s.d(t,{s:function(){return o}});var a=s(57437),r=s(2265),l=s(32489),i=s(5095),n=s(60429),c=s(97324);function o(){let[e,t]=(0,r.useState)({type:null,title:"",html:""}),[s,o]=(0,r.useState)({imprint:"",privacy:"",terms:""});(0,r.useEffect)(()=>{fetch("/api/legal").then(e=>e.json()).then(e=>{o({imprint:e.imprint||"",privacy:e.privacy||"",terms:e.terms||""})}).catch(console.error)},[]);let d=e=>{t({type:e,title:{imprint:"Impressum",privacy:"Datenschutzerkl\xe4rung",terms:"AGB"}[e],html:s[e]})},m=()=>t({type:null,title:"",html:""}),x=!!s.imprint,h=!!s.privacy,u=!!s.terms,p=x||h||u;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("footer",{className:"bg-gray-900 text-white py-12",children:(0,a.jsxs)("div",{className:"max-w-6xl mx-auto px-4 text-center",children:[p&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-6 mb-4 text-sm",children:[x&&(0,a.jsx)("button",{onClick:()=>d("imprint"),className:"text-gray-400 hover:text-white transition",children:"Impressum"}),u&&(0,a.jsx)("button",{onClick:()=>d("terms"),className:"text-gray-400 hover:text-white transition",children:"AGB"}),h&&(0,a.jsx)("button",{onClick:()=>d("privacy"),className:"text-gray-400 hover:text-white transition",children:"Datenschutz"})]}),(0,a.jsx)("p",{className:"text-gray-400 text-sm",children:"\xa9 2026 Mission 80/20 GmbH. Alle Rechte vorbehalten."})]})}),(0,a.jsx)(i.M,{children:e.type&&(0,a.jsx)(n.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:m,children:(0,a.jsxs)(n.E.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"bg-white rounded-xl max-w-5xl w-full max-h-[80vh] overflow-hidden shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 border-b",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-gray-900",children:e.title}),(0,a.jsx)("button",{onClick:m,className:"p-2 hover:bg-gray-100 rounded-lg transition",children:(0,a.jsx)(l.Z,{className:"w-5 h-5"})})]}),(0,a.jsx)("div",{className:"p-6 overflow-y-auto max-h-[calc(80vh-80px)] prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:(0,c.bb)(e.html)}})]})})})]})}}},function(e){e.O(0,[7901,5878,2972,6307,1911,1338,7324,2971,2117,1744],function(){return e(e.s=58247)}),_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.