1import{N as S,n as s,af as v,aA as b,a9 as k,u as T,r,j as e,$ as l,cE as A,cF as B,b0 as C,eZ as F,cc as R,cy as w}from"./index-2k2e1F8S.js";import{c as W}from"./form-validation-3A4u7sau.js";import"./fromPairs-eFGrIL2n.js";const I=t=>S.post("passwordreset",{email:t,isForWelcome:!0}).then(()=>!0).catch(o=>(console.log(o),!1)),L=s("div")({display:"flex",maxWidth:"623px",margin:"0px auto",justifyContent:"center",alignItems:"center",minHeight:"100%"}),z=s(v)(({theme:t})=>({width:"100%",padding:"50px 40px",borderRadius:12,boxShadow:"0px 2px 4px 0px rgba(0, 0, 0, 0.13)","& a":{color:t.palette.primary.main,textDecoration:"none",fontWeight:500,fontSize:14}})),n=s(b)(({theme:t})=>({fontSize:14,fontWeight:500,color:"#7C7C80","& span":{color:t.palette.primary.main}})),D=s(k)(({theme:t,disabled:o})=>({borderRadius:9,opacity:o?.5:1,backgroundColor:`${t.palette.primary.main} !important`,color:"#FFF !important",fontWeight:500}));let c;const $=()=>{const t=T(),[o,d]=r.useState(!1),[i,m]=r.useState(""),[g,u]=r.useState(!1),[p,f]=r.useState(!1),y=a=>{u(!1),m(a),c&&clearTimeout(c),c=setTimeout(()=>{h(a,!1)},200)},h=(a,E=!0)=>
1{if(i.length){const x=W(a);u(!x),E&&f(!x)}},j=()=>{d(!0),I(i).then(a=>{a?(t(R("Your email has been submitted. Look out for a welcome email.")),m("")):t(w("Failed to send email."))}).finally(()=>{d(!1)})};return e.jsx(L,{children:e.jsxs(z,{children:[e.jsxs(l,{display:"grid",marginBottom:"12px",children:[e.jsx("img",{height:"30",src:A}),e.jsx(n,{sx:{color:"#444F53",fontSize:18},marginTop:"14px",children:"Resend Account Setup Email"})]}),e.jsx(n,{children:"Enter your email address to resend a setup email. If your admin has invited you, youâll receive an account setup message with steps to complete it."}),e.jsx(n,{marginTop:1,children:"If you donât receive an email, ask your admin to invite you."}),e.jsxs(l,{marginTop:"20px",marginBottom:"20px",children:[e.jsx(B,{children:"Email"}),e.jsx(C,{autoFocus:!0,fullWidth:!0,id:"login-email",size:"small",type:"email",variant:"outlined",placeholder:"Enter email...",helperText:p?"Enter a valid email":"",error:p,value:i,onChange:a=>y(a.target.value),onBlur:()=>h(i)})]}),e.jsx(D,{variant:"contained",onClick:()=>j(),disabled:o||!i||g,fullWidth:!0,color:"primary",children:"Resend Account Setup Email"}),e.jsx(l,{marginTop:"10px",marginBottom:"20px",children:e.jsxs(n,{children:["Having trouble? Reach out to your admin or contact ",e.jsx("a",{href:"mailto:[email protected]",children:"SKED support"}),"."]})}),e.jsxs(n,{sx:{color:"#ABABAE",textAlign:"center"},children:["Already have an account? ",e.jsx(F,{to:"/login",children:"Sign in"})]})]})})};export{$ as default};
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.