PageSourceSearch

https://www.smartcms.ai/_next/static/chunks/app/%5Blocale%5D/(auth…/%5Btoken%5D/page-ef27c8a2ae705227.js

js smartcms.ai collected 2026-10-05 15:00:37 UTC 6,252 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8814],{20063:(e,t,n)=>{"use strict";var a=n(47260);n.o(a,"notFound")&&n.d(t,{notFound:function(){return a.notFound}}),n.o(a,"useParams")&&n.d(t,{useParams:function(){return a.useParams}}),n.o(a,"usePathname")&&n.d(t,{usePathname:function(){return a.usePathname}}),n.o(a,"useRouter")&&n.d(t,{useRouter:function(){return a.useRouter}}),n.o(a,"useSearchParams")&&n.d(t,{useSearchParams:function(){return a.useSearchParams}}),n.o(a,"useSelectedLayoutSegments")&&n.d(t,{useSelectedLayoutSegments:function(){return a.useSelectedLayoutSegments}})},40690:(e,t,n)=>{Promise.resolve().then(n.bind(n,79669))},79669:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var a=n(95155),r=n(12115),i=n(20063),s=n(98698);function u(){var e;let t=(0,i.useParams)(),n=null!=(e=null==t?void 0:t.token)?e:"",[u,l]=(0,r.useState)("verifying"),[o,c]=(0,r.useState)(null);return((0,r.useEffect)(()=>{if(!n){l("error"),c("missing_token");return}let e=!1;return(async()=>{try{let a=await fetch("/api/auth/verify-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:n})}),r=await a.json().catch(()=>({}));if(e)return;if(a.ok)l("ok");else{var t;l("error"),c(null!=(t=null==r?void 0:r.error)?t:"unknown")}}catch(t){e||(l("error"),c("network"))}})(),()=>{e=!0}},[n]),"verifying"===u)?(0,a.jsxs)("div",{children:[(0,a.jsx)(s.AuthHeader,{title:"Verifying your email",description:"One moment, we're confirming your account."}),(0,a.jsxs)("div",{className:"mt-4 flex items-center gap-2 text-[13px] text-[var(--auth-muted)]","aria-live":"polite",children:[(0,a.jsx)("span",{className:"inline-block h-1.5 w-1.5 animate-[auth-blink_0.8s_ease-in-out_infinite] rounded-full bg-[var(--auth-accent)]"}),"Working on it…"]})]}):"ok"===u?(0,a.jsxs)("div",{children:[(0,a.jsx)(s.AuthHeader,{title:"Email confirmed",description:"Your account is verified. Sign in to set up your first workspace."}),(0,a.jsx)(s.FS,{href:"/login",children:"Sign in"})]}):(0,a.jsxs)("div",{children:[(0,a.jsx)(s.AuthHeader,{title:"Verification failed",description:"We couldn't verify this link."}),(0,a.jsx)(s.Banner,{tone:"error",children:"expired_token"===o?"This verification link has expired. Request a new one below.":"invalid_token"===o?"This verification link is invalid or has already been used.":"We couldn't verify this link. Please try again."}),(0,a.jsxs)(s.Aside,{children:[(0,a.jsx)(s.InlineLink,{href:"/verify-email/resend",children:"Send me a new link →"}),(0,a.jsx)(s.InlineLink,{href:"/login",children:"Sign in"})]})]})}},98698:(e,t,n)=>{"use strict";n.d(t,{A_:()=>s,Aside:()=>o,AuthHeader:()=>i,Banner:()=>c,FS:()=>l,InlineLink:()=>d,b7:()=>u});var a=n(95155),r=n(12115);function i(e){let{title:t,description:n}=e;return(0,a.jsxs)("header",{className:"mb-8",style:{animation:"auth-rise 0.55s ease-out both"},children:[(0,a.jsx)("h1",{className:"font-[family-name:var(--font-auth-sans)] text-[clamp(1.75rem,3vw,2.25rem)] font-semibold leading-[1.1] tracking-[-0.02em] text-[var(--auth-fg)]",children:t}),n?(0,a.jsx)("p",{className:"mt-3 max-w-[42ch] text-[14px] leading-[1.55] text-[var(--auth-muted)]",children:n}):null]})}function s(e){let{label:t,hint:n,error:i,...s}=e,u=(0,r.useId)(),[l,o]=(0,r.useState)(!1),c=!!i;return(0,a.jsxs)("div",{className:"group",children:[(0,a.jsxs)("div",{className:"mb-1.5 flex items-baseline justify-between",children:[(0,a.jsx)("label",{htmlFor:u,className:"text-[13px] font-medium text-[var(--auth-fg)]",children:t}),n?(0,a.jsx)("span",{className:"text-[12px] text-[var(--auth-muted)]",children:n}):null]}),(0,a.jsx)("div",{className:"rounded-md border bg-[var(--auth-surface)] transition-colors",style:{borderColor:c?"var(--auth-danger)":l?"var(--auth-accent)":"var(--auth-line)",boxShadow:l?"0 0 0 3px var(--auth-accent-soft)":"none"},children:(0,a.jsx)("input",{...s,id:u,onFocus:e=>{var t;o(!0),null==(t=s.onFocus)||t.call(s,e)},onBlur:e=>{var t;o(!1),null==(t=s.onBlur)||t.call(s,e)},className:"block w-full bg-transparent px-3.5 py-2.5 text-[14px] leading-6 text-[var(--auth-fg)] placeholder:text-[var(--auth-muted)]/60 focus:outline-none"})}),c?(0,a.jsx)("span",{className:"mt-1.5 block text-[12px] leading-relaxed text-[var(--auth-danger)]",children:i}):null]})}function u(e){let{children:t,pending:n,...r}=e;return(0,a.jsxs)("button",{type:"submit",...r,disabled:n||r.disabled,className:"mt-6 flex w-full items-center justify-center gap-2 rounded-md bg-[var(--auth-accent)] px-5 py-2.5 text-[14px] font-medium text-[var(--auth-accent-fg)] transition-opacity duration-150 hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--auth-accent)] focu
1s-visible:ring-offset-2 focus-visible:ring-offset-[var(--auth-bg)] disabled:cursor-not-allowed disabled:opacity-60",children:[n?(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block h-1.5 w-1.5 animate-[auth-blink_0.8s_ease-in-out_infinite] rounded-full bg-[var(--auth-accent-fg)]"}):null,(0,a.jsx)("span",{children:n?"Signing in…":t})]})}function l(e){let{children:t,...n}=e;return(0,a.jsx)("a",{...n,className:"mt-6 flex w-full items-center justify-center rounded-md bg-[var(--auth-accent)] px-5 py-2.5 text-[14px] font-medium text-[var(--auth-accent-fg)] transition-opacity duration-150 hover:opacity-90",children:t})}function o(e){let{children:t}=e;return(0,a.jsx)("div",{className:"mt-6 flex items-center justify-between gap-4 text-[13px] text-[var(--auth-muted)]",style:{animation:"auth-rise 0.55s ease-out 0.15s both"},children:t})}function c(e){let{tone:t,children:n}=e,r={info:{fg:"var(--auth-fg)",border:"var(--auth-accent)",bg:"var(--auth-accent-soft)"},error:{fg:"var(--auth-danger)",border:"var(--auth-danger)",bg:"var(--auth-danger-soft)"},success:{fg:"var(--auth-success)",border:"var(--auth-success)",bg:"var(--auth-success-soft)"}}[t];return(0,a.jsx)("div",{role:"error"===t?"alert":"status",className:"mb-5 rounded-md border-l-2 px-3.5 py-2.5 text-[13px] leading-[1.5]",style:{borderColor:r.border,background:r.bg,color:r.fg},children:n})}function d(e){let{children:t,...n}=e;return(0,a.jsx)("a",{...n,className:"text-[var(--auth-accent)] underline-offset-[4px] hover:underline",children:t})}}},e=>{e.O(0,[8441,4696,7358],()=>e(e.s=40690)),_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.