PageSourceSearch

https://avua.com/assets/EmployerLogin-DOo8kQCe.js

js avua.com collected 2026-09-24 12:54:49 UTC 22,836 bytes, 3 lines download raw bytes

1import{c as o,u as X,t as ee,a5 as _,aa as L,ae as N,ac as ce,c5 as de,bv as U,O as pe,c6 as me,N as Z,h as xe,j as e,bh as ue,az as q,i as F,c1 as se,b as fe,r as he,Q as ge,H as we,hk as be,hl as ve,ay as je,hm as ye,hn as Ne,p as Fe,aZ as Ee,o as ke,ho as Ce,hp as Pe,b_ as Be,S as De}from"./index-B9q78oLf.js";import{E as Se}from"./EmailNotificationPage-CDhXnm8i.js";import{F as Re,c as Oe,G as Ae}from"./employerDashboard-D_amyCIH.js";import{u as Te}from"./useViewportZoom-CAZJvmVH.js";import"./index-Cq9UrQZH.js";import"./___vite-browser-external_commonjs-proxy-CeLqxiRG.js";const Ve=({setStep:i,step:n})=>{const[m,d]=o.useState(""),[j,u]=o.useState(""),[w,y]=o.useState(""),[g,b]=o.useState(!1),[E,R]=o.useState(""),O=X(),A=ee(),c=_({initialValues:{email:""},validationSchema:L({email:N().email("Invalid email format").required("Email is required")}),onSubmit:()=>{T()}}),f=_({initialValues:{otp:""},validationSchema:L({otp:N().required("OTP is required")}),onSubmit:()=>{k()}}),l=_({initialValues:{password:"",rePassword:""},validationSchema:L({password:N().required("Password is required").min(8,"Password must be at least 8 characters"),rePassword:N().required("Re-enter password is required").oneOf([ce("password")],"Passwords must match")}),onSubmit:()=>{V()}}),W=a=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a);async function T(){if(d(""),!c.values.email)d("Email is required*");else if(!W(c.values.email))d("Please enter a valid email");else try{const a=await de(c.values.email);console.log("Password reset response:",a),U.success("If an account exists for this email, we've sent a reset code",{position:"bottom-right"}),a&&a.msg==="success"&&a.data[0]===""&&(i("otp-verification"),console.log("Switching to OTP Verification step"))}catch(a){console.error("Error in password reset request:",a),U.success("If an account exists for this email, we've sent a reset code",{position:"bottom-right"})}}async function k(){u("");try{const a=await pe(c.values.email,f.values.otp);console.log("OTP verification response:",a),a.msg==="success"?i("Reset-Password"):(u("Please enter a valid OTP"),console.error("Invalid OTP verification response:",a))}catch(a){console.error("Error during OTP verification:",a),U.error(a?.response?.data?.msg)}}const V=async()=>{if(l.values.password&&l.values.password===l.values.rePassword)try{const a=await me(c.values.email,l.values.password);if(a&&a.msg==="success"&&a.data[0]){const x=a.data[0].jwt_token,P=a.data[0].type;console.log("*******TYPE FROM PASSWORD CHANGED:",P),A(Z({token:x,userType:P})),O(`/password-changed?token=${x}&userType=${P}`)}}catch(a){a.response.data.msg==="password is already used"&&y("New password can't match the old one. Please choose a different one.")}else y("Password validation failed.")},C=async a=>{a.preventDefault();const x=encodeURIComponent(c.values.email);await se(x),i("email-verify")};return xe.useEffect(()=>{b(!1),d(!1)},[c.values.email]),e.jsxs(e.Fragment,{children:[e.jsx(ue,{autoClose:3e3}),n==="forget-password"&&e.jsx("div",{className:"w-full flex justify-center items-center md:pt-[170px] pt-[20px]",children:e.jsxs("form",{onSubmit:c.handleSubmit,className:"md:w-[594px] flex justify-center items-center flex-col gap-[20px]",children:[e.jsxs("div",{className:"text-center flex flex-col gap-2",children:[e.jsx("p",{className:"text-[28px] leading-[33.6px] font-poppins font-[500] text-[#2B1845]",children:"Forgot password?"}),e.jsx("p",{children:"Reset password in two quick steps"})]}),e.jsx(q,{type:"text",name:"email",placeholdertext:"Enter your email",onChange:c.handleChange,icon:F.form.mail_auth,lable:"Email*",inputStyle:"w-full border-[1px] placeholder:font-poppins placeholder:text-[#A2A2A2] placeholder:text-body1 bg-white border-[#D9D9D9] h-[52px] rounded-[10px] pl-[55px] pr-6 focus:outline-none  hover:cursor-pointer",error:m||c.touched.email&&c.errors.email,...c.getFieldProps("email")}),g?e.jsx("button",{type:"button",onClick:C,className:"w-full h-[59px] bg-gradient-to-r from-[#6B3BAB] to-[#2B1845] mt-9 rounded-full",children:e.jsx("p",{className:"text-white font-poppins font-[500] text-[16px] leading-[19.2px] text-center",children:"Verify n
1ow"})}):e.jsx("button",{type:"submit",className:"w-full h-[59px] bg-gradient-to-r from-[#6B3BAB] to-[#2B1845] mt-9 rounded-full",children:e.jsx("p",{className:"text-white font-poppins font-[500] text-[16px] leading-[19.2px] text-center",children:"Reset password"})}),e.jsxs("p",{onClick:()=>i("login"),className:"inline-flex items-center gap-1 font-poppins text-[16px] font-medium leading-[24px] text-[#1B1B1B] cursor-pointer hover:text-[#6D3DF0] transition-all duration-200",children:[e.jsx("span",{className:"text-[14px]",children:"←"}),"back"]})]})}),n==="otp-verification"&&e.jsx("div",{className:"w-full flex justify-center items-center md:pt-[170px]",children:e.jsxs("form",{onSubmit:f.handleSubmit,className:"md:w-[594px] flex justify-center items-center flex-col gap-[20px]",children:[e.jsxs("div",{className:"text-center flex flex-col gap-2",children:[e.jsx("p",{className:"text-[28px] leading-[33.6px] font-poppins font-[500] text-[#2B1845]",children:"We sent a code to your email"}),e.jsxs("p",{children:["Enter the 6-digit verification code sent to"," ",c.values.email]})]}),e.jsx(q,{type:"text",name:"otp",onChange:f.handleChange,value:f.values.otp,error:j||f.touched.otp&&f.errors.otp,...f.getFieldProps("otp")}),e.jsx("button",{type:"submit",className:"w-full h-[59px] bg-gradient-to-r from-[#6B3BAB] to-[#2B1845] mt-9 rounded-full",children:e.jsx("p",{className:"text-white font-poppins font-[500] text-[16px] leading-[19.2px] text-center",children:"Verify OTP"})}),e.jsx("p",{onClick:()=>i("forget-password"),className:" font-poppins font-normal text-[16px]  leading-[24px] text-[#1B1B1B] cursor-pointer",children:"back"})]})}),n==="Reset-Password"&&e.jsx("div",{className:"w-full flex justify-center items-center md:pt-[170px]",children:e.jsxs("form",{onSubmit:l.handleSubmit,className:"md:w-[594px] flex justify-center items-center flex-col gap-[20px]",children:[e.jsxs("div",{className:"text-center flex flex-col gap-2",children:[e.jsx("p",{className:"text-[28px] leading-[33.6px] font-poppins font-[500] text-[#2B1845]",children:"Reset your password"}),e.jsxs("p",{children:["Enter and confirm your new password for ",c.values.email]})]}),e.jsx(q,{type:"password",placeholdertext:"New password",name:"password",isPassword:!0,icon:F.form.lock_auth,onChange:l.handleChange,value:l.values.password,error:l.touched.password&&l.errors.password,...l.getFieldProps("password")}),e.jsx(q,{type:"password",placeholdertext:"Re-enter new password",isPassword:!0,icon:F.form.lock_auth,name:"rePassword",onChange:l.handleChange,value:l.values.rePassword,error:l.touched.rePassword&&l.errors.rePassword,...l.getFieldProps("rePassword")}),w&&e.jsx("p",{className:" text-hint text-red w-full",children:w}),e.jsx("button",{type:"submit",className:"w-full h-[59px] bg-gradient-to-r from-[#6B3BAB] to-[#2B1845] mt-9 rounded-full",children:e.jsx("p",{className:"text-white font-poppins font-[500] text-[16px] leading-[19.2px] text-center",children:"Change Password"})}),e.jsx("p",{onClick:()=>i("login"),className:" font-poppins font-normal text-[16px] leading-[24px] text-[#1B1B1B] cursor-pointer",children:"back"})]})})]})},Ie=({icon:i,disabled:n,...m})=>e.jsxs("div",{className:"relative flex items-center",children:[i&&e.jsx(i,{className:"w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 pointer-events-none text-[#B8BCCF]"}),e.jsx("input",{...m,disabled:n,className:`w-full h-[44px] rounded-[10px] border border-[#E8E9F1] bg-white text-[13.5px] text-[#1A1230] pl-10 pr-4 placeholder:text-[#B8BCCF] placeholder:font-light hover:border-[#D9DBE6] focu
1s:outline-none focus:border-[#6D3DF0] focus:ring-2 focus:ring-[#F3EEFE] transition-all duration-150 ${n?"opacity-60 cursor-not-allowed":""}`})]}),$e=({value:i,onChange:n,onBlur:m,name:d,id:j,placeholder:u,disabled:w,autoComplete:y})=>{const[g,b]=o.useState(!1);return e.jsxs("div",{className:"relative flex items-center",children:[e.jsx(ke,{className:"w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 pointer-events-none text-[#B8BCCF]"}),e.jsx("input",{id:j,name:d,type:g?"text":"password",value:i,onChange:n,onBlur:m,placeholder:u,disabled:w,autoComplete:y,className:`w-full h-[44px] rounded-[10px] border border-[#E8E9F1] bg-white text-[13.5px] text-[#1A1230] pl-10 pr-12 placeholder:text-[#B8BCCF] placeholder:font-light hover:border-[#D9DBE6] focus:outline-none focus:border-[#6D3DF0] focus:ring-2 focus:ring-[#F3EEFE] transition-all duration-150 ${w?"opacity-60 cursor-not-allowed":""}`}),e.jsx("button",{type:"button",onClick:()=>b(E=>!E),disabled:w,className:"absolute right-2.5 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center text-[#8489A0] hover:text-[#1A1230] hover:bg-[#F0F1F6] rounded-md transition-all border-0 bg-transparent cursor-pointer","aria-label":g?"Hide password":"Show password",children:g?e.jsx(Ce,{className:"w-4 h-4"}):e.jsx(Pe,{className:"w-4 h-4"})})]})},Q=({onClick:i,disabled:n,loading:m,children:d})=>e.jsxs("button",{type:"button",onClick:i,disabled:n,className:`relative w-full h-[46px] rounded-[10px] p-[1px] bg-gradient-to-r from-[#864EFF] via-[#B58CFF] to-[#6D3DF0] ${n?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:[e.jsx("span",{className:"absolute inset-[1.5px] rounded-[9px] bg-white"}),e.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2 h-full text-[#6D3DF0] text-[14px] font-semibold hover:bg-[#F8F5FF] rounded-[9px] transition-all duration-150",children:[d,!m&&e.jsx(Ee,{className:"w-4 h-4"})]})]}),qe=({children:i})=>e.jsxs("div",{className:"flex items-start gap-2.5 p-3 px-3.5 bg-[#F3EEFE] border border-[#E0D4FB] rounded-[10px] text-[12.5px] text-[#4B4F66] leading-[1.5]",children:[e.jsx(De,{className:"w-[14px] h-[14px] flex-shrink-0 mt-px text-[#6D3DF0]"}),e.jsx("span",{children:i})]}),K=({active:i,onClick:n,icon:m,label:d})=>e.jsxs("button",{type:"button",onClick:n,className:`flex-1 flex items-center justify-center gap-1.5 py-2 px-2 rounded-[8px] text-[12.5px] font-medium transition-all duration-200 border-0 cursor-pointer
2      ${i?"bg-white text-[#6D3DF0] font-semibold shadow-sm":"bg-transparent text-[#8489A0] hover:text-[#4B4F66]"}`,children:[e.jsx(m,{className:"w-[13px] h-[13px]"}),e.jsx("span",{children:d})]}),Ge=()=>{const i=ee(),n=X(),m=fe(s=>s.auth.token),[d,j]=o.useState(!1),[u,w]=o.useState("otp"),[y,g]=o.useState(!1),[b,E]=o.useState(!1),[R,O]=o.useState(!1),[A,c]=o.useState(""),[f,l]=o.useState("login"),[W,T]=o.useState(30),[k,V]=o.useState(!1),[C,a]=o.use
2State({isVisible:!1,message:"",type:"success"}),x=(s,t="success")=>a({isVisible:!0,message:s,type:t}),P=()=>a(s=>({...s,isVisible:!1})),B=[o.useRef(),o.useRef(),o.useRef(),o.useRef(),o.useRef(),o.useRef()],[I,H]=o.useState(["","","","","",""]);Te();const $=he.useMediaQuery({maxWidth:2520,minWidth:1650}),te=()=>{T(30),V(!1);const s=setInterval(()=>{T(t=>t===1?(clearInterval(s),V(!0),0):t-1)},1e3)},r=_({initialValues:{email:"",password:""},validationSchema:L({email:N().trim().required("Email is required").matches(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Invalid email format"),password:N().when([],{is:()=>u==="password",then:s=>s.required("Password is required"),otherwise:s=>s.notRequired()})}),onSubmit:()=>{}}),ae=()=>c("");async function M(s,t){const p=(r.values.email||"").trim(),v=r.values.password;ae(),j(!0);try{let h;const le=encodeURIComponent(p);if(s?h=t.data[0]:h=(await Be(p,v)).data[0],h.is_email_verified){const D=h.jwt_token,S=h.type;if(S==="applicant")i(Z({...h,token:D,userType:S})),n("/dashboard");else if(S==="recruiter"||S==="employer"){const J=await Oe(D);J?.data?.is_reviewed===!0?(i(Z({...h,token:D,userType:S})),n("/employer/dashboard")):n("/up-for-review",{state:{is_reviewed:J?.data?.is_reviewed,token:D}})}}else await se(le),l("email-verify")}catch{r.setFieldValue("email",p,!1),r.setFieldValue("password",v,!1),r.setFieldError("email",void 0),c("Invalid email or password.")}finally{j(!1)}}const z=async()=>{r.setTouched({email:!0});const s=await r.validateForm();if(Object.keys(s).length>0){x("Please enter a valid email before sending one-time code.","error");return}re()},re=async()=>{E(!0);try{await Ae(m,r.values.email),g(!0),x("One-time code sent successfully!","success"),te()}
2catch(s){const t=s.response?.data?.msg?.invalid_request||s.response?.data?.msg||"Something went wrong. Please try again.";x(t,"error")}finally{E(!1)}},Y=async(s=I)=>{if(s.some(t=>t==="")){x("Please enter the complete 6-digit one-time code.","error");return}O(!0);try{const t=await Re(m,s.join(""),r.values.email);x("One-time code verified successfully!","success"),M(!0,t)}catch(t){x(t.response?.data?.msg||"Invalid one-time code. Please try again.","error")}finally{O(!1)}},oe=(s,t)=>{const p=s.target.value.replace(/\D/g,""),v=[...I];v[t]=p,H(v),p&&t<5?B[t+1]?.current?.focus():!p&&t>0&&B[t-1]?.current?.focus(),p&&t===5&&v.every(h=>h!=="")&&Y(v)},ne=s=>{s.preventDefault();const p=s.clipboardData.getData("text").replace(/\D/g,"").split("").slice(0,6);H(p),B[p.length-1]?.current?.focus()},ie=()=>{H(["","","","","",""]),B[0].current?.focus()},G=s=>{w(s),g(!1),c(""),ie()};return F?.authPage?.authpageLeftBrandPanel,e.jsxs(e.Fragment,{children:[e.jsx(ge,{message:C.message,type:C.type,isVisible:C.isVisible,onClose:P}),e.jsxs(we,{children:[e.jsx("title",{children:"Log In as an Employer | avua Dashboard"}),e.jsx("meta",{name:"description",content:"Sign in to your avua employer account to manage job postings, review AI-matched candidates, and track your hiring pipeline in one place."}),e.jsx("link",{rel:"canonical",href:`${window.location.origin}/employer-login`}),e.jsx("meta",{name:"keywords",content:"ai hiring platforms,ai recruiter"}),e.jsx("meta",{name:"robots",content:"index, follow"})]}),f==="login"&&e.jsx("div",{className:"",children:e.jsxs("div",{className:"h-screen w-screen   flex flex-col  lg:flex-row",children:[e.jsxs("div",{className:"flex md:order-1 md:mt-0 mt-10 order-2 flex-col h-full w-full md:justify-between justify-center md:flex-shrink-0 lg:w-[47.5%] px-6 py-6 md:px-16",style:{backgroundImage:`url(${be?.authpageLeftBrandPanel})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:[e.jsx("div",{className:"md:block hidden cursor-pointer relative top-[8px] left-[-8px]",onClick:()=>n("/"),children:e.jsx("img",{src:F.CommonHeader.avua_header_logo,alt:"avua",className:"h-6 sm:h-7"})}),e.jsxs("div",{className:`flex ml-0 md:ml-9 py-6 flex-col justify-center my-0 md:my-6 ${$?"scale-125 relative left-28":""}`,style:{maxWidth:480},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 md:mb-5",children:[e.jsx(ve,{className:"text-[#bca9f2] w-5 h-5"}),e.jsx("span",{className:"text-[11px] md:text-[14px] text-[#230D46] font-[400] tracking-[0.01em]",children:"Hiring, Intelligently Rebuilt"})]}),e.jsxs("h1",{className:`font-[300] leading-[1.1] font-poppins tracking-[-0.03em] text-[#1A1230] mb-3 md:mb-4 ${$?"text-[50px]":"text-[30px] md:text-[50px]"}`,children:["The shortest path to"," ",e.jsx("span",{className:"italic font-[400]",style:{background:"linear-gradient(135deg, #864EFF 0%, #502F99 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"verified"})," ","talent."]}),e.jsx("p",{className:"text-[13px] sm:text-[14px] text-[#000000]/60 leading-[1.55] md:leading-[1.65]",children:"Sign in to manage your pipeline, review qualified candidates, and close roles with the confidence of structured, signal-rich data."}),e.jsxs("div",{className:"bg-white border border-[#E5E7EE] rounded-2xl p-5 mt-6",children:[e.jsx("p",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[#6B7280] mb-4",children:"Trusted by hiring teams worldwide"}),e.jsx("div",{className:"grid grid-cols-3",children:[{num:"1M+",label:"Verified candidates"},{num:"150+",label:"Countries supported"},{num:"5 days",label:"Avg. time to shortlist"}].map((s,t)=>e.jsxs("div",{className:`${t===0?"pr-3.5 border-r border-[#E5E7EE]":t===1?"px-3.5 border-r border-[#E5E7EE]":"pl-3.5"}`,children:[e.jsx("div",{className:"md:text-[22px] text-[13px] font-semibold tracking-[-0.02em] text-[#1A1230] mb-1 leading-none",children:s.num}),e.jsx("div",{className:"text-[11.5px] text-[#6B7280] leading-[1.4]",children:s.label})]},t))})]})]}),e.jsx("div",{})]}),e.jsxs("div",{className:"flex-1 md:mt-0 md:order-2 order-1 flex flex-col h-full bg-white min-w-0",children:[e.jsx("div",{className:"md:hidden absolute top-5 left-6 cursor-pointer z-10",onClick:()=>n("/"),children:e.jsx("img",{src:F.CommonHeader.avua_header_logo,alt:"avua",className:"h-5"})}),e.jsx("header",{className:"md:flex-shrink-0 hidden  md:flex items-center justify-end px-5 sm:px-6 md:px-8 xl:px-12 pt-9 pb-3",children:e.jsxs("div",{className:` ${$?"text-[16px]":"text-[12px] sm:text-[13px]"}  text-[#8489A0]`,children:["New to avua?"," ",e.jsx("button",{onClick:()=>n("/employer-sign-up"),className:"text-[#1A1230] font-semibold underline underline-offset-2 bg-transparent border-0 cursor-pointer hover:text-[#6D3DF0] transition-colors",children:"Create an account →"})]})}),e.jsx("div",{className:"flex-1 flex items-center justify-center px-5 sm:px-6",children:e.jsx("div",{className:"w-full max-w-[380px] sm:max-w-md",children:y?e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsxs("div",{className:"w-full bg-[#F8F9FE] rounded-[12px] p-5 flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[#E6F7F0] flex items-center justify-center",children:e.jsx(je,{className:"w-4 h-4 text-emerald-500"})}),e.jsx("p",{className:"font-semibold text-[15px] text-[#424242] text-center",children:"We've sent an one-time code to your email"}),e.jsx("p",{className:"text-[13px] text-[#8489A0] text-center",children:"Enter the 6-digit code sent to your email here."}),e.jsx("div",{className:"flex items-center gap-2 mt-1 flex-wrap justify-center",children:B.map((s,t)=>
2e.jsx("input",{ref:s,type:"text",maxLength:1,value:I[t],onInput:p=>oe(p,t),onPaste:t===0?ne:null,className:"w-9 h-11 sm:w-10 sm:h-12 text-center border border-[#E8E9F1] bg-[#F8F9FE] rounded-[8px] text-[15px] sm:text-[16px] font-semibold text-[#1A1230] focus:outline-none focus:border-[#6D3DF0] focus:ring-2 focus:ring-[#F3EEFE] transition-all"},t))}),e.jsx("button",{type:"button",onClick:()=>k&&z(),className:`text-[13px] font-medium bg-transparent border-0 transition-all ${k?"text-[#6D3DF0] cursor-pointer hover:underline":"text-[#B8BCCF] cursor-not-allowed"}`,children:k?"Resend one-time code":`Resend in ${W}s`})]}),e.jsx(Q,{onClick:()=>Y(),disabled:R||I.some(s=>s===""),loading:R,children:R?"Verifying...":"Confirm one-time code"}),e.jsx("button",{type:"button",onClick:()=>{g(!1),G("password")},className:"text-[13px] font-semibold text-[#1A1230] hover:text-[#6D3DF0] transition-colors bg-transparent border-0 cursor-pointer",children:"Use your password instead"})]}):e.jsxs("div",{className:`${$?"scale-125 relative left-0":""}`,children:[e.jsxs("div",{className:'flex md:mt-0 mt-16 items-center gap-2.5 mb-4 pb-5" ',children:[e.jsx("span",{className:"w-6 h-px bg-[#8489A0]"}),e.jsx("span",{className:"text-[11px] sm:text-[12px] text-[#8489A0] tracking-[0.04em]",children:"Employer Sign-In"})]}),e.jsxs("h1",{className:"font-[400] font-poppins leading-[1.1] tracking-[-0.025em] text-[#1A1230] mb-1.5",style:{fontSize:"clamp(28px, 4.5vw, 44px)"},children:["Welcome"," ",e.jsx("span",{style:{background:"linear-gradient(135deg, #864EFF 0%, #502F99 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"back."})]}),e.jsx("p",{className:"md:text-[14px] text-[12px] text-[#8489A0] leading-[1.55] mb-5 sm:mb-6",children:"Continue connecting with verified talent and managing your hiring pipeline."}),e.jsxs("div",{className:"grid grid-cols-2 bg-[#F4F2F8] border border-[#E8E9F1] rounded-[10px] p-[3px] mb-5 gap-0.5",children:[e.jsx(K,{active:u==="password",onClick:()=>G("password"),icon:ye,label:"Password"}),e.jsx(K,{active:u==="otp",onClick:()=>G("otp"),icon:Ne,label:"One-time code"})]}),e.jsxs("form",{className:"flex flex-col gap-3.5",onSubmit:s=>{s.preventDefault(),u==="password"?M(!1):z()},autoComplete:"on",children:[e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsxs("label",{htmlFor:"employer-login-email",className:"text-[12px] sm:text-[12.5px] font-medium text-[#4B4F66]",children:["Work email",e.jsx("span",{className:"text-[#6D3DF0] ml-0.5",children:"*"})]}),e.jsx(Ie,{icon:Fe,id:"employer-login-email",name:"email",type:"email",autoComplete:"username",placeholder:"[email protected]",value:r.values.email,onChange:r.handleChange,onBlur:r.handleBlur,disabled:d||b}),r.touched.email&&r.errors.email&&e.jsx("p",{className:"text-[#f03d3d] text-[11px] sm:text-[11.5px]",children:r.errors.email})]}),u==="password"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{htmlFor:"employer-login-password",className:"text-[12px] sm:text-[12.5px] font-medium text-[#4B4F66]",children:["Password",e.jsx("span",{className:"text-[#6D3DF0] ml-0.5",children:"*"})]}),e.jsx("button",{type:"button",onClick:()=>l("forget-password"),className:"text-[11px] sm:text-[12px] text-[#6D3DF0] font-medium hover:underline bg-transparent border-0 cursor-pointer",children:"Forgot password?"})]}),e.jsx($e,{name:"password",id:"employer-login-password",value:r.values.password,onChange:r.handleChange,onBlur:r.handleBlur,placeholder:"Enter your password",autoComplete:"current-password",disabled:d}),r.touched.password&&r.errors.password&&e.jsx("p",{className:"text-[#f03d3d] text-[11px] sm:text-[12px]",children:r.errors.password})]}),A&&e.jsx("p",{className:"text-[#f03d3d] text-[11px] sm:text-[12px]",children:A}),e.jsx(Q,{onClick:()=>M(!1),disabled:d||!r.values.email||!r.values.password||!!r.errors.email||!!r.errors.password,loading:d,children:d?"Signing in...":"Sign in"})]}),u==="otp"&&e.jsxs(e.Fragment,{children:[e.jsx(qe,{children:"We'll send a 6-digit one-time code to your email. It's valid for 10 minutes."}),e.jsx(Q,{onClick:z,disabled:b||!r.values.email||!!r.errors.email,loading:b,children:b?"Sending...":"Send sign-in code"})]})]}),e.jsxs("div",{className:"mt-6 text-center text-[12px] sm:text-[13px] text-[#8489A0]",children:["Don't have an account?"," ",e.jsx("button",{onClick:()=>n("/employer-sign-up"),className:"text-[#1A1230] font-semibold underline underline-offset-2 bg-transparent border-0 cursor-pointer hover:text-[#6D3DF0] transition-colors",children:"Get started"})]})]})})})]})]})}),f==="email-verify"?e.jsx(Se,{email:r.values.email}):e.jsx(Ve,{setStep:l,step:f})]})};export{Ge as default};
3//# sourceMappingURL=EmployerLogin-DOo8kQCe.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.