1"use strict";(self.webpackChunkmicrodegree=self.webpackChunkmicrodegree||[]).push([[5780],{55780:function(e,t,n){n.r(t);var s=n(74165),a=n(15861),r=n(93433),o=n(4942),i=n(1413),l=n(29439),d=n(72791),c=n(40008),m=n(66911),u=n(57689),x=n(96213),p=n(80184);t.default=function(){var e=(0,m.Q)().setResumeData,t=(0,m.Q)().resumeData,n=(0,u.s0)(),h=(0,u.TH)();(0,d.useEffect)((function(){var e;null!==(e=h.state)&&void 0!==e&&e.scrollToTop&&window.scrollTo({top:0,behavior:"smooth"})}),[h]);var f=(0,d.useState)({givenName:"",familyName:"",email:"",headline:"",phone:"",address:"",postCode:"",city:"",summary:"",experiences:[{company:"",role:"",startDate:"",endDate:"",description:""}],education:[{institution:"",degree:"",startDate:"",endDate:"",description:""}],internships:[{company:"",role:"",startDate:"",endDate:"",description:""}],projects:[{title:"",description:""}],skills:[""],languages:[""],technologies:[""],photo:null}),b=(0,l.Z)(f,2),g=b[0],j=b[1],N=(0,d.useState)({}),v=(0,l.Z)(N,2),y=v[0],D=v[1],w=(0,d.useState)(""),k=(0,l.Z)(w,2),Z=(k[0],k[1]),C=(0,d.useState)(!1),F=(0,l.Z)(C,2),A=F[0],E=F[1],S=(0,d.useState)(null),P=(0,l.Z)(S,2),T=(P[0],P[1]),B=(0,d.useState)(""),q=(0,l.Z)(B,2),I=(q[0],q[1]),G=function(e){var t=e.target,n=t.name,s=t.value;j((0,i.Z)((0,i.Z)({},g),{},(0,o.Z)({},n,s))),"summary"===n&&I(s)},R=function(e,t,n,s){var a=g[s].map((function(s,a){return a===e?(0,i.Z)((0,i.Z)({},s),{},(0,o.Z)({},t,n)):s}));j((0,i.Z)((0,i.Z)({},g),{},(0,o.Z)({},s,a)))},L=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n){var a;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=g.technologies.map((function(e,s){return s===t?n:e})),j((0,i.Z)((0,i.Z)({},g),{},{technologies:a}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),M=function(e){j((function(t){return(0,i.Z)((0,i.Z)({},t),{},(0,o.Z)({},e,[].concat((0,r.Z)(t[e]),[{company:"",role:"",startDate:"",endDate:"",description:""}])))}))},z=function(){var e={};return g.givenName||(e.givenName="Given name is required"),g.familyName||(e.familyName="Family name is required"),g.photo||(e.photo="Photo is required"),g.email||(e.email="Email address is required"),g.headline||(e.headline="Headline is required"),g.phone||(e.phone="Phone number is required"),g.experiences.forEach((function(t,n){t.company||(e.company="Company is required"),t.role||(e.role="Role is required"),t.startDate||(e.startDate="Start Date is required"),t.endDate||(e.endDate="End Date is required"),t.description||(e.description="Description is required")})),g.internships.forEach((function(t,n){t.company||(e.internshipCompany="Company is required"),t.role||(e.internshipRole="Role is required"),t.startDate||(e.internshipStartDate="Start Date is required"),t.endDate||(e.internshipEndDate="End Date is required"),t.description||(e.internshipDescription="Description is required")})),g.projects.forEach((function(t,n){t.title||(e.projecttitle="Title is required"),t.description||(e.projectDescription="Description is required")})),g.education.forEach((function(t,n){t.institution||(e.institution="Institution is required"),t.degree||(e.degree="Degree is required"),t.startDate||(e.startDate="Start Date is required"),t.endDate||(e.endDate="End Date is required")})),e.technologies=[],g.technologies.forEach((function(t,n){t||(e.technologies="Technology is required")})),0===e.technologies.length&&delete e.technologies,e.languages=[],g.languages.forEac
1h((function(t,n){t||(e.languages="Language is required")})),0===e.languages.length&&delete e.languages,e},H=function(){var t=(0,a.Z)((0,s.Z)().mark((function t(n){var a,o,l,d,m,u,x,p,h,f,b,N,v;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),e(g),a=z(),!(Object.keys(a).length>0)){t.next=6;break}return D(a),t.abrupt("return");case 6:return o=g.technologies.filter((function(e){return e.trim()})).join(", "),l=g.internships.map((function(e,t){return"\n \n - Role: ".concat(e.role||"Not provided","\n - Company: ").concat(e.company||"Not provided","\n - Period: ").concat(e.startDate||"Not provided"," - ").concat(e.endDate||"Not provided","\n - Description: ").concat(e.description.replace(/\. /g,".\n ")||"Not provided","\n ")})).join("\n"),d=g.projects.map((function(e,t){return"\n \n - Title: ".concat(e.role||"Not provided","\n - Description: ").concat(e.description.replace(/\. /g,".\n ")||"Not provided","\n ")})).join("\n"),m="\n Generate a polished and comprehensive Professional Summary and Experience based on the following details. Improve, expand, and elaborate on the information where possible. separate each section appropriately.Maximum 2 lines. Here are the details to include:\n\n \n Professional Summary:\n ".concat(g.summary||"Not provided","\n Generate a professional summary for a ").concat(g.headline||"Not provided"," role. Please ensure to enhance the provided details to make them more detailed, impactful, and professional.For professional summary generate Maximum 30 words.\n\n Internships:\n ").concat(l,"\n Please enhance the internship details to highlight key learnings, achievements, and responsibilities. For internships generate Maximum 4 points in a paragraph. Generate internship descriptions in paragraph format. If there are multiple internships generate description in separate paragraphs for respective internships.\n \n Projects:\n ").concat(d,"\n Please enhance the project details to highlight key learnings, achievements, and responsibilities. For internships generate Maximum 4 points in a paragraph. Generate internship descriptions in paragraph format. If there are multiple projects generate description in separate paragraphs for respective projects.\n\n Experience:\n ").concat(g.experiences.length>0?g.experiences.map((function(e){return"\n - Description: ".concat(e.description.replace(/\. /g,".\n ")||"Not provided","\n")})).join("\n"):"Not provided","\n \n Please ensure to enhance the provided details to make them more detailed, impactful, and professional.For experience generate Maximum 4 points in a paragraph. Generate experience in paragraph. If there are 2 experiences generate description in 2 paragraphs for respective experiences.\n\n\n Technology Suggestions:\n Based on these technologies: ").concat(o,'\n Please suggest 5 additional relevant technologies that would complement this stack. Format as "Additional Technologies: tech1, tech2, tech3, tech4, tech5"\n\n '),E(!0),window.scrollTo(0,0),t.prev=12,t.next=15,c.Z.post("/.netlify/functions/openai-chat",{model:"gpt-3.5-turbo",messages:[{role:"user",content:m}]},{headers:{"Content-Type":"application/json"}});case 15:u=t.sent,x=u.data.choices[0].message.content,Z(x),T(U(x)),E(!1),(p=x.match(/Additional Technologies: (.*?)(?:\n|$)/))&&p[1]&&(h=p[1].split(",").map((function(e){return e.trim()})),console.log("Tech Match:",p),console.log("Extracted Technologies:",h),j((function(e){console.log("Previous Technologies:",e.technologies);var t=[].concat((0,r.Z)(e.technologies),(0,r.Z)(h));return console.log("Updated Technologies:",t),(0,i.Z)((0,i.Z)({},e),{},{technologies:t})}))),f=O(x),b=W(x),N=J(x),v=Q(x),console.log("Generated Professional Summary:"),console.log(f),console.log("\nGenerated Experience:"),console.log(b),console.log("Extracted Internship Descriptions:",N),console.log("Extracted Project Descriptions:",v),e((function(e){return(0,i.Z)((0,i.Z)({},e),{},{professionalSummary:f,experienceDescription:b,internshipDescription:N,projectDescription:v})})),t.next=40;break;case 35:t.prev=35,t.t0=t.catch(12),console.error("There was an error with the API request",t.t0),Z("There was an error with the API request"),E(!1);case 40:case"end":return t.stop()}}),t,null,[[12,35]])})));return function(e){return t.apply(this,arguments)}}
1(),O=function(e){var t=e.match(/Professional Summary:\n([\s\S]*?)(\n\n|$)/);return t?t[1].trim().replace(/\n/g," "):""},W=function(e){var t=e.split(/\n(?=[A-Z][a-z]+:)/).find((function(e){return e.startsWith("Experience:")}));return t?t.replace("Experience:","").trim():""},J=function(e){var t=e.split(/\n(?=[A-Z][a-z]+:)/).find((function(e){return e.startsWith("Internships:")}));return t?t.replace("Internships:","").trim():""},Q=function(e){var t=e.split(/\n(?=[A-Z][a-z]+:)/).find((function(e){return e.startsWith("Projects:")}));return t?t.replace("Projects:","").trim():""},U=function(e){return e.split("\n\n").map((function(e,t){var n=e.indexOf("\n"),s=e.substring(0,n).trim(),a=e.substring(n+1).trim();[/Email: .* Phone: .*/,/Overall, .*/].some((function(e){return e.test(s)}));return(0,p.jsxs)("div",{children:[(0,p.jsx)("h2",{className:"text-left",children:s}),(0,p.jsx)("p",{className:"text-left",children:a})]},t)}))};return(0,p.jsx)("div",{className:"flex justify-center items-center flex-col lg:flex-row p-6 gap-6 lg:gap-12 bg-[#f9f8fd]",children:(0,p.jsx)("div",{className:"1/2 sm:w-11/12 md:w-10/12 lg:w-9/12 xl:w-8/12 mx-auto bg-transparent rounded-lg shadow-none",children:(0,p.jsxs)("form",{onSubmit:H,children:[(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Personal Details"}),(0,p.jsxs)("div",{className:"mb-5 flex flex-col gap-5 lg:flex-row lg:gap-5",children:[(0,p.jsxs)("div",{className:"flex-1",children:[(0,p.jsxs)("label",{htmlFor:"givenName",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["First Name ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{type:"text",name:"givenName",id:"givenName",placeholder:"First name",value:g.givenName,onChange:G,className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.givenName&&(0,p.jsx)("span",{className:"text-red-500",children:y.givenName})]}),(0,p.jsxs)("div",{className:"flex-1",children:[(0,p.jsxs)("label",{htmlFor:"familyName",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Surname ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{type:"text",name:"familyName",id:"familyName",placeholder:"Surname",value:g.familyName,onChange:G,className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.familyName&&(0,p.jsx)("span",{className:"text-red-500",children:y.familyName})]})]}),(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{htmlFor:"photo",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Upload Photo ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{type:"file",name:"photo",id:"photo",onChange:function(e){j((0,i.Z)((0,i.Z)({},g),{},{photo:e.target.files[0]}))},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.photo&&(0,p.jsx)("span",{className:"text-red-500",children:y.photo})]}),(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{htmlFor:"email",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Email address ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{type:"email",name:"email",id:"email",placeholder:"Email address",value:g.email,onChange:G,className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.email&&(0,p.jsx)("span",{className:"text-red-500",children:y.email})]}),(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{htmlFor:"headline",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Job Title ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{type:"text",name:"headline",id:"headline",placeholder:"Job Title",value:g.headline,onChange:G,className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focu
1s:shadow-md"}),y.headline&&(0,p.jsx)("span",{className:"text-red-500",children:y.headline})]}),(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{htmlFor:"phone",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Phone number ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{type:"text",name:"phone",id:"phone",placeholder:"Phone number",value:g.phone,onChange:G,className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.phone&&(0,p.jsx)("span",{className:"text-red-500",children:y.phone})]})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Professional Summary"}),(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsx)("label",{htmlFor:"summary",className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:"Summary"}),(0,p.jsx)("textarea",{name:"summary",id:"summary",placeholder:"Professional Summary",value:g.summary,onChange:G,className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md",rows:"4"})]})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Experiences"}),g.experiences.map((function(e,t){return(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Company ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"company",id:"company",type:"text",value:e.company,onChange:function(e){return R(t,"company",e.target.value,"experiences")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.company&&(0,p.jsx)("span",{className:"text-red-500",children:y.company}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Role ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"role",id:"role",type:"text",value:e.role,onChange:function(e){return R(t,"role",e.target.value,"experiences")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.role&&(0,p.jsx)("span",{className:"text-red-500",children:y.role}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Start Date ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"startDate",id:"startDate",type:"text",value:e.startDate,onChange:function(e){return R(t,"startDate",e.target.value,"experiences")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.startDate&&(0,p.jsx)("span",{className:"text-red-500",children:y.startDate}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["End Date ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"endDate",id:"endDate",type:"text",value:e.endDate,onChange:function(e){return R(t,"endD
1ate",e.target.value,"experiences")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.endDate&&(0,p.jsx)("span",{className:"text-red-500",children:y.endDate}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Description ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("textarea",{name:"description",id:"description",value:e.description,onChange:function(e){return R(t,"description",e.target.value,"experiences")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md",rows:"4"}),y.description&&(0,p.jsx)("span",{className:"text-red-500",children:y.description})]},t)})),(0,p.jsx)("button",{type:"button",onClick:function(){return M("experiences")},className:"bg-blue-500 w-full text-white py-2 px-4 rounded-md mb-5",children:"Add Experience"})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Internships"}),g.internships.map((function(e,t){return(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Company ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"company",id:"internship-company",type:"text",value:e.company,onChange:function(e){return R(t,"company",e.target.value,"internships")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.internshipCompany&&(0,p.jsx)("span",{className:"text-red-500",children:y.internshipCompany}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Role ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"role",id:"internship-role",type:"text",value:e.role,onChange:function(e){return R(t,"role",e.target.value,"internships")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.internshipRole&&(0,p.jsx)("span",{className:"text-red-500",children:y.internshipRole}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Start Date ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"startDate",id:"internship-startDate",type:"text",value:e.startDate,onChange:function(e){return R(t,"startDate",e.target.value,"internships")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.internshipStartDate&&(0,p.jsx)("span",{className:"text-red-500",children:y.internshipStartDate}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["End Date ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"endDate",id:"internship-endDate",type:"text",value:e.endDate,onChange:function(e){return R(t,"endD
1ate",e.target.value,"internships")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.internshipEndDate&&(0,p.jsx)("span",{className:"text-red-500",children:y.internshipEndDate}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Description ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("textarea",{name:"description",id:"internship-description",value:e.description,onChange:function(e){return R(t,"description",e.target.value,"internships")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md",rows:"4"}),y.internshipDescription&&(0,p.jsx)("span",{className:"text-red-500",children:y.internshipDescription})]},t)})),(0,p.jsx)("button",{type:"button",onClick:function(){return M("internships")},className:"bg-blue-500
1w-full text-white py-2 px-4 rounded-md mb-5",children:"Add Internship"})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Projects"}),g.projects.map((function(e,t){return(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Project Title ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"title",id:"project-title",type:"text",value:e.title,onChange:function(e){return R(t,"title",e.target.value,"projects")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.projectTitle&&(0,p.jsx)("span",{className:"text-red-500",children:y.projectTitle}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Description ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("textarea",{name:"description",id:"project-description",value:e.description,onChange:function(e){return R(t,"description",e.target.value,"projects")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md",rows:"4"}),y.projectDescription&&(0,p.jsx)("span",{className:"text-red-500",children:y.projectDescription}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["GitHub Link ",(0,p.jsx)("span",{className:"text-gray-500 text-sm",children:"(optional)"})]}),(0,p.jsx)("input",{name:"githubLink",id:"project-githubLink",type:"url",value:e.githubLink,onChange:function(e){return R(t,"githubLink",e.target.value,"projects")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"})]},t)})),(0,p.jsx)("button",{type:"button",onClick:function(){return M("projects")},className:"bg-blue-500 w-full text-white py-2 px-4 rounded-md mb-5",children:"Add Project"})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Education"}),g.education.map((function(e,t){return(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Institution ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"institution",id:"institution",type:"text",value:e.institution,onChange:function(e){return R(t,"institution",e.target.value,"education")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.institution&&(0,p.jsx)("span",{className:"text-red-500",children:y.institution}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Degree ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"degree",id:"degree",type:"text",value:e.degree,onChange:function(e){return R(t,"degree",e.target.value,"education")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.degree&&(0,p.jsx)("span",{className:"text-red-500",children:y.degree}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["Start Date ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"startDate",id:"startDate",type:"text",value:e.startDate,onChange:function(e){return R(t,"startDate",e.target.value,"education")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focu
1s:shadow-md"}),y.startDate&&(0,p.jsx)("span",{className:"text-red-500",children:y.startDate}),(0,p.jsxs)("label",{className:"block mt-3 mb-3 text-base text-left font-medium text-[#07074D]",children:["End Date ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"endDate",id:"endDate",type:"text",value:e.endDate,onChange:function(e){return R(t,"endDate",e.target.value,"education")},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.endDate&&(0,p.jsx)("span",{className:"text-red-500",children:y.endDate})]},t)})),(0,p.jsx)("button",{type:"button",onClick:function(){return M("education")},className:"bg-blue-500 w-full text-white py-2 px-4 rounded-md mb-5",children:"Add Education"})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Skills"}),g.technologies.map((function(e,t){return(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Skill ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"technologies",id:"technologies",type:"text",value:e,onChange:function(e){return L(t,e.target.value)},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.technologies&&(0,p.jsx)("span",{className:"text-red-500",children:y.technologies})]},t)})),(0,p.jsx)("button",{type:"button",onClick:function(){j((function(e){return(0,i.Z)((0,i.Z)({},e),{},{technologies:[].concat((0,r.Z)(e.technologies),[""])})}))},className:"bg-blue-500 w-full text-white py-2 px-4 rounded-md mb-5",children:"Add Skill"})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsxs)("div",{className:"bg-white p-6 shadow-lg rounded-lg",children:[(0,p.jsx)("h1",{className:"mb-5 text-2xl font-bold text-[#07074D]",children:"Languages"}),g.languages.map((function(e,t){return(0,p.jsxs)("div",{className:"mb-5",children:[(0,p.jsxs)("label",{className:"block mb-3 text-base text-left font-medium text-[#07074D]",children:["Language ",(0,p.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,p.jsx)("input",{name:"languages",id:"languages",type:"text",value:e,onChange:function(e){return function(e,t){var n=g.languages.map((function(n,s){return s===e?t:n}));j((0,i.Z)((0,i.Z)({},g),{},{languages:n}))}(t,e.target.value)},className:"w-full rounded-md border border-[#e0e0e0] bg-[#eaf5ff] py-3 px-6 text-base font-medium text-[#6B7280] outline-none focus:border-[#6A64F1] focus:shadow-md"}),y.languages&&(0,p.jsx)("span",{className:"text-red-500",children:y.languages})]},t)})),(0,p.jsx)("button",{type:"button",onClick:function(){j((function(e){return(0,i.Z)((0,i.Z)({},e),{},{languages:[].concat((0,r.Z)(e.languages),[""])})}))},className:"bg-blue-500 w-full text-white py-2 px-4 rounded-md mb-5",children:"Add Language"})]}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("button",{onClick:function(){var e=z();0===Object.keys(e).length?t.selectedTemplate?(E(!0),setTimeout((function(){n("/resume/".concat(t.selectedTemplate)),E(!1)}),5e3)):alert("Please select a template first"):console.log("Validation failed:",e)},type:"submit",className:"bg-blue-500 w-full text-white py-2 px-4 rounded-md",children:"Generate Resume"}),A&&(0,p.jsx)(x.Z,{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{}),(0,p.jsx)("br",{})]})})})}},96213:function(e,t,n){var s=n(29439),a=n(72791),r=n(80184);t.Z=function(){var e=(0,a.useState)(!0),t=(0,s.Z)(e,2),n=t[0],o=t[1];return(0,a.useEffect)((function(){var e=setTimeout((function(){o(!1)}),5e3);return function(){return clearTimeout(e)}}),[]),n?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:(0,r.jsxs)("div",{className:"bg-white p-8 rounded-lg shadow-xl text-center",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 w-16 h-16 border-4 border-blue-500 border-t-4 border-t-transparent roun
1ded-full animate-spin"}),(0,r.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"Generating Your Resume"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Please wait while we create your personalized resume..."})]})}):null}}}]); 2//# sourceMappingURL=5780.73e151f2.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.