PageSourceSearch

https://certscore.ai/_next/static/chunks/app/(marketing)/login/pag…=7eb6bef214dd066a6ed485b06288af31819936a5

js certscore.ai collected 2026-10-05 13:50:40 UTC 12,670 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1748],{12247:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{callServer:function(){return a.callServer},createServerReference:function(){return r.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let a=s(69612),n=s(20816),r=s(97102)},21980:(e,t,s)=>{Promise.resolve().then(s.bind(s,40227)),Promise.resolve().then(s.bind(s,11499)),Promise.resolve().then(s.t.bind(s,19664,23))},27541:(e,t,s)=>{"use strict";var a=s(43041);s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})},40227:(e,t,s)=>{"use strict";s.d(t,{LoginForm:()=>m});var a=s(54568),n=s(19664),r=s.n(n),l=s(27541),i=s(16831),o=s(7620),c=s(12247);let d=(0,c.createServerReference)("6096e8e3b40a597a61a2c671330c4c708f4230841c",c.callServer,void 0,c.findSourceMapURL,"submitCredentialsAction"),u={accountRecovery:null,error:null,fieldErrors:{},mode:"sign_in"};function x(){return(0,a.jsxs)("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M23.49 12.27c0-.79-.07-1.54-.2-2.27H12v4.3h6.44a5.52 5.52 0 0 1-2.39 3.62v3h3.88c2.27-2.08 3.56-5.15 3.56-8.65Z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M12 24c3.24 0 5.95-1.07 7.94-2.9l-3.88-3c-1.07.72-2.44 1.15-4.06 1.15-3.12 0-5.77-2.1-6.72-4.93H1.27v3.09A12 12 0 0 0 12 24Z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M5.28 14.32A7.2 7.2 0 0 1 4.91 12c0-.8.14-1.58.37-2.32V6.59H1.27A12 12 0 0 0 0 12c0 1.94.46 3.77 1.27 5.41l4.01-3.09Z",fill:"#FBBC05"}),(0,a.jsx)("path",{d:"M12 4.77c1.76 0 3.34.61 4.58 1.8l3.44-3.44C17.94 1.19 15.23 0 12 0A12 12 0 0 0 1.27 6.59l4.01 3.09c.95-2.83 3.6-4.91 6.72-4.91Z",fill:"#EA4335"})]})}function m(e){var t,s,n,c,m,p;let h=(0,l.useSearchParams)(),f=(p=null!=(t=null==h?void 0:h.get("next"))?t:null)&&p.startsWith("/")&&!p.startsWith("//")?p:"/app",g="/marketplace/light"===f.split(/[?#]/)[0],b=null==(s=null==e?void 0:e.allowCreateAccount)||s,_=null!=(n=null==h?void 0:h.get("message"))?n:null,v=null!=(c=null==h?void 0:h.get("error"))?c:null,y=null!=(m=null==h?void 0:h.get("mode"))?m:null,[j,w]=(0,o.useState)(b&&("create_account"===y||"create"===y)?"create_account":"sign_in"),[N,k]=(0,o.useState)(1),[C,S]=(0,o.useState)(""),[R,P]=(0,o.useState)(""),[E,M]=(0,o.useState)(null),[A,U]=(0,o.useState)(null),[L,F]=(0,o.useState)("email_verified"===_?"Email verified.":"password_reset"===_?"Password updated. Sign in with your new password.":"signed_out"===_?"You’ve been signed out.":null),[I,O]=(0,o.useState)("invalid_verification_link"===v?"That verification link is invalid or expired.":"magic_link_disabled"===v||"auth_callback_disabled"===v?"This sign-in method is no longer available.":"signup_disabled"===v||"signup-disabled"===v||"signup disabled"===v?"New account creation is temporarily paused.":"access_denied"===v||"account_access_limited"===v?"CertScore.ai account access is temporarily limited. Contact support if you need access.":"google_sign_in_failed"===v||"oauth_provider_not_found"===v||"invalid_code"===v||"no_callback_url"===v||"unable_to_get_user_info"===v?"Google sign-in could not be completed. Try again.":v),[H,T]=(0,o.useState)(!1),W=(0,o.useRef)(null),Z=(0,o.useRef)(null),[B,G,J]=(0,o.useActionState)(d,u),V=B.mode===j?B.fieldErrors:{},$=B.mode===j?B.error:null;function q(e){w(e),U(null),O(null),F(null),P(""),M(null),T(!1),"create_account"===e&&k(1)}async function D(e){return"create_account"!==j||1!==N?void M(C.trim().toLowerCase()):(e.preventDefault(),F(null),O(null),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C.trim()))?void(U(null),k(2)):void U("Enter a valid email address.")}(0,o.useEffect)(()=>{b||"create_account"!==j||(w("sign_in"),k(1))},[b,j]),(0,o.useEffect)(()=>{var e,t;if("create_account"===j&&2===N){null==(t=Z.current)||t.focus();return}null==(e=W.current)||e.focus()},[j,N]);let Y="create_account"===j,z=Y&&2===N,K=E===C.trim().toLowerCase(),Q=K?B.accountRecovery:null,X=K?$:null;return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h2",{className:"text-[10px] font-semibold uppercase tracking-[0.18em] text-sky-700",children:"Account access"}),(0,a.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-[-0.03em] text-slate-950",children:Y?g?"Create your CertScore account":"Create your workspace":"Welcome back"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-slate-500",children:g?"Continue to your Marketplace subscription and API key.":Y?"Start with a focused, evidence-led review.":"Sign in to continue reviewing your workspace."})]}),b?(0,a.jsxs)("div",{className:"inline-flex shrink-0 rounded-full border border-slate-200/90 bg-[linear-gradient(180deg,#f8fbff_0%,#eef4fb_100%)] p-1 shadow-[inset_0_1px_0_rgba(255,255,255,0.8)]",children:[(0,a.jsx)("button",{type:"button",onClick:()=>q("sign_in"),className:["rounded-full px-4 py-2 text-sm font-medium transition","sign_in"===j?"bg-white text-slate-950 shadow-[0_6px_18px_rgba(15,23,42,0.08)]":"text-slate-500 hover:text-slate-950"].join(" "),children:"Sign in"}),(0,a.jsx)("button",{type:"button",onClick:()=>q("create_account"),className:["rounded-full px-4 py-2 text-sm font-medium transition","create_account"===j?"bg-white text-slate-950 shadow-[0_6px_18px_rgba(15,23,42,0.08)]":"text-slate-500 hover:text-slate-950"].join(" "),children:"Create account"})]}):null]}),L?(0,a.jsx)("p",{role:"status",className:"rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-800",children:L}):null,I?(0,a.jsx)("p",{role:"alert",className:"rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:I}):null,(null==e?void 0:e.allowedEmail)?(0,a.jsxs)("p",{className:"rounded-2xl border border-sky-100 bg-sky-50/80 px-4 py-3 text-sm text-slate-600",children:["Validation Ops access is restricted to ",e.allowedEmail,"."]}):null,(null==e?void 0:e.allowGoogle)?(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("a",{className:"group flex min-h-14 w-full items-center justify-center gap-3 rounded-2xl border-2 border-sky-200 bg-[linear-gradient(180deg,#ffffff_0%,#eff8ff_100%)] px-4 py-3 text-base font-semibold text-slate-950 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_3px_0_rgba(125,211,252,0.9),0_14px_28px_-16px_rgba(14,116,144,0.7)] transition hover:-translate-y-0.5 hover:border-sky-400 hover:bg-[linear-gradient(180deg,#ffffff_0%,#e0f2fe_100%)] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_4px_0_rgba(56,189,248,0.95),0_18px_32px_-16px_rgba(14,116,144,0.82)] active:translate-y-0.5 active:shadow-[inset_0_2px_5px_rgba(15,23,42,0.16)]",href:"/auth/google?next=".concat(encodeURIComponent(f)),children:[(0,a.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-sky-200 bg-white shadow-[0_2px_6px_rgba(15,23,42,0.1)] transition group-hover:border-sky-300",children:(0,a.jsx)(x,{})}),(0,a.jsx)("span",{className:"tracking-[0.01em]",children:"Continue with Google"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"h-px flex-1 bg-slate-200"}),(0,a.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-slate-400",children:"Or use email"}),(0,a.jsx)("div",{className:"h-px flex-1 bg-slate-200"})]})]}):null,(0,a.jsxs)("form",{action:G,className:"space-y-4 rounded-[28px] border border-slate-200/90 bg-white/95 p-5 shadow-[0_18px_50px_rgba(15,23,42,0.06)]",onSubmit:D,children:[(0,a.jsx)("input",{name:"mode",type:"hidden",value:j}),(0,a.jsx)("input",{name:"next",type:"hidden",value:f}),z?(0,a.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("div",{className:"min-w-0",children:(0,a.jsx)("p",{className:"truncate text-sm font-medium text-slate-900",children:C})}),(0,a.jsx)("button",{type:"button",onClick:()=>{k(1),P(""),M(null)},className:"text-xs font-medium text-sky-700 transition hover:text-sky-800",children:"Change"})]}),(0,a.jsx)("input",{name:"email",type:"hidden",value:C})]}):(0,a.jsxs)("label",{className:"space-y-2 text-sm font-medium text-slate-700",children:["Email address",(0,a.jsx)(i.pd,{ref:W,autoComplete:"email",autoFocus:"create_account"!==j||1===N,name:"email",onChange:e=>{S(e.target.value),U(null),M(null)},placeholder:"[email protected]",type:"email",value:C})]}),!Y||z?(0,a.jsxs)("label",{className:"relative block space-y-2 text-sm font-medium text-slate-700",children:[(0,a.jsx)("div",{className:"pr-40",children:(0,a.jsx)("span",{children:"Password"})}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(i.pd,{ref:Z,autoComplete:Y?"new-password":"current-password",autoFocus:z,name:"password",onChange:e=>P(e.target.value),placeholder:Y?"Create a password":"Enter your password",type:H?"text":"password",value:R}),(0,a.jsx)("button",{type:"button",onClick:()=>T(e=>!e),className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium text-slate-500 transition hover:text-slate-900",children:H?"Hide":"Show"})]}),z?(0,a.jsx)("p",{className:"text-xs font-normal text-slate-500",children:"Use at least 8 characters."}):null,Y?null:(0,a.jsx)(r(),{className:"absolute right-0 top-0 text-xs font-medium text-sky-700 transition hover:text-sky-800",href:C.trim().length>0?"/reset-password?email=".concat(encodeURIComponent(C.trim())):"/reset-password",children:"Forgot your password?"})]}):null,A?(0,a.jsx)("p",{className:"text-sm text-red-600",children:A}):null,Q?(0,a.jsxs)("div",{className:"space-y-2 rounded-2xl border border-sky-200 bg-sky-50 px-4 py-3",children:[(0,a.jsx)("p",{className:"text-sm text-sky-800",children:Q.hint}),(0,a.jsx)(r(),{className:"inline-flex text-sm font-semibold text-sky-800 underline decoration-sky-300 underline-offset-2 transition hover:text-sky-950",href:"/reset-password?email=".concat(encodeURIComponent(Q.email)),children:"Reset password"})]}):null,V.email?(0,a.jsx)("p",{className:"text-sm text-red-600",children:V.email}):null,V.password?(0,a.jsx)("p",{className:"text-sm text-red-600",children:V.password}):null,(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(i.$n,{className:"w-full",disabled:J||0===C.trim().length||(!Y||z)&&0===R.length,"aria-busy":J,type:"submit",variant:"secondary",children:J?Y?"Creating your account…":"Signing you in…":Y?z?g?"Create account and continue":"Start 7-day trial":"Continue":"Sign in"})}),J?(0,a.jsx)("p",{"aria-live":"polite",className:"text-center text-xs text-slate-500",children:g?"Just a moment — we’re returning you to Marketplace setup.":"Just a moment — we’re opening your CertScore.ai workspace."}):null,b&&Y?(0,a.jsx)("p",{className:"text-xs leading-5 text-slate-500",children:g?"Marketplace MCP Light is free. No paid CertScore plan is required;
1 an active AWS Marketplace subscription and shared usage limits apply.":"New accounts include a 7-day trial before choosing a monthly plan."}):null]}),X&&!Q?(0,a.jsx)("p",{className:"text-sm text-red-600",children:X}):null,Y||"Invalid email or password."!==X?null:(0,a.jsxs)("div",{className:"rounded-2xl border border-sky-200 bg-sky-50 px-4 py-3",children:[(0,a.jsx)("p",{className:"text-sm text-sky-800",children:"Having trouble signing in?"}),(0,a.jsx)(r(),{className:"mt-1 inline-flex text-sm font-semibold text-sky-800 underline decoration-sky-300 underline-offset-2 transition hover:text-sky-950",href:C.trim().length>0?"/reset-password?email=".concat(encodeURIComponent(C.trim())):"/reset-password",children:"Use password reset"})]}),b&&(null==e?void 0:e.footerMode)!=="hidden"?(0,a.jsx)("div",{className:"-mx-6 -mb-6 rounded-b-[24px] border-t border-slate-200/80 bg-[linear-gradient(180deg,#fbfdff_0%,#f7f9fc_100%)] px-6 py-3 text-center",children:(0,a.jsxs)("p",{className:"text-[11px] leading-4 text-slate-500",children:["create_account"===j?"Already have an account? ":"Need an account? ",(0,a.jsx)("button",{type:"button",onClick:()=>q("create_account"===j?"sign_in":"create_account"),className:"font-medium text-slate-700 underline decoration-slate-300 underline-offset-2 transition hover:text-slate-950 hover:decoration-slate-500",children:"create_account"===j?"Sign in":"Create one"})]})}):null]})}}},e=>{e.O(0,[9664,9289,489,1499,587,18,7358],()=>e(e.s=21980)),_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.