PageSourceSearch

https://app.nxtjob.ai/_next/static/chunks/pages/ats-score-bbb6353ad6388dfe.js

js nxtjob.ai collected 2026-09-24 12:51:58 UTC 60,062 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a803acb-7a95-475b-9b7e-3cc42ab89359",e._sentryDebugIdIdentifier="sentry-dbid-0a803acb-7a95-475b-9b7e-3cc42ab89359")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9975],{6722:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eX});var l=s(94458),a=s(89477),r=s(47094),i=s.n(r),n=s(38129),o=s(52117),c=s(68658),d=s(26858),x=s(59834);s(40172);var u=s(43844),m=s(95624),h=s(28508),p=s(46091);o.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(o.version,"/pdf.worker.min.js");let f=[{text:"Loading your resume..."},{text:"Parsing your resume..."},{text:"Identifying core sections..."},{text:"Identifying your work experiences..."},{text:"Identifying other experiences..."},{text:"Identifying bullet points..."},{text:"Generating relevant metrics..."},{text:"Calculating scores..."},{text:"Personalizing recommendations..."},{text:"Personalizing report..."},{text:"Analyzing skillset..."},{text:"Generating summary..."},{text:"Highlighting achievements..."},{text:"Creating visualization..."},{text:"Generating insights..."},{text:"Refining recommendations..."},{text:"Reviewing report..."},{text:"Optimizing keywords..."},{text:"Assessing competencies..."},{text:"Enhancing readability..."}],v=function(){let e=(0,n.useRouter)(),[t,s]=(0,c.useState)(""),[r,v]=(0,c.useState)(""),[y,j]=(0,c.useState)({fileName:"",resumeText:""}),[g,b]=(0,c.useState)(null),[w,N]=(0,c.useState)(!1),S=async e=>{var t;let{target:s}=e,l=null==(t=s.files)?void 0:t[0];if(l){let e=new FileReader;e.onload=async e=>{let t=new Uint8Array(e.target.result),s=(0,o.getDocument)({data:t}),a=await s.promise,r=a.numPages,i="";for(let e=1;e<=r;e++){let t=await a.getPage(e);i+=(await t.getTextContent()).items.map(e=>e.str).join(" ")}i=(i=i.replace(/\n\s*\n/g,"\n")).replace(/\s\s+/g," "),j({fileName:null==l?void 0:l.name,resumeText:i});let n=new FileReader;n.onload=()=>{let e=n.result;localStorage.setItem("selectedFile",e)},n.readAsDataURL(l)},e.onerror=e=>{console.error("Error reading file:",e.target.error)},e.readAsArrayBuffer(l)}else j({fileName:"",resumeText:""})},k=async()=>{N(!0),localStorage.setItem("resumeText",JSON.stringify(y.resumeText)),localStorage.setItem("personalInfo",JSON.stringify({jobTitle:t,experience:r,referenceId:g})),e.push("/ats-score?step=2")};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.b,{loadingStates:f,loading:w,duration:3e3}),(0,l.jsx)("div",{className:"mt-10",children:(0,l.jsxs)("div",{className:"mt-8 w-[620px]",children:[(0,l.jsx)("div",{className:"mb-2 text-3xl font-bold",children:"Unlock your ATS Score"}),(0,l.jsx)("div",{className:"mb-10 text-base text-gray-500",children:"Upload your resume, define your target job title, and share your experience level. This step ensures our ATS Score Checker customizes its feedback for you."}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-sm leading-5 font-semibold mb-2.5  text-left",children:"Upload Resume"}),(0,l.jsx)("div",{className:"text-center p-2.5 ".concat(i().secondary_input," ").concat(i().secondary_input_hover),children:(0,l.jsxs)("label",{className:"cursor-pointer",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("div",{className:"p-2 bg-gray-200 rounded-full",children:(0,l.jsx)(d.YoE,{className:"text-sm text-gray-600"})}),(0,l.jsxs)("div",{children:["Choose pdf file ",(0,l.jsx)("span",{className:"font-medium cursor-pointer text-primary",children:"click to browse"})]})]}),(0,l.jsx)("input",{type:"file",className:"hidden",accept:".pdf",onChange:S,onMouseDown:e=>null===e.target})]})})]}),y.resumeText?(0,l.jsxs)("div",{className:"flex items-center w-full px-4 py-3 mt-6 text-base rounded-lg bg-gray-50 gap-x-4",children:[(0,l.jsx)("div",{className:"p-2 bg-green-100 rounded-full",children:(0,l.jsx)(x.HjD,{className:"text-green-500 "})}),(0,l.jsx)("div",{className:"font-medium",children:y.fileName}),(0,l.jsx)("div",{className:"ml-auto cursor-pointer",onClick:()=>j({fileName:"",resumeText:""}),children:(0,l.jsx)(a.A,{})})]}):null]}),(0,l.jsx)(m.p,{value:t,onChange:e=>{s(e.target.value)},placeholder:"Enter your job title ex: Software Developer",type:"text",secondary:!0,label:"Job Title",className:"my-6"}),(0,l.jsx)(h.A,{onChange:e=>{v(e)},value:r,data:["Entry-Level Professionals (0-5 years)","Mid-Career Professionals (5-15 years)","Senior Professionals (15-25 years)","Executives (25+ years)","Career Transition"],placeholder:"Select your experience",label:"Experience",secondary:!0,className:"mb-6"}),t&&r&&(null==y?void 0:y.fileName)?(0,l.jsx)(u.A,{className:"text-white text-base font-medium w-[150px] bg-secondary py-3 px-4 roun
1ded-lg",onClick:k,children:"Next"}):(0,l.jsx)(u.A,{className:"text-white text-base font-medium w-[150px] bg-secondary py-3 px-4 opacity-50 rounded-lg",children:"Next"})]})})]})};var y=s(94925),j=s.n(y),g=s(58843),b=s(43477);let w=async e=>{try{let t=await b.A.post("".concat(g.Ay.serverUrl,"/job/ats/score"),e,{headers:{"Content-type":"application/json"}});return null==t?void 0:t.data}catch(e){console.log(e)}};var N=s(19761),S=s(53983),k=s(17574);let C=()=>{let e=(0,n.useRouter)(),[t,s]=(0,c.useState)(!1),a=JSON.parse(localStorage.getItem("resumeText")),[r,i]=(0,c.useState)(""),o=async()=>{s(!0);let t=r.replace(/<[^>]*>?/gm,"");localStorage.setItem("jobDescription",t);let l=await w({jobDescription:r,resumeText:a});l.data&&((0,S.JD)((0,k.VG)(l.data)),e.push("/ats-score?step=3"),s(!1))};return(0,l.jsx)("div",{className:"mt-10",children:(0,l.jsxs)("div",{className:"mt-8 max-w-[820px] w-full",children:[(0,l.jsx)("div",{className:"mb-2 text-3xl font-bold",children:"Check your ATS Score"}),(0,l.jsx)("div",{className:"mb-10 text-base text-gray-500",children:"Upload your job description to get started. We will compare your resume with the job description"}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"min-h-[250px] bg-white w-full outline rounded-lg ",children:(0,l.jsx)("textarea",{className:"w-full min-h-[200px] resize-none h-full p-4 outline-none",placeholder:"Enter Job Description",value:r,onChange:e=>i(e.target.value)})}),"<p><br></p>"!==r&&""!==r?(0,l.jsx)("div",{className:"flex mt-4",children:t?(0,l.jsxs)(u.A,{className:"text-white  relative text-base font-medium w-[150px] bg-secondary py-3 px-4 rounded-lg",children:[(0,l.jsx)("span",{className:"opacity-0",children:"Submit"}),(0,l.jsx)("div",{className:"absolute inset-0",children:(0,l.jsx)(N.A,{className:"text-white"})})]}):(0,l.jsx)(u.A,{className:"text-white text-base font-medium w-[150px] bg-secondary py-3 px-4 rounded-lg",onClick:o,children:"Submit"})}):(0,l.jsx)("div",{className:"flex mt-4",children:(0,l.jsx)(u.A,{className:"text-white text-base font-medium w-[150px] bg-secondary py-3 px-4 opacity-50 rounded-lg",children:"Submit"})})]})]})})};var A=s(3308),D=s(70478),E=s(73811),I=s(51093),P=s(63849),T=s(71125),_=s(41701),L=s(37226),O=s(36433),R=s(16868),z=s(13526),F=s(77911),U=s.n(F),B=s(63610),J=s(18916),G=s(79328),M=s(87925),W=s(71704);let H=function(){return(0,l.jsx)("span",{class:"page_loader"})};var V=s(89411),q=s(83326);let Y=function(e){let{placeholder:t,docStyle:s,className:a,style:r,value:i=""}=e,n=(0,c.useRef)();return(0,c.useEffect)(()=>{n.current&&(n.current.textContent=null==i?void 0:i.trim())},[i]),(0,l.jsx)(q.P.div,{id:"editable_content",initial:{opacity:0}
1,animate:{opacity:1},style:{...r,zoom:V.J[null==s?void 0:s.fontSizeId],fontFamily:V.mw[s.fontFamilyId],lineHeight:"".concat(V.K_[s.lineHeightId]||100,"%"),wordSpacing:V.EM[s.wordSpacingId]||0},ref:n,className:"editable_content p-[2px] ".concat(a),"data-placeholder":t,"data-placeholder-color":V.Tj[s.colorId]||"#3865A1"})},Z=function(e){let{item:t,children:s}=e;return(0,l.jsx)("section",{id:t.id,className:"py-1 relative min-w-[160px] cursor-text rounded-md",children:s},t.id)},K=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),Q=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[t.displayProperties.title&&(0,l.jsx)(Y,{docStyle:a,placeholder:"What are you most proud of?",className:"text-sm font-bold",value:t.title}),(0,l.jsx)(K,{docStyle:a,placeholder:"Why are you proud of this achievement?",value:t.description})]})},X=function(e){let{section:t,placeholder:s,docStyle:a}=e;return(0,l.jsx)("div",{className:"border-b-[2px]",style:{borderColor:V.Tj[a.colorId]},children:(0,l.jsx)(Y,{docStyle:a,placeholder:s,className:"text-base font-medium leading-6",style:{color:V.Tj[a.colorId]},value:t.name})})},$=function(e){let{section:t,children:s,className:a,isOnboarding:r,docStyle:i}=e;return t.enabled&&(0,l.jsx)("section",{className:"px-2 relative cursor-text z-10 rounded-md  ".concat(a,"  ").concat(r?"border-2 bg-white border-primary":""),style:{paddingTop:"".concat(1.5*V.Hn[null==i?void 0:i.sectionSpacingId],"px"),paddingBottom:"".concat(1.5*V.Hn[null==i?void 0:i.sectionSpacingId],"px")},children:s})};var ee=s(42178);let et=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),es=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(Y,{docStyle:a,placeholder:"Certificate Name",className:"flex-1 text-sm font-semibold",value:t.title}),(0,l.jsxs)("div",{className:"flex items-center",children:[t.displayProperties.date&&(0,l.jsxs)("div",{className:"flex items-center",children:[t.displayProperties.startDate&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Start Date",className:"text-xxs resume-startdate",value:t.startDate}),(0,l.jsx)(Y,{docStyle:a,placeholder:"End Date",className:"text-xxs",value:t.endDate})]}),t.displayProperties.location&&(0,l.jsxs)("div",{className:"flex items-center ml-2",children:[(0,l.jsx)(x.eVO,{size:"10",color:V.Tj[a.colorId]}),(0,l.jsx)(Y,{docStyle:a,placeholder:"Location",className:"flex-1 ml-1 text-xxs",value:t.location})]})]})]}),t.displayProperties.url&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ee.AnD,{size:"10",color:V.Tj[a.colorId]}),(0,l.jsx)(Y,{docStyle:a,placeholder:"URL",className:"flex-1 ml-1 text-xxs",value:t.url})]}),t.displayProperties.description&&(0,l.jsx)(et,{docStyle:a,placeholder:"Which institution issued the certificate and when?",value:t.description})]})},el=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),ea=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[t.displayProperties.title&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Custom Title",className:"text-sm font-semibold flex-1",value:t.title}),t.displayProperties.date&&(0,l.jsxs)("div",{className:"flex items-center",children:[t.displayProperties.startDate&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Start Date",className:"text-xxs resume-startdate",value:t.startDate}),(0,l.jsx)(Y,{docStyle:a,placeholder:"End Date",className:"text-xxs",value:t.endDate})]})]}),t.displayProperties.description&&(0,l.jsx)(el,{docStyle:a,placeholder:"Custom Description",value:t.description})]})},er=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),ei=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(Y,{docStyle:a,placeholder:"Degree and Field of Study",className:"text-sm font-bold",value:t.degree}),(0,l.jsx)(Y,{docStyle:a,placeholder:"School or University",className:"text-xs font-semibold",value:t.institution})]}
1),t.displayProperties.gpa&&(0,l.jsxs)("div",{className:"pl-2 border-l border-gray-400",children:[(0,l.jsx)(Y,{docStyle:a,placeholder:"GPA",className:"text-xs text-center",value:t.gpaText}),(0,l.jsx)(Y,{docStyle:a,placeholder:"4.0 / 4.0",className:"pr-1 text-xs font-medium",value:t.gpa})]})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[t.displayProperties.date&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Y,{docStyle:a,placeholder:"Start Date",className:"text-xxs resume-startdate",value:t.startDate}),(0,l.jsx)(Y,{docStyle:a,placeholder:"End Date",className:"text-xxs",value:t.endDate})]}),t.displayProperties.location&&(0,l.jsxs)("div",{className:"flex items-center ml-2",children:[(0,l.jsx)(x.eVO,{size:"10",color:V.Tj[a.colorId]}),(0,l.jsx)(Y,{docStyle:a,placeholder:"Location",className:"flex-1 ml-1 text-xxs",value:t.location})]})]}),t.displayProperties.description&&(0,l.jsx)(er,{docStyle:a,placeholder:"What knowledge or experience did you acquire during your studies there?",value:t.description})]})};var en=s(28737),eo=s(85112),ec=s(16458);let ed=function(e){let{section:t,item:s,docStyle:a}=e;return(0,l.jsx)($,{section:t,className:"mb-2",docStyle:a,children:(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"Enter your name",className:"text-2xl font-bold",value:s.name}),s.displayProperties.title?(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"The Role you are applying for?",className:"text-base font-semibold",value:s.title}):null,(0,l.jsxs)("div",{className:"grid ".concat(s.displayProperties.photo?"grid-cols-2":"grid-cols-3"," gap-x-2 gap-y-1"),children:[s.displayProperties.phone?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(eo.s91,{size:"10",color:"white"}),(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"Phone",className:"text-xxs ml-1 flex-1 break-all",value:s.phone})]}
1):null,s.displayProperties.email?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ec.Q35,{size:"10",color:"white"}),(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"Email",className:"text-xxs ml-1 flex-1 break-all",value:s.email})]}):null,s.displayProperties.linkedin?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ee.AnD,{size:"10",color:"white"}),(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"LinkedIn/Portfolio",className:"text-xxs ml-1 flex-1 break-all divlink",value:s.linkedin})]}):null,s.displayProperties.location?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(x.eVO,{size:"10",color:"white"}),(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"Location",className:"text-xxs ml-1 flex-1 break-all",value:s.location})]}):null,s.displayProperties.extraUrl?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ee.AnD,{size:"10",color:"white"}),(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"URL",className:"text-xxs ml-1 flex-1 break-all divlink",value:s.extraUrl})]}):null,s.displayProperties.extraField?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(en.T4g,{size:"10",color:"white"}),(0,l.jsx)(Y,{docStyle:a,style:{color:"white"},placeholder:"Extra Field",className:"text-xxs ml-1 flex-1 break-all",value:s.extraField})]}):null]})]}),s.displayProperties.photo?(0,l.jsx)("div",{className:"ml-2 my-1 relative group",children:(0,l.jsx)("img",{alt:"profile",src:s.photo||"https://app.enhancv.com/37c3faeda3f64b33cc41216e4d8589cd.svg",className:"round"===s.photoStyle?"rounded-full w-[110px] h-[110px]":"rounded-md w-[110px] h-[110px]",style:{zoom:V.J[null==a?void 0:a.fontSizeId]}})}):null,(0,l.jsx)("div",{className:"absolute w-100 bottom-0 -mx-4 -my-1 left-0 top-0 right-0 pointer-events-none -z-10",style:{backgroundColor:V.Tj[null==a?void 0:a.colorId]}})]})})},ex=function(e){let{section:t,docStyle:s}=e;return t.items.map(e=>(0,l.jsx)(ed,{docStyle:s,section:t,item:e}))},eu=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),em=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[t.displayProperties.title&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Your Hobby/Interest",className:"text-sm font-bold",value:t.title}),(0,l.jsx)(eu,{docStyle:a,placeholder:"How did you acquire it? What did it result in?",value:t.description})]})},eh=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[(0,l.jsx)(Y,{docStyle:a,placeholder:"Language",className:"text-sm font-bold",value:t.name}),t.displayProperties.level&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Level",className:"text-xs",value:t.level})]})},ep=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),ef=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(Y,{docStyle:a,placeholder:"Project Name",className:"flex-1 text-sm font-bold",value:t.title}),(0,l.jsxs)("div",{className:"flex items-center",children:[t.displayProperties.date&&(0,l.jsxs)("div",{className:"flex items-center",children:[t.displayProperties.startDate&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Start Date",className:"text-xxs resume-startdate",value:t.startDate}),(0,l.jsx)(Y,{docStyle:a,placeholder:"End Date",className:"text-xxs",value:t.endDate})]}),t.displayProperties.location&&(0,l.jsxs)("div",{className:"flex items-center ml-2",children:[(0,l.jsx)(x.eVO,{size:"10",color:V.Tj[a.colorId]}),(0,l.jsx)(Y,{docStyle:a,placeholder:"Location",className:"flex-1 ml-1 text-xxs",value:t.location})]})]})]}),t.displayProperties.summary&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Short summary of your work",className:"text-xs font-semibold",value:t.summary}),t.displayProperties.url&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(ee.AnD,{size:"10",color:V.Tj[a.colorId]}),(0,l.jsx)(Y,{docStyle:a,placeholder:"URL",className:"flex-1 ml-1 text-xxs",value:t.url})]}
1),t.displayProperties.description&&(0,l.jsx)(ep,{docStyle:a,placeholder:"What was a successful outcome of your work? (e.g. Raised $3,000 for the charity)",value:t.description})]})},ev=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsxs)(Z,{item:t,children:[t.displayProperties.bucketTitle&&(0,l.jsx)(Y,{docStyle:a,placeholder:"Bucket Title",className:"text-sm font-bold",value:t.bucketTitle}),(0,l.jsx)("div",{className:"flex flex-wrap gap-x-2.5 gap-y-0.5",children:t.skills.map((e,t)=>(0,l.jsx)(ey,{docStyle:a,skill:e}))})]})},ey=e=>{let{skill:t,docStyle:s}=e;return(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(Y,{docStyle:s,placeholder:"Tool/Technology",className:"text-xs",value:t})})},ej=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),eg=function(e){let{item:t,section:s,docStyle:a}=e;return(0,l.jsx)(Z,{item:t,children:(0,l.jsx)(ej,{docStyle:a,placeholder:"What’s the one thing that makes you the best candidate for this job?",value:t.description})})},eb=function(e){let{section:t,docStyle:s,isOnboarding:a}=e;return(0,l.jsxs)($,{section:t,isOnboarding:a,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Summary"}),t.items.map(e=>(0,l.jsx)(eg,{item:e,docStyle:s}))]})},ew=j()(()=>Promise.all([s.e(995),s.e(7133),s.e(2356),s.e(388)]).then(s.bind(s,20388)),{loadableGenerated:{webpack:()=>[20388]},ssr:!1}),eN=function(e){var t,s;let{item:a,section:r,docStyle:i}=e;return(0,l.jsxs)(Z,{item:a,children:[(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(Y,{docStyle:i,placeholder:"Title",className:"flex-1 text-sm font-bold",value:a.title}),a.displayProperties.date&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(Y,{docStyle:i,placeholder:"Start Date",className:"text-xxs resume-startdate",value:a.startDate}),(0,l.jsx)(Y,{docStyle:i,placeholder:"End Date",className:"text-xxs",value:a.endDate})]})]}),a.displayProperties.companyName&&(0,l.jsxs)("div",{className:"flex items-start justify-between",children:[(0,l.jsx)(Y,{docStyle:i,placeholder:"Company Name",className:"flex-1 text-xs font-semibold",value:a.companyName}),a.displayProperties.location&&(0,l.jsxs)("div",{className:"flex items-center ml-2",children:[(0,l.jsx)(x.eVO,{size:"10",color:V.Tj[i.colorId]}),(0,l.jsx)(Y,{docStyle:i,placeholder:"Location",className:"flex-1 ml-1 text-xxs",value:a.location})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[a.displayProperties.companyDescription&&(0,l.jsx)(Y,{docStyle:i,placeholder:"Company Description",className:"text-xxs",value:a.companyDescription}),a.displayProperties.location&&!a.displayProperties.companyName&&(0,l.jsxs)("div",{className:"flex items-center ml-2",children:[(0,l.jsx)(x.eVO,{size:"10",color:V.Tj[i.colorId]}),(0,l.jsx)(Y,{docStyle:i,placeholder:"Location",className:"flex-1 ml-1 text-xxs",value:a.location})]})]}),(null==(t=a.roles)?void 0:t.length)>1?(0,l.jsx)("div",{children:null==(s=a.roles)?void 0:s.map((e,t)=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ew,{docStyle:i,placeholder:"Which of your achievements match the job you’re applying to?",value:e.description})}))}):(0,l.jsx)(ew,{docStyle:i,placeholder:"Which of your achievements match the job you’re applying to?",value:null==a?void 0:a.roles[0].description})]})},eS={ski:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Skills"}),t.items.map(e=>(0,l.jsx)(ev,{docStyle:s,item:e}))]})},{}),wor:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Work Experience"}),t.items.map(e=>(0,l.jsx)(eN,{item:e,docStyle:s}))]})},{}),edu:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Education"}),t.items.map(e=>(0,l.jsx)(ei,{docStyle:s,item:e}))]})},{}),pro:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Project"}),t.items.map(e=>(0,l.jsx)(ef,{docStyle:s,item:e}))]})},{}),cer:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Certifications"}),t.items.map(e=>(0,l.jsx)(es,{docStyle:s,item:e}))]})},{}),hob:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Hobby & Interest"}),t.items.map(e=>(0,l.jsx)(em,{docStyle:s,item:e}))]})},{}),ach:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Achievements"}),t.items.map(e=>(0,l.jsx)(Q,{docStyle:s,item:e}))]})},{}),lan:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Languages"}),(0,l.jsx)("div",{className:"flex items-center flex-wrap gap-2.5",children:t.items.map(e=>(0,l.jsx)(eh,{docStyle:s,item:e}))})]})},{}),cus:(0,l.jsx)(function(e){let{section:t,docStyle:s}=e;return(0,l.jsxs)($,{section:t,docStyle:s,children:[(0,l.jsx)(X,{docStyle:s,section:t,placeholder:"Custom"}),t.items.map(e=>(0,l.jsx)(ea,{docStyle:s,item:e}))]})},{})},ek=function(e){var t,s,a;let{resume:r,isOnboarding:i}=e,n=null==r||null==(t=r.sections)?void 0:t.find(e=>"hed"===e.sectionType),o=null==r||null==(s=r.sections)?void 0:s.find(e=>"sum"===e.sectionType);return(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(ex,{section:n,docStyle:{...null==r?void 0:r.style,colorId:12}}),o&&(0,l.jsx)(eb,{section:o,isOnboarding:i,docStyle:{...null==r?void 0:r.style,colorId:12}}),null==r||null==(a=r.sections)?void 0:a.map(e=>eS[e.sectionType]&&(0,c.cloneElement)(eS[e.sectionType],{section:e,docStyle:null==r?void 0:r.style}))]})},eC=function(e){let{resumeData:t,scale:s=1,isOnboarding:a}=e;return(0,l.jsx)(q.P.div,{id:"resume_page",initial:{y:-200},animate:{y:0},transition:{duration:.3,type:"spring",stiffness:200},style:{transformOrigin:"center",zoom:s},className:"w-[21cm] relative mx-auto min-h-[25.7cm] ${isOnboarding?' bg-gray-50':'bg-white'} border border-gray-200 p-4",children:t?(0,c.cloneElement)((0,l.jsx)(ek,{}),{resume:null==t?void 0:t.resume,isOnboarding:a}):(0,l.jsx)("div",{className:"w-full h-[90vh] flex items-center justify-center",children:(0,l.jsx)(H,{})})})},eA=function(e){let{resume:t,handleClose:s,isOpen:a,refPassed:r}=e,i=(0,n.useRouter)(),o=()=>{i.push("https://".concat(D.f.RESUME,"/").concat(null==t?void 0:t.resumeId,"?tab=score&showParsing=true").
1concat(r?"&ref=".concat(r):"")),s()},c=()=>{i.push("/dashboard"),s()};return(0,l.jsx)(M.A,{isOpen:a,onClose:c,closeOnOverlayClick:!0,children:(0,l.jsxs)("div",{className:"relative w-[450px] bg-white rounded-xl p-3 pt-8 text-center",children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mb-2 text-2xl font-semibold",children:"NxtJob Resume"}),(0,l.jsx)("div",{className:"text-base",children:"We have created an enhanced resume for you."}),(0,l.jsxs)("div",{className:"text-left relative h-[296px]  my-6 rounded-lg overflow-hidden",children:[(0,l.jsx)(eC,{resumeData:t,scale:.54}),(0,l.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-transparent hover:bg-black hover:bg-opacity-10 ",children:(0,l.jsxs)(u.A,{className:"px-4 py-1.5    flex items-center gap-x-2.5 text-primary bg-white border border-primary rounded-full cursor-pointer",onClick:o,children:[(0,l.jsx)(d.Vap,{size:"16"}),(0,l.jsx)("div",{className:"text-sm font-medium",children:"View Resume"})]})})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-x-4",children:[(0,l.jsx)(u.A,{className:"flex-1 px-4 py-2 text-sm font-medium bg-white border border-gray-200 rounded-lg",onClick:()=>{i.push("/dashboard"),s()},children:"Go To Dashboard"}),(0,l.jsx)(u.A,{className:"flex-1 px-4 py-2 text-sm font-medium text-white rounded-lg bg-secondary",onClick:o,children:"Edit Resume"})]})]}),(0,l.jsx)(W.A,{onClick:c})]})})};var eD=s(3631);let eE=e=>{let{value:t,setValue:s,placeholder:a,label:r,error:n,skills:o,secondary:x,onChange:u,multiSelect:m,className:h,setData:p,hideSearchIcon:f,data:v=[]}=e,[y,j]=(0,c.useState)(!1),[g,b]=(0,c.useState)(!1),w=e=>{null!=o&&o.includes(e)||(u(e),m?s(""):s(e),j(!1),p(t=>[...t,e]))};return(0,c.useEffect)(()=>{t||(p([]),b(!1))},[t]),(0,c.useMemo)(()=>{v.some(e=>(null==e?void 0:e.toLowerCase())===t.toLowerCase())?b(!1):b(!0)},[v]),(0,l.jsxs)("div",{className:"w-full relative my-2 ".concat(h),children:[(0,l.jsx)("div",{className:"text-sm leading-5 font-semibold mb-2.5  text-left",children:r}),(0,l.jsxs)("div",{className:"relative",children:[!f&&(0,l.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:(0,l.jsx)(d.CKj,{})}),(0,l.jsx)("input",{type:"text",className:"py-[6px] pl-[28px] transition-all  ease-in ".concat(x?i().secondary_input:i().input," w-full ").concat(x?i().secondary_input_hover:i().input_hover),value:t,onChange:e=>{0===e.target.value.length&&p([]),s(e.target.value)},onPaste:e=>{e.preventDefault(),e.clipboardData.getData("text").split(/[|,]/).map(e=>e.trim()).forEach((e,t)=>{!e||(null==o?void 0:o.includes(e))||(p(t=>[...t,e]),u(e))}),s("")},onFocus:()=>j(!0),onBlur:()=>j(!1),placeholder:a,onKeyDown:e=>{("Enter"===e.key||","===e.key)&&(e.preventDefault(),null!=o&&o.includes(t)||(p(e=>[...e,t]),u(t),j(!1),s("")))}})]}),(0,l.jsx)(eD.N,{children:y&&v.length>0&&(0,l.jsxs)(q.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute left-0 z-10 w-full mt-2 max-h-[200px] overflow-y-auto  rounded-md shadow-md bg-white py-1",children:[g&&""!==t&&(0,l.jsx)("div",{onClick:()=>w(t),className:"w-full px-3 py-1 capitalize cursor-pointer hover:bg-hover",children:'Create "'.concat(t,'"')}),v.map((e,t)=>{let s=(null==e?void 0:e.job_title)||e;if(null==o||!o.includes(e))return(0,l.jsx)(q.P.div,{className:"px-3 py-1 capitalize cursor-pointer hover:bg-hover",onClick:()=>w(s),children:s},t)})]})}),(0,l.jsx)("div",{className:"absolute bottom-[-16px] left-0 text-red-500  ml-1 text-xs",children:n})]})};var eI=s(82250),eP=s(88765),eT=s(74833),e_=s(9326),eL=s(79163);let eO=e=>{let{children:t,onClick:s,className:a,...r}=e;return(0,l.jsx)(q.P.div,{whileHover:{scale:1.03},whileTap:{scale:.97},transition:{type:"spring",stiffness:400,damping:20},className:"rounded-full px-3 py-1 inline-flex items-center cursor-pointer ".concat(a),onClick:s,...r,children:t})},eR=e=>{let{children:t,className:s}=e;return(0,l.jsx)("span",{className:"text-sm font-medium capitalize ".concat(s||""),children:t})},ez=e=>{let{onClick:t,className:s,children:a}=e;return(0,l.jsx)("span",{className:"ml-1 text-base ".concat(s||""),onClick:t,children:a||(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L8 6.58579L11.2929 3.29289C11.6834 2.90237 12.3166 2.90237 12.7071 3.29289C13.0976 3.68342 13.0976 4.31658 12.7071 4.70711L9.41421 8L12.7071 11.2929C13.0976 11.6834 13.0976 12.3166 12.7071 12.7071C12.3166 13.0976 11.6834 13.0976 11.2929 12.7071L8 9.41421L4.70711 12.7071C4.31658 13.0976 3.68342 13.0976 3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929L6.58579 8L3.29289 4.70711Z",fill:"currentColor"})})})};o.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(o.version,"/pdf.worker.min.js");let eF=function(e){let{setOpenMobileScreen:t}=e,{user:s}=(0,R.Jd)(),[a,r]=(0,c.useState)(null),[n,o]=(0,c.useState)(""),[d,x]=(0,c.useState)(),[h,p]=(0,c.useState)(!1),[f,v]=(0,c.useState)([]),[y,j]=(0,c.useState)(""),[b,w]=(0,c.useState)([]),[k,C]=(0,c.useState)(!1),[F,M]=(0,c.useState)(!1),[W,H]=(0,c.useState)(!1),{resumeData:V}=(0,J.d4)(e=>e.resumeSlice),q=(0,J.d4)(e=>e.auth),{getToken:Y}=(0,z.d)(),[Z,K]=(0,c.useState)(!1);(0,c.useEffect)(()=>{X()},[]),(0,c.useEffect)(()=>{if(!a)return;let e=new EventSource("".concat(null===g.Ay||void 0===g.Ay?void 0:g.Ay.serverUrl,"/resume/check/status/").concat(a));return e.onopen=()=>{console.log("EventSource connected")},e.onmessage=t=>{let s=JSON.parse(t.data);(null==s?void 0:s.message)==="INITIATED"&&H(!0),(null==s?void 0:s.resume)&&(console.log("Closing event source",s),(0,S.JD)((0,O.k5)(s.resume)),e.close())},e.onerror=()=>{console.log("EventSource failed")},()=>{e.close()}},[a]),(0,c.useEffect)(()=>{let e=setTimeout(async()=>{if((null==y?void 0:y.length)>0){let e=await (0,T.o)(y);(null==e?void 0:e.length)?v(e):v([y])}},100);return()=>clearTimeout(e)},[y]),(0,c.useEffect)(()=>{window.innerWidth<768&&K(!0)},[]),(0,c.useEffect)(()=>{k&&(console.log("ResumeData",V),W||!a||(null==V?void 0:V.status)||(console.log("Entering Fallback..."),Y().then(e=>{let t=setInterval(()=>{console.log("fetching resume data, Fallback..."),(0,_.k)({resumeId:a},e).then(e=>{(null==e?void 0:e.data)&&(console.log("resume data fetched successfully"),(0,S.JD)((0,O.k5)(e.data)),clearInterval(t))})},2e3)})),(null==V?void 0:V.status)&&(console.log("resume data fetched successfully"),M(!0),$(),C(!1)))},[V,k]);let Q=async()=>{C(!0)},X=async()=>{let e=JSON.parse(localStorage.getItem("resumeText")),t=localStorage.getItem("selectedFile");if(t){let l=atob(t.split(",")[1]),a=Array(l.length);for(let e=0;e<l.length;e++)a[e]=l.charCodeAt(e);let i=new File([new Blob([new Uint8Array(a)],{type:"application/pdf"})],"resume.pdf",{type:"application/pdf"}
1),n=await Y(),o=await (0,eP.h)({resumeText:e,file:i},n);if(null==o?void 0:o.data){var s;r(null==o||null==(s=o.data)?void 0:s.resumeId)}}},$=async()=>{let e=await Y(),l=JSON.parse(localStorage.getItem("personalInfo"));localStorage.setItem("personalInfo",JSON.stringify({...l,name:n,phone:d,skills:b}));let r=await (0,I.T)({email:s.primaryEmailAddress.emailAddress,userId:s.id,photoUrl:s.imageUrl,...l,name:n,phone:d,skills:b,resumeId:(null==V?void 0:V.status)==="ADDED"?null:a},e);if(null==r?void 0:r.data){var i,o;U().track(eT.v.ONBOARDING_STAGE2,{email:s.primaryEmailAddress.emailAddress,userId:s.id,...l,name:n,phone:d,skills:b,resumeId:(null==V?void 0:V.status)==="ADDED"?null:a}),(0,e_.s)(eL.z.ONBOADING_COMPLETE,{email:s.primaryEmailAddress.emailAddress,userId:s.id,...l,name:n,phone:d,skills:b,resumeId:(null==V?void 0:V.status)==="ADDED"?null:a}),U().register((0,E.d)(r.data)),U().people.set((0,E.d)(r.data)),U().track(eT.v.USER_AUTH,(0,E.d)(r.data)),(0,e_.s)(eL.z.SIGNUP,(0,E.d)(r.data)),window.posthog.identify(s.id,(0,E.d)(r.data)),(0,S.JD)((0,L.rj)(r.data)),(null==(o=window)||null==(i=o.chrome)?void 0:i.runtime)&&(0,A.Fy)({message:"isInstalled"},async e=>{if(e&&"yes"===e.message){let e=await Y();(0,A.Fy)({subject:"saveAuth",data:{token:e,...q}})}})}else(0,S.JD)((0,L.jX)({type:"error",title:"Network Error",description:"Error while updating details. Please try again."}));if(await (0,P._)({resumeId:null==V?void 0:V.resumeId,email:null==q?void 0:q.email,eventType:eI.I[D.I.HERO]},e),Z)return void t(!0);M(!0)};return(0,l.jsxs)(G.A,{path:"/ats-score?step=4",children:[(0,l.jsx)(eA,{isOpen:F,handleClose:()=>{M(!1)},resume:V}),(0,l.jsx)("div",{className:"mt-10",children:(0,l.jsxs)("div",{className:"mt-8 w-full md:w-[620px]",children:[(0,l.jsx)("div",{className:"mb-2 text-2xl font-bold md:text-3xl",children:"Complete Your Profile"}),(0,l.jsx)("div",{className:"mb-10 text-base text-gray-500",children:"Provide your name, phone number, and skills to finalize the profile. This enables us to offer precise advice for improving your ATS score."}),(0,l.jsx)(m.p,{value:n,onChange:e=>{o(e.target.value)},placeholder:"Enter your Name",type:"text",secondary:!0,label:"Name",className:"my-6"}),(0,l.jsxs)("div",{className:"relative w-full mt-2 mb-4",children:[(0,l.jsx)("span",{className:"inline-block mb-2 text-sm font-semibold",children:"Phone"}
1),(0,l.jsx)(B.LR,{inputClassName:"w-full",className:"py-1 pl-[14px] transition-all  ease-in ".concat(h&&" outline outline-red-400"," ").concat(i().secondary_input," w-full ").concat(i().secondary_input_hover),defaultCountry:"in",value:d,label:"Phone Number",onChange:e=>{x(e)},onFocus:()=>{p(!1)},onBlur:()=>{d.length<13?p(!0):p(!1)}}),h&&(0,l.jsx)("span",{className:"left-0 text-sm text-red-500 -bottom-4",children:"Phone number should be 10 digits"})]}),(0,l.jsx)("div",{className:"relative w-full",children:(0,l.jsx)(eE,{onChange:e=>{(e=>{if(!(null==b?void 0:b.includes(e.toLowerCase()))){if(b.length>=5)return(0,S.JD)((0,L.jX)({type:"error",title:"Skills Limit Reached",description:"You can select a maximum of 5 skills."}));w(t=>[...t,e]),v([])}})(e)},value:y,setValue:j,data:f,skills:b,setData:v,multiSelect:!0,label:"Skills",placeholder:"Search & Select atleast 3 skills",secondary:!0,className:"mb-6"})}),b.length?(0,l.jsx)("div",{className:"flex flex-wrap gap-4 mb-10 w-full md:w-[600px]",children:b.map((e,t)=>""!==e&&(0,l.jsxs)(eO,{onClick:()=>{w(b.filter(t=>t!==e))},className:"px-4 py-2.5 border border-primary capitalize text-primary bg-primaryExtraLight",children:[(0,l.jsx)(eR,{children:e}),(0,l.jsx)(ez,{})]},t))}):null,n&&b.length>=3&&d.length>11?k?(0,l.jsxs)(u.A,{className:"text-white  relative text-base font-medium w-[150px] bg-secondary py-3 px-4 rounded-lg",children:[(0,l.jsx)("span",{className:"opacity-0",children:"Submit"}),(0,l.jsx)("div",{className:"absolute inset-0",children:(0,l.jsx)(N.A,{className:"text-white"})})]}):(0,l.jsx)(u.A,{className:"text-white text-base font-medium w-[150px] bg-secondary py-3 px-4 rounded-lg",onClick:Q,children:"Submit"}):(0,l.jsx)(u.A,{className:"text-white text-base font-medium w-[150px] bg-secondary py-3 px-4 opacity-50 rounded-lg",children:"Submit"})]})})]})};var eU=s(2492),eB=s.n(eU);let eJ=e=>{let{value:t}=e,s=()=>t>=75?"#22c55e":t>=50?"#F59E0B":"#ef4444",a=2*Math.PI*50,r=t/100*a;return(0,l.jsxs)("div",{className:"relative w-full h-full",children:[(0,l.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 120 120",children:[(0,l.jsx)("circle",{cx:"60",cy:"60",r:50,strokeWidth:"16",stroke:t>=75?"#dcfce7":t>=50?"#FEF3C7":"#fee2e2",fill:"none"}),(0,l.jsx)(q.P.circle,{cx:"60",cy:"60",r:50,strokeWidth:"16",stroke:s(),strokeLinecap:"round",fill:"none",strokeDasharray:a,strokeDashoffset:a-r,animate:{strokeDashoffset:a-r},initial:{strokeDashoffset:a},transition:{duration:.3}})]}),(0,l.jsx)("div",{className:"absolute text-center transform -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2",children:(0,l.jsxs)("div",{className:"md:text-base text-xs font-semibold",style:{color:s()},children:[t,"%"]})})]})},eG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ";return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},eM=function(e){let{data:t}=e,s=null==t?void 0:t.keywordsData;return(0,l.jsxs)("div",{className:"max-w-[580px]  w-full mx-auto px-4",children:[(0,l.jsx)(eH,{score:Math.round(null==t?void 0:t.matchScore)}),(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 text-xs font-medium text-gray-500 border border-gray-200 rounded-xl bg-gray-50 sm:text-sm",children:[(0,l.jsx)("div",{className:"w-[35%]",children:"KEYWORDS"}),(0,l.jsx)("div",{className:"w-[20%] text-center",children:"RESUME Count"}),(0,l.jsx)("div",{className:"w-[18%] text-center",children:"JD Count"}),(0,l.jsx)("div",{className:"w-[10%] text-right"})]}),(0,l.jsxs)("div",{className:"h-[calc(100vh-378px)] hide-scrollbar overflow-scroll",children:[null==s?void 0:s.map((e,t)=>(0,l.jsx)(eW,{item:e,index:t})),(0,l.jsx)("div",{className:"h-20"})]})]})},eW=e=>{let{item:t,index:s}=e,[a,r]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{t.isEnabled?r(!0):r(!1)},[t]),(0,l.jsxs)("div",{id:null==t?void 0:t.id,className:"flex items-center  sm:text-sm text-xs leading-5 font-normal p-4 justify-between border-b border-gray-200 cursor-pointer gap-x-0.5",children:[(0,l.jsx)("div",{className:"w-[35%] text-gray-900 flex text-base font-medium",children:eG(t.keyword).split(" ").filter(e=>e.length>15).length?(0,l.jsx)("div",{"data-test":"keyword-".concat(s),className:"".concat(a?"text-gray-900":"text-gray-400"),children:((e,t)=>{if(!((null==e?void 0:e.length)>t))return e;{let s=e.substring(0,t);return"".concat(s,"...")}})(eG(t.keyword),15)}):(0,l.jsx)("span",{"data-test":"keyword-".concat(s),className:"".concat(a?"text-gray-900":"text-gray-400"),children:eG(t.keyword)})}),(0,l.jsx)("div",{className:"w-[15%] text-center ".concat(a?"text-gray-600":"text-gray-400","  select-none text-base font-medium"),children:t.countInResume}),(0,l.jsx)("div",{className:"w-[15%] text-center ".concat(a?"text-gray-600":"text-gray-400","  select-none text-base font-medium"),children:t.countInJobDescription}),(0,l.jsx)("div",{className:"w-[10%]  text-right",children:a?(0,l.jsx)(l.Fragment,{children:t.countInResume?(0,l.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"28",height:"28",rx:"14",fill:"#DCFCE7"}),(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.8847 16.7529L20.1247 7.34177C21.058 6.39289 22.4736 7.49733 21.3069 8.74178C21.3069 8.74178 12.4403 19.8796 11.9736 20.5173C11.8341 20.7424 11.6394 20.9282 11.408 21.057C11.1766 21.1858 10.9162 21.2534 10.6514 21.2534C10.3865 21.2534 10.1261 21.1858 9.89471 21.057C9.66332 20.9282 9.46866 20.7424 9.32915 20.5173L6.42026 15.5396C6.27243 15.2695 6.226 14.9554 6.28933 14.6541C6.35265 14.3528 6.52158 14.084 6.76563 13.8963C7.00967 13.7086 7.31278 13.6142 7.62026 13.6303C7.92774 13.6464 8.21935 13.7718 8.44248 13.984L10.8847 16.7529Z",fill:"#16A34A"})]}):(0,l.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"28",height:"28",rx:"14",fill:"#FEE2E2"}),(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L14 12.5858L19.2929 7.29289C19.6834 6.90237 20.3166 6.90237 20.7071 7.29289C21.0976 7.68342 21.0976 8.31658 20.7071 8.70711L15.4142 14L20.7071 19.2929C21.0976 19.6834 21.0976 20.3166 20.7071 20.7071C20.3166 21.0976 19.6834 21.0976 19.2929 20.7071L14 15.4142L8.70711 20.7071C8.31658 21.0976 7.68342 21.0976 7.29289 20.7071C6.90237 20.3166 6.90237 19.6834 7.29289 19.2929L12.5858 14L7.29289 8.70711Z",fill:"#EF4444"})]})}):(0,l.jsx)(l.Fragment,{children:t.countInResume?(0,l.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"28",height:"28",rx:"14",fill:"#F3F4F6"}),(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.8847 16.7529L20.1247 7.34177C21.058 6.39289 22.4736 7.49733 21.3069 8.74178C21.3069 8.74178 12.4403 19.8796 11.9736 20.5173C11.8341 20.7424 11.6394 20.9282 11.408 21.057C11.1766 21.1858 10.9162 21.2534 10.6514 21.2534C10.3865 21.2534 10.1261 21.1858 9.89471 21.057C9.66332 20.9282 9.46866 20.7424 9.32915 20.5173L6.42026 15.5396C6.27243 15.2695 6.226 14.9554 6.28933 14.6541C6.35265 14.3528 6.52158 14.084 6.76563 13.8963C7.00967 13.7086 7.31278 13.6142 7.62026 13.6303C7.92774 13.6464 8.21935 13.7718 8.44248 13.984L10.8847 16.7529Z",fill:"#9CA3AF"})]}):(0,l.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"28",height:"28",rx:"14",fill:"#F3F4F6"}),(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L14 12.5858L19.2929 7.29289C19.6834 6.90237 20.3166 6.90237 20.7071 7.29289C21.0976 7.68342 21.0976 8.31658 20.7071 8.70711L15.4142 14L20.7071 19.2929C21.0976 19.6834 21.0976 20.3166 20.7071 20.7071C20.3166 21.0976 19.6834 21.0976 19.2929 20.7071L14 15.4142L8.70711 20.7071C8.31658 21.0976 7.68342 21.0976 7.29289 20.7071C6.90237 20.3166 6.90237 19.6834 7.29289 19.2929L12.5858 14L7.29289 8.70711Z",fill:"#9CA3AF"})]})})})]})},eH=e=>{let{score:t}=e;return t<50?(0,l.jsxs)("div",{className:"flex items-start p-3 my-5 border border-red-200 md:p-5 bg-red-50 md:rounded-3xl rounded-2xl",children:[(0,l.jsx)("div",{className:"w-20 h-20 mr-3",children:(0,l.jsx)(eJ,{value:parseInt(t)})}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"text-lg font-semibold",children:"Improve resume score"}),(0,l.jsxs)("div",{className:"text-sm font-normal md:text-base ",children:["Enhance your resume in line with our feedback. Note: Aim for ",(0,l.jsx)("b",{className:"text-red-500",children:"at least 50% score"})," prior to job hunting."]})]})]}):t>=50&&t<75?(0,l.jsxs)("div",{className:"flex items-start p-3 my-5 border border-yellow-200 md:p-5 bg-yellow-50 md:rounded-3xl rounded-2xl",children:[(0,l.jsx)("div",{className:"w-20 h-20 mr-3",children:(0,l.jsx)(eJ,{value:parseInt(t)})}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"text-lg font-semibold",children:"Average Resume Text"}),(0,l.jsxs)("div",{className:"text-sm font-normal md:text-base",children:["Your resume is good but could be better. Aim for a ",(0,l.jsx)("b",{className:"text-[#F59E0B]",children:"75% score"})," to boost your interview chances."]})]})]}):(0,l.jsxs)("div",{className:"flex items-start p-3 my-5 border border-green-200 md:p-5 bg-green-50 md:rounded-3xl rounded-2xl",children:[(0,l.jsx)("div",{className:"w-20 h-20 mr-3",children:(0,l.jsx)(eJ,{value:parseInt(t)})}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"text-lg font-semibold",children:"Good Resume Text"}),(0,l.jsx)("div",{className:"text-sm font-normal md:text-base",children:"Well done!! Your resume looks strong. Now you can start applying for jobs."})]})]})},eV=()=>{var e;let t=(0,n.useRouter)(),{selectedJob:s}=(0,J.d4)(e=>e.atsSlice),[a,r]=(0,c.useState)(!0),[i,o]=(0,c.useState)(!1),d=JSON.parse(localStorage.getItem("resumeText")),x=localStorage.getItem("jobDescription"),m=async()=>{let e=await w({jobDescription:x,resumeText:d});e.data&&(0,S.JD)((0,k.VG)(e.data))},h=null==s||null==(e=s.keywordsData)?void 0:e.filter(e=>0===e.countInResume).map(e=>e.keyword);return(0,c.useEffect)(()=>{window.innerWidth<768&&(r(!1),o(!0))},[]),(0,c.useEffect)(()=>{s||m(),s&&!i&&document.querySelectorAll(".highlighted_text").forEach(e
1=>{let t=!1;e.addEventListener("mouseenter",e=>{if(!t){var l,a,r,i;t=!0;let n=null==s||null==(a=s.keywordsData)||null==(l=a.find(t=>(null==t?void 0:t.keyword)===(null==e?void 0:e.target.innerText)))?void 0:l.id;n||(n=null==s||null==(i=s.keywordsData)||null==(r=i.find(t=>(null==t?void 0:t.keyword.toLowerCase())===(null==e?void 0:e.target.innerText)))?void 0:r.id);let o=document.getElementById(n);null==o||o.scrollIntoView({behavior:"smooth"})}}),e.addEventListener("mouseleave",()=>{t=!1})})},[s]),(0,l.jsxs)("div",{className:"flex flex-col w-full md:flex-row md:gap-6",children:[(0,l.jsxs)("div",{className:"relative flex-1 p-4",children:[a&&(0,l.jsxs)("div",{className:"p-5 bg-gray-50 rounded-md  md:max-h-[calc(100vh-140px)]  max-h-[320px] hide-scrollbar overflow-y-scroll overflow-x-clip",children:[(0,l.jsx)("div",{className:"mb-4 text-lg",children:"Job Description:"}),(0,l.jsx)("p",{className:"overflow-x-visible leading-7 text-md hide-scrollbar",children:s&&(0,l.jsx)(eB(),{highlightClassName:"highlighted_text",searchWords:h,autoEscape:!0,textToHighlight:x})}),(0,l.jsx)("span",{className:"absolute bottom-0 text-xs left-5 text-primary",children:"*Highlighted keywords are missing in your resume"})]}),i&&(0,l.jsxs)("div",{onClick:()=>r(!a),className:"flex items-center gap-1 p-2 bg-white rounded-md cursor-pointer text-md text-primary bg-opacity-70 h-fit w-fit",children:[a?"Hide Job Description":"Show Job Description",(0,l.jsx)(ee.BNo,{size:20,className:"".concat(a&&"rotate-180")})]})]}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,l.jsx)(eM,{data:s}),(0,l.jsx)(u.A,{onClick:()=>{U().track(eT.v.ONBOARDING_CUSTOMISE_RESUME),t.push("/ats-score?step=4")},className:"px-4 py-2.5 md:mt-4 mx-auto text-white rounded-md text-lg font-semibold bg-secondary md:relative fixed bottom-2 left-2 right-2",children:"Customize Your Resume Now!"})]})]})};var eq=s(55808),eY=s(65923),eZ=s(24581),eK=s.n(eZ),eQ=s(47782);let eX=function(){let e=(0,n.useRouter)(),[t,s]=(0,c.useState)(null),[a,r]=(0,c.useState)(!1),{step:i}=e.query,{auth:o}=(0,J.d4)(e=>e.authSlice),u=(0,R.ho)();(0,c.useEffect)(()=>{switch(i){case"1":default:s((0,l.jsx)(v,{}));break;case"2":s((0,l.jsx)(C,{}));break;case"3":s((0,l.jsx)(eV,{}));break;case"4":s((0,l.jsx)(eF,{setOpenMobileScreen:r}))}},[i]),(0,c.useEffect)(()=>{U().track_pageview({page:"JD Score Onboarding"})},[]);let m=async()=>{(0,S.JD)((0,S.S7)()),await u.signOut(),U().reset()};return(0,l.jsxs)(l.Fragment,{children:[a&&(0,l.jsx)("div",{className:"fixed top-0 bottom-0 left-0 right-0 z-50 flex items-center justify-center px-4 bg-white",children:(0,l.jsxs)("div",{className:"flex flex-col items-center max-w-lg gap-6 p-10 shadow-xl rounded-xl",children:[(0,l.jsx)(eK(),{className:"mx-auto",height:60,src:eq.A,alt:"NxtJob"}),(0,l.jsx)("span",{className:"text-xl font-semibold",children:"Continue on desktop"}),(0,l.jsxs)("span",{className:"text-base text-center text-gray-500",children:["NxtJob.ai works best on bigger screens. We have created a ",(0,l.jsx)("b",{children:"resume"})," with ",(0,l.jsx)("b",{children:"ATS friendly template."})," Find the link in your email inbox and whatsapp."]}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(eQ.V7d,{size:"30",color:"#ef4444"}),(0,l.jsx)(x._8j,{size:"30",color:"#22c55e"})]})]})}),(0,l.jsx)("div",{style:{background:"no-repeat right 0 bottom 0 url(/onboarding/onboard_grad.svg)"},className:"h-screen overflow-y-scroll ",children:(0,l.jsxs)("div",{className:"min-h-screen hide-scrollbar max-w-[1200px]  mx-auto p-8",children:[(0,l.jsx)(eK(),{src:eY.A,alt:"logo",height:34}),t,o&&(0,l.jsxs)("div",{className:"md:fixed absolute bottom-8 right-8 flex flex-col items-center gap-y-1.5 text-lg cursor-pointer",onClick:()=>{m()},children:[(0,l.jsx)(d.QeK,{size:22}),"Logout"]})]})})]})}},9326:(e,t,s)=>{"use strict";function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gtag("event",e,{event_timeout:2e3,...t}),!1}s.d(t,{s:()=>l})},21672:()=>{},36725:()=>{},40286:()=>{},41701:(e,t,s)=>{"use strict";let l;s.d(t,{k:()=>i});var a=s(58843),r=s(43477);let i=async(e,t)=>{try{l&&l.cancel("Operation canceled due to new request."),l=r.A.CancelToken.source();let s=await r.A.post("".concat(a.Ay.serverUrl,"/resume/fetch"),e,{headers:{"Content-type":"application/json",Authorization:t},cancelToken:l.token});return null==s?void 0:s.data}catch(e){console.log(e)}}},46091:(e,t,s)=>{"use strict";s.d(t,{b:()=>x});var l=s(94458),a=s(47980),r=s(83326),i=s(3631),n=s(68658);let o=e=>{let{className:t}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:(0,a.cn)("w-6 h-6",t),children:(0,l.jsx)("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},c=e=>{let{className:t}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",className:(0,a.cn)("w-6 h-6",t),children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"})})},d=e=>{let{loadingStates:t,value:s=0,darkMode:i=!1}=e;return(0,l.jsx)("div",{className:"flex relative flex-col justify-start mx-auto mt-40 max-w-xl",children:t.map((e,t)=>{let n=Math.max(1-.2*Math.abs(t-s),0);return(0,l.jsxs)(r.P.div,{className:(0,a.cn)("flex gap-2 mb-4 text-left"),initial:{opacity:0,y:-(40*s)},animate:{opacity:n,y:-(40*s)},transition:{duration:.5},children:[(0,l.jsxs)("div",{children:[t>s&&(0,l.jsx)(o,{className:i?"text-white/50":"text-black/50"}),t<=s&&(0,l.jsx)(c,{className:(0,a.cn)("text-[#0D5CDF]",s===t&&"text-[#0D5CDF] opacity-100")})]}),(0,l.jsx)("span",{className:(0,a.cn)(i?"text-white/70":"text-black/70",s===t&&(i?"text-white opacity-100":"text-black opacity-100")),children:e.text})]},t)})})},x=e=>{let{loadingStates:t,loading:s,duration:o=3e3,loop:c=!0,darkMode:x=!1}=e,[u,m]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(!s)return void m(0);let e=setTimeout(()=>{m(e=>c?e===t.length-1?0:e+1:Math.min(e+1,t.length-1))},o);return()=>clearTimeout(e)},[u,s,c,t.length,o]),(0,l.jsx)(i.N,{mode:"wait",children:s&&(0,l.jsxs)(r.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:(0,a.cn)("w-full h-full fixed inset-0 z-[100] flex items-center justify-center backdrop-blur-2xl",x?"bg-[#020420]/90":"bg-white/90"),children:[(0,l.jsx)("div",{className:"relative h-96",children:(0,l.jsx)(d,{value:u,loadingStates:t,darkMode:x})}),(0,l.jsx)("div",{className:(0,a.cn)("bg-gradient-to-t inset-x-0 z-20 bottom-0 h-full absolute",x?"bg-[#020420] [mask-image:radial-gradient(900px_at_center,transparent_30%,#020420)]":"bg-white [mask-image:radial-gradient(900px_at_center,transparent_30%,white)]")}),(0,l.jsx)("div",{className:(0,a.cn)("absolute bottom-10 left-1/2 font-semibold text-center -translate-x-1/2",x?"text-white/70":"text-black/70"),children:"Please do not refresh the page or press the back button"})]})})}},47980:(e,t,s)=>{"use strict";s.d(t,{cn:()=>r});var l=s(71623),a=s(69097);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,a.QP)((0,l.$)(t))}},53601:()=>{},55808:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l={src:"/_next/static/media/logo-icon-dark.a4dc0b1e.svg",height:30,width:30,blurWidth:0,blurHeight:0}},57744:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ats-score",function(){return s(6722)}])},63849:(e,t,s)=>{"use strict";let l;s.d(t,{_:()=>i});var a=s(58843),r=s(43477);let i=async(e,t)=>{try{l&&l.cancel("Operation canceled due to new request."),l=r.A.CancelToken.source();let s=await r.A.post("".concat(a.Ay.serverUrl,"/notification/send"),e,{headers:{"Content-type":"application/json",Authorization:t},cancelToken:l.token});return null==s?void 0:s.data}catch(e){console.log(e)}}},65923:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l={src:"/_next/static/media/logo.b1cf6905.svg",height:697,width:2772,blurWidth:0,blurHeight:0}},71125:(e,t,s)=>{"use strict";s.d(t,{o:()=>a});var l=s(43477);let a=async e=>{try{var t,s;let a=await l.A.post("https://search.nxtjob.ai/indexes/skills/search",{q:e,facets:[],limit:20,offset:0},{headers:{"Content-type":"application/json",Authorization:"Bearer Hu52dwsas2AdxdE23"}});return(null==a||null==(s=a.data)||null==(t=s.hits)?void 0:t.map(e=>{var t;return null==(t=e.skill)?void 0:t.toLowerCase()}))||[]}catch(e){console.log(e)}}},75297:(e,t,s)=>{"use strict";let l;s.d(t,{D:()=>i});var a=s(58843),r=s(43477);let i=async(e,t)=>{try{l&&l.cancel("Operation canceled due to new request."),l=r.A.CancelToken.source();let s=await r.A.post("".concat(a.Ay.serverUrl,"/auth/login"),e,{headers:{"Content-type":"application/json",Authorization:t},cancelToken:l.token});return null==s?void 0:s.data}catch(e){console.log(e)}}},79163:(e,t,s)=>{"use strict";s.d(t,{z:()=>l});let l={SIGNUP:"conversion_event_signup",ONBOADING_COMPLETE:"conversion_event_submit_lead_form"}},79328:(e,t,s)=>{"use strict";let l;s.d(t,{A:()=>P});var a=s(94458),r=s(3308),i=s(79163),n=s(70478),o=s(9326),c=s(73811),d=s(74833),x=s(75297),u=s(58843),m=s(43477);let h=async e=>{try{l&&l.cancel("Operation canceled due to new request."),l=m.A.CancelToken.source();let t=await m.A.get("".concat(u.Ay.serverUrl,"/payment/history"),{headers:{"Content-type":"application/json",Authorization:e},cancelToken:l.token});return null==t?void 0:t.data}catch(e){console.log(e)}};var p=s(53983),f=s(37226),v=s(88963),y=s(19064),j=s(16868),g=s(13526),b=s(86013),w=s(77911),N=s.n(w),S=s(38129),k=s(68658),C=s(84522);let A=new Set(["TRIAL","TRAIL"]),D=new Set(["/","/dashboard"]);var E=s(18916);let I=()=>{let e=(0,S.useRouter)();return(0,k.useEffect)(()=>{let t=e.asPath,s="/sign-in".concat(t?"?redirect_url=".concat(encodeURIComponent(t)):"");e.push(s)},[e]),null},P=function(e){let{children:t,path:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y.iB,{children:[t,(0,a.jsx)(T,{})]}),(0,a.jsx)(y.Bl,{children:(0,a.jsx)(I,{})})]})},T=()=>{let e=(0,S.useRouter)(),{user:t}=(0,j.Jd)(),{getToken:s}=(0,g.d)(),{auth:l}=(0,E.d4)(e=>e.authSlice);(0,j.ho)(),function(e){let t=(0,S.useRouter)();(0,k.useEffect)(()=>{let s;if("off"!==C.env.NEXT_PUBLIC_PAID_GATE&&e)s=t.pathname,D.has(s)&&!function(e){var t;if(!e)return!1;if((null==(t=e.email)?void 0:t.toLowerCase().endsWith("@nxtjob.ai"))||e.novaAccess||e.omegaAccess||e.lmsAccess||e.communityAccess)return!0;let s=String(e.subscriptionType||"").toUpperCase();return!0===e.isPremium&&!A.has(s)}(e)&&window.location.replace("https://trial.nxtjob.ai")},[e,t.pathname])}(l),(0,k.useEffect)(()=>{N().identify(t.id),window.addEventListener("message",async e=>{if(e.source===window&&e.data.from&&"nxtjob"===e.data.from&&"refreshAuth"===e.data.subject&&l){let e=await s(),a=await (0,x.D)({email:null==l?void 0:l.email,photoUrl:null==l?void 0:l.photoUrl},e);if(null==a?void 0:a.data){N().register((0,c.d)(a.data)),N().people.set((0,c.d)(a.data)),N().track(d.v.USER_AUTH,(0,c.d)(a.data)),(0,o.s)(i.z.SIGNUP,(0,c.d)(a.data)),window.posthog.identify(t.id,(0,c.d)(a.data));try{(0,r.Fy)({subject:"saveAuth",data:{token:e,...a.data}})}catch(e){console.error("Failed to send message:",e)}(0,p.JD)((0,f.rj)(a.data))}let n=await h(e);(null==n?void 0:n.data)&&(0,p.JD)((0,v.m)(null==n?void 0:n.data))}})},[l]);let a=async e=>{let{queryKey:l}=e,a=await s();return await (0,x.D)({email:t.primaryEmailAddress.emailAddress,photoUrl:t.profileImageUrl},a)},u=async e=>{let l=await s();localStorage.setItem("auth","true"),N().register((0,c.d)(e)),N().people.set((0,c.d)(e)),N().track(d.v.USER_AUTH,(0,c.d)(e)),(0,o.s)(i.z.SIGNUP,(0,c.d)(e)),window.posthog.identify(t.id,(0,c.d)(e));try{(0,r.Fy)({subject:"saveAuth",data:{token:l,...e}})}catch(e){console.error("Failed to send message:",e)}(0,p.JD)((0,f.rj)(e))};return(0,k.useEffect)(()=>{var t;null!==l&&(null==l||null==(t=l.email)||!t.includes("nxtjob.ai"))&&!(null==l?void 0:l.omegaAccess)&&(e.pathname.includes("omega")||e.pathname.includes("swot")||e.pathname.includes("jobs")||e.pathname.includes("car")||e.pathname.includes("onboarding")||e.pathname.includes("ignite"))&&e.push("/401")},[null==l?void 0:l.omegaAccess,e.pathname]),(0,b.I)(["user-register"],a,{enabled:!l,onSuccess:async t=>{if(t.data){var s,l;(0,p.JD)((0,f.EP)(null));let{refDomain:a}=e.query;if("/onboarding"===e.pathname)return void await u(t.data);if("/navigator"===e.pathname&&(null==(s=t.data)?void 0:s.isProfileIncomplete))return void e.push("/pers
1onalize?flow=navigator");if("/ignite"===e.pathname)return void await u(t.data);if((null==t||null==(l=t.data)?void 0:l.isProfileIncomplete)&&"/personalize"!==e.pathname&&"/ats-check"!==e.pathname&&"/ats-score"!==e.pathname&&a!==n.I.LINKEDIN)return void e.push("/personalize?refDomain=".concat(n.I.HERO,"&refPathName=").concat(e.pathname));await u(t.data)}},onError:e=>{console.error("error",e)}}),null}},82250:(e,t,s)=>{"use strict";s.d(t,{I:()=>l});let l={PREMIUM_POPUP_CLOSED:"PREMIUM_POPUP_CLOSED",app:"ONBOARDING_HERO",resume:"ONBOARDING_RESUME",cover:"ONBOARDING_COVER",interview:"ONBOARDING_INTERVIEW",jobs:"ONBOARDING_JOBS",GOT_JOB_OFFER:"GOT_JOB_OFFER",ONBOARDING_QUALITY_LEAD:"ONBOARDING_QUALITY_LEAD",ONBOARDING_JUNK_LEAD:"ONBOARDING_JUNK_LEAD"}},88765:(e,t,s)=>{"use strict";let l;s.d(t,{h:()=>i});var a=s(58843),r=s(43477);let i=async(e,t)=>{try{l&&l.cancel("Operation canceled due to new request."),l=r.A.CancelToken.source();let s=new FormData;s.append("file",e.file),s.append("resumeText",e.resumeText);let i=await r.A.post("".concat(a.Ay.serverUrl,"/resume/parse/v2"),s,{headers:{"Content-type":"application/x-www-form-urlencoded",Authorization:t},cancelToken:l.token});return null==i?void 0:i.data}catch(e){console.log(e)}}},89411:(e,t,s)=>{"use strict";s.d(t,{EM:()=>i,Hn:()=>n,J:()=>a,K_:()=>r,Tj:()=>o,mw:()=>l});let l={1:"Inter",2:"Raleway",3:"Poppins",4:"Roboto",5:"Open Sans"},a={1:1,2:1.1,3:1.2},r={1:120,2:135,3:150},i={1:0,2:1.5,3:3},n={1:1,2:1.8,3:2.6},o={1:"#025050",2:"#721818",3:"#3999A1",4:"#51512F",5:"#8F9A8A",6:"#C5A07A",7:"#B44C02",8:"#012148",9:"#4A4A4A",10:"#576D7B",11:"#E9A507",12:"#3865A1",13:"#551212",14:"#F56C6C",99:"#9ca3af"}},89477:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(94458);s(68658);let a=function(){return(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.41009 5.58934C4.08466 5.2639 4.08466 4.73626 4.41009 4.41083C4.73553 4.08539 5.26317 4.08539 5.5886 4.41083L9.99935 8.82157L14.4101 4.41083C14.7355 4.08539 15.2632 4.08539 15.5886 4.41083C15.914 4.73626 15.914 5.2639 15.5886 5.58934L11.1779 10.0001L15.5886 14.4108C15.914 14.7363 15.914 15.2639 15.5886 15.5893C15.2632 15.9148 14.7355 15.9148 14.4101 15.5893L9.99935 11.1786L5.5886 15.5893C5.26317 15.9148 4.73553 15.9148 4.41009 15.5893C4.08466 15.2639 4.08466 14.7363 4.41009 14.4108L8.82084 10.0001L4.41009 5.58934Z",fill:"#64748B"})})}},94804:()=>{}},e=>{e.O(0,[4034,5960,2664,4639,1172,1722,2721,2103,6013,5194,636,6593,8792],()=>e(e.s=57744)),_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.