PageSourceSearch

https://zielpunkt.app/_next/static/chunks/01yj6n5lo17mj.js

js zielpunkt.app collected 2026-10-02 01:15:59 UTC 12,086 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3df5e0a4-de3f-2455-c168-f8a91c5983f5")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,715469,e=>{"use strict";var t=e.i(414294),r=e.i(430878),s=e.i(353913),a=e.i(504561),i=e.i(841883),l=e.i(785563),n=e.i(525163),o=e.i(754504),d=e.i(841815),c=e.i(995356),u=e.i(180979);function m(){let e=new URLSearchParams(window.location.search).get("next");return e&&e.startsWith("/")&&!e.startsWith("//")?e:"/timeline"}e.s(["default",0,function(){let e=(0,s.useRouter)(),{setUser:p}=(0,i.useAuth)(),[h,g]=(0,r.useState)({email:"",password:""}),[x,f]=(0,r.useState)({}),[b,w]=(0,r.useState)(!1),[v,y]=(0,r.useState)(""),[j,N]=(0,r.useState)(null),[C,S]=(0,r.useState)(null),[A,k]=(0,r.useState)(!1),L=(e,t)=>{g(r=>({...r,[e]:t})),x[e]&&f(t=>({...t,[e]:""})),v&&y("")},D=(e,t)=>{if("email"===e){let r=(0,n.validateField)(e,t);r.isValid||f(t=>({...t,[e]:r.error}))}else"password"!==e||t&&0!==t.trim().length||f(t=>({...t,[e]:"Passwort ist erforderlich"}))},E=async t=>{if(t.preventDefault(),b)return;let r={};if(h.email&&0!==h.email.trim().length){let e=(0,n.validateField)("email",h.email);e.isValid||(r.email=e.error)}else r.email="E-Mail-Adresse ist erforderlich";if(h.password&&0!==h.password.trim().length||(r.password="Passwort ist erforderlich"),Object.keys(r).length>0)return void f(r);w(!0),y("");let s=h.email.trim();try{let t=await l.apiClient.login({email:s,password:h.password,reactivateAccount:!1});if(t.success&&t.data){(0,c.trackEvent)("auth_login_completed",{client:"web",reactivated_account:!1});let r=t.data;p(r),e.push(m());return}if("ACCOUNT_DELETION_PENDING"===t.code||412===t.status||428===t.status){let e=t.meta&&"object"==typeof t.meta?t.meta:{},r=e&&"string"==typeof e.scheduledDeletionAt?e.scheduledDeletionAt:void 0;N({scheduledDeletionAt:r}),S({email:s,password:h.password}),y("");return}y(t.error||"Ungültige E-Mail-Adresse oder Passwort.")}catch(e){(0,u.logError)("Login",e,{message:"Login failed"}),y("Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.")}finally{w(!1)}},_=async()=>{if(C){k(!0),y("");try{let t=await l.apiClient.login({...C,reactivateAccount:!0});t.success&&t.data?((0,c.trackEvent)("auth_login_completed",{client:"web",reactivated_account:!0}),p(t.data),N(null),S(null),e.push(m())):y(t.error||"Reaktivierung fehlgeschlagen.")}catch{y("Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.")}finally{k(!1)}}},z=j?.scheduledDeletionAt?new Intl.DateTimeFormat("de-CH",{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date(j.scheduledDeletionAt)):void 0;return(0,t.jsxs)(o.default,{children:[(0,t.jsx)("main",{className:"max-w-md mx-auto px-4 sm:px-6 lg:px-8 py-12",children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Willkommen zurück"}),(0,t.jsx)("p",{className:"text-lg text-gray-600",children:"Melden Sie sich in Ihr Zielpunkt-Konto an"})]}),v&&(0,t.jsx)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg",children:(0,t.jsx)("p",{className:"text-red-600 text-sm",children:v})}),(0,t.jsxs)("form",{onSubmit:E,className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"E-Mail-Adresse"}),(0,t.jsx)("input",{type:"email",id:"email",value:h.email,onChange:e=>L("email",e.target.value),onBlur:e=>D("email",e.target.value),placeholder:"[email protected]",autoComplete:"email",className:`w-full px-4 py-3 border-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-red-500 transition-colors ${x.email?"border-red-500":"border-gray-300"}`,disabled:b}),x.email&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:x.email})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-2",children:"Passwort"}),(0,t.jsx)("input",{type:"password",id:"password",value:h.password,onChange:e=>L("password",e.target.value),onBlur:e=>D("password",e.target.value),placeholder:"Geben Sie Ihr Passwort ein",autoComplete:"current-password",autoCapitalize:"none",className:`w-full px-4 py-3 border-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-red-500 transition-colors ${x.password?"border-red-500":"border-gray-300"}`,disabled:b}),x.password&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:x.password})]}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("button",{type:"button",onClick:()=>{e.push("/forgot-password")},className:"text-sm text-red-600 hover:text-red-700 font-medium transition-colors",children:"Passwort vergessen?"})}),(0,t.jsx)("button",{type:"submit",disabled:b,className:`w-full py-3 px-6 rounded-lg font-medium transition-all duration-200 ${b?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 hover:shadow-lg transform hover:-translate-y-0.5"} text-white`,children:b?"Anmeldung läuft...":"Anmelden"}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("p",{className:"text-gray-600",children:["Neu bei Zielpunkt?"," ",(0,t.jsx)(a.default,{href:"/register",className:"text-red-600 hover:text-red-700 font-medium transition-colors",children:"Konto erstellen"})]})})]})]})}),(0,t.jsx)(d.default,{isOpen:!!j,title:"Konto ist zur Löschung vorgemerkt",description:z?`Ihr Konto ist zur L\xf6schung vorgemerkt (geplanter Termin: ${z}). M\xf6chten Sie die L\xf6schung r\xfcckg\xe4ngig machen und sich wieder einloggen?`:"Ihr Konto ist zur Löschung vorgemerkt. Möchten Sie die Löschung rückgängig machen und sich wieder einloggen?",confirmLabel:"Löschung rückgängig machen",cancelLabel:"Abbrechen",tone:"danger",confirmLoading:A,onConfirm:_,onCancel:()=>{N(null),S(null),y("Ihre Löschung bleibt weiterhin geplant. Sie können sich innerhalb von 30 Tagen erneut entscheiden.")}})]})}])},908798,e=>{"use strict";var t=e.i(414294),r=e.i(430878),s=e.i(353913),a=e.i(504561),i=e.i(841883),l=e.i(785563),n=e.i(525163),o=e.i(754504),d=e.i(841815),c=e.i(995356),u=e.i(180979);function m(){let e=new URLSearchParams(window.location.search).get("next");return e&&e.startsWith("/")&&!e.startsWith("//")?e:"/timeline"}e.s(["default",0,function(){let e=(0,s.useRouter)(),{setUser:p}=(0,i.useAuth)(),[h,g]=(0,r.useState)({email:"",password:""}),[x,f]=(0,r.useState)({}),[b,w]=(0,r.useState)(!1),[v,y]=(0,r.useState)(""),[j,N]=(0,r.useState)(null),[C,S]=(0,r.useState)(null),[A,k]=(0,r.useState)(!1),L=(e,t)=>{g(r=>({...r,[e]:t})),x[e]&&f(t=>({...t,[e]:""})),v&&y("")},D=(e,t)=>{if("email"===e){let r=(0,n.validateField)(e,t);r.isValid||f(t=>({...t,[e]:r.error}))}else"password"!==e||t&&0!==t.trim().length||f(t=>({...t,[e]:"Le mot de passe est requis"}))},E=async t=>{if(t.preventDefault(),b)return;let r={};if(h.email&&0!==h.email.trim().length){let e=(0,n.validateField)("email",h.email);e.isValid||(r.email=e.error)}else r.email="L'adresse e-mail est requise";if(h.password&&0!==h.password.trim().length||(r.password="Le mot de passe est requis"),Object.keys(r).length>0)return void f(r);w(!0),y("");let s=h.email.trim();try{let t=await l.apiClient.login({email:s,password:h.password,reactivateAccount:!1});if(t.success&&t.data){(0,c.trackEvent)("auth_login_completed",{client:"web",reactivated_account:!1});let r=t.data;p(r),e.push(m());return}if("ACCOUNT_DELETION_PENDING"===t.code||412===t.status||428===t.status){let e=t.meta&&"object"==typeof t.meta?t.meta:{},r=e&&"string"==typeof e.scheduledDeletionAt?e.scheduledDeletionAt:void 0;N({scheduledDeletionAt:r}),S({email:s,password:h.password}),y("");return}y(t.error||"Adresse e-mail ou mot de passe incorrect.")}catch(e){(0,u.logError)("Login",e,{message:"Login failed"}),y("Une erreur inattendue s'est produite. Veuillez réessayer.")}finally{w(!1)}},_=async()=>
2{if(C){k(!0),y("");try{let t=await l.apiClient.login({...C,reactivateAccount:!0});t.success&&t.data?((0,c.trackEvent)("auth_login_completed",{client:"web",reactivated_account:!0}),p(t.data),N(null),S(null),e.push(m())):y(t.error||"La réactivation a échoué.")}catch{y("Une erreur inattendue s'est produite. Veuillez réessayer.")}finally{k(!1)}}},z=j?.scheduledDeletionAt?new Intl.DateTimeFormat("fr-CH",{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date(j.scheduledDeletionAt)):void 0;return(0,t.jsxs)(o.default,{children:[(0,t.jsx)("main",{className:"max-w-md mx-auto px-4 sm:px-6 lg:px-8 py-12",children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Bienvenue"}),(0,t.jsx)("p",{className:"text-lg text-gray-600",children:"Connectez-vous à votre compte Zielpunkt"})]}),v&&(0,t.jsx)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg",children:(0,t.jsx)("p",{className:"text-red-600 text-sm",children:v})}),(0,t.jsxs)("form",{onSubmit:E,className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Adresse e-mail"}),(0,t.jsx)("input",{type:"email",id:"email",value:h.email,onChange:e=>L("email",e.target.value),onBlur:e=>D("email",e.target.value),placeholder:"[email protected]",autoComplete:"email",className:`w-full px-4 py-3 border-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-red-500 transition-colors ${x.email?"border-red-500":"border-gray-300"}`,disabled:b}),x.email&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:x.email})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-2",children:"Mot de passe"}),(0,t.jsx)("input",{type:"password",id:"password",value:h.password,onChange:e=>L("password",e.target.value),onBlur:e=>D("password",e.target.value),placeholder:"Saisissez votre mot de passe",autoComplete:"current-password",autoCapitalize:"none",className:`w-full px-4 py-3 border-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-red-500 transition-colors ${x.password?"border-red-500":"border-gray-300"}`,disabled:b}),x.password&&(0,t.jsx)("p",{className:"mt-1 text-sm text-red-600",children:x.password})]}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("button",{type:"button",onClick:()=>{e.push("/forgot-password")},className:"text-sm text-red-600 hover:text-red-700 font-medium transition-colors",children:"Mot de passe oublié ?"})}),(0,t.jsx)("button",{type:"submit",disabled:b,className:`w-full py-3 px-6 rounded-lg font-medium transition-all duration-200 ${b?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 hover:shadow-lg transform hover:-translate-y-0.5"} text-white`,children:b?"Connexion en cours...":"Se connecter"}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("p",{className:"text-gray-600",children:["Nouveau sur Zielpunkt ?"," ",(0,t.jsx)(a.default,{href:"/fr/register",className:"text-red-600 hover:text-red-700 font-medium transition-colors",children:"Créer un compte"})]})})]})]})}),(0,t.jsx)(d.default,{isOpen:!!j,title:"Compte marqué pour suppression",description:z?`Votre compte est marqu\xe9 pour suppression (date pr\xe9vue : ${z}). Souhaitez-vous annuler la suppression et vous reconnecter ?`:"Votre compte est marqué pour suppression. Souhaitez-vous annuler la suppression et vous reconnecter ?",confirmLabel:"Annuler la suppression",cancelLabel:"Annuler",tone:"danger",confirmLoading:A,onConfirm:_,onCancel:()=>{N(null),S(null),y("Votre suppression reste planifiée. Vous pouvez changer d'avis dans les 30 jours.")}})]})}])}]);
3
4//# debugId=3df5e0a4-de3f-2455-c168-f8a91c5983f5

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.