1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9194fcb8-8935-50fa-8d60-4bd00bb608fb")}catch(e){}}(); 3import{K as y,D as v,I as w,x as N,A as k,u as a,F as d,L as p}from"./chunk-JZWAC4HX-ClKBC7OG.js";import{j as e}from"./jsx-runtime-Ba5HBwWH.js";import{A as u,l as b}from"./Alert-GiC71FNb.js";import{B as f,l as S}from"./Button-C7Lxdfgu.js";import{T,F as E,l as R,a as F}from"./TopBar-6018a6tD.js";import{I as h,l as L}from"./Input-CqJogIzn.js";import{L as x,l as A}from"./Label-D1uW51qZ.js";import{T as $,B}from"./root-DWrRIubx.js";import{c as C}from"./center-form-pages-BdYD7dtY.js";import"./react-icons.esm-BMTosRt-.js";import"./index-MAk8cjkf.js";import"./index-sTiyBQYM.js";import"./index-CT-ltmkc.js";import"./index-CZvRCvOG.js";import"./debug-build-Dorh0FKA.js";import"./Navigation-YUOdvbou.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};l.SENTRY_RELEASE={id:"95882236361f725ba34c006c57b7d28e7d063b1a"}}catch{}})();const I="/assets/login-B9oEqqQt.css",o=`Sign in | ${$}`,X=()=>[{title:o},{property:"og:title",content:o},{property:"twitter:title",content:o},{property:"og:url",content:B}],Z=()=>[...R(),...S(),...A(),...L(),...F(),...b(),{rel:"stylesheet",href:C},{rel:"stylesheet",href:I}],ee=y(function(){const r=v(),[g]=w(),i=g.get("redirectTo"),s=N(),t=k(),n=a.useRef(null),c=a.useRef(null),j=i?`/sso?redirectTo=${encodeURIComponent(i)}`:"/sso";a.useEffect(()=>{s?.errors?.type==="email"||s?.errors?.type==="composite"?n.current?.focus():s?.errors?.type==="password"&&c.current?.focus()},[s]);const m=r.state==="submitting"||r.state==="loading";return e.jsxs("div",{className:"page-wrapper",children:[e.jsx(T,{children:e.jsx("a",{className:"link",href:"mailto:[email protected]",children:"Contact support"})}),e.jsx("main",{className:"main main--login",children:e.jsxs("div",{className:"content",children:[e.jsxs("div",{className:"content__header",children:[e.jsx("h1",{className:"title",children:"Sign in"}),e.jsx("p",{className:"text",children:"Enter your credentials for RocketSim for Teams."})]}),t.message?e.jsx(u,{title:t.message.title,type:t.message.type,children:t.message.message}):null,s?.errors?.type==="verified"?e.jsx(u,{title:"Email not verified",type:"info",actionsSlot:e.jsxs(d,{method:"post",action:"/send-email-verification",children:[e.jsx("input",{type:"hidden",name:"email",value:s.errors.email}),e.jsx("button",{className:"link",disabled:r.formAction==="/send-email-verification",children:"Resend"})]}),children:"Your email is not verified. Please check your email for the verification link."}):null,e.jsxs(d,{method:"post",className:"form",children:[e.jsxs("fieldset",{className:"fieldset",disabled:m,children:[e.jsxs("div",{className:"input-wrapper",children:[e.jsx(x,{htmlFor:"email",children:"Email:"}),e.jsx(h,{"aria-describedby":"email-error","aria-invalid":s?.errors?.type==="email"?!0:void 0,autoComplete:"email",autoFocus:!0,error:s?.errors.type==="email",id:"email",name:"email",placeholder:"[email protected]",ref:n,required:!0,type:"email"}),s?.errors.type==="email"?e.jsx("p",{id:"email-error",className:"error-message",children:s.errors.message}):null]}),e.jsxs("div",{className:"input-wrapper",children:[e.jsx(x,{htmlFor:"password",children:"Password:"}),e.jsx(h,{error:s?.errors.type==="password",id:"password",name:"password",ref:c,required:!0,type:"password"}),e.jsxs("p",{className:"input__help-text",children:["Forgot your password?"," ",e.jsx(p,{to:"/reset-password",className:"link",children:"Click here"})," ","to reset it."]}),s?.errors.type==="password"?e.jsx("p",{className:"error-message",children:s.errors.message}):null]})]}),e.jsx("input",{type:"hidden",name:"redirectTo",value:i??""}),e.jsx(f,{type:"submit",fullWidth:!0,children:m&&(r.formAction??"").includes("/login")?"Verifying...":"Sign in"})]}),s?.errors.type==="composite"?e.jsx("p",{className:"error-message error-message--spacing-top",children:s.errors.message}):null,e.jsx("div",{className:"divider",children:e.jsx("span",{children:"or"})}),e.jsx(f,{variant:"outline",fullWidth:!0,asChild:!0,children:e.jsx(p,{to:j,children:"Sign in with SSO"})})]})}),e.jsx(E,{})]})});export{ee as default,Z as links,X as meta}; 4 5//# debugId=9194fcb8-8935-50fa-8d60-4bd00bb608fb
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.