PageSourceSearch

https://www.authorclimb.com/_next/static/chunks/app/auth/sign-in/p…?dpl=dpl_6PKVA5NJiYBzoKGS6TxGnoztcLhi

js authorclimb.com collected 2026-10-02 01:24:26 UTC 12,763 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="64588b5b-a220-4b58-8a94-6c67363b1b8b",e._sentryDebugIdIdentifier="sentry-dbid-64588b5b-a220-4b58-8a94-6c67363b1b8b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[697],{18938:function(e,t,r){Promise.resolve().then(r.bind(r,30400))},30400:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return w}});var s=r(57437),n=r(2265),i=r(27648),a=r(99376),l=r(80605),o=r(29501),d=r(13590),c=r(91351),u=r(92934),m=r(49322),f=r(51817),x=r(87769),h=r(42208),p=r(94508);let b=c.Ry({email:c.Z_().min(1,"Email is required").email("Please enter a valid email address"),password:c.Z_().min(1,"Password is required").min(8,"Password must be at least 8 characters")}),g="w-full rounded-xl border bg-surface px-4 py-3 text-[0.95rem] text-ink placeholder:text-ink-soft transition-colors focus:outline-none focus-visible:border-gold focus-visible:ring-2 focus-visible:ring-gold/30 disabled:cursor-not-allowed disabled:opacity-60";function y(){let e=(0,a.useRouter)(),t="true"===(0,a.useSearchParams)().get("verified"),[r,c]=(0,n.useState)(!1),[y,w]=(0,n.useState)(!1),[v,j]=(0,n.useState)(!1),[N,k]=(0,n.useState)(null),{register:S,handleSubmit:C,formState:{errors:F}}=(0,o.cI)({resolver:(0,d.F)(b),defaultValues:{email:"",password:""}}),P=async t=>{c(!0),k(null);try{fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t.email,password:t.password})}).catch(()=>{});let r=await (0,l.signIn)("credentials",{email:t.email,password:t.password,redirect:!1});if(null==r?void 0:r.error){let e="CredentialsSignin"===r.error?"Invalid email or password":r.error;k(e),c(!1);return}e.push("/dashboard")}catch(e){k("Something went wrong. Please try again."),c(!1)}},Z=!!N&&N.toLowerCase().includes("verify your email");return(0,s.jsxs)("div",{className:"marketing min-h-screen lg:grid lg:grid-cols-[1.1fr_1fr]",children:[(0,s.jsxs)("aside",{className:"m-on-dark relative hidden overflow-hidden bg-ink px-12 py-14 text-paper lg:flex lg:flex-col lg:justify-between xl:px-16",children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-32 -top-24 h-[26rem] w-[26rem] rounded-full bg-gold/20 blur-3xl"}),(0,s.jsx)(i.default,{href:"/",className:"relative font-display text-[1.75rem] leading-none text-paper",children:"AuthorClimb"}),(0,s.jsxs)("div",{className:"relative max-w-md",children:[(0,s.jsxs)("p",{className:"m-display-md text-paper",children:["Your book's been busy ",(0,s.jsx)("em",{className:"m-accent",children:"while you were writing."})]}),(0,s.jsx)("p",{className:"mt-5 text-[1.05rem] leading-relaxed text-ink-invsoft",children:"Keyword ranks, ARC orders, and listing scores are all where you left them."})]}),(0,s.jsxs)("p",{className:"relative text-[0.85rem] text-ink-invsoft",children:["New here?"," ",(0,s.jsx)(i.default,{href:"/auth/sign-up",className:"font-semibold text-gold underline-offset-4 hover:underline",children:"Create a free account"})]})]}),(0,s.jsx)("main",{className:"flex min-h-screen items-center justify-center bg-paper px-5 py-12 sm:px-8",children:(0,s.jsxs)("div",{className:"w-full max-w-[25rem]",children:[(0,s.jsx)(i.default,{href:"/",className:"mb-8 block text-center font-display text-[1.6rem] leading-none text-ink lg:hidden",children:"AuthorClimb"}),(0,s.jsx)("h1",{className:"m-display-sm text-ink",children:"Sign in"}),(0,s.jsx)("p",{className:"mt-2 text-[0.95rem] text-ink-soft",children:"Pick up where you left off."}),t&&(0,s.jsxs)("div",{role:"status",className:"mt-6 flex items-start gap-2.5 rounded-xl border border-gold/40 bg-gold/10 px-4 py-3",children:[(0,s.jsx)(u.Z,{className:"mt-0.5 h-4 w-4 shrink-0 text-gold-deep"}),(0,s.jsx)("p",{className:"text-[0.875rem] text-ink",children:"Email verified. You can sign in now."})]}),N&&(0,s.jsxs)("div",{role:"alert",className:"mt-6 flex items-start gap-2.5 rounded-xl border border-red-200 bg-red-50 px-4 py-3",children:[(0,s.jsx)(m.Z,{className:"mt-0.5 h-4 w-4 shrink-0 text-red-600"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[0.875rem] text-red-800",children:N}),Z&&(0,s.jsx)(i.default,{href:"/auth/verify-email",className:"mt-1 inline-block text-[0.875rem] font-semibold text-red-800 underline underline-offset-4",children:"Resend verification email"})]})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{w(!0),(0,l.signIn)("google",{callbackUrl:"/dashboard"})},disabled:y||r,className:"mt-7 flex w-full items-center justify-center gap-3 rounded-full border border-line bg-surface px-4 py-3 text-[0.9375rem] font-semibold text-ink transition-colors hover:bg-panel focus:outline-none focus-visible:ring-2 focus-visible:ring-gold/40 disabled:cursor-not-allowed disabled:opacity-60",children:[y?(0,s.jsx)(f.Z,{className:"h-4 w-4 animate-spin"}):(0,s.jsxs)("svg",{className:"h-[18px] w-[18px]",viewBox:"0 0 24 24","aria-hidden":!0,
1children:[(0,s.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,s.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,s.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,s.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"})]}),"Continue with Google"]}),(0,s.jsxs)("div",{className:"my-6 flex items-center gap-4",children:[(0,s.jsx)("span",{className:"h-px flex-1 bg-line"}),(0,s.jsx)("span",{className:"text-[0.75rem] uppercase tracking-[0.12em] text-ink-soft",children:"or"}),(0,s.jsx)("span",{className:"h-px flex-1 bg-line"})]}),(0,s.jsxs)("form",{onSubmit:C(P),className:"space-y-5",noValidate:!0,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"mb-1.5 block text-[0.85rem] font-semibold text-ink",children:"Email"}),(0,s.jsx)("input",{id:"email",type:"email",autoComplete:"email",placeholder:"[email protected]",disabled:r,className:(0,p.cn)(g,F.email?"border-red-400":"border-line"),"aria-invalid":F.email?"true":"false","aria-describedby":F.email?"email-error":void 0,...S("email")}),F.email&&(0,s.jsx)("p",{id:"email-error",className:"mt-1.5 text-[0.8rem] text-red-600",children:F.email.message})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-1.5 flex items-baseline justify-between gap-3",children:[(0,s.jsx)("label",{htmlFor:"password",className:"text-[0.85rem] font-semibold text-ink",children:"Password"}),(0,s.jsx)(i.default,{href:"/auth/forgot-password",className:"text-[0.8rem] text-ink-soft underline-offset-4 hover:text-ink hover:underline",children:"Forgot password?"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{id:"password",type:v?"text":"password",autoComplete:"current-password",placeholder:"Your password",disabled:r,className:(0,p.cn)(g,"pr-11",F.password?"border-red-400":"border-line"),"aria-invalid":F.password?"true":"false","aria-describedby":F.password?"password-error":void 0,...S("password")}),(0,s.jsx)("button",{type:"button",onClick:()=>j(e=>!e),"aria-label":v?"Hide password":"Show password","aria-pressed":v,className:"absolute right-1 top-1/2 flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-lg text-ink-soft transition-colors hover:text-ink focus:outline-none focus-visible:ring-2 focus-visible:ring-gold/40",children:v?(0,s.jsx)(x.Z,{className:"h-4 w-4"}):(0,s.jsx)(h.Z,{className:"h-4 w-4"})})]}),F.password&&(0,s.jsx)("p",{id:"password-error",className:"mt-1.5 text-[0.8rem] text-red-600",children:F.password.message})]}),(0,s.jsx)("button",{type:"submit",className:"m-btn m-btn--ink w-full",disabled:r,children:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Z,{className:"h-4 w-4 animate-spin"}),"Signing in"]}):"Sign in"})]}),(0,s.jsxs)("p",{className:"mt-5 text-center text-[0.82rem] text-ink-soft",children:["Still waiting on verification?"," ",(0,s.jsx)(i.default,{href:"/auth/verify-email",className:"font-semibold text-ink underline underline-offset-4",children:"Send a new verification email"})]}),(0,s.jsxs)("p",{className:"mt-7 text-center text-[0.875rem] text-ink-soft",children:["Don't have an account?"," ",(0,s.jsx)(i.default,{href:"/auth/sign-up",className:"font-semibold text-ink underline underline-offset-4",children:"Sign up free"})]})]})})]})}function w(){return(0,s.jsx)(n.Suspense,{children:(0,s.jsx)(y,{})})}},94508:function(e,t,r){"use strict";r.d(t,{Hy:function(){return d},cn:function(){return i},p6:function(){return a},qx:function(){return o},uf:function(){return c},xG:function(){return l}});var s=r(61994),n=r(53335);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)((0,s.W)(t))}function a(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(new Date(e))}function l(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e/100)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t,maximumFractionDigits:t}).format(Number.isFinite(e)?e:0)}function d(e,t,r,s){let n=null!=s?s:"JPY"===t?0:2;return new Intl.NumberFormat(r,{style:"currency",currency:t,minimumFractionDigits:n,maximumFractionDigits:n}).format(Number.isFinite(e)?e:0)}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Intl.NumberFormat("en-US",{minimumFractionDigits:t,maximumFractionDigits:t}).format(Number.isFinite(e)?e:0)}},79205:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var s=r(2265);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var a={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 l=(0,s.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...m}=e;return(0,s.createElement)("svg",{ref:t,...a,width:n,height:n,stroke:r,strokeWidth:o?24*Number(l)/Number(n):l,className:i("lucide",d),...m},[...u.map(e=>{let[t,r]=e;return(0,s.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,s.forwardRef)((r,a)=>{let{className:o,...d}=r;return(0,s.createElement)(l,{ref:a,iconNode:t,className:i("lucide-".concat(n(e)),o),...d})});return r.displayName="".concat(e),r}}
1,49322:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});let s=(0,r(79205).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},92934:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});let s=(0,r(79205).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},87769:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});let s=(0,r(79205).Z)("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"}]])},42208:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});let s=(0,r(79205).Z)("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"}]])},27648:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var s=r(72972),n=r.n(s)},99376:function(e,t,r){"use strict";var s=r(35475);r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})}},function(e){e.O(0,[2972,6137,1351,605,2373,991,2971,8456,1744],function(){return e(e.s=18938)}),_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.