1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4138],{529:(e,r,t)=>{t.d(r,{p:()=>s});var a=t(5155),l=t(2115),n=t(8599);let s=l.forwardRef(({className:e,type:r,...t},l)=>(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:l,...t}));s.displayName="Input"},910:(e,r,t)=>{t.d(r,{c:()=>n});var a=t(1697);function l(e,r){return(...e)=>{try{return r(...e)}catch{throw Error(void 0)}}}let n=l(0,a.c3);l(0,a.kc)},2430:(e,r,t)=>{t.d(r,{A:()=>f});var a=t(3321),l=t(2115),n=t.t(l,2),s=t(1697),i=n["use".trim()],c=t(2651),o=t(6558),u=t(6144),d=t(5155),m=t(9780);function f(e){let{Link:r,config:t,getPathname:n,...f}=function(e,r){var t,n,s;let m={...t=r||{},localePrefix:"object"==typeof(s=t.localePrefix)?s:{mode:s||"always"},localeCookie:!!((n=t.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof n&&n},localeDetection:t.localeDetection??!0,alternateLinks:t.alternateLinks??!0},f=m.pathnames,h=(0,l.forwardRef)(function({href:r,locale:t,...a},l){let n,s;"object"==typeof r?(n=r.pathname,s=r.params):n=r;let u=(0,c._x)(r),h=e(),x=(0,c.yL)(h)?i(h):h,v=u?p({locale:t||x,href:null==f?n:{pathname:n,params:s},forcePrefix:null!=t||void 0}):n;return(0,d.jsx)(o.default,{ref:l,href:"object"==typeof r?{...r,pathname:v}:v,locale:t,localeCookie:m.localeCookie,...a})});function p(e){let r,{forcePrefix:t,href:a,locale:l}=e;return null==f?"object"==typeof a?(r=a.pathname,a.query&&(r+=(0,u.Zn)(a.query))):r=a:r=(0,u.FP)({locale:l,...(0,u.TK)(a),pathnames:m.pathnames}),(0,u.x3)(r,l,m,t)}function x(e){return function(r,...t){return e(p(r),...t)}}return{config:m,Link:h,redirect:x(a.redirect),permanentRedirect:x(a.permanentRedirect),getPathname:p}}(s.Ym,e);return{...f,Link:r,usePathname:function(){let e,r,n=(e=(0,a.usePathname)(),r=(0,s.Ym)(),(0,l.useMemo)(()=>{if(!e)return e;let a=e,l=(0,c.XP)(r,t.localePrefix);if((0,c.wO)(l,e))a=(0,c.MY)(e,l);else if("never"!==t.localePrefix.mode&&t.localePrefix.prefixes){let t=(0,c.bL)(r);(0,c.wO)(t,e)&&(a=(0,c.MY)(e,t))}return a},[t.localePrefix,r,e])),i=(0,s.Ym)();return(0,l.useMemo)(()=>n&&t.pathnames?(0,u.aM)(i,n,t.pathnames):n,[i,n])},useRouter:function(){let e=(0,a.useRouter)(),r=(0,s.Ym)(),i=(0,a.usePathname)();return(0,l.useMemo)(()=>{function a(e){return function(a,l){let{locale:s,...c}=l||{},o=[n({href:a,locale:s||r,forcePrefix:null!=s||void 0})];Object.keys(c).length>0&&o.push(c),(0,m.A)(t.localeCookie,i,r,s),e(...o)}}return{...e,push:a(e.push),replace:a(e.replace),prefetch:a(e.prefetch)}},[r,i,e])},getPathname:n}}},3474:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){return e}},4138:(e,r,t)=>{t.d(r,{default:()=>y});var a=t(5155),l=t(2115),n=t(910),s=t(8340);let i=(0,s.A)("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]),c=(0,s.A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),o=(0,s.A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var u=t(6296),d=t(5422),m=t(9239),f=t(529);let h="0x4AAAAAAErQcbdj1F3CPltE",p=null,x=(0,l.forwardRef)(function({action:e,onVerify:r},t){let s=(0,n.c)("experience"),i=(0,l.useRef)(null),c=(0,l.useRef)(null),o=(0,l.useRef)(r),[u,d]=(0,l.useState)(!1),[f,x]=(0,l.useState)(0);return o.current=r,(0,l.useImperativeHandle)(t,()=>({reset(){c.current&&window.turnstile&&window.turnstile.reset(c.current),o.current(null)}}),[]),(0,l.useEffect)(()=>{let r=!1;return(o.current(null),d(!1),h)?((window.turnstile?Promise.resolve():(!p&&(p=new Promise((e,r)=>{let t=document.getElementById("whembat-turnstile");t?.remove();let a=document.createElement("script");a.id="whembat-turnstile";let l=setTimeout(()=>{p=null,a.remove(),r(Error("Timeout"))},15e3);a.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",a.async=!0,a.onload=()=>{clearTimeout(l),e()},a.onerror=()=>{clearTimeout(l),p=null,a.remove(),r(Error("Load failed"))},document.head.appendChild(a)})),p)).then(()=>{!r&&i.current&&window.turnstile&&(c.current=window.turnstile.render(i.current,{sitekey:h,action:e,theme:"light",size:i.current.clientWidth<300?"compact":"flexible",callback:e=>{d(!1),o.current(e)},"expired-callback":()=>
1o.current(null),"error-callback":()=>{d(!0),o.current(null)},"timeout-callback":()=>{d(!0),o.current(null)}}))}).catch(()=>{r||d(!0)}),()=>{r=!0,c.current&&window.turnstile&&window.turnstile.remove(c.current),c.current=null}):void d(!0)},[e,f]),(0,a.jsxs)("div",{className:"min-h-[150px] min-[380px]:min-h-[70px]",children:[(0,a.jsx)("div",{ref:i,className:"flex w-full justify-center"}),u&&(0,a.jsxs)("div",{role:"alert",className:"text-sm",children:[(0,a.jsx)("p",{children:s("captchaError")}),(0,a.jsx)(m.$,{type:"button",variant:"outline",size:"sm",className:"mt-2",onClick:()=>x(e=>e+1),children:s("retryVerification")})]})]})});var v=t(9339);let g=(0,v.createServerReference)("6059dd31c73f607d243768d60f55543ce140055f24",v.callServer,void 0,v.findSourceMapURL,"submitAuth"),w=(0,v.createServerReference)("00e6e943ca1c3ac91c44a8f85e4fe929a3eca622c6",v.callServer,void 0,v.findSourceMapURL,"googleAuth");var b=t(7997);function y({mode:e}){let r=(0,n.c)("experience"),[t,s]=(0,l.useState)(""),[h,p]=(0,l.useState)(""),[v,j]=(0,l.useState)(""),[k,N]=(0,l.useState)(!1),[C,E]=(0,l.useState)(!1),[A,P]=(0,l.useState)(null),[L,S]=(0,l.useState)(!1),[M,R]=(0,l.useState)(0),[_,z]=(0,l.useState)(null);(0,l.useEffect)(()=>{"callback"===new URLSearchParams(window.location.search).get("error")&&P("callbackError")},[]);let F=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!M)return;let e=setTimeout(()=>R(e=>e-1),1e3);return()=>clearTimeout(e)},[M]);let $=L?"reset"===e?"resetSent":"checkEmail":({login:"signIn",signup:"createAccount",reset:"resetPassword",update:"newPassword"})[e];async function T(r){if(r.preventDefault(),!C){if(P(null),("signup"===e||"update"===e)&&h!==v)return void P("passwordMismatch");E(!0);try{let r=await g(e,{email:"update"===e?void 0:t,password:"reset"===e?void 0:h,captchaToken:_??void 0});if(r.ok){if(r.redirect)return void window.location.assign(r.redirect);S(!0),R(60)}else P(r.error??"authError")}catch{P("networkError")}finally{F.current?.reset(),z(null),E(!1)}}}async function O(){E(!0),P(null);try{let e=await g("resend",{email:t,captchaToken:_??void 0});e.ok?R(60):P(e.error??"authError")}catch{P("networkError")}finally{F.current?.reset(),z(null),E(!1)}}return(0,a.jsxs)("div",{className:"min-h-screen bg-neutral-50 px-4 py-6 sm:py-10",children:[(0,a.jsx)("div",{className:"mx-auto max-w-5xl",children:(0,a.jsx)(d.N_,{href:"/","aria-label":r("home"),className:"inline-block",children:(0,a.jsx)(b.default,{})})}),(0,a.jsxs)("main",{id:"main-content",className:"mx-auto mt-8 w-full max-w-md rounded-2xl border bg-white p-5 shadow-sm sm:mt-12 sm:p-8",children:[L&&(0,a.jsx)(i,{className:"mb-4 h-9 w-9 text-primary"}),(0,a.jsx)("h1",{className:"text-2xl font-bold",children:r($)}),(0,a.jsx)("p",{className:"mb-6 mt-2 text-sm leading-relaxed text-neutral-600",children:L?r("emailInstructions",{email:t}):r("authHint")}),A&&(0,a.jsx)("p",{role:"alert",className:"mb-4 rounded-lg bg-red-50 p-3 text-sm text-destructive",children:r(A)}),"emailNotConfirmed"===A&&!L&&(0,a.jsx)(m.$,{className:"mb-4 w-full",variant:"outline",onClick:()=>{S(!0),P(null)},children:r("resendEmail")}),L?(0,a.jsxs)("div",{className:"space-y-4",children:["reset"!==e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{ref:F,action:"resend",onVerify:z}),(0,a.jsx)(m.$,{className:"w-full",disabled:C||M>0||!_,onClick:()=>void O(),children:M?r("resendIn",{seconds:M}):r("resendEmail")})]}),(0,a.jsx)(m.$,{className:"w-full",variant:"outline",onClick:()=>{S(!1),p(""),j("")},children:r("editEmail")}),(0,a.jsx)(d.N_,{href:"/login",className:"block text-center text-sm text-primary underline",children:r("backToLogin")})]}):(0,a.jsxs)(a.Fragment,{children:[("login"===e||"signup"===e)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(m.$,{variant:"outline",className:"mb-5 w-full",disabled:C,onClick:async()=>{E(!0);try{let e=await w();e.url?window.location.assign(e.url):P(e.error??"authError")}catch{P("networkError")}finally{E(!1)}},children:[(0,a.jsxs)("svg",{"aria-hidden":"true",focusable:"false",className:"h-5 w-5 shrink-0",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,a.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),r("continueGoogle")]}),(0,a.jsx)("p",{className:"mb-5 text-center text-xs text-neutral-500",children:r("orEmail")})]}),(0,a.jsxs)("form",{onSubmit:T,className:"space-y-4",children:["update"!==e&&(0,a.jsxs)("label",{className:"grid gap-1.5 text-sm font-medium",htmlFor:"email",children:[r("email"),(0,a.jsx)(f.p,{id:"email",type:"email",autoComplete:"email",required:!0,value:t,onChange:e=>s(e.target.value),disabled:C})]}),"reset"!==e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{className:"grid gap-1.5 text-sm font-medium",htmlFor:"password",children:[r("password"),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(f.p,{id:"password",type:k?"text":"password",autoComplete:"login"===e?"current-password":"new-password",required:!0,minLength:"login"===e?1:8,value:h,onChange:e=>p(e.target.value),disabled:C,className:"pr-12"}),(0,a.jsx)("button",{type:"button","aria-label":r(k?"hidePassword":"showPassword"),onClick:()=>N(e=>!e),className:"absolute right-0 top-0 flex h-10 w-10 items-center justify-center",children:k?(0,a.jsx)(c,{className:"h-4 w-4"}):(0,a.jsx)(o,{className:"h-4 w-4"})})]})]}),("signup"===e||"update"===e)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-xs text-neutral-500",children:r("passwordRules")}),(0,a.jsxs)("label",{className:"grid gap-1.5 text-sm font-medium",htmlFor:"confirm",children:[r("confirmPassword"),(0,a.jsx)(f.p,{id:"confirm",type:k?"text":"password",autoComplete:"new-password",required:!0,minLength:8,value:v,onCh
1ange:e=>j(e.target.value),disabled:C})]})]})]}),"update"!==e&&(0,a.jsx)(x,{ref:F,action:e,onVerify:z}),(0,a.jsxs)(m.$,{type:"submit",className:"w-full",disabled:C||"update"!==e&&!_,children:[C&&(0,a.jsx)(u.A,{className:"mr-2 h-4 w-4 animate-spin"}),r($)]})]}),(0,a.jsx)("div",{className:"mt-5 space-y-3 text-center text-sm",children:"login"===e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.N_,{href:"/signup",className:"block text-primary underline",children:r("needAccount")}),(0,a.jsx)(d.N_,{href:"/reset-password",className:"block text-neutral-600 underline",children:r("forgotPassword")})]}):(0,a.jsx)(d.N_,{href:"/login",className:"text-primary underline",children:r("backToLogin")})})]})]}),(0,a.jsxs)("p",{className:"mx-auto mt-5 max-w-md text-center text-xs text-neutral-500",children:[(0,a.jsx)(d.N_,{href:"/datenschutz",className:"underline",children:r("privacy")})," ","\xb7"," ",(0,a.jsx)(d.N_,{href:"/",className:"underline",children:r("home")})]})]})}},5422:(e,r,t)=>{t.d(r,{DT:()=>n,N_:()=>s,a8:()=>c,rd:()=>o});var a=t(3474),l=t(2430);let n=(0,a.A)({locales:["en","de","fr"],defaultLocale:"en",localePrefix:"always"}),{Link:s,redirect:i,usePathname:c,useRouter:o,getPathname:u}=(0,l.A)(n)},6296:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(8340).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},7997:(e,r,t)=>{t.d(r,{default:()=>n});var a=t(5155);t(2115);
1var l=t(5422);let n=e=>{let r=(0,l.rd)();return(0,a.jsxs)("div",{className:"flex items-center gap-1.5 cursor-pointer",onClick:()=>{r.replace("/")},children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:"w-[28px] h-[28px] md:w-[40px] md:h-[40px]",...e,children:(0,a.jsx)("path",{fill:"#ef4444",d:"M24 12a12 12 0 0 1-12 12A12 12 0 0 1 0 12 12 12 0 0 1 12 0a12 12 0 0 1 12 12zm-8.228-8.578a1.48 1.48 0 0 0-.381-.433 1.474 1.474 0 0 0-1.093-.291 1.48 1.48 0 0 0-.545.186L3.342 8.92a1.48 1.48 0 0 0-.687.898 1.48 1.48 0 0 0-.037.575c.026.192.089.378.186.546l.023.039a1.477 1.477 0 0 0 .898.687 1.48 1.48 0 0 0 1.121-.15L15.257 5.48a1.48 1.48 0 0 0 .433-.381 1.477 1.477 0 0 0 .105-1.638l-.023-.039zm5.312 3.615a1.486 1.486 0 0 0-2.027-.544L3.444 15.508a1.486 1.486 0 0 0-.544 2.027l.015.027a1.486 1.486 0 0 0 2.027.544l15.612-9.013a1.486 1.486 0 0 0 .544-2.027l-.015-.027zm.088 6.285a1.48 1.48 0 0 0-.381-.433 1.474 1.474 0 0 0-.518-.254 1.48 1.48 0 0 0-1.121.15L8.742 18.82a1.48 1.48 0 0 0-.433.381 1.477 1.477 0 0 0-.105 1.638l.023.039a1.477 1.477 0 0 0 .898.687 1.48 1.48 0 0 0 1.121-.15l10.411-6.035a1.48 1.48 0 0 0 .433-.381 1.474 1.474 0 0 0 .105-1.638l-.023-.039z"})}),(0,a.jsx)("div",{className:"text-red-500 text-2xl md:text-3xl font-semibold cursor-pointer",children:"Whembat"})]})}},8340:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(2115);let l=(...e)=>e.filter((e,r,t)=>!!e&&t.indexOf(e)===r).join(" ");var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,a.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:s,className:i="",children:c,iconNode:o,...u},d)=>(0,a.createElement)("svg",{ref:d,...n,width:r,height:r,stroke:e,strokeWidth:s?24*Number(t)/Number(r):t,className:l("lucide",i),...u},[...o.map(([e,r])=>(0,a.createElement)(e,r)),...Array.isArray(c)?c:[c]])),i=(e,r)=>{let t=(0,a.forwardRef)(({className:t,...n},i)=>(0,a.createElement)(s,{ref:i,iconNode:r,className:l(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,t),...n}));return t.displayName=`${e}`,t}},8460:(e,r,t)=>{t.d(r,{F:()=>s});var a=t(9722);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=a.$,s=(e,r)=>t=>{var a;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:s,defaultVariants:i}=r,c=Object.keys(s).map(e=>{let r=null==t?void 0:t[e],a=null==i?void 0:i[e];if(null===r)return null;let n=l(r)||l(a);return s[e][n]}),o=t&&Object.entries(t).reduce((e,r)=>{let[t,a]=r;return void 0===a||(e[t]=a),e},{});return n(e,c,null==r||null==(a=r.compoundVariants)?void 0:a.reduce((e,r)=>{let{class:t,className:a,...l}=r;return Object.entries(l).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...o}[r]):({...i,...o})[r]===t})?[...e,t,a]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},8599:(e,r,t)=>{t.d(r,{cn:()=>n});var a=t(9722),l=t(622);function n(...e){return(0,l.QP)((0,a.$)(e))}},9239:(e,r,t)=>{t.d(r,{$:()=>o});var a=t(5155),l=t(2115),n=t(2442),s=t(8460),i=t(8599);let c=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"h-10 w-10 rounded-full"}},defaultVariants:{variant:"default",size:"default"}}),o=l.forwardRef(({className:e,variant:r,size:t,asChild:l=!1,...s},o)=>{let u=l?n.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(c({variant:r,size:t,className:e})),ref:o,...s})});o.displayName="Button"},9339:(e,r,t)=>
1{Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return n.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var l in a)Object.defineProperty(r,l,{enumerable:!0,get:a[l]});let n=t(7304),s=t(4060),i=t(7197)}}]);
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.