PageSourceSearch

https://prest0.ai/static/js/pavilion-auth.b1922e29.chunk.js

js prest0.ai collected 2026-10-05 15:46:52 UTC 15,304 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcursor_ai_agents=self.webpackChunkcursor_ai_agents||[]).push([[566],{66008:(e,n,i)=>{i.r(n),i.d(n,{default:()=>I});i(65043);var s=i(16932),a=i(15069),t=i(40006),r=i(41558),o=i(30291),l=i(72377),p=i(89378),d=i(43839),c=i(77859);const g=".pv.pv-auth",v=`${`\n${g} .pv-standing { width: min(420px, 38vw); }\n@media (max-width: 1080px) { ${g} .pv-standing { width: min(380px, 44vw); } }\n@media (max-width: 719px) {\n  ${g} .pv-standing { width: 100%; max-width: 460px; }\n  ${g} .pv-stage-pool { height: 96px; }\n  ${g} .pv-stage-copy { padding-bottom: 24px; }\n}\n${g} .pv-auth-welcome { margin: 0; max-width: 560px; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.03em;\n  color: var(--pv-ink-2); text-transform: lowercase; text-wrap: balance; }\n${g} .pv-auth-ai { text-transform: none; }\n@media (max-width: 719px) { ${g} .pv-auth-welcome { font-size: 28px; } }\n`}${`\n${g} .pv-auth-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }\n${g} .pv-auth-steps li { display: flex; align-items: center; gap: 12px; font: 600 16px/1.3 var(--pv-font); color: var(--pv-ink-3); }\n${g} .pv-auth-steps li[data-state="active"] { color: var(--pv-ink); }\n${g} .pv-auth-steps li[data-state="done"] { color: var(--pv-ink-2); }\n${g} .pv-auth-step-dot { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 13px/1 var(--pv-font);\n  border: 1px solid var(--pv-line-control); background: var(--pv-well); color: var(--pv-ink-2); }\n${g} .pv-auth-steps li[data-state="active"] .pv-auth-step-dot { border-color: transparent; color: var(--pv-accent-ink);\n  background: linear-gradient(180deg, var(--pv-gold-sky), var(--pv-accent) 55%, var(--pv-gold-mid)); }\n${g} .pv-auth-step-hint { margin: 16px 0 0; font: 500 15px/1.5 var(--pv-font); color: var(--pv-ink-2); }\n${g} .pv-auth-step-time { color: var(--pv-accent-text); font-weight: 600; }\n`}${`\n${g} .pv-signin { display: flex; flex-direction: column; gap: 16px; }\n${g} .pv-signin-title { margin: 0 0 4px; font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--pv-ink); text-transform: lowercase; }\n${g} .pv-signin-form { display: flex; flex-direction: column; gap: 14px; }\n${g} .pv-signin .pv-k-field { max-width: none; }\n${g} .pv-signin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }\n${g} .pv-signin-forgot { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 14.5px; text-transform: lowercase;\n  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--pv-accent-text) 45%, transparent); }\n${g} .pv-signin-forgot:hover:not(:disabled) { text-decoration-color: var(--pv-accent-text); }\n${g} .pv-signin-forgot:focus-visible { outline: 2px solid var(--pv-focus-ring); outline-offset: 2px; border-radius: 4px; }\n${g} .pv-signin-forgot:disabled { opacity: .45; cursor: default; }\n${g} .pv-signin .pv-k-btn { width: 100%; }\n${g} .pv-signin-btn-suffix { font-weight: 500; opacity: .85; }\n${g} .pv-signin-line { margin: 0; font: 500 14.5px/1.5 var(--pv-font); color: var(--pv-ink-2); text-transform: lowercase; }\n${g} .pv-signin-line strong { color: var(--pv-ink); font-weight: 600; text-transform: none; }\n${g} .pv-signin-line-sub { color: var(--pv-ink-3); }\n${g} .pv-signin-failure { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }\n${g} .pv-signin-failure .pv-k-btn { width: auto; }\n${g} .pv-signin-note-title { display: block; margin-bottom: 2px; }\n${g} .pv-signin-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; font: 500 13.5px/1 var(--pv-font); color: var(--pv-ink-3); text-transform: lowercase; }\n${g} .pv-signin-or::before, ${g} .pv-signin-or::after { content: ""; flex: 1; height: 1px; background: var(--pv-line); }\n${g} .pv-signin-google { display: flex; justify-content: center; padding: 6px; border-radius: 12px; border: 1px solid var(--pv-line);\n  background: var(--pv-glass-liquid-centre); box-shadow: inset 0 1px 0 var(--pv-glass-edge-hi); }\n${g} .pv-signin-google[data-highlight="true"] { border-color: var(--pv-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pv-accent) 45%, transparent); }\n${g} .pv-signin-google[data-working="true"] { opacity: 0.5; }\n${g} .pv-signin-suffix { margin: 0; text-align: center; font: 500 13.5px/1.4 var(--pv-font); color: var(--pv-ink-2); text-transform: lowercase; }\n${g}
1 .pv-auth-hint { margin-bottom: 16px; }\n${g} .pv-signin .pv-k-notice { max-width: none; }\n`}${`\n${g} .pv-signin-who { display: flex; align-items: center; gap: 12px; }\n${g} .pv-signin-working { margin-top: -6px; }\n${g} .pv-signin-workspaces { display: flex; flex-direction: column; gap: 6px; }\n${g} .pv-signin-ws-head { margin: 0; font: 600 12px/1.3 var(--pv-font); letter-spacing: .06em; color: var(--pv-ink-3); text-transform: lowercase; }\n${g} .pv-signin-ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }\n${g} .pv-signin-ws { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;\n  border: 1px solid var(--pv-line); background: var(--pv-glass-liquid-centre); color: var(--pv-ink); font: 600 14.5px/1.3 var(--pv-font); text-align: left; }\n${g} .pv-signin-ws[data-active="true"] { border-color: var(--pv-accent); }\n${g} .pv-signin-ws:hover:not(:disabled) { border-color: var(--pv-line-control); }\n${g} .pv-signin-ws:disabled { opacity: .45; cursor: default; }\n${g} .pv-signin-ws:focus-visible { outline: 2px solid var(--pv-focus-ring); outline-offset: 2px; }\n${g} .pv-signin-ws-dot { flex: none; color: var(--pv-accent-text); }\n${g} .pv-signin-ws-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n${g} .pv-signin-ws-hint { flex: none; font-weight: 500; font-size: 13px; color: var(--pv-ink-2); text-transform: lowercase; }\n${g} .pv-signin-error { margin: 0; font: 500 13.5px/1.4 var(--pv-font); color: var(--pv-danger-ink); }\n`}${`\n${g} .pv-signin--picture { gap: 12px; }\n${g} .pv-signin-pic-label { display: block; width: 34%; height: 10px; border-radius: 5px; background: var(--pv-line); }\n${g} .pv-signin-pic-field { display: block; height: 44px; border-radius: 12px; border: 1px solid var(--pv-line-control); }\n${g} .pv-signin-pic-bar { display: block; height: 44px; margin-top: 8px; border-radius: 999px; }\n${g} .pv-signin-pic-glass { display: block; height: 52px; margin-top: 16px; border-radius: 12px; border: 1px solid var(--pv-line); background: var(--pv-glass-liquid-centre); }\n`}`;var x=i(97448),h=i(76894),m=i(89134),u=i(36794),f=i(65269),w=i(58615),b=i(70579);const j=e=>{let{redirectPath:n,titleLevel:i,titleId:s}=e;const t=(0,w.h)(n),r=i;return t.isAuthenticated?(0,b.jsxs)("div",{className:"pv-signin",id:"login-section",children:[(0,b.jsx)(r,{className:"pv-signin-title",id:s,children:t.title}),(0,b.jsxs)("div",{className:"pv-signin-who",children:[t.photo?(0,b.jsx)(f.e,{kind:"photo",src:t.photo,name:t.name,size:36}):(0,b.jsx)(f.e,{kind:"person",name:t.name,size:36}),(0,b.jsxs)("p",{className:"pv-signin-line",children:[a.XE.loggedInWith,(0,b.jsx)("strong",{children:t.email})]})]}),t.activeWorkspaceLabel&&(0,b.jsxs)("p",{className:"pv-signin-line pv-signin-working",children:[a.XE.workingIn,(0,b.jsx)("strong",{children:t.activeWorkspaceLabel})]}),(0,b.jsx)(x.$,{variant:"primary",onClick:t.continueOn,children:t.continueLabel}),t.showWorkspaces&&(0,b.jsxs)("div",{className:"pv-signin-workspaces",children:[(0,b.jsx)("p",{className:"pv-signin-ws-head",children:a.XE.workspaces}),t.workspacesPending?(0,b.jsx)("p",{className:"pv-signin-line",role:"status",children:a.XE.loadingWorkspaces}):(0,b.jsx)("ul",{className:"pv-signin-ws-list",children:t.workspaceRows.map((e=>{let{ws:n,label:i,hint:s}=e;return(0,b.jsx)("li",{children:(0,b.jsxs)("button",{type:"button",className:"pv-signin-ws","data-active":n.isActive?"true":void 0,disabled:t.switching,"aria-current":n.isActive?"true":void 0,"aria-label":n.isActive?a.XE.currentWorkspace(i):a.XE.switchTo(i),onClick:()=>t.switchWorkspace(n),children:[(0,b.jsx)("span",{className:"pv-signin-ws-dot","aria-hidden":"true",children:n.isActive?"\u25cf":"\u25cb"}),(0,b.jsx)("span",{className:"pv-signin-ws-name",children:i}),(0,b.jsx)("span",{className:"pv-signin-ws-hint",children:s})]})},n.accountId)}))}),t.pendingInvite&&(0,b.jsxs)("button",{type:"button",className:"pv-signin-ws","aria-label":a.XE.reviewInviteLabel,onClick:t.reviewInvite,children:[(0,b.jsx)("span",{className:"pv-signin-ws-dot","aria-hidden":"true",children:"\u2709"}),(0,b.jsx)("span",{className:"pv-signin-ws-name",children:a.XE.reviewInvite})]}),t.switchError&&(0,b.jsx)("p",{className:"pv-signin-error",role:"alert",children:t.switchError})]}),(0,b.jsxs)(x.$,{variant:"secondary",onClick:t.logout,children:[a.XE.logout," ",(0,b.jsx)("span",{className:"pv-signin-btn-suffix",children:a.XE.logoutSuffix})]})]}):null},k={inert:"","aria-disabled":"true"},$=e=>{let{form:n,working:i}=e;return u.k5?(0,b.jsxs)(u.jf,{onScriptLoadError:n.noteGoogleScriptFailed,children:[n.googleOnlyEmail&&(0,b.jsx)("div",{className:"pv-signin-note","data-testid":"google-only-prompt",children:(0,b.jsxs)(c.$,{tone:"info",children:[(0,b.jsx)("strong",{className:"pv-signin-note-title",children:a._E.googleOnly.title})," ",a._E.googleOnly.body(n.googleOnlyEmail)]})}),(0,b.jsx)("div",{ref:n.googleAreaRef,className:"pv-signin-google","data-highlight":n.googleOnlyEmail?"true":void 0,"data-google-only-highlight":n.googleOnlyEmail?"true":void 0,"data-working":i?"true":void 0,...i?k:{},children:(0,b.jsx)(u._e,{onSuccess:n.onGoogleSuccess,onError:n.handleGoogleError})}),n.googleScriptFailed&&(0,b.jsx)(c.$,{tone:"danger",children:a._E.google.scriptFailed}),n.googleError&&(0,b.jsx)(c.$,{tone:"danger",children:n.googleError}),n.redirectSuffixText&&(0,b.jsx)("p",{className:"pv-signin-suffix",children:n.redirectSuffixText})]}):(0,b.jsx)(c.$,{tone:"danger",children:a._E.google.unavailable})},y=e=>{let{form:n,redirectPath:i,titleLevel:s,titleId:t}=e;const r=s,{isSignUp:o,authStage:l,inviteFlow:p,redirectSuffixText:d}=n,g="submitting"===l;return"done"===l?(0,b.jsxs)("div",{className:"pv-signin",id:"login-section",children:[(0,b.jsxs)(r,{className:"pv-signin-title",id:t,children:["\u2713 ",o?a._E.done.signup:a._E.done.login]}),(0,b.jsx)("p",{className:"pv-signin-line",role:"status",children:p?a._E.done.invite:a._E.done.other})]}):!g&&n.signedInConfirmed?(0,b.jsx)(j,{redirectPath:i,titleLevel:s,titleId:t}):(0,b.jsxs)("div",{className:"pv-signin",id:"login-section",children:[(0,b.jsx)(r,{className:"pv-signin-title",id:t,children:o?a._E.mode.signup:a._E.mode.login}),(0,b.jsxs)("form",{ref:n.formRef,onSubmit:n.handleLogin,autoComplete:"on",className:"pv-signin-form",children:[(0,b.jsx)(h.A_,{label:a._E.fields.email,type:"email",id:"email",name:"email",value:n.email,onChange:e=>n.changeEmail(e.target.value),onKeyDown:n.handleEmailKeyDown,autoComplete:"username",inputMode:"email",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,enterKeyHint:"next",inputRef:n.emailInputRef,autoFocus:!0,required:!0,readOnly:g}),(0,b.jsx)(h.A_,{label:a._E.fields.password,password:!0,id:"current-password",name:"password",value:n.password,onChange:e=>n.setPassword(e.target.value),onKeyDown:n.handlePasswordKeyDown,autoComplete:o?"new-password":"current-password",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,enterKeyHint:"go",inputRef:n.passwordInputRef,required:!0,readOnly:g}),(0,b.jsxs)("div",{className:"pv-signin-row",children:[(0,b.jsx)(m.Sc,{id:"remember-me",label:a._E.rememberMe,checked:n.rememberMe,onChange:n.setRememberMe}),!o&&(0,b.jsx)("button",{type:"button",className:"pv-link pv-signin-forgot",onClick:n.handleForgotPassword,disabled:n.isResettingPassword||g,children:n.isResettingPassword?a._E.forgot.sending:a._E.forgot.idle})]}),(0,b.jsxs)(x.$,{variant:"primary",type:"submit",working:g,children:[o?a._E.mode.signup:a._E.mode.login,d?(0,b.jsxs)("span",{className:"pv-signin-btn-suffix",children:[" ",d]}):null]}),g&&(0,b.jsxs)("p",{className:"pv-signin-line",role:"status",children:[o?a._E.working.signup:a._E.working.login,p?(0,b.jsxs)("span",{className:"pv-signin-line-sub",children:[" ",a._E.working.inviteNext]}):null]}),n.resetNotice&&(0,b.jsx)(c.$,{tone:"success",children:n.resetNotice}),n.inlineError&&(0,b.jsxs)("div",{className:"pv-signin-failure",children:[(0,b.jsx)(c.$,{tone:"danger",children:n.inlineError}),n.showCreateInstead&&(0,b.jsx)(x.$,{variant:"secondary",size:"sm",onClick:n.switchToCreateAfterError,children:a._E.createInstead})]})]}),(0,b.jsx)("p",{className:"pv-signin-or",children:(0,b.jsx)("span",{children:a._E.or})}),(0,b.jsx)($,{form:n,working:g})]})},N=e=>{let{title:n}=e;return(0,b.jsxs)("div",{className:"pv-signin pv-signin--picture",children:[(0,b.jsx)("p",{className:"pv-signin-title",children:n}),(0,b.jsx)("span",{className:"pv-signin-pic-label"}),(0,b.jsx)("span",{className:"pv-signin-pic-field pv-well"}),(0,b.jsx)("span",{className:"pv-signin-pic-label"}),(0,b.jsx)("span",{className:"pv-signin-pic-field pv-well"}),(0,b.jsx)("span",{className:"pv-signin-pic-bar pv-gold"}),(0,b.jsx)("span",{className:"pv-signin-pic-glass"})]})},E="pv-auth-welcome",_="pv-auth-card-title",C=()=>{const e=t.cm.findIndex((e=>"account"===e.key)),n=t.cm[e];return(0,b.jsxs)("div",{className:"pv-auth-journey","data-testid":"journey-stepper",children:[(0,b.jsx)("p",{className:"pv-eyebrow",children:(0,t.Z6)(e+1,t.cm.length)}),(0,b.jsx)("ol",{className:"pv-auth-steps",children:t.cm.map(((n,i)=>(0,b.jsxs)("li",{"data-state":i<e?"done":i===e?"active":"upcoming","aria-current":i===e?"step":void 0,children:[(0,b.jsx)("span",{className:"pv-auth-step-dot","aria-hidden":"true",children:i<e?"\u2713":i+1}),(0,b.jsx)("span",{className:"pv-auth-step-label",children:n.label})]},n.key)))}),(null===n||void 0===n?void 0:n.timeHint)&&(0,b.jsxs)("p",{className:"pv-auth-step-hint",children:[n.label," \u2014 ",(0,b.jsx)("span",{className:"pv-auth-step-time",children:n.timeHint})]}),(0,b.jsx)("p",{className:"pv-stage-note",children:a.Tl.codeSaved})]})},I=()=>{(0,l.in)("pv-auth-style",v);const{returnUrl:e,initialMode:n,loginHint:i,codeJourney:t}=(0,r.I)(),g=(0,o.E)({redirectPath:e,initialMode:n}),x="idle"===g.authStage&&!g.signedInConfirmed;(0,p.X_)(x?g.isSignUp?a._E.switchMode.toLogin:a._E.switchMode.toSignup:null,g.toggleMode);const h=t?"h1":"h2",m=g.isSignUp?a._E.mode.signup:a._E.mode.login;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s.Ay,{tabTitle:a.Tl.seo.tabTitle,title:a.Tl.seo.title,de
1scription:a.Tl.seo.description,noIndex:!0}),(0,b.jsx)(d.BI,{labelledBy:t?_:E,object:(0,b.jsxs)(d.zU,{mirror:(0,b.jsx)(N,{title:m}),children:[i&&(0,b.jsx)("div",{className:"pv-auth-hint",children:(0,b.jsx)(c.$,{tone:"info",children:i})}),(0,b.jsx)(y,{form:g,redirectPath:e,titleLevel:h,titleId:_})]}),children:t?(0,b.jsx)(C,{}):(0,b.jsxs)("h1",{className:"pv-auth-welcome",id:E,children:[a._E.heading.lead,(0,b.jsx)("span",{className:"pv-auth-ai",children:a._E.heading.ai}),a._E.heading.tail]})})]})}}}]);
2//# sourceMappingURL=pavilion-auth.b1922e29.chunk.js.map

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.