PageSourceSearch

https://app.ponora.ai/_next/static/chunks/app/login/page-bb6b82bb714fe9ec.js

js ponora.ai collected 2026-10-05 14:38:17 UTC 23,687 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{3427:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>W});var s=r(3345),a=r(8997),n=r(7394),i=r(2336),o=r(650),l=r(6577),c=r.n(l),d=r(6183),u=r(3246),m=r(2334),p=r(8233),h=r(3970),g=r(6678),x=r(7764);function b(e){let{email:t,hint:r,disabled:n,onBusyChange:o}=e,l=(0,i.c)("auth"),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(0),[p,h]=(0,a.useState)(""),g=(0,a.useRef)(!0),x=(0,a.useRef)(!1),b=(0,a.useRef)(void 0);(0,a.useEffect)(()=>(g.current=!0,()=>{g.current=!1,clearTimeout(b.current),x.current&&o(!1)}),[o]);let f=async()=>{if(x.current||n||u)return;let e=t.trim().toLowerCase();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return void h("verificationInvalidEmail");x.current=!0,d(!0),o(!0),h("");try{let t=await fetch("/api/auth/resend-verification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!g.current)return;if(!t.ok)return void h(429===t.status?"verificationRateLimited":"verificationFailed");h("verificationRequested");let r=Date.now()+6e4,s=()=>{if(!g.current)return;let e=Math.max(0,Math.ceil((r-Date.now())/1e3));m(e),e>0&&(b.current=setTimeout(s,1e3))};s()}catch(e){g.current&&h("verificationFailed")}finally{g.current&&(x.current=!1,d(!1),o(!1))}};return(0,s.jsxs)("div",{className:"mt-4 text-sm",children:[r&&(0,s.jsxs)("p",{role:"alert",className:"mb-3 flex items-start gap-2 rounded-lg bg-amber-50 p-3 font-semibold text-amber-900",children:[(0,s.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"mt-0.5 h-5 w-5 shrink-0",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,s.jsx)("path",{strokeLinecap:"round",d:"M12 7v6m0 4h.01"})]}),(0,s.jsx)("span",{children:r})]}),(0,s.jsx)("button",{type:"button",onClick:f,disabled:n||c||u>0,"aria-busy":c,className:"text-brand-600 focus-visible:outline-brand-600 min-h-11 w-full rounded-lg border border-gray-300 px-4 py-2 font-semibold focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:opacity-60",children:u>0?l("resendVerificationCountdown",{seconds:u}):l("resendVerification")}),(0,s.jsxs)("div",{role:"status","aria-live":"polite",className:"mt-2 text-gray-700",children:[p&&(0,s.jsx)("p",{children:l(p)}),u>0&&(0,s.jsx)("p",{children:l("verificationCooldown")})]})]})}let f="auth-consent-error",v="w-fit max-w-full rounded-lg px-3 py-2 text-xs leading-5 break-words";function w(e){let{message:t}=e;return(0,s.jsxs)("div",{id:f,role:"alert",className:"bg-brand-600 absolute top-0 left-0 z-10 text-white shadow-lg ".concat(v),children:[t,(0,s.jsx)("span",{"aria-hidden":"true",className:"bg-brand-600 absolute -bottom-1 left-1 size-2 rotate-45"})]})}var y=r(8600);function j(e){let t=e.trim();return t.length>0&&"CHANGE_ME"!==t}function k(e){let{onSuccess:t,onError:r,beforeAuth:a,disabled:n,label:i,ariaDescribedBy:o}=e,l=(0,u.mg)({onSuccess:e=>t(e.access_token),onError:e=>{console.error("[Google Login] OAuth error:",e),r(e.error_description||e.error||"Google login failed")},onNonOAuthError:e=>{"popup_closed"!==e.type&&(console.error("[Google Login] Non-OAuth error:",e),r(e.type||"Google login failed"))},scope:"openid email profile"});return(0,s.jsxs)("button",{type:"button",onClick:()=>{(!a||a())&&l()},disabled:n,"aria-describedby":o,className:"focus-visible:ring-brand-500 flex h-11 w-full items-center justify-center gap-2.5 rounded-lg border border-gray-200 bg-white px-4 text-sm font-medium text-gray-900 transition-colors duration-200 hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:text-gray-500 disabled:opacity-50",children:[(0,s.jsx)(y.N,{}),i]})}function N(e){let{label:t,unavailableLabel:r}=e;return(0,s.jsxs)("button",{type:"button",disabled:!0,title:r,className:"flex h-11 w-full cursor-not-allowed items-center justify-center gap-2.5 rounded-lg border border-gray-200 bg-white px-4 text-sm font-medium text-gray-500 opacity-50",children:[(0,s.jsx)(y.N,{}),t]})}function C(e){let{onSuccess:t,onError:r,beforeAuth:a,disabled:n,isReady:i,label:o,ariaDescribedBy:l}=e,c=async()=>{var e;if(a&&!a())return;let s=null==(e=window.AppleID)?void 0:e.auth;if(!s)return void r();try{let e=await s.signIn();t(e.authorization.id_token,e.user)}catch(e){"user_cancelled_authorize"!==("object"==typeof e&&null!==e&&"error"in e?String(e.error):void 0)&&r()}};return(0,s.jsxs)("button",{type:"button",onClick:c,disabled:n||!i,"aria-describedby":l,className:"focus-visible:ring-brand-500 flex h-11 w-full items-center justify-center gap-2.5 rounded-lg border border-gray-200 bg-white px-4 text-sm font-medium text-gray-900 transition-colors duration-200 hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:text-gray-500 disabled:opacity-50",children:[(0,s.jsx)(y.Y,{}),o]})}function S(e){let{label:t,unavailableLabel:r}=e;return(0,s.jsxs)("button",{type:"button",disabled:!0,title:r,className:"flex h-11 w-full cursor-not-allowed items-center justify-center gap-2.5 rounded-lg border border-gray-200 bg-white px-4 text-sm font-medium text-gray-500 opacity-50",children:[(0,s.jsx)(y.Y,{}),t]})}let E="464004026385-u19u10roe7o2k380o3nkt1cuq58i5dqt.apps.googleusercontent.com",L="ai.ponora.note.web",R="https://app.ponora.ai",_=()=>()=>void 0,I=()=>!0,P=()=>!1,T=j(E),A=j(L);
1function O(e){let{gdprConsent:t,newsletterOptIn:r,showNewsletter:n,consentError:o,consentFocusRequest:l,consentInputRef:c,onGdprChange:d,onMarketingChange:u}=e,m=(0,i.c)("auth"),p=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var e,t;if(!o)return;let r=window.matchMedia("(prefers-reduced-motion: reduce)").matches;null==(e=c.current)||e.focus({preventScroll:!0}),null==(t=p.current)||t.scrollIntoView({behavior:r?"auto":"smooth",block:"center"})},[o,l,c]),(0,s.jsxs)("div",{className:"mt-1.5 flex flex-col gap-3",children:[(0,s.jsxs)("div",{ref:p,className:"consent-anchor relative min-w-0",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"consent-tooltip-reserve invisible mb-1.5 ".concat(v),children:m("consentRequired")}),o&&(0,s.jsx)(w,{message:o}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5",children:[(0,s.jsx)("input",{ref:c,type:"checkbox",required:!0,"aria-required":"true","aria-invalid":!!o||void 0,"aria-describedby":o?f:void 0,checked:t,onChange:e=>d(e.target.checked),className:"accent-brand-600 focus:ring-brand-500 h-4 w-4 shrink-0 rounded border-gray-300 focus:ring-2"}),(0,s.jsxs)("span",{id:"auth-privacy-consent",className:"text-xs text-pretty text-gray-900",children:[m("gdprConsent",{region:m("registerRegionGermany")})," ",(0,s.jsx)("a",{href:"/terms",className:"font-medium text-gray-900 underline",children:m("termsOfService")})," ",m("and")," ",(0,s.jsx)("a",{href:"/privacy",className:"font-medium text-gray-900 underline",children:m("privacyPolicy")}),m("gdprConsentEnd")]})]})]}),n&&(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",checked:r,onChange:e=>u(e.target.checked),className:"accent-brand-600 focus:ring-brand-500 h-4 w-4 shrink-0 rounded border-gray-300 focus:ring-2"}),(0,s.jsx)("span",{className:"text-xs text-pretty text-gray-500",children:m("marketingConsent")})]})]})}function M(){let e=(0,i.c)("auth");return(0,s.jsxs)("div",{className:"relative my-[18px]",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,s.jsx)("div",{className:"w-full border-t border-gray-200"})}),(0,s.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,s.jsx)("span",{className:"bg-white px-3 text-gray-500",children:e("orDivider")})})]})}function D(e){let{isVisible:t}=e;return(0,s.jsxs)("svg",{viewBox:"0 0 16 16",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[!t&&(0,s.jsx)("path",{d:"M2.2 13.8L13.8 2.2"}),(0,s.jsx)("path",{d:"M1 7.8C2.7 5 5.2 3.6 8 3.6C10.8 3.6 13.3 5 15 7.8C13.3 10.6 10.8 12 8 12C5.2 12 2.7 10.6 1 7.8Z"}),(0,s.jsx)("path",{d:"M9.9 7.8C9.9 8.85 9.05 9.7 8 9.7C6.95 9.7 6.1 8.85 6.1 7.8C6.1 6.75 6.95 5.9 8 5.9C9.05 5.9 9.9 6.75 9.9 7.8Z"})]})}function q(e){let{htmlFor:t,children:r}=e;return(0,s.jsx)("label",{htmlFor:t,className:"mb-1.5 block text-[13px] font-medium text-gray-700",children:r})}let z="focus:border-brand-600 focus:ring-brand-600 block h-[42px] w-full rounded-lg border border-gray-200 bg-white px-3.5 py-0 text-sm text-gray-900 placeholder:text-gray-400 focus:ring-1 focus:outline-none";function B(){let e=(0,i.c)("auth"),t=(0,o.Ym)(),r=(0,n.useRouter)(),l=(0,n.useSearchParams)(),u="register"===l.get("mode")?"register":"login",v=l.get("redirect")||"/dashboard",w=l.get("returnUrl"),y=e=>{try{let t=new URL(e).hostname;return"localhost"===t||t.endsWith(".ponora.ai")||"ponora.ai"===t||t.endsWith(".ponora.de")||"ponora.de"===t}catch(e){return!1}},[j,E]=(0,a.useState)(u),[B,F]=(0,a.useState)(""),[W,G]=(0,a.useState)(""),[U,V]=(0,a.useState)(""),[Y,H]=(0,a.useState)(""),[J,K]=(0,a.useState)(""),[Z,$]=(0,a.useState)(0),[Q,X]=(0,a.useState)(!1),[ee,et]=(0,a.useState)(""),[er,es]=(0,a.useState)(!1),[ea,en]=(0,a.useState)(""),[ei,eo]=(0,a.useState)(!1),[el,ec]=(0,a.useState)(!1),[ed,eu]=(0,a.useState)(!1),em=(0,a.useRef)(!1),ep=(0,a.useCallback)(e=>{em.current=e,ec(e)},[]),[eh,eg]=(0,a.useState)(!1),[ex,eb]=(0,a.useState)(!1),[ef,ev]=(0,a.useState)(!1),[ew,ey]=(0,a.useState)("not_requested"),[ej,ek]=(0,a.useState)(),[eN,eC]=(0,a.useState)("password"),eS=(0,a.useSyncExternalStore)(_,I,P),[eE,eL]=(0,a.useState)(!1),[eR,e_]=(0,a.useState)(!1),[eI,eP]=(0,a.useState)(!1),[eT,eA]=(0,a.useState)(!1),eO=(0,a.useRef)(null),eM=(0,a.useRef)(null),eD=(0,a.useRef)(null),eq=(0,a.useRef)({google:{gdprConsent:!1,newsletterOptIn:!1,mode:u},apple:{gdprConsent:!1,newsletterOptIn:!1,mode:u}}),ez=(0,p.n)(e=>e.login),eB=(0,p.n)(e=>e.oauthLogin),eF=(0,a.useCallback)(t=>{if(!t)return"";let r=(0,g.m_)(t);return"ok"===r?"":e("too_short"===r?"passwordTooShort":"too_long"===r?"passwordTooLong":"passwordTooWeak")},[e]),eW=(0,a.useCallback)((t,r)=>t&&t!==r?e("passwordMismatch"):"",[e]),eG=(0,a.useCallback)(()=>(H(""),!!ex||(K(e("consentRequired")),$(e=>e+1),!1)),[ex,e]),eU=(0,a.useCallback)(e=>(eu(!1),!!eG()&&(eq.current[e]={gdprConsent:ex,newsletterOptIn:ef,mode:j},!0)),[ex,j,ef,eG]),eV=(0,a.useCallback)(async t=>{let s=eq.current.google;H(""),eo(!0);try{let e=await eB("google",null,void 0,{accessToken:t,gdprConsent:s.gdprConsent,newsletterOptIn:"register"===s.mode&&s.newsletterOptIn});if("register"===s.mode){ey(e.newsletterStatus),ek(e.newsletterEmail),eC("oauth"),eg(!0);return}w&&y(w)?window.location.href=w:r.push(v)}catch(s){let t=s instanceof Error?s.message:"";console.error("[Google Login] Backend call failed:",t);let r=(0,h.Yj)(s);H("loginError"===r?t||e("oauthError"):e(r))}finally{eo(!1)}},[eB,r,v,w,e]),eY=(0,a.useCallback)(t=>{H(t||e("oauthError"))},[e]),eH=(0,a.useCallback)(async(t,s)=>{let a=eq.current.apple;H(""),eo(!0);try{let e=await eB("apple",t,s,{gdprConsent:a.gdprConsent,newsletterOptIn:"register"===a.mode&&a.newsletterOptIn});if("register"===a.mode){ey(e.newsletterStatus),ek(e.newsletterEmail),eC("oauth"),eg(!0);return}w&&y(w)?window.location.href=w:r.push(v)}catch(r){let t=(0,h.Yj)(r);H("loginError"===t?e("oauthError"):e(t))}finally{eo(!1)}},[eB,r,v,w,e]),eJ=(0,a.useCallback)(()=>{H(e("oauthError"))},[e]),eK=(0,a.useCallback)(()=>{var e;let t=null==(e=window.AppleID)?void 0:e.auth;if(!A||!t)return void eA(!1);try{t.init({clientId:L,scope:"name email",redirectURI:"".concat(R.startsWith("https://")?R:window.location.origin,"/login"),usePopup:!0}),eA(!0)}catch(e){eA(!1),console.warn("[Apple Sign In] SDK init failed — Apple login 
1will be unavailable:",e)}},[]),eZ=async t=>{if((t.preventDefault(),!em.current&&!ei)&&(eu(!1),H(""),eG())){eo(!0);try{await ez(B,W),w&&y(w)?window.location.href=w:r.push(v)}catch(r){let t=r instanceof h.lR&&r.code===h.RL.EMAIL_NOT_VERIFIED;eu(t),H(t?"":e((0,h.Yj)(r)))}finally{eo(!1)}}},e$=async r=>{var s,a,n;if(r.preventDefault(),em.current||ei||(H(""),!eG()))return;let i=(0,g.m_)(W);if("ok"!==i){X(!0),et(e("too_short"===i?"passwordTooShort":"too_long"===i?"passwordTooLong":"passwordTooWeak")),null==(s=eO.current)||s.focus();return}if(W!==U){es(!0),en(e("passwordMismatch")),null==(a=eM.current)||a.focus();return}eo(!0);try{let r=await fetch("/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:B,password:W,displayName:B.split("@")[0],locale:t,gdprConsent:ex,newsletterOptIn:ef})});if(!r.ok){let t=await r.json().catch(()=>null);H(e((0,h.Y2)(new h.lR((null==t?void 0:t.error)||"",null==t?void 0:t.code))));return}let s=await r.json();ey(null!=(n=s.newsletterStatus)?n:"not_requested"),eC("password"),eg(!0)}catch(t){H(e("registerError"))}finally{eo(!1)}},eQ=e=>{em.current||ei||(E(e),eu(!1),H(""),K(""),G(""),V(""),X(!1),et(""),es(!1),en(""),eL(!1),e_(!1),eP(!1),eb(!1),ev(!1),eg(!1),ey("not_requested"),ek(void 0))},eX=async()=>{let e="oauth"===eN?ej:B;if(!e)return void ey("failed");ey("loading");try{let r=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,locale:t})});ey(r.ok?"requested":"failed")}catch(e){ey("failed")}};if(eh)return(0,s.jsx)(x.z,{showBackToHome:!0,children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("div",{className:"rounded-lg border border-green-200 bg-green-50 p-6",children:[(0,s.jsx)("svg",{className:"mx-auto h-10 w-10 text-green-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"})}),(0,s.jsx)("p",{className:"mt-4 text-sm text-green-800",children:e("oauth"===eN?"oauthRegisterSuccess":"registerSuccess")}),"password"===eN&&(0,s.jsx)(b,{email:B,disabled:ei,onBusyChange:ep},"success:".concat(B.trim().toLowerCase())),"requested"===ew&&(0,s.jsx)("p",{className:"mt-3 text-sm text-green-800",role:"status",children:e("newsletterConfirmationSent")}),("failed"===ew||"loading"===ew)&&(0,s.jsxs)("div",{className:"mt-3","aria-live":"polite",children:[(0,s.jsx)("p",{className:"text-sm text-amber-800",role:"status",children:e("newsletterRequestFailed")}),(0,s.jsx)("button",{type:"button",disabled:"loading"===ew,onClick:eX,className:"mt-2 min-h-11 rounded-md border border-amber-700 px-4 text-sm font-semibold text-amber-900 disabled:opacity-50",children:e("newsletterRetry")})]})]}),(0,s.jsx)("button",{onClick:"oauth"===eN?()=>{w&&y(w)?window.location.href=w:r.push(v)}:()=>eQ("login"),className:"text-brand-600 hover:text-brand-700 mt-6 text-sm font-medium hover:underline",children:e("oauth"===eN?"continueToApp":"backToLogin")})]})});let e0="login"===j,e1=e(e0?"googleLogin":"googleSignUp"),e2=e(e0?"appleLogin":"appleSignUp");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.z,{showBackToHome:!0,cardClassName:e0?"md:min-h-[652px]":"md:min-h-[704px]",children:[(0,s.jsx)("h1",{className:"text-[22px] leading-normal font-semibold text-balance text-gray-900",children:e0?e("getStarted"):e("signUpTitle")}),(0,s.jsx)("p",{className:"mt-1.5 text-sm text-pretty text-gray-500",children:e(e0?"signInSubtitle":"registerSubtitle")}),(0,s.jsxs)("div",{className:"mt-[22px] space-y-[10px]",children:[T&&eS?(0,s.jsx)(k,{onSuccess:eV,onError:eY,beforeAuth:()=>eU("google"),disabled:ei||el,label:e1,ariaDescribedBy:J?f:void 0}):(0,s.jsx)(N,{label:e1,unavailableLabel:e("googleLoginUnavailable")}),A?(0,s.jsx)(C,{onSuccess:eH,onError:eJ,beforeAuth:()=>eU("apple"),disabled:ei||el,isReady:eT,label:e2,ariaDescribedBy:J?f:void 0}):(0,s.jsx)(S,{label:e2,unavailableLabel:e("appleLoginUnavailable")})]}),(0,s.jsx)(M,{}),(0,s.jsxs)("form",{onSubmit:e0?eZ:e$,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(q,{htmlFor:"auth-email",children:e("email")}),(0,s.jsx)("input",{id:"auth-email",type:"email",required:!0,value:B,disabled:ei||el,onChange:e=>{ed&&H(""),eu(!1),F(e.target.value)},placeholder:e("emailPlaceholder"),className:z})]}),(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)(q,{htmlFor:"auth-password",children:e("password")}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{ref:eO,id:"auth-password",type:e0?eE?"text":"password":eR?"text":"password",required:!0,maxLength:e0?void 0:g.K9,value:W,disabled:ei||el,onChange:e=>{var t;return t=e.target.value,void(ed&&H(""),eu(!1),G(t),"register"===j&&Q&&et(eF(t)),"register"===j&&er&&en(eW(U,t)))},onBlur:()=>{"login"!==j&&W&&(X(!0),et(eF(W)))},"aria-invalid":!!ee||void 0,"aria-describedby":ee?"auth-password-error":void 0,placeholder:e(e0?"loginPasswordPlaceholder":"passwordPlaceholder"),className:"".concat(z," pr-14")}),(0,s.jsx)("button",{type:"button","aria-label":e((e0?eE:eR)?"hidePassword":"showPassword"),"aria-pressed":e0?eE:eR,onClick:()=>e0?eL(e=>
1!e):e_(e=>!e),className:"focus-visible:ring-brand-600 absolute top-1/2 right-0 flex size-11 -translate-y-1/2 items-center justify-center rounded-md text-gray-500 transition-colors duration-200 hover:text-gray-900 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",children:(0,s.jsx)(D,{isVisible:e0?eE:eR})})]}),!e0&&ee&&(0,s.jsx)("p",{id:"auth-password-error",className:"mt-1.5 text-sm text-red-600",role:"alert",children:ee})]}),e0?(0,s.jsx)("div",{className:"mt-[10px] flex justify-end",children:(0,s.jsx)(c(),{href:"/forgot-password",className:"text-brand-600 hover:text-brand-700 focus-visible:ring-brand-500 text-[13px] font-medium hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",children:e("resetPasswordLink")})}):(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)(q,{htmlFor:"auth-confirm-password",children:e("confirmPassword")}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{ref:eM,id:"auth-confirm-password",type:eI?"text":"password",required:!0,value:U,onChange:e=>{var t;V(t=e.target.value),er&&en(eW(t,W))},onBlur:()=>{U&&(es(!0),en(eW(U,W)))},"aria-invalid":!!ea||void 0,"aria-describedby":ea?"auth-confirm-password-error":void 0,placeholder:e("confirmPasswordPlaceholder"),className:"".concat(z," pr-14")}),(0,s.jsx)("button",{type:"button","aria-label":e(eI?"hidePassword":"showPassword"),"aria-pressed":eI,onClick:()=>eP(e=>!e),className:"focus-visible:ring-brand-600 absolute top-1/2 right-0 flex size-11 -translate-y-1/2 items-center justify-center rounded-md text-gray-500 transition-colors duration-200 hover:text-gray-900 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",children:(0,s.jsx)(D,{isVisible:eI})})]}),ea&&(0,s.jsx)("p",{id:"auth-confirm-password-error",className:"mt-1.5 text-sm text-red-600",role:"alert",children:ea})]}),Y&&(0,s.jsx)("p",{className:"mt-3 text-sm text-red-600",role:"alert",children:Y}),(0,s.jsx)(m.$n,{type:"submit",size:"lg",disabled:ei||el,onClick:e=>{eG()||e.preventDefault()},"aria-busy":ei,"aria-describedby":J?f:ex?void 0:"auth-privacy-consent",className:"".concat(e0?"mt-[22px]":"mt-5"," h-[45px] w-full py-0 text-[15px]"),children:ei?"...":e0?e("login"):e("createAccount")}),(0,s.jsxs)("p",{className:"mt-[18px] text-center text-[13px] text-gray-500",children:[e0?e("noAccount"):e("haveAccount")," ",(0,s.jsx)("button",{type:"button",onClick:()=>eQ(e0?"register":"login"),className:"text-brand-600 focus-visible:ring-brand-500 font-medium hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",children:e0?e("register"):e("login")})]}),(0,s.jsx)(O,{gdprConsent:ex,newsletterOptIn:ef,showNewsletter:!e0,consentError:J,consentFocusRequest:Z,consentInputRef:eD,onGdprChange:e=>{eb(e),e&&K("")},onMarketingChange:ev}),e0&&ed&&(0,s.jsx)(b,{hint:e("verificationHint"),email:B,disabled:ei,onBusyChange:ep},B.trim().toLowerCase())]})]}),A&&(0,s.jsx)(d.default,{src:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",strategy:"afterInteractive",onReady:eK,onError:()=>{eA(!1),console.warn("[Apple Sign In] Failed to load Apple JS SDK — Apple login will be unavailable")}})]})}function F(){return T?(0,s.jsx)(u.G_,{clientId:E,children:(0,s.jsx)(B,{})}):(0,s.jsx)(B,{})}function W(){return(0,s.jsx)(a.Suspense,{children:(0,s.jsx)(F,{})})}},6678:(e,t,r)=>{"use strict";r.d(t,{K9:()=>s,m_:()=>n});let s=32,a=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/;function n(e){return e.length<8?"too_short":e.length>s?"too_long":a.test(e)?"ok":"too_weak"}},7764:(e,t,r)=>{"use strict";r.d(t,{z:()=>u});var s=r(3345),a=r(650),n=r(2336),i=r(2334),o=r(3739);let l="/images/logo/ponora-wordmark-mask.png";function c(){return(0,s.jsx)("div",{role:"img","aria-label":"Ponora",className:"bg-brand-600 shrink-0",style:{width:168,height:42,maskImage:"url(".concat(l,")"),WebkitMaskImage:"url(".concat(l,")"),maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskPosition:"center",WebkitMaskPosition:"center",maskSize:"contain",WebkitMaskSize:"contain"}})}function d(){let e=(0,n.c)("auth"),t=[{label:"CE Mark",description:e("complianceCeDesc"),src:"/images/compliance/ce-mark.png",iconClassName:"h-6 w-auto"},{label:"FCC",description:e("complianceFccDesc"),src:"/images/compliance/fcc-mark.png",iconClassName:"h-7 w-auto"},{label:"EN 18031",description:e("complianceEn18031Desc"),src:"/images/compliance/en18031-mark.svg",iconClassName:"h-8 w-8"},{label:"GDPR",description:e("complianceGdprDesc"),src:"/images/compliance/gdpr-mark.svg",iconClassName:"h-8 w-8"}];return(0,s.jsx)("div",{className:"flex w-full max-w-xl flex-wrap items-start justify-center gap-y-4 px-4",children:t.map((e,t)=>(0,s.jsxs)("div",{className:(0,i.cn)("flex min-w-0 basis-1/2 flex-col items-center gap-2 px-3 text-center sm:w-32 sm:basis-auto",t%2==1&&"border-l border-gray-200",2===t&&"sm:border-l sm:border-gray-200"),children:[(0,s.jsx)("div",{className:"flex h-8 items-center justify-center",children:(0,s.jsx)("img",{src:e.src,alt:"",className:e.iconClassName})}),(0,s.jsx)("p",{className:"text-xs font-semibold text-gray-900",children:e.label}),(0,s.jsx)("p",{className:"text-[11px] leading-snug text-gray-500",children:e.description})]},e.label))})}
1function u(e){let{children:t,showBackToHome:r=!1,showCompliance:l=!0,cardClassName:u}=e,m=(0,a.Ym)(),p=(0,n.c)("auth"),h=r?(0,o.uT)("https://www.ponora.ai",m).url:null;return(0,s.jsxs)("div",{className:"relative flex min-h-dvh flex-col items-center justify-center gap-6 bg-gray-50 px-4 py-12",children:[h&&(0,s.jsxs)("a",{href:h,className:"focus-visible:ring-brand-500 flex min-h-11 items-center gap-2 self-start rounded-lg px-3 text-sm font-medium text-gray-700 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-900 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none md:absolute md:top-6 md:left-6",children:[(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"size-5 shrink-0",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M19 12H5m7-7-7 7 7 7"})}),(0,s.jsx)("span",{children:p("backToHome")})]}),(0,s.jsx)(c,{}),(0,s.jsx)("main",{className:(0,i.cn)("w-full max-w-xl rounded-2xl border border-gray-200 bg-white p-8 shadow-sm",u),children:t}),l&&(0,s.jsx)(d,{})]})}},8083:(e,t,r)=>{Promise.resolve().then(r.bind(r,3427))}},e=>{e.O(0,[8269,2762,6577,3372,2334,8776,4069,1371,7358],()=>e(e.s=8083)),_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.