1import{u as f,v as x,a6 as b,w as y,r as s,b as e,a7 as v,B as j,$ as w,a1 as c}from"./vendor-CNlRBQKV.js";import{f as S,A as C}from"./index-BLUlY5na.js";import{i as d}from"./cybersiaraCaptcha-Cv14Q37N.js";import{L}from"./LayoutForLoginPages-DXJspXx9.js";import{LoginInput as E}from"./LoginPage-DjC4mV7i.js";import"./vendor-lodash-B3EhnKIF.js";import"./About-BUtDk5S4.js";/* empty css */import"./ImageWithText-DTIdaL76.js";let m=t=>{const{handleSubmit:i}=t;return s.useEffect(()=>{d("x38sIub8nLmbESWayvQdHI88scy9mLTE")},[]),e.jsxs("form",{onSubmit:i,children:[e.jsxs("div",{className:"form-group",children:[e.jsx(v,{name:"email",component:"input",type:"email",className:"form-control input-lg",placeholder:"Email address",required:!0}),t.ValidationError&&t.ValidationError.email&&e.jsx("div",{style:{color:"#fb6161"},children:t.ValidationError.email})]}),e.jsx("div",{className:"SiaraShield centered"}),e.jsx("div",{className:"form-group text-center mb-0",children:e.jsx("button",{type:"submit",className:"getStarted !bg-[#006766] hover:!bg-[#e3b576]",children:"Send Reset Code"})}),e.jsx("div",{className:"form-group text-center mb-0",children:e.jsxs("p",{children:["Already have an account?"," ",e.jsx(j,{to:{pathname:"/login",state:"/home"},children:"Click here to Login"})]})})]})};function N(t){return{}}m=f(y,b({forceUnregisterOnUnmount:!0,enableReinitialize:!0,form:"login"}),x(N))(m);const k=t=>{const[i,o]=s.useState(!1),p=s.useContext(C),[I,n]=s.useState(""),u=async a=>{try{if(localStorage.getItem("verifyToken"))return"";o(!0);let l=h(a);if(Object.keys(l).length>0)n(l);else if(n(""),await p.sendCode(a.target.email.value))c.success("Reset passowrd code has sent to registered email address",{hideProgressBar:!0,autoClose:2e3}),setTimeout(()=>{t.history.push("/change-password")},2e3);else throw new Error("Something went wrong.");o(!1)}catch(r){c.error(r.response.data.message,{hideProgressBar:!0,autoClose:2e3}),o(!1)}};let h=a=>{let r={};return(!a.target.email.value||a.target.email.value.trim().length===0)&&(r.email="This field is required"),r},g={sectionVals:{subHead:"Reset password",head:"No problem if you have forgotten your password"},headingHero:"Email confirmation",sectionPara:"If you have forgotten your credentials, enter your email address to get a code for a password reset.",sectionHeading:"Confirm your EMAIL"};return localStorage.setItem("verifyToken",!0),s.useEffect(()=>{d("x38sIub8nLmbESWayvQdHI88scy9mLTE")},[]),e.jsxs(e.Fragment,{children:[e.jsxs(w,{children:[e.jsx("link",{rel:"canonical",href:"https://legateca.com/send-code"}),e.jsx("meta",{name:"robots",content:"INDEX,FOLLOW"})]}),e.jsx(L,{...g,children:e.jsxs("div",{className:"lg:px-[40px] flex flex-col justify-center px-[20px] max-h-[530px] min-h-[530px] 3xl:max-h-[830px] 3xl:min-h-[830px] w-full lg:max-w-[500px] 3xl:min-w-[1200px] 3xl:max-w-[1200px] bg-white rounded-[8px]",children:[e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("div",{className:"text-[#006766] 3xl:text-[60px] text-[28px] not-italic font-medium leading-[48px] tracking-[0.56px] uppercase",children:"Confirm your email"}),e.jsx("div",{className:"xl:max-w-[486px] 3xl:max-w-[786px] text-primary-tw text-base 3xl:text-[30px] xl:text-sm not-italic 3xl:!leading-[130%] font-normal leading-[26px] tracking-[0.28px]",children:"A reset code will be sent to your registered email."})]}),e.jsxs("form",{onSubmit:a=>{a.preventDefault(),u(a)},children:[e.jsx("div",{className:"py-[30px] 3xl:py-[50px] flex flex-col gap-6",children:e.jsx(E,{label:"Email",name:"email",placeHolder:"[email protected]"})}),e.jsx("div",{className:"SiaraShield centered "}),e.jsx("button",{type:"submit",className:"bg-ThemeSecondary CaptchaSubmit 3xl:py-[40px] py-[20px] text-white text-center 3xl:text-[30px] text-sm not-italic hover:!bg-[#e3b576] !border-none font-medium rounded-[6px] !mt-[30px] !mb-[20px] tracking-[0.28px] uppercase",children:"Send reset code"})]}),e.jsxs("div",{onClick:()=>window.location.replace("/login"),className:"text-ThemeSecondary cursor-pointer hover:underline pt-[20px] flex justify-center items-center gap-2",children:[e.jsx("svg",{className:"w-3 h-3 3xl:w-8 3xl:h-8",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.97266 11.7578L0.96875 6.53516C0.832031 6.37109 0.777344 6.20703 0.777344 6.04297C0.777344 5.90625 0.832031 5.74219 0.941406 5.60547L5.94531 0.382812C6.19141 0.109375 6.62891 0.109375 6.875 0.355469C7.14844 0.601562 7.14844 1.01172 6.90234 1.28516L2.33594 6.04297L6.92969 10.8555C7.17578 11.1016 7.17578 11.5391 6.90234 11.7852C6.65625 12.0312 6.21875 12.0312 5.97266 11.7578Z",fill:"currentColor"})}),e.jsx("span",{className:"text-sm 3xl:text-[30px] not-italic font-semibold leading-normal",children:"Go back to Login"})]})]})})]})},T=t=>({}),W=x(T,{authenticate:S.authenticate})(k);export{W 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.