1import{r as x,j as t,aN as w,aW as N,aV as v,l as n,k as S}from"./index-rCvQzBzS.js";import{L as k}from"./layoutwrapper-rUWMH85w.js";import{P as R}from"./PageSubTitle-toe3XCjo.js";import{P as _}from"./ProgressBarComp-WMSIxpxF.js";import"./InnerLayoutWrapper-n1KWD78p.js";import"./ComponentPageTitle-NI5BVhqn.js";const T=({resumeScore:e})=>{const o=+e,[l,i]=x.useState(""),[m,r]=x.useState("");return x.useEffect(()=>{o>=0&&o<=49?(r("Not There YetâLetâs Refine!"),i("You're off to a start, but thereâs room for improvement. Fine-tune your resume and aim higher!")):o>=50&&o<=60?(r("Making ProgressâAlmost There!"),i("Youâre on the right track, but a few adjustments can make a big difference. Letâs keep going!")):o>=61&&o<=70?(r("Solid MatchâGetting Close!"),i("You're getting noticed, but letâs sharpen a few things to stand out even more.")):o>=71&&o<=89?(r("Almost ThereâImpressive!"),i("Youâre nearly perfect for this role. Just a few tweaks, and you'll be ready to impress!")):o>=90&&o<=100&&(r("CongratulationsâYou're a Perfect Match!"),i("Youâre so ready for this job! Everything aligns perfectly, and youâre a top contender for this role."))},[o]),t.jsxs("div",{className:"flex flex-col my-2 gap-2 w-full mb-4",children:[t.jsxs("h2",{className:"text-xl text-[#131D26] font-semibold",children:[m,t.jsx("span",{children:" "}),":"," ",t.jsxs("span",{className:"text-[#219653]",children:[o,"/100"]})]}),t.jsx("p",{className:"text-xs text-[#414343] font-medium",children:l}),t.jsx(_,{width:`${o}%`,bg:"#219653"})]})},h=({text:e})=>t.jsxs("div",{className:"flex items-start justify-start gap-[4px] w-full ",children:[t.jsx("div",{className:"w-4 h-4",children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.99967 14.6663C9.84061 14.6663 11.5073 13.9201 12.7137 12.7137C13.9201 11.5073 14.6663 9.84061 14.6663 7.99967C14.6663 6.15874 13.9201 4.49207 12.7137 3.28563C11.5073 2.0792 9.84061 1.33301 7.99967 1.33301C6.15874 1.33301 4.49207 2.0792 3.28563 3.28563C2.0792 4.49207 1.33301 6.15874 1.33301 7.99967C1.33301 9.84061 2.0792 11.5073 3.28563 12.7137C4.49207 13.9201 6.15874 14.6663 7.99967 14.6663Z",fill:"#219653"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8041 5.52827C12.0644 5.78862 12.0644 6.21073 11.8041 6.47108L7.80409 10.4711C7.54374 10.7314 7.12163 10.7314 6.86128 10.4711L4.86128 8.47108C4.60093 8.21073 4.60093 7.78862 4.86128 7.52827C5.12163 7.26792 5.54374 7.26792 5.80409 7.52827L7.33268 9.05687L10.8613 5.52827C11.1216 5.26792 11.5437 5.26792 11.8041 5.52827Z",fill:"white"})]})}),t.jsx("span",{className:"text-xs text-[#414343] font-medium inline-block",children:e})]}),C=({text:e})=>t.jsxs("div",{className:"flex items-start justify-start gap-[4px] w-full ",children:[t.jsx("div",{className:"w-4 h-4",children:t.jsx(w,{})}),t.jsx("span",{className:"text-xs text-[#EB5757] font-medium inline-block",children:e})]}),c=({data:e,section:o,title:l,inResume:i,inJBData:m,missMatch:r,resumeSubTitle:f,jbSubTitle:p,shortDiscription:j,score:E})=>{const[d,b]=x.useState({0:!0}),g=s=>{b(u=>({...u,[s]:!u[s]}))};return t.jsx("div",{className:" border border-[#E5E6EC] rounded-[8px] mx-auto bg-[#fff] w-full h-auto",children:t.jsxs("div",{className:"flex w-full flex-col justify-between gap-[8px]",children:[t.jsxs("div",{className:"flex items-center justify-between w-full gap-1 bg-[#A8A8AB33] py-5 px-5",children:[t.jsxs("div",{className:"flex flex-col justify-center rounded gap-1 max-w-[85%] ",children:[t.jsxs("h3",{className:"text-lg text-[#131D26] font-bold",children:[l," "]}),t.jsx("p",{className:"text-sm text-[#414343] font-medium",children:j})]}),t.jsxs("button",{type:"button",className:"flex items-center justify-center gap-1 text-sm text-[#219653] font-semibold",onClick:()=>g(o),children:["View Details"," ",d[o]?t.jsx(N,{}):t.jsx(v,{})]})]}),d[o]&&t.jsx(t.Fragment,{children:m.length>0?t.jsxs("div",{className:"w-full flex items-start justify-between px-[20px] pb-[20px]",children:[t.jsxs("div",{className:"flex flex-col items-start w-1/2",children:[t.jsx("h3",{className:"text-base text-[#131D26] font-bold mb-2",children:f}),t.jsx("div",{className:"flex flex-col gap-2",children:i.map(s=>t.jsx(h,{text:s}))})]}),t.jsxs("div",{className:"flex flex-col items-start justify-start w-1/2",children:[t.jsx("h3",{className:"text-base text-[#131D26] font-bold mb-2",children:p}),t.jsxs("div",{className:"flex flex-col gap-2",children:[m.map(s=>t.jsx(h,{text:s})),t.jsx("h4",{className:"text-base text-[#131D26] font-bold mb-2",children:"Missing In Your Resume"}),r==null?void 0:r.map(s=>t.jsx(C,{text:s}))]})]})]}):t.jsx("div",{className:"w-full flex items-start justify-center px-[20px]",children:t.jsx("span",{className:"text-base text-[#131D26] font-bold mb-2",children:"No Data"})})})]})})}
1,F=({analysisData:e})=>t.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 w-full ",children:[t.jsx(c,{section:0,data:e,title:"Hard Skills",shortDiscription:"Measures your technical and job-specific skills, ensuring your resume showcases the expertise required for the role. ",score:e==null?void 0:e.skill_match,inResume:e==null?void 0:e.hard_skills,inJBData:e==null?void 0:e.job_description_hard_skills,missMatch:e==null?void 0:e.mismatched_hard_skills,resumeSubTitle:"Hard Skills From Your Resume",jbSubTitle:"Hard Skills From Job Description"}),t.jsx(c,{section:1,data:e,score:e==null?void 0:e.skill_match,title:"Soft Skills",shortDiscription:"Evaluates communication, teamwork, and problem-solving abilities, highlighting essential personal attributes that set you apart.",inResume:e==null?void 0:e.soft_skills,inJBData:e==null?void 0:e.job_description_soft_skills,missMatch:e==null?void 0:e.mismatched_soft_skills,resumeSubTitle:"Soft Skills From Your Resume",jbSubTitle:"Soft Skills From Job Description"}),t.jsx(c,{section:3,data:e,score:e==null?void 0:e.experience_alignment,shortDiscription:"Our AI tool compares your past roles with the job description to assess how well your experience aligns with the position's demands.",title:"Your Work Experience Alignment",inResume:e==null?void 0:e.responsibilities,inJBData:e==null?void 0:e.job_description_responsibilities,missMatch:e==null?void 0:e.mismatched_responsibilities,resumeSubTitle:"Responsibilities From Your Resume",jbSubTitle:"Responsibilities From Job Description"}),t.jsx(c,{section:4,data:e,score:e==null?void 0:e.education_requirement,shortDiscription:"Ensures your academic background meets or exceeds the role's educational qualifications, giving you an edge in eligibility.",title:"Education Requirements",inResume:[],inJBData:[],missMatch:[],resumeSubTitle:"Responsibilities From Your Resume",jbSubTitle:"Responsibilities From Job Description"}),t.jsx(c,{section:5,data:e,score:e==null?void 0:e.keywords_match,shortDiscription:"Analyzes industry-specific keywords vital for applicant tracking systems (ATS) and for catching a recruiterâs eye.",title:"Category Keywords",inResume:e==null?void 0:e.category_keywords,inJBData:e==null?void 0:e.job_description_category_keywords,missMatch:e==null?void 0:e.mismatched_category_keywords,resumeSubTitle:"Category Keywords From Your Resume",jbSubTitle:"Category Keywords From Job Description"}),t.jsx(c,{section:6,data:e,title:"Job Title",shortDiscription:"Compares your job titles with the role youâre applying for, ensuring thereâs a clear connection between your past positions and the one you want.",inResume:e==null?void 0:e.job_titles,inJBData:e==null?void 0:e.job_description_job_titles,missMatch:e==null?void 0:e.mismatched_job_titles,resumeSubTitle:"Job Titles From Your Resume",jbSubTitle:"Job Titles From Job Description"})]}),A=({data:e})=>{function o(l){return l.join(", ")}return t.jsx("div",{className:"flex flex-col bg-[#fff] ",children:t.jsxs("div",{className:"py-5 px-3 flex flex-col gap-[8px]",children:[t.jsx(n,{bg:"#fff",children:t.jsxs("div",{className:"flex flex-col gap-[16px] text-pretty",children:[t.jsx("h3",{className:"text-sm text-[#131D26] font-semibold",children:"ATS Keywords"}),t.jsx("p",{className:"text-xs text-[#219653] font-medium inline-block w-[90%]",children:o(e==null?void 0:e.keywords)})]})}),t.jsx(n,{bg:"#fff",children:t.jsxs("div",{className:"flex flex-col gap-[16px]",children:[t.jsx("h3",{className:"text-sm text-[#131D26] font-semibold",children:"General Keywords"}),t.jsx("p",{className:"text-xs text-[#219653] font-medium inline-block w-[90%]",children:o(e==null?void 0:e.general_keywords)})]})})]})})},M=({analysisData:e})=>t.jsxs("div",{className:`flex flex-col w-full max-w-[60rem] 2 mt-0 h-[100%] overflow-x-hidden overflow-y-scroll scrollbar`,children:[t.jsxs("div",{className:"flex-col border-l border-[#E5E6EC] h-auto bg-[#FFFFFF] py-5 px-3 ",children:[t.jsx(T,{resumeScore:e==null?void 0:e.total}),t.jsx(F,{analysisData:e})]}),t.jsxs("div",{className:"w-full",children:[t.jsx("div",{className:"flex items-center justify-start py-2 px-5 bg-[#A8A8ABB2]",children:t.jsx("span",{className:"text-xs text-[#131D26] font-medium",children:"ATS and General Keywords suggestions to add"})}),t.jsx(A,{data:e})]})]}),K=()=>{const e=S(),o=e.state&&e.state.data;return t.jsx(t.Fragment,{children:t.jsx(k,{children:t.jsxs("div",{className:"flex flex-col w-full mb-5 mx-auto overflow-y-auto h-auto",children:[t.jsx(R,{title:"AI Role Match",subTitle:"Find out your match",needRoute:!0,routeTo:"ai-role-match"}),t.jsx("div",{className:"flex items-center justify-center w-full h-auto py-5",style:{height:"calc(100vh - 145px)",overflowY:"hidden"},children:t.jsx(M,{analysisData:o})})]})})})};export{K as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.