1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{6170:(e,t,a)=>{"use strict";a.d(t,{H:()=>o});var r=a(66170),s=a(83109);let o=(0,r.vt)(e=>({user:(()=>{let e=(0,s.getCookie)("jobSeekerUser");if(e)try{return JSON.parse(e)}catch(e){}return null})(),setUser:t=>{((0,s.getCookie)("token")||t)&&(t&&(0,s.setCookie)("jobSeekerUser",JSON.stringify(t),{maxAge:2592e6,path:"/"}),e({user:t}))},resetUser:(t=!1)=>{((0,s.getCookie)("token")||t)&&((0,s.setCookie)("jobSeekerUser","",{maxAge:-1,path:"/"}),e({user:null}))}}))},12214:(e,t,a)=>{"use strict";a.d(t,{Vr:()=>s,dK:()=>o});var r=a(92920);function s(e){return(0,r.c)(e)}let o={BUTTON:"common.buttons",FORM:"common.form",TOAST:"common.toast",VALIDATION:"common.validations",TABLE_COLUMNS:"common.tableColumns",NOT_FOUND:"common.notFound",NAVBAR:"layout.navbar",FOOTER:"layout.footer",SIDEBAR:"layout.sidebar",HOMEPAGE:"landingPage.home",TESTIMONIAL:"landingPage.testimonials",ABOUT_US:"landingPage.aboutUs",PRICING:"landingPage.pricing",CONTACT_US:"landingPage.contactUs",FEEDBACK:"landingPage.feedback",PRIVACY_POLICY:"landingPage.privacyPolicy",TERMS_DATA:"landingPage.termsData",FAQ:"landingPage.faq",LANDINGPAGE_EXTRAS:"landingPage.extras",LOGINPAGE:"auth.loginPage",REGISTER:"auth.register",CONCENT:"auth.concent",ANALYTIC:"dashboard.analytic",DASHBOARD:"dashboard.dashboard",DASHBOARD_WIDGETS:"dashboard.widgets",HISTORY:"dashboard.history",CUSTOMER:"dashboard.customer",CONTACT:"dashboard.contact",TEXTEDITOR:"dashboard.textEditor",EVENTS:"events.events",CALENDAR:"events.calendar",FILE_UPLOADER:"utility.fileuploader",TOOLTIP:"utility.tooltip",POPUP:"utility.popup",ADD_CANDIDATE:"candidate.addCandidates",CANDIDATES_PAGE:"candidate.CandidatesPage",CANDIDATES:"candidate.candidates",RESUME_EDITOR:"candidate.resumeEditor",CANDIDATE_GAMIFIED_FLOW:"candidate.gamifiedFlow",JOB:"job.job",ADD_JOB:"job.addjob",QUESTIONNAIRE:"job.questionnaire",IS_MANDATORY:"job.isMandatory",PROFILE_DROPDOWN:"navigation.profiledropDown",LOCALE_SWITCHER:"navigation.LocaleSwitcher",KANBAN:"kanban.kanban",LABEL:"inbox.label",MAILBOX:"inbox.mailbox",CAREER:"career.career",CAREER_EDITOR:"career.career.editor",USER_CAREER_PAGE:"career.userCareerPage",SETTINGS:"settings.settings",PERMISSION_SECTION:"settings.permissionSection",CV:"cv.cvPage",CV_PRICING:"cv.pricing",JOBSEEKER_DASHBOARD:"cv.jobseekerDashboard",CV_BUILDER:"cv.cvBuilder",CAREER_HUB:"careerHub.careerHub",PROGRESSBAR:"cv.cvStrength",CV_SHARE:"cv.cvShare",FAQ_PAGE:"cv.cvFaq",JD_MATCH:"cv.jdMatch",PAYMENT_PAGE:"payment.paymentPage",VALIDS:"pages.valids",NEED_HELP:"pages.needHelp",TEMPLATE_HOME_PAGE:"pages.template",LANDING_PAGE:"cvShare.landingPage",CV_RECENT_PAGE:"cvShare.cvRecentPage",INTERVIEW:"interview.interview",COOKIE_POLICY:"legal.cookiePolicy",DPA:"legal.dpa",PRIVACY_POLICY_EU:"legal.privacyPolicyEu",PRIVACY_POLICY_IN:"legal.privacyPolicyIn",RIGHT_OF_WITHDRAWAL:"legal.rightOfWithdrawal",TERMS_OF_USE:"legal.termsOfUse"}},15422:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(95155);a(12115);var s=a(77341),o=a(86190);let i=function({loading:e=!1,handler:t,text:a,icon:i,iconPlacement:l="left",variant:n="default",className:d,type:c="button",disabled:g=!1,transparent:u=!1}){let b;return(0,r.jsx)(s.$,{type:c,loading:e,disabled:e||g,className:(0,o.cn)("w-full flex justify-center items-center gap-2 !py-[5px] regular-text !h-auto rounded-[32px]","default"===n&&!u&&"bg-[#407BFF] text-white hover:bg-[#4d85f5]",u&&"bg-transparent text-[#407BFF] hover:bg-[#e6f0ff]",d),onClick:t,variant:n,children:(b=i&&(0,r.jsx)("span",{className:(0,o.cn)("flex items-center","string"==typeof i?"":"w-5 h-5"),children:"string"==typeof i?(0,r.jsx)("img",{src:i,alt:"button-icon",className:"w-5 h-5 object-contain"}):i}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:["left"===l&&b,a,"right"===l&&b]}))})}},19836:()=>{},23450:(e,t,a)=>{Promise.resolve().then(a.bind(a,87443))},25932:(e,t,a)=>{"use strict";a.d(t,{F:()=>s,e:()=>i});var r=a(60284);let s=(e,t={})=>{let a=window.location.hostname;r.Qy.includes(a)&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t}))},o="__skilliozGtmOnceEvents",i=(e,t={},a={})=>{let r=a.key||e,i=`${r}::${window.location.pathname}`;return window[o]=window[o]||new Set,!window[o].has(i)&&(s(e,t),window[o].add(i),!0)}},32693:(e,t,a)=>{"use strict";a.d(t,{OU:()=>b,SL:()=>x,ZO:()=>h});var r=a(83109),s=a(36074);
1let o="interview",i="cvBuilder",l="cvRoast",n="/career-hub/cv-roast?open=true&another=false",d={"/career-hub/mock-interview":o,"/mock-interview":o,"/career-hub/cv-builder":i,"/cv/home":i,"/login?product=jobseeker":i,"/career-hub/cv-roast":l,[n]:l},c={interview:o,jobseeker:i};function g(e){return c[e]?c[e]:d[(0,r.getCookie)("lastVisitedPage")]||null}function u(e){return`/onboarding?product=${e}`}function b({productParam:e,hasJobSeekerProfile:t}){let a=g(e);return a?t?a===o?(0,s.b)()||"/interview":a===l&&(0,r.getCookie)("lastVisitedPage")===n?n:"/cv/home":u(a):"/"}function x({productParam:e}){let t=g(e);return t?u(t):"/onboarding"}function h(e){return e===o?(0,s.b)()||"/interview":e===l?n:"/cv/home"}},36074:(e,t,a)=>{"use strict";a.d(t,{b:()=>o});var r=a(83109);let s="/interview";function o(){let e=(0,r.getCookie)("redirectAfterLogin");if(!e||"string"!=typeof e)return null;let t=null;try{let a=new URL(e,window.location.origin);a.origin===window.location.origin&&(t=`${a.pathname}${a.search}`)}catch{t=null}return t&&(t===s||t.startsWith(`${s}/`))?((0,r.deleteCookie)("redirectAfterLogin",{path:"/"}),t):null}},52197:(e,t,a)=>{"use strict";a.d(t,{c:()=>l});var r=a(66170),s=a(79198),o=a(89003);let i={getItem:async e=>await (0,o.Jt)(e)||null,setItem:async(e,t)=>{await (0,o.hZ)(e,t)},removeItem:async e=>{await (0,o.yH)(e)}},l=(0,r.vt)((0,s.Zr)(e=>({roastResponse:null,entitlementId:null,isFraudChecked:!1,roastCvId:null,step:1,entitlementIdForCreateCv:null,entitlementIdForFixCv:null,jobSeekerData:null,isLoginFixedCv:!1,isJdOpen:!1,setEntitlementIdForCreateCv:t=>e({entitlementIdForCreateCv:t}),setIsJdOpen:t=>e({isJdOpen:t}),setEntitlementIdForFixCv:t=>e({entitlementIdForFixCv:t}),setCvFile:t=>e({cvFile:t}),setCvFileName:t=>e({cvFileName:t}),setRoastResponse:t=>e({roastResponse:t}),setEntitlementId:t=>e({entitlementId:t}),setIsFraudChecked:t=>e({isFraudChecked:t}),setRoastCvId:t=>e({roastCvId:t}),setStep:t=>e({step:t}),setJobSeekerData:t=>e({jobSeekerData:t}),isFromFixCv:!1,isFromCreateCv:!1,setIsFromFixCv:t=>e({isFromFixCv:t}),setIsFromCreateCv:t=>e({isFromCreateCv:t}),setIsLoginFixedCv:t=>e({isLoginFixedCv:t}
1),uid:null,setuid:t=>e({uid:t}),cameFromEditor:!1,setCameFromEditor:t=>e({cameFromEditor:t}),resetRoaster:()=>e({cvFile:null,cvFileName:"",roastResponse:null,entitlementId:null,isFraudChecked:!1,roastCvId:null,step:1,entitlementIdForCreateCv:null,entitlementIdForFixCv:null,jobSeekerData:null,isFromFixCv:!1,isFromCreateCv:!1,isLoginFixedCv:!1,isJdOpen:!1,cameFromEditor:!1})}),{name:"cv-roaster-storage-v2",storage:(0,s.KU)(()=>i)}))},59547:(e,t,a)=>{"use strict";a.d(t,{AX:()=>d,Ay:()=>p,CJ:()=>c,GH:()=>x,JD:()=>b,VY:()=>s,_O:()=>m,gr:()=>h,my:()=>g,nT:()=>u});var r=a(14860);let s="https://api.skillioz.com",o=r.A.create({baseURL:s,timeout:6e4,headers:{"Content-Type":"application/json","ngrok-skip-browser-warning":"true"}});o.interceptors.request.use(e=>e,e=>Promise.reject(e));let i=[502,503,504],l=[500,1500],n=l.length;o.interceptors.response.use(e=>e,async e=>{let t,{config:a,response:r}=e;r?.status===429&&(e.retryAfterSeconds=r?.data?.retryAfter);let s=!r,d=!!r&&i.includes(r.status);if(a&&("get"===(t=(a.method||"get").toLowerCase())||"head"===t)&&(s||d)&&(a.__retryCount=a.__retryCount||0,a.__retryCount<n)){let e,t=a.__retryCount;return a.__retryCount+=1,await (e=l[t],new Promise(t=>setTimeout(t,e))),o(a)}return Promise.reject(e)});let d=(e,t,a)=>o.post(e,t,{headers:a?{token:a}:{}}),c=(e,t,a={})=>o.get(e,{headers:t?{token:`${t} `}:{},...a}),g=(e,t,a)=>a?o.patch(e,a,{headers:t?{token:t}:{}}):o.patch(e,{},{headers:t?{token:t}:{}}),u=(e,t,a)=>a?o.delete(e,{headers:t?{token:t}:{},data:a}):o.delete(e,{headers:t?{token:t}:{}}),b=(e,t,a)=>o.put(e,t,{headers:a?{token:a}:{}}),x=(e,t,a,r=!1)=>o.post(e,t,{headers:{"Content-Type":"multipart/form-data",token:a},timeout:12e4}),h=(e,t,a)=>
1o.post(e,t,{headers:{"Content-Type":"multipart/form-data",token:a,"x-no-compression":1,"Cache-Control":"no-cache"},transitional:{clarifyTimeoutError:!0},responseType:"stream",timeout:12e4}),m=async(e,t,a)=>fetch((s||"")+e,{method:"POST",headers:{token:a,"x-no-compression":1,"Cache-Control":"no-cache"},body:t,signal:AbortSignal.timeout(12e4)}),p=o},60284:(e,t,a)=>{"use strict";a.d(t,{K_:()=>i,Qy:()=>r});let r=["skillioz.com","www.skillioz.com"],s=["/"],o=["/about-us","/contact-us","/faq","/feedback","/privacy-policy","/terms-and-conditions","/ats","/career-hub","/resource-lab","/cv-template","/cv/cvpricing","/aboutUs","/ContactUs","/privacypolicy","/terms-and-condition","/terms-of-use","/privacy-policy-eu","/privacy-policy-india","/cookie-policy","/right-of-withdrawal","/dpa"];function i(e=""){return!!s.includes(e)||o.some(t=>e===t||e.startsWith(`${t}/`))}},77341:(e,t,a)=>{"use strict";a.d(t,{$:()=>n,r:()=>l});var r=a(95155),s=a(12115),o=a(85792),i=a(86190);let l=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-sm font-medium ring-offset-white transition-colors disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-slate-950",{variants:{variant:{default:"bg-black flex justify-center items-center text-slate-50 hover:bg-primary dark:bg-primary dark:text-slate-900 dark:hover:bg-primary",destructive:"bg-red-500 text-slate-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-slate-50 dark:hover:bg-red-900/90",outline:"border border-gray-200 bg-white hover:bg-slate-100 hover:text-slate-900 dark:border-slate-800 dark:bg-card dark:hover:bg-slate-800 dark:hover:text-slate-50",secondary:"bg-slate-100 text-slate-900 hover:bg-slate-100/80 dark:bg-slate-800 dark:text-slate-50 dark:hover:bg-slate-800/80",ghost:"hover:bg-slate-100 hover:text-slate-900 dark:hover:bg-slate-800 dark:hover:text-slate-50",link:"text-slate-900 underline-offset-4 hover:underline dark:text-slate-50",paused:"text-white bg-[#f5c022] dark:text-slate-900",danger:"text-white bg-[#DE2A3E] dark:text-slate-900",refresh:"bg-white hover:bg-white",plusIcon:"border border-gray-200 resume-lima-bg-ten-color hover:bg-slate-200 hover:text-slate-900 dark:border-slate-800 dark:bg-card dark:hover:bg-slate-800 dark:hover:text-slate-50"},size:{default:"w-fit h-[30px] px-3 ",sm:"h-[30px] px-3 ",lg:"rounded-md h-[30px] px-3 ",icon:"h-10 w-10",miniicon:"h-8 w-8",sidebar:"font-[300] subheading-text h-[30px] px-3",richsmallbtn:"h-8 w-8 p-1 w-fit h-fit",combobox:"h-[40px]",resumefit:"h-fit mx-1 hover:bg-[#F8F8F8] px-1 resume-subheading-text"}},defaultVariants:{variant:"default",size:"default"}}),n=s.forwardRef(({className:e,variant:t,size:a,loading:s,asChild:n=!1,...d},c)=>{let g=n?o.DX:"button";return(0,r.jsx)(g,{className:(0,i.cn)("cursor-pointer",l({variant:t,size:a,className:e})),ref:c,disabled:!!s&&s,...d})});n.displayName="Button"},86190:(e,t,a)=>{"use strict";a.d(t,{F:()=>i,cn:()=>o,g:()=>l});var r=a(49592),s=a(23412);function o(...e){return(0,s.QP)((0,r.$)(e))}function i(e,t={}){let{variants:a={},defaultVariants:r={},compoundVariants:s=[]}=t;return (t={})=>{let{className:i,...l}=t,n={...r,...l};return o(e,Object.keys(a).map(e=>a[e]?.[n[e]]),s.filter(({className:e,class:t,...a})=>Object.entries(a).every(([e,t])=>Array.isArray(t)?t.includes(n[e]):n[e]===t)).map(e=>e.className??e.class),i)}}let l=e=>e.charAt(0).toLowerCase()+e.slice(1).toLowerCase()},87443:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>N});var r=a(95155),s=a(39092),o=a.n(s),i=a(73321),l=a(12115),n=a(12214);a(19836);var d=a(83109),c=a(32693),g=a(59547),u=a(3147),b=a(98500),x=a.n(b),h=a(64272),m=a(5772),p=a(13761),f=a(7915),v=a(15411),w=a(6170),j=a(25932),C=a(52197),y=a(15422);let k="login-no-autofill-bg w-full px-4 rounded-lg normalView !text-[12px] bg-transparent border !border-[#374151] !h-[40px] !text-white placeholder:text-gray-400 ";function P({loginData:e,onFieldChange:t,isPasswordVisible:a,onTogglePasswordVisible:s,onForgotPassword:i,onSubmit:l,onGoogleLogin:d,loading:c,googleLoading:g,isFormIncomplete:u,authQuery:b}){let h=(0,n.Vr)(n.dK.LOGINPAGE),w=(0,n.Vr)(n.dK.REGISTER);return(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d relative min-h-screen w-full md:w-[90%] mx-auto flex items-center justify-center lg:justify-between pt-20 bg-[#060D1E] px-8 lg:px-24",children:[(0,r.jsx)(x(),{href:"/","aria-label":h("directLoginPage.skilliozLogoAlt"),className:"absolute top-6 lg:top-8 left-8 lg:left-24",children:(0,r.jsx)(m.default,{src:"/Images/logoLanding.svg",alt:h("directLoginPage.skilliozLogoAlt"),width:100,height:32,priority:!0,style:{shapeRendering:"geometricPrecision"}})}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d hidden lg:flex flex-col justify-center flex-1",children:[(0,r.jsxs)("h1",{className:"jsx-247ebd81f0b5959d text-[35px] font-[500] text-white leading-tight",children:[w("leftPanel.headingPart1")," ",(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d bg-gradient-to-r from-[#6B8EF5] to-[#9B6FD4] bg-clip-text text-transparent",children:w("leftPanel.headingPart2")})]}),(0,r.jsx)("p",{className:"jsx-247ebd81f0b5959d mt-5 max-w-md text-gray-400",children:w("leftPanel.subtext")})]}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d w-full max-w-md rounded-3xl border border-white/10 bg-[#121826] p-8",children:[(0,r.jsx)("h2",{className:"jsx-247ebd81f0b5959d font-semibold text-center text-[16px] text-white",children:w("loginPage.cardHeading")}),(0,r.jsx)("p",{className:"jsx-247ebd81f0b5959d text-center mt-2 text-[12px] text-gray-400",children:w("loginPage.cardSubtext")}),(0,r.jsxs)("form",{autoComplete:"off",autoSave:"off",className:"jsx-247ebd81f0b5959d space-y-4 mt
1-8",children:[(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d",children:[(0,r.jsxs)("label",{htmlFor:"email",className:"jsx-247ebd81f0b5959d block text-[12px] mb-1 text-gray-300",children:[w("loginPage.emailLabel")," ",(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d text-red-500",children:"*"})]}),(0,r.jsx)(p.A,{placeholder:w("loginPage.emailPlaceholder"),onChange:e=>t("email",e.target.value),value:e.email,name:"email",autoComplete:"off",type:"email",className:k})]}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d",children:[(0,r.jsxs)("label",{htmlFor:"password",className:"jsx-247ebd81f0b5959d block text-[12px] mb-1 text-gray-300",children:[w("loginPage.passwordLabel")," ",(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d text-red-500",children:"*"})]}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d relative",children:[(0,r.jsx)(p.A,{type:a?"text":"password",placeholder:w("loginPage.passwordPlaceholder"),name:"password",id:"password",autoComplete:"off",onChange:e=>t("password",e.target.value),value:e.password,className:`${k} pr-10`}),(0,r.jsx)("button",{type:"button","aria-label":h(a?"hidePassword":"showPassword"),onClick:s,className:"jsx-247ebd81f0b5959d absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300",children:a?(0,r.jsx)(v.A,{size:16,color:"white"}):(0,r.jsx)(f.A,{size:16,color:"white"})})]}),(0,r.jsx)("div",{className:"jsx-247ebd81f0b5959d flex justify-end mt-2",children:(0,r.jsx)("span",{onClick:i,className:"jsx-247ebd81f0b5959d cursor-pointer text-blue-500 text-[12px]",children:w("loginPage.forgotPassword")})})]}),(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),l()},disabled:c||g||u,className:"jsx-247ebd81f0b5959d w-full rounded-full font-semibold cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed bg-white !h-[35px] text-black text-[12px] hover:bg-gray-100",children:w(c?"loginPage.loadingButton":"loginPage.loginButton")}),(0,r.jsx)("div",{className:"jsx-247ebd81f0b5959d text-center text-gray-500 text-[12px]",children:w("loginPage.orDivider")}),(0,r.jsx)(y.A,{transparent:!0,handler:d,text:w("loginPage.continueWithGoogle"),icon:"/Images/LoginEmailSvg.svg",className:"!py-[10px] rounded-[32px] !h-[35px] border !border-[#374151] !text-white hover:!bg-transparent"}),(0,r.jsx)("div",{className:"jsx-247ebd81f0b5959d w-full text-center mt-4",children:(0,r.jsxs)("p",{className:"jsx-247ebd81f0b5959d text-[12px] text-gray-600",children:[w("newtoSkillioz")," ",(0,r.jsx)(x(),{href:`/register${b}`,className:"text-blue-500 hover:text-blue-500",children:w("createanaccount")})]})})]})]}),(0,r.jsx)(o(),{id:"247ebd81f0b5959d",children:".login-no-autofill-bg:-webkit-autofill,.login-no-autofill-bg:-webkit-autofill:hover,.login-no-autofill-bg:-webkit-autofill:focus,.login-no-autofill-bg:-webkit-autofill:active{transition:background-color 9999s ease-in-out 0s,color 9999s ease-in-out 0s,box-shadow 9999s ease-in-out 0s!important;-webkit-text-fill-color:currentColor!important;caret-color:currentColor}"})]})}let E="login-no-autofill-bg w-full !rounded-full !px-4 !h-[40px] !text-[13px] !bg-white border !border-[#E5E7EB] !text-[#1F2937] placeholder:!text-[#9CA3AF] hover:!border-[#C7C9D9] focus:!border-[#2E2B9F] focus-within:!border-[#2E2B9F] !shadow-none",N=()=>{let e=(0,i.useRouter)();(0,h.wA)();let t=(0,n.Vr)(n.dK.LOGINPAGE),[a,s]=(0,l.useState)(!1),[b,y]=(0,l.useState)(!1),[k,N]=(0,l.useState)({email:"",password:""}),[A,I]=(0,l.useState)(!1),[L,F]=(0,l.useState)(!0),{setUser:S}=(0,w.H)(),O=(0,i.useSearchParams)().get("product"),_="jobseeker"===O||"interview"===O,T="ats"===O,R=_?`?product=${O}`:T?"?product=ats":"",D=!k.email.trim()||!k.password.trim(),{setEntitlementIdForCreateCv:B,setEntitlementIdForFixCv:G}=(0,C.c)(),U=L?{maxAge:2592e6,path:"/"}:{path:"/"},H=t=>{e.push(t)},V=e=>{window.location.assign(e)};async function M(){try{s(!0),(0,d.deleteCookie)("limitEndedPopupSeen");let e=await (0,g.AX)(`/auth/google?consent=true${T?"&product=ats":""}`);(0,d.setCookie)("authIntent","login",{maxAge:600,path:"/"}),O?(0,d.setCookie)("authProduct",O,{maxAge:600,path:"/"}):(0,d.deleteCookie)("authProduct",{path:"/"}),(0,d.setCookie)("authType","google",{maxAge:2592e6,path:"/"}),window.location.assign(e.data.data),B(null),G(null)}catch(e){u.oR.error(t("directLoginPage.googleLoginError"))}finally{s(!1)}}let z=(e,t)=>{N(a=>({...a,[e]:t}))},J=async e=>{try{let t=await (0,g.CJ)("/auth",e),a=t?.data?.data;if(!a?.user)return;let r={authType:a.authType,email:a.email,name:a.name,profilePic:a.profilePic,authId:a.authId,...a.user};delete r.subscriptionStatus,delete r.config,delete r.roleId,(0,d.setCookie)("user",JSON.stringify(r),U)}catch{}},$=async()=>{try{y(!0);let e=await (0,g.AX)("/auth/login",{email:k.email,password:k.password,authType:"normal"});if(200===e.status||201===e.status){B(null),G(null),y(!1),(0,j.F)("unified_login",{method:"email",email:e.data.data.email,source:"unified_login"}),u.oR.success(t("directLoginPage.loggedInSuccessfully")),(0,d.setCookie)("token",e.data.data.token,U),(0,d.setCookie)("authType","normal",U);let a=e.data?.data?.userData,r=e.data?.data?.jobSeekerData;if(a){let t=a?.config;delete a?.subscriptionStatus,(0,d.setCookie)("userConfig",JSON.stringify(t),U),delete a.config,(0,d.setCookie)("roleCookie",JSON.stringify(a?.roleId),U),delete a.roleId;let r={authType:e.data.data?.auth?.authType,email:e.data.data?.auth?.email,name:e.data.data?.auth?.name,profilePic:e.data.data?.auth?.profilePic,authId:e.data.data?.auth?._id,...a};(0,d.setCookie)("user",JSON.stringify(r),U)}if(r){let t={authType:e.data.data?.auth?.authType,email:e.data.data?.auth?.email,name:e.data.data?.auth?.name,profilePic:e.data.data?.auth?.profilePic,authId:e.data.data?.auth?._id,...r};S(t),(0,d.setCookie)("jobSeekerUser",JSON.stringify(t),U)}let s=e.data.data;if(isLoginFixedCv&&s.jobSeekerProfileExist){setIsLoginFixedCv(!1),V("/cv/cv-process");return}if(T){s.atsProfileExist&&await J(s.token),V(s.atsProfileExist?"/dashboard":"/onboarding?product=ats");return}V((0,c.OU)({productParam:O,hasJobSeekerProfile:s.jobSeekerProfileExist}))}}catch(e){y(!1),u.oR.error(e?.response?.data?.message||t("directLoginPage.somethingWentWrong"))}};return T?(0,r.jsx)(P,{loginData:k,onFieldChange:z,isPasswordVisible:A,onTogglePasswordVisible:()=>I(e=>!e),onForgotPassword:()=>H(`/login/password/forgot${R}`),onSubmit:$,onGoogleLogin:M,loading:b,googleLoading:a,isFormIncomplete:D,authQuery:R}):(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d relative flex min-h-screen w-full bg-white",children:[(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d relative hidden min-h-[720px] w-1/2 flex-col overflow-hidden bg-white bg-[radial-gradient(ellipse_at_center,rgba(252,239,232,0.9)_0%,rgba(252,246,243,0)_100%)] px-12 pt-8 lg:flex xl:px-16",children:[(0,r.jsx)("svg",{viewBox:"0 0 56 1000",preserveAspectRatio:"none","aria-hidden":"true",className:"jsx-247ebd81f0b5959d pointer-events-none absolute right-0 top-0 z-10 h-full w-14",children:(0,r.jsx)("path",{d:"M56 0 C 50 260, 22 520, 12 1000 L 56 1000 Z",fill:"#FFFFFF",className:"jsx-247ebd81f0b5959d"})}),(0,r.jsx)(x(),{href:"/","aria-label":t("directLoginPage.skilliozLogoAlt"),children:(0,r.jsx)(m.default,{src:"/Images/skillioz-logo-2026.svg",alt:t("directLoginPage.skilliozLogoAlt"),width:104,height:40,priority:!0,style:{shapeRendering:"geometricPrecision"}})}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d mt-16 max-w-[440px]",children:[(0,r.jsx)("p",{className:"jsx-247ebd81f0b5959d text-[10px] font-medium uppercase tracking-[0.08em] text-[#9CA3AF]",children:t("directLoginPage.leftPanelEyebrow")}),(0,r.jsxs)("h1",{className:"jsx-247ebd81f0b5959d mt-3 text-[34px] font-semibold leading-[1.2] text-[#111827]",children:[t("directLoginPage.leftPanelHeadingPart1"),(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d block text-[#4F46E5]",children:t("directLoginPage.leftPanelHeadingPart2")})]}),(0,r.jsx)("p",{className:"jsx-247ebd81f0b5959d mt-4 max-w-[300px] text-[13px] leading-[1.6] text-[#6B7280]",children:t("directLoginPage.leftPanelSubtext")})]}),(0,r.jsx)(m.default,{src:"/Images/loginpage_illustration.svg",alt:"",width:719,height:496,priority:!0,className:"absolute bottom-0 left-0 block h-auto w-[74.8%] max-w-[718.48px]"})]}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d relative flex w-full items-center justify-center px-6 py-24 lg:w-1/2",children:[(0,r.jsx)(x(),{href:"/","aria-label":t("directLoginPage.skilliozLogoAlt"),className:"absolute left-6 top-6 lg:hidden",children:(0,r.jsx)(m.default,{src:"/Images/skillioz-logo-2026.svg",alt:t("directLoginPage.skilliozLogoAlt"),width:104,height:40,priority:!0})}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d w-full max-w-[400px]",children:[(0,r.jsx)("h2",{className:"jsx-247ebd81f0b5959d text-center text-[22px] font-semibold leading-tight text-[#111827]",children:t("directLoginPage.cardHeading")}),(0,r.jsxs)("form",{autoComplete:"off",autoSave:"off",className:"jsx-247ebd81f0b5959d mt-8 space-y-5",children:[(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d",children:[(0,r.jsx)("label",{htmlFor:"email",className:"jsx-247ebd81f0b5959d mb-1.5 block text-[12px] text-[#4B5563]",children:t("directLoginPage.emailLabel")}),(0,r.jsx)(p.A,{id:"email",placeholder:t("directLoginPage.emailPlaceholder"),onChange:e=>z("email",e.target.value),value:k.email,name:"email",autoComplete:"off",type:"email",className:E})]}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d",children:[(0,r.jsx)("label",{htmlFor:"password",className:"jsx-247ebd81f0b5959d mb-1.5 block text-[12px] text-[#4B5563]",children:t("directLoginPage.passwordLabel")}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d relative",children:[(0,r.jsx)(p.A,{type:A?"text":"password",placeholder:t("directLoginPage.passwordPlaceholder"),name:"password",id:"password",autoComplete:"off",onChange:e=>z("password",e.target.value),value:k.password,className:`${E} !pr-10`}),(0,r.jsx)("button",{type:"button","aria-label":A?t("hidePassword"):t("showPassword"),onClick:()=>I(e=>!e),className:"jsx-247ebd81f0b5959d absolute right-4 top-1/2 -translate-y-1/2 text-[#111827]",children:A?(0,r.jsx)(f.A,{size:16}):(0,r.jsx)(v.A,{size:16})})]})]}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d flex items-center justify-between",children:[(0,r.jsxs)("label",{className:"jsx-247ebd81f0b5959d flex cursor-pointer select-none items-center gap-2",children:[(0,r.jsx)("input",{type:"checkbox",checked:L,onChange:e=>F(e.target.checked),className:"jsx-247ebd81f0b5959d sr-only"}),(0,r.jsx)("span",{className:`jsx-247ebd81f0b5959d flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-[4px] border-[1.5px] transition-all duration-150 ${L?"border-[#2E2B9F] bg-[#2E2B9F]":"border-gray-300 bg-white hover:border-[#2E2B9F]"}`,children:L&&(0,r.jsx)("svg",{viewBox:"0 0 10 8",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"jsx-247ebd81f0b5959d h-2.5 w-2.5 text-white",children:(0,r.jsx)("path",{d:"M1 4l2.5 2.5L9 1",className:"jsx-247ebd81f0b5959d"})})}),(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d text-[12px] text-[#374151]",children:t("directLoginPage.rememberMe")})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{H(`/login/password/forgot${R}`)},className:"jsx-247ebd81f0b5959d cursor-pointer text-[12px] text-[#3B5BDB] hover:underline",children:t("directLoginPage.forgotPassword")})]}),(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),$()},disabled:b||a||D,className:"jsx-247ebd81f0b5959d h-[40px] w-full cursor-pointer rounded-full bg-[#2E2B9F] text-[14px] font-medium text-white transition-colors hover:bg-[#25228A] disabled:cursor-not-allowed disabled:opacity-60",children:b?t("directLoginPage.loading"):t("directLoginPage.loginButton")}),(0,r.jsxs)("div",{className:"jsx-247ebd81f0b5959d flex items-center gap-3 text-[11px] uppercase text-[#9CA3AF]",children:[(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d h-px flex-1 bg-[#E5E7EB]"}),t("directLoginPage.orDivider"),(0,r.jsx)("span",{className:"jsx-247ebd81f0b5959d h-px flex-1 bg-[#E5E7EB]"})]}),(0,r.jsxs)("button",{type:"button",onClick:M,disabled:a||b,className:"jsx-247ebd81f0b5959d flex h-[40px] w-full cursor-pointer items-center justify-center gap-2.5 rounded-full bg-[#F3F3F3] text-[14px] font-medium text-[#1F2937] transition-colors hover:bg-[#
1EBEBEB] disabled:cursor-not-allowed disabled:opacity-60",children:[(0,r.jsx)(m.default,{src:"/Images/LoginEmailSvg.svg",alt:"",width:18,height:18}),t("directLoginPage.continueWithGoogle")]}),(0,r.jsxs)("p",{className:"jsx-247ebd81f0b5959d text-center text-[12px] text-[#6B7280]",children:[t("directLoginPage.noAccount")," ",(0,r.jsx)(x(),{href:`/register${R}`,className:"text-[#3B5BDB] hover:underline",children:t("directLoginPage.createOne")})]})]})]})]}),(0,r.jsx)(o(),{id:"247ebd81f0b5959d",children:".login-no-autofill-bg:-webkit-autofill,.login-no-autofill-bg:-webkit-autofill:hover,.login-no-autofill-bg:-webkit-autofill:focus,.login-no-autofill-bg:-webkit-autofill:active{transition:background-color 9999s ease-in-out 0s,color 9999s ease-in-out 0s,box-shadow 9999s ease-in-out 0s!important;-webkit-text-fill-color:currentColor!important;caret-color:currentColor}"})]})}}},e=>{e.O(0,[6389,5552,9736,3147,8437,8343,6807,159,8500,2146,7533,6662,9182,3046,5919,3761,4272,8330,8441,3794,7358],()=>e(e.s=23450)),_N_E=e.O()}]);
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.