1void 0===Promise.withResolvers&&(Promise.withResolvers=function(){let e,t;return{promise:new Promise((s,l)=>{e=s,t=l}),resolve:e,reject:t}}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88421],{14697:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new-resume-builder",function(){return s(10819)}])},87645:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var l=s(85893),n=s(93790);function i(e){let{children:t}=e,{className:s}=(0,n.DY)();return(0,l.jsx)("div",{className:"".concat(s," overflow-hidden"),children:t})}},1748:function(e,t,s){"use strict";s.d(t,{Nt:function(){return i},R4:function(){return n}});var l=s(85893);s(67294),s(61512),s(24271);let n=e=>{let{label:t,className:s,children:n}=e;return(0,l.jsxs)("label",{className:"text-base font-medium text-gray-700 ".concat(s),children:[t,n]})},i=" block rounded-md text-gray-900 border p-2 focus-within:outline-gray-200"},24271:function(e,t,s){"use strict";s.d(t,{b:function(){return n}});var l=s(67294);let n=e=>{let{value:t}=e,s=(0,l.useRef)(null),n=()=>{let e=s.current;e&&(e.style.height="0px",e.style.height="".concat(e.scrollHeight,"px"))};return(0,l.useEffect)(()=>{n()},[t]),(0,l.useEffect)(()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[]),s}},5032:function(e,t,s){"use strict";s.d(t,{$U:function(){return l},BE:function(){return d},BF:function(){return a},J2:function(){return r},Zs:function(){return o},iL:function(){return i},qA:function(){return c},wG:function(){return n}});let l=4/3,n=612,i=4/3*612,r=4/3*792,a=595,o=4/3*595,c=4/3*842,d=void 0},82869:function(e,t,s){"use strict";s.d(t,{A8:function(){return r},JL:function(){return l},rS:function(){return i},u9:function(){return a},zZ:function(){return n}});let l=["Roboto","Lato","Montserrat","OpenSans","Raleway","Caladea","Lora","RobotoSlab","PlayfairDisplay","Merriweather"],n=["NotoSansSC"],i={NotoSansSC:["zh","zh-CN","zh-TW"]},r={Roboto:11,Lato:11,Montserrat:10,OpenSans:10,Raleway:10,Caladea:11,Lora:11,RobotoSlab:10,PlayfairDisplay:10,Merriweather:10,NotoSansSC:11},a={Roboto:"Roboto",Lato:"Lato",Montserrat:"Montserrat",OpenSans:"Open Sans",Raleway:"Raleway",Caladea:"Caladea",Lora:"Lora",RobotoSlab:"Roboto Slab",PlayfairDisplay:"Playfair Display",Merriweather:"Merriweather",NotoSansSC:"ææºé»ä½(ç®ä½)"}},33486:function(e,t,s){"use strict";s.d(t,{z:function(){return i}});var l=s(82869);let n=()=>l.zZ.filter(e=>{var t;let s=l.rS[e];return(null!==(t=navigator.languages)&&void 0!==t?t:[navigator.language]).some(e=>s.includes(e))}),i=()=>[...l.JL,...n()]},10819:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return t_}});var l=s(85893),n=s(41248),i=s(43034),r=s(91709),a=s(80237),o=s(72987);let c=(0,i.xC)({reducer:{resume:r.ZP,settingsResume:a.ZP,resumeScore:o.ZP}});var d=s(67294),u=s(23287),m=s(61512),h=s.n(m),p=s(24271);let x=e=>{let{label:t,className:s,children:n}=e;return(0,l.jsxs)("label",{className:"text-base font-medium text-gray-700 ".concat(s),children:[t,n]})},g="mt-1 px-3 py-2 block w-full rounded-md border border-gray-300 text-gray-900 shadow-sm outline-none font-normal text-base",f=e=>{let{name:t,value:s="",placeholder:n,onChange:i,maxLength:r,label:a,labelClassName:o}=e;return(0,l.jsx)(x,{label:a,className:o,children:(0,l.jsx)("input",{type:"text",name:t,value:s,maxLength:null!=r?r:1e4,placeholder:n,onChange:e=>i(t,e.target.value),className:g})})},b=e=>{let{label:t,labelClassName:s,name:n,value:i="",placeholder:r,onChange:a,disabled:o}=e,c=(0,p.b)({value:i});return(0,l.jsx)(x,{label:t,className:s,children:(0,l.jsx)("textarea",{ref:c,name:n,className:"".concat(g," resize-none overflow-hidden"),placeholder:r,value:i,onChange:e=>a(n,e.target.value),disabled:o})})},v=e=>{let[t,s]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{let e=navigator.userAgent.includes("Firefox"),t=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");(e||t)&&s(!0)},[]),t)?(0,l.jsx)(S,{...e}):(0,l.jsx)(j,{...e})},j=e=>{let{label:t,labelClassName:s,name:n,value:i=[],placeholder:r,onChange:a,showBulletPoints:o=!0,disabled:c}=e,d=N(i);return(0,l.jsx)(x,{label:t,className:s,children:(0,l.jsx)(h(),{contentEditable:!0,className:"".concat(g," cursor-text [&>div]:list-item ").concat(o?"pl-7":"[&>div]:list-['']"),onChange:e=>{if("input"===e.type){let{innerText:t}=e.currentTarget;a(n,k(t))}},onBlur:e=>{let{innerText:t}=e.currentTarget,s=k(t);a(n,s=s.filter(e=>""!==e.trim()))},html:d})})},y=e=>e.replace(/\r?\n/g,"\n"),w=e=>e.replace(/\n\n/g,"\n"),C=e=>e.split("\n"),k=e=>{let t=w(y(e));return"\n"===t&&(t=""),C(t)},N=e=>0===e.length?"<div></div>":e.map(e=>"<div>".concat(e,"</div>")).join(""),S=e=>{let{label:t,labelClassName:s,name:n,value:i=[],placeholder:r,onChange:a,showBulletPoints:o=!0,disabled:c}=e,d=E(i,o);return(0,l.jsx)(b,{label:t,labelClassName:s,name:n,value:d,placeholder:r,onChange:(e,t)=>
1{a(e,D(t,o))}})},E=(e,t)=>{let s=t?"⢠":"";if(0===e.length)return s;let l="";for(let t=0;t<e.length;t++){let n=e[t],i=t===e.length-1;l+="".concat(s).concat(n).concat(i?"":"\r\n")}return l},D=(e,t)=>{let s=C(y(e));if(t){let e=s.filter(e=>"â¢"!==e),t=[];for(let s of e)if(s.startsWith("⢠"))t.push(s.slice(2));else if(s.startsWith("â¢")){let e=t.length-1;if(e>=0){let l=t[e];t[e]="".concat(l).concat(s.slice(1))}else t.push(s.slice(1))}else t.push(s);return t}return s},A=e=>{let{expanded:t,children:s}=e;return(0,l.jsx)("div",{className:"grid overflow-hidden transition-all duration-300 ".concat(t?"visible":"invisible"),style:{gridTemplateRows:t?"1fr":"0fr"},children:(0,l.jsx)("div",{className:"min-h-0",children:s})})},T=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];let l=[];for(let e of t)"string"==typeof e&&l.push(e.trim());return l.join(" ")};var L=s(73935);let R=e=>{let{text:t,children:s}=e,n=(0,d.useRef)(null),i=(0,d.useRef)(null),[r,a]=(0,d.useState)({top:0,left:0}),[o,c]=(0,d.useState)(!1),u=()=>c(!0),m=()=>c(!1);return(0,d.useEffect)(()=>{let e=n.current,t=i.current;if(e&&t){let s=e.getBoundingClientRect();a({top:s.top+s.height+6,left:s.left-t.offsetWidth/2+s.width/2})}},[o]),(0,l.jsxs)("span",{ref:n,onMouseEnter:u,onMouseLeave:m,onFocus:u,onBlur:m,onClick:m,children:[s,o&&(0,L.createPortal)((0,l.jsx)("div",{ref:i,role:"tooltip",className:"absolute left-0 top-0 z-10 w-max rounded-md bg-gray-600 px-2 py-0.5 text-sm text-white",style:{left:"".concat(r.left,"px"),top:"".concat(r.top,"px")},children:t}),document.body)]})},P=e=>"href"in e,z=e=>P(e)?(0,l.jsx)("a",{...e}):(0,l.jsx)("button",{type:"button",...e}),B=e=>{let{className:t,size:s="medium",tooltipText:n,...i}=e;return(0,l.jsx)(R,{text:n,children:(0,l.jsx)(z,{type:"button",className:T("rounded-full outline-none hover:bg-gray-100 focus-visible:bg-gray-100","medium"===s?"p-1.5":"p-1",t),...i})})};var F=s(84874),M=s(58566),V=s(58710),I=s(15645),Z=s(33903),H=s(48792);let O=e=>{let{show:t,setShow:s}=e,n=t?"Hide section":"Show section",i=t?F.Z:M.Z;return(0,l.jsxs)(B,{onClick:()=>{s(!t)},tooltipText:n,children:[(0,l.jsx)(i,{className:"h-6 w-6 text-gray-400","aria-hidden":"true"}),(0,l.jsx)("span",{className:"sr-only",children:n})]})},G=e=>{let{type:t,size:s="medium",onClick:n}=e,i="up"===t?"Move up":"Move down",r="medium"===s?"h-6 w-6":"h-4 w-4",a="up"===t?V.Z:I.Z;return(0,l.jsxs)(B,{onClick:()=>n(t),tooltipText:i,size:s,children:[(0,l.jsx)(a,{className:"".concat(r," text-gray-400"),"aria-hidden":"true"}),(0,l.jsx)("span",{className:"sr-only",children:i})]})},W=e=>{let{onClick:t,tooltipText:s}=e;return(0,l.jsxs)(B,{onClick:t,tooltipText:s,size:"small",children:[(0,l.jsx)(Z.Z,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"}),(0,l.jsx)("span",{className:"sr-only",children:s})]})},_=e=>{let{onClick:t,showBulletPoints:s}=e,n=s?"Hide bullet points":"Show bullet points";return(0,l.jsxs)(B,{onClick:()=>t(!s),tooltipText:n,size:"small",className:s?"!bg-sky-100":"",children:[(0,l.jsx)(H.Z,{className:"h-4 w-4 ".concat(s?"text-gray-700":"text-gray-400"),"aria-hidden":"true"}),(0,l.jsx)("span",{className:"sr-only",children:n})]})};var J=s(52123),U=s(63146),Y=s(64964),Q=s(18625),q=s(99115);let X=e=>{let{children:t,className:s}=e;return(0,l.jsx)("section",{className:"flex flex-col gap-3 rounded-md bg-white p-6 pt-4 shadow transition-opacity duration-200 ".concat(s),children:t})},K={summary:J.Z,workExperiences:U.Z,educations:Y.Z,projects:J.Z,skills:Q.Z,custom:Q.Z,certificate:Y.Z,achievements:J.Z,hobbies:Q.Z},$=e=>{let{form:t,addButtonText:s,children:n}=e,i=(0,u.CG)((0,a.wo)(t)),o=(0,u.CG)((0,a.hs)(t)),c=(0,u.TL)(),d=e=>{c((0,a.ON)({field:t,value:e}))},m=(0,u.CG)((0,a.De)(t)),h=(0,u.CG)((0,a.Yy)(t)),p=e=>{c((0,a.Lk)({form:t,type:e}))},x=K[t];return(0,l.jsxs)(X,{className:"transition-opacity duration-200 ".concat(i?"pb-6":"pb-2 opacity-60"),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,l.jsxs)("div",{className:"flex grow items-center gap-2",children:[(0,l.jsx)(x,{className:"h-6 w-6 text-gray-600","aria-hidden":"true"}),(0,l.jsx)("input",{type:"text",className:"block w-full border-b border-transparent text-lg font-semibold tracking-wide text-gray-900 outline-none hover:border-gray-300 hover:shadow-sm focus:border-gray-300 focus:shadow-sm",value:o,onChange:e=>d(e.target.value)})]}),(0,l.jsxs)("div",{className:"flex items-center gap-0.5",children:[!m&&(0,l.jsx)(G,{type:"up",onClick:p}),!h&&(0,l.jsx)(G,{type:"down",onClick:p}),(0,l.jsx)(O,{show:i,setShow:e=>{c((0,a.z5)({field:t,value:e}))}})]})]}),(0,l.jsx)(A,{expanded:i,children:n}),i&&s&&(0,l.jsx)("div",{className:"mt-2 flex justify-end",children:(0,l.jsxs)("button",{type:"button",onClick:()=>{c((0,r.Ue)({form:t}))},className:"flex items-center rounded-md bg-white md:mb-3 py-2 pl-3 pr-4 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:[(0,l.jsx)(q.Z,{className:"-ml-0.5 mr-1.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),s]})})]})},ee=e=>{let{form:t,idx:s,showMoveUp:n,showMoveDown:i,showDelete:a,deleteButtonTooltipText:o,children:c}=e,d=(0,u.TL)(),m=e=>{d((0,r.fx)({form:t,direction:e,idx:s}))};return(0,l.jsxs)(l.Fragment,{children:[0!==s&&(0,l.jsx)("div",{className:"mb-4 mt-6 border-t-2 border-dotted border-gray-200"}),(0,l.jsxs)("div",{className:"relative grid grid-cols-6 gap-3",children:[c,(0,l.jsxs)("div",{className:"absolute right-0 top-0 flex -mr-[7px] lg:gap-0.3 text-end ",children:[(0,l.jsx)("div",{className:"transition-all duration-300 ".concat(n?"":"invisible opacity-0"," ").concat(i?"":"-mr-6"),children:(0,l.jsx)(G,{type:"up",size:"small",onClick:()=>m("up")})}),(0,l.jsx)("div",{className:"transition-all duration-300 ".concat(i?"":"invisible opacity-0"),children:(0,l.jsx)(G,{type:"down",size:"small",onClick:()=>m("down")})})]}),(0,l.jsx)("div",{className:"transition-all duration-300 ".concat(a?"":"invisible opacity-0"," "),children:(0,l.jsx)(W,{onClick:()=>{d((0,r.hR)({form:t,idx:s}))},tooltipText:o})})]})]})},et=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.tM),a=(0,u.TL)();if(!i)return(0,l.jsx)("div",{children:"Loading profile..."});let{name:o,email:c,phone:d,url:m,location:h}=i,p=(e,t)=>{a((0,r.WY)({field:e,value:t}))};return(0,l.jsx)(X,{children:(0,l.jsxs)("div",{className:"grid grid-cols-6 gap-3",children:[(0,l.jsx)(f,{label:"Name",labelClassName:"col-span-full",name:"name",placeholder:"John Doe",maxLength:50,value:o,onChange:p}),(0,l.jsx)(f,{label:"Email",labelClassName:"col-span-4",name:"email",placeholder:"[email protected]",maxLength:50,value:c,onChange:p}),(0,l.jsx)(f,{label:"Phone",labelClassName:"col-span-2",name:"phone",placeholder:"(123)456-7890",value:d,maxLength:20,onChange:p}),(0,l.jsx)(f,{label:"Website",labelClassName:"col-span-4",name:"url",placeholder:"linkedin.com/in/codingjr",value:m,onChange:p,maxLength:100}),(0,l.jsx)(f,{label:"Location",labelClassName:"col-span-2",maxLength:50,name:"location",placeholder:"NYC, NY",value:h,onChange:p})]})})};var es=s(23432),el=s(14279);let en=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.b2),o=(0,u.TL)(),c=(null==i?void 0:i.length)>1,d="workExperiences",m=(0,u.CG)((0,a.Am)(d)),h=e=>"workExperiences"==n&&s==="workExperiences.".concat(e);return(0,l.jsx)($,{form:"workExperiences",addButtonText:"Add Job",children:i.map((e,s)=>{let{company:n,jobTitle:u,date:p,descriptions:x}=e,g=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];
1let[n,i]=t;o((0,r.Dv)({idx:s,field:n,value:i}))},b=0!==s,j=s!==(null==i?void 0:i.length)-1,y=x.join("\n"),w="".concat(s,".descriptions");return(0,l.jsxs)(ee,{form:"workExperiences",idx:s,showMoveUp:b,showMoveDown:j,showDelete:c,deleteButtonTooltipText:"Delete job",children:[(0,l.jsx)(f,{label:"Company",labelClassName:"col-span-full",name:"company",placeholder:"Apple",value:n,maxLength:50,onChange:g}),(0,l.jsx)(f,{label:"Job Title",labelClassName:"col-span-4",maxLength:50,name:"jobTitle",placeholder:"Software Engineer",value:u,onChange:g}),(0,l.jsx)(f,{label:"Date",labelClassName:"col-span-2",name:"date",maxLength:30,placeholder:"Jun 2022 - Present",value:p,onChange:g}),(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Description"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>null==t?void 0:t("workExperiences.".concat(s,".descriptions"),y),disabled:h(w)||!y||""===y.trim(),children:h(w)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})}),(0,l.jsx)(_,{showBulletPoints:m,onClick:e=>o((0,a.V1)({field:d,value:e}))})]})]}),(0,l.jsx)(v,{label:"",labelClassName:"col-span-full",name:"descriptions",placeholder:"Bullet points",value:x,maxLength:500,onChange:g,disabled:h(w),showBulletPoints:m})]})]},s)})})},ei=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.bh),o=(0,u.TL)(),c=i.length>1,d="educations",m=(0,u.CG)((0,a.Am)(d)),h=e=>"educations"==n&&s==="educations.".concat(e);return(0,l.jsx)($,{form:d,addButtonText:"Add School",children:i.map((e,s)=>{let{school:n,degree:u,gpa:p,date:x,descriptions:g}=e,b=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let[n,i]=t;o((0,r.q1)({idx:s,field:n,value:i}))},j=0!==s,y=s!==i.length-1,w=g.join("\n"),C="".concat(s,".descriptions");return(0,l.jsxs)(ee,{form:"educations",idx:s,showMoveUp:j,showMoveDown:y,showDelete:c,deleteButtonTooltipText:"Delete school",children:[(0,l.jsx)(f,{label:"School",labelClassName:"col-span-4",name:"school",placeholder:"Cornell University",value:n,maxLength:100,onChange:b}),(0,l.jsx)(f,{label:"Date",labelClassName:"col-span-2",name:"date",placeholder:"May 2018",value:x,maxLength:30,onChange:b}),(0,l.jsx)(f,{label:"Degree & Major",labelClassName:"col-span-4",name:"degree",maxLength:100,placeholder:"Bachelor of Science in Computer Engineering",value:u,onChange:b}),(0,l.jsx)(f,{label:"GPA",labelClassName:"col-span-2",name:"gpa",placeholder:"3.81",value:p,maxLength:5,onChange:b}),(0,l.jsxs)("div",{className:"relative col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Additional Information (Optional)"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>null==t?void 0:t("educations.".concat(s,".descriptions"),w),disabled:h(C)||!w||""===w.trim(),children:h(C)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})}),(0,l.jsx)(_,{showBulletPoints:m,onClick:e=>{o((0,a.V1)({field:d,value:e}))}})]})]}),(0,l.jsx)(v,{label:"",labelClassName:"col-span-full",name:"descriptions",placeholder:"Free paragraph space to list out additional activities, courses, awards etc",value:g,onChange:b,maxLength:500,showBulletPoints:m})]})]},s)})})},er=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r._I),o=(0,u.TL)(),c=i.length>1,d="projects",m=(0,u.CG)((0,a.Am)(d)),h=e=>"projects"==n&&s==="projects.".concat(e);return(0,l.jsx)($,{form:"projects",addButtonText:"Add Project",children:i.map((e,s)=>{let{project:n,date:u,descriptions:p}=e,x=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];
1let[n,i]=t;o((0,r.NR)({idx:s,field:n,value:i}))},g=0!==s,b=s!==i.length-1,j=p.join("\n"),y="".concat(s,".descriptions");return(0,l.jsxs)(ee,{form:"projects",idx:s,showMoveUp:g,showMoveDown:b,showDelete:c,deleteButtonTooltipText:"Delete project",children:[(0,l.jsx)(f,{name:"project",label:"Project Name",placeholder:"Project 1",maxLength:100,value:n,onChange:x,labelClassName:"col-span-4"}),(0,l.jsx)(f,{name:"date",label:"Date",placeholder:"Winter 2022",value:u,maxLength:30,onChange:x,labelClassName:"col-span-2"}),(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Description"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>null==t?void 0:t("projects.".concat(s,".descriptions"),j),disabled:h(y)||!j||""===j.trim(),children:h(y)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})}),(0,l.jsx)(_,{showBulletPoints:m,onClick:e=>o((0,a.V1)({field:d,value:e}))})]})]}),(0,l.jsx)(v,{name:"descriptions",label:"",placeholder:"Bullet points",value:p,maxLength:500,onChange:x,labelClassName:"col-span-full",showBulletPoints:m})]})]},s)})})};var ea=s(1748);let eo=e=>{let{skill:t,setSkillRating:s,placeholder:n,className:i,circleColor:r}=e;return(0,l.jsx)("div",{className:"flex ".concat(i),children:(0,l.jsx)("input",{type:"text",value:t,placeholder:n,onChange:e=>s(e.target.value),className:ea.Nt})})},ec=()=>{let e=(0,u.CG)(r.sf),t=(0,u.TL)(),{featuredSkills:s,descriptions:n}=e,i=(0,u.CG)(a._S)||"#38bdf8",o=(e,s)=>{t((0,r.Wi)({field:"featuredSkills",idx:e,skill:s}))},c=Array.from({length:6}).map((e,t)=>{var l;return{skill:(null===(l=s[t])||void 0===l?void 0:l.skill)||""}});return(0,l.jsx)($,{form:"skills",children:(0,l.jsxs)("div",{className:"col-span-full grid grid-cols-6 gap-3",children:[(0,l.jsx)("div",{className:"relative col-span-full",children:(0,l.jsx)(v,{label:"Skills List",labelClassName:"col-span-full",name:"descriptions",placeholder:"Add skills (one per line)",value:n,onChange:(e,s)=>{t((0,r.Wi)({field:e,value:s}))},maxLength:500,showBulletPoints:!1})}),(0,l.jsx)("div",{className:"col-span-full mb-4 mt-6 border-t-2 border-dotted border-gray-200"}),(0,l.jsx)(x,{label:"Featured Skills (Optional)",className:"col-span-full",children:(0,l.jsx)("p",{className:"mt-2 text-sm font-normal text-gray-600",children:"Featured skills is optional to highlight top skills, with more circles mean higher proficiency."})}),c.map((e,t)=>{let{skill:s}=e;return(0,l.jsx)(eo,{className:"col-span-3",skill:s,setSkillRating:e=>{o(t,e)},placeholder:"Featured Skill ".concat(t+1),circleColor:i},t)})]})})};var ed=s(60887),eu=s(45587),em=s(24285);let eh=e=>{let{label:t,labelClassName:s,name:n,value:i="",placeholder:r,inputStyle:a={},onChange:o}=e;return(0,l.jsxs)("label",{className:"flex gap-2 text-base font-medium text-gray-700 ".concat(s),children:[(0,l.jsx)("span",{className:"w-28",children:t}),(0,l.jsx)("input",{type:"text",name:n,value:i,placeholder:r,onChange:e=>o(n,e.target.value),className:"w-[5rem] border-b border-gray-300 text-center font-semibold leading-3 outline-none",style:a})]})};var ep=s(82869),ex=s(33486),eg=s(5152),ef=s.n(eg),eb=s(5032);let ev=e=>{let{selectedColor:t,isSelected:s,style:n={},onClick:i,children:r}=e,a={color:"white",backgroundColor:t,borderColor:t,...n};return(0,l.jsx)("div",{className:"flex w-[105px] cursor-pointer items-center justify-center rounded-md border border-gray-300 py-1.5 shadow-sm hover:border-gray-400 hover:bg-gray-100",onClick:i,style:s?a:n,onKeyDown:e=>{["Enter"," "].includes(e.key)&&i()},tabIndex:0,children:r})},ej=e=>{let{children:t}=e;return(0,l.jsx)("div",{className:"mt-2 flex flex-wrap gap-3",children:t})},ey=e=>{let{selectedFontFamily:t,themeColor:s,handleSettingsChange:n}=e,i=(0,ex.z)();return(0,l.jsx)(ej,{children:i.map((e,i)=>{let r=t===e,a=ep.A8[e];return(0,l.jsx)(ev,{selectedColor:s,isSelected:r,style:{fontFamily:e,fontSize:"".concat(a*eb.$U,"px")},onClick:()=>n("fontFamily",e),children:ep.u9[e]},i)})})};ef()(()=>Promise.resolve(ey),{ssr:!1});let ew=e=>{let{selectedFontSize:t,themeColor:s,handleSettingsChange:n}=e;return(0,l.jsx)(ej,{children:Object.entries({Compact:10,Standard:12,Large:14}).map((e,i)=>{let[r,a]=e,o=String(a)===t;return(0,l.jsx)(ev,{selectedColor:s,isSelected:o,style:{fontSize:"".concat(a*eb.$U,"px")},onClick:()=>n("fontSize",String(a)),children:r},i)})})},eC=e=>{let{selectedDocumentSize:t,themeColor:s,handleSettingsChange:n}=e;return(0,l.jsx)(ej,{children:["Letter","A4"].map((e,i)=>(0,l.jsx)(ev,{selectedColor:s,isSelected:e===t,onClick:()=>n("documentSize",e),children:(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsx)("div",{children:e}),(0,l.jsx)("div",{className:"text-xs",children:"Letter"===e?"(US, Canada)":"(other countries)"})]})},i))})};var ek=s(5438),eN=s(24119);let eS=()=>{let e=(0,u.CG)(a.vi),{fontSize:t,fontFamily:s,documentSize:n}=e,i=e.themeColor||a.e,r="#38bdf8",o=(0,u.TL)(),c=(e,t)=>{o((0,a.Dy)({field:e,value:t}))};return(0,l.jsx)(X,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(ek.Z,{className:"h-6 w-6 text-gray-600","aria-hidden":"true"}),(0,l.jsx)("h1",{className:"text-lg font-semibold tracking-wide text-gray-900 ",children:"Resume Setting"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(eh,{label:"Theme Color",name:"themeColor",value:i,placeholder:a.e,onChange:c,inputStyle:{color:i}}),(0,l.jsx)(eN.z,{value:i,onChange:e=>
1{o((0,a.Dy)({field:"themeColor",value:e}))}})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(eh,{label:"Font Size (pt)",name:"fontSize",value:t,placeholder:"11",onChange:c}),(0,l.jsx)(ew,{fontFamily:s,themeColor:r,selectedFontSize:t,handleSettingsChange:c})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(ea.R4,{label:"Document Size"}),(0,l.jsx)(eC,{themeColor:r,selectedDocumentSize:n,handleSettingsChange:c})]})]})})},eE=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.gY),o=(0,u.TL)(),{descriptions:c}=i,d="custom",m=(0,u.CG)((0,a.Am)(d)),h=c.join("\n"),p=e=>"custom"==n&&s==="custom.".concat(e);return(0,l.jsx)($,{form:d,children:(0,l.jsx)("div",{className:"col-span-full grid grid-cols-6 gap-3",children:(0,l.jsxs)("div",{className:"relative col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Custom Textbox"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>null==t?void 0:t("custom.descriptions",h),disabled:p("descriptions")||!h||""===h.trim(),children:p("descriptions")?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})}),(0,l.jsx)(_,{showBulletPoints:m,onClick:e=>{o((0,a.V1)({field:d,value:e}))}})]})]}),(0,l.jsx)(v,{label:"",labelClassName:"col-span-full",name:"descriptions",placeholder:"Bullet points",value:c,onChange:(e,t)=>
1{o((0,r.xx)({field:e,value:t}))},showBulletPoints:m,disabled:p("descriptions")})]})})})},eD=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.TL)(),o=(0,u.CG)(r.Tc),c=(0,u.CG)((0,a.hs)("summary")),d=e=>i((0,a.ON)({field:"summary",value:e}));return(0,l.jsx)(X,{children:(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1 gap-2",children:[(0,l.jsx)("input",{type:"text",className:"flex-1 min-w-0 border-b border-transparent text-lg font-semibold tracking-wide text-gray-900 outline-none hover:border-gray-300 hover:shadow-sm focus:border-gray-300 focus:shadow-sm",value:c,onChange:e=>d(e.target.value)}),(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed whitespace-nowrap shrink-0",onClick:()=>null==t?void 0:t("summary",o),disabled:"summary"===n&&"summary"===s||!(null==o?void 0:o.trim()),children:"summary"===n&&"summary"===s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})})]}),(0,l.jsx)(b,{name:"summary",label:"",placeholder:"2-3 sentence professional summary highlighting strengths and impact",value:o,onChange:(e,t)=>
1{i((0,r.Cm)(t))},maxLength:500})]})})},eA=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.Ao),a=(0,u.TL)(),o=e=>"certificate"===n&&s==="certificate.".concat(e);return(0,l.jsx)($,{form:"certificate",addButtonText:"Add Certificate",children:i.map((e,s)=>{let n=(e,t)=>a((0,r.wA)({idx:s,field:e,value:t})),c=0!==s,d=s!==i.length-1;return(0,l.jsxs)(ee,{form:"certificate",idx:s,showMoveUp:c,showMoveDown:d,showDelete:i.length>1,deleteButtonTooltipText:"Delete certificate",children:[(0,l.jsx)(f,{name:"title",label:"Certificate Title",placeholder:"AWS Certified Solutions Architect",value:e.title,onChange:(e,t)=>n("title",t),labelClassName:"col-span-full"}),(0,l.jsx)(f,{name:"url",label:"Certificate URL (Optional)",placeholder:"https://www.example.com",value:e.url||"",onChange:(e,t)=>n("url",t),labelClassName:"col-span-full"}),(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Description (Optional)"}),(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>e.description&&(null==t?void 0:t("certificate.".concat(s,".description"),e.description||"")),disabled:o("".concat(s,".description"))||!(e.description||"").trim(),children:o("".concat(s,".description"))?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})})]}),(0,l.jsx)(b,{name:"description",label:"",placeholder:"Brief description of the certification",value:e.description||"",onChange:(e,t)=>
1n("description",t),maxLength:400})]})]},s)})})},eT=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.BM),a=(0,u.TL)(),o=e=>"achievements"===n&&s==="achievements.".concat(e);return(0,l.jsx)($,{form:"achievements",addButtonText:"Add New Achievement",children:i.map((e,s)=>{let n=(e,t)=>a((0,r.XX)({idx:s,field:e,value:t})),c=0!==s,d=s!==i.length-1;return(0,l.jsxs)(ee,{form:"achievements",idx:s,showMoveUp:c,showMoveDown:d,showDelete:i.length>1,deleteButtonTooltipText:"Delete achievement",children:[(0,l.jsx)(f,{name:"title",label:"Achievement Title",placeholder:"Hackathon Winner",value:e.title,onChange:(e,t)=>n("title",t),labelClassName:"col-span-full"}),(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Description"}),(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>e.description&&(null==t?void 0:t("achievements.".concat(s,".description"),e.description||"")),disabled:o("".concat(s,".description"))||!(e.description||"").trim(),children:o("".concat(s,".description"))?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})})]}),(0,l.jsx)(b,{name:"description",label:"",placeholder:"Describe your achievement",value:e.description||"",onChange:(e,t)=>
1n("description",t),maxLength:400})]})]},s)})})},eL=e=>{let{onEnhanceClick:t,enhancingField:s,isEnhancing:n}=e,i=(0,u.CG)(r.QK),a=(0,u.TL)(),o=e=>"hobbies"===n&&s==="hobbies.".concat(e);return(0,l.jsx)($,{form:"hobbies",addButtonText:"Add New Hobby",children:i.map((e,s)=>{let n=(e,t)=>a((0,r.rl)({idx:s,field:e,value:t})),c=0!==s,d=s!==i.length-1;return(0,l.jsxs)(ee,{form:"hobbies",idx:s,showMoveUp:c,showMoveDown:d,showDelete:i.length>1,deleteButtonTooltipText:"Delete hobby",children:[(0,l.jsx)(f,{name:"title",label:"Hobby Title",placeholder:"Photography",value:e.title,onChange:(e,t)=>n("title",t),labelClassName:"col-span-full"}),(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,l.jsx)("label",{className:"text-base font-light text-gray-700",children:"Description"}),(0,l.jsx)("button",{type:"button",className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>e.description&&(null==t?void 0:t("hobbies.".concat(s,".description"),e.description||"")),disabled:o("".concat(s,".description"))||!(e.description||"").trim(),children:o("".concat(s,".description"))?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(es.Z,{className:"w-4 h-4 animate-spin"}),"Enhancing..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(el.Z,{className:"w-4 h-4"}),"Enhance with AI"]})})]}),(0,l.jsx)(b,{name:"description",label:"",placeholder:"Describe your hobby",value:e.description||"",onChange:(e,t)=>
1n("description",t),maxLength:400})]})]},s)})})};var eR=s(29090),eP=s(11163),ez=s(62190);let eB=e=>{let{loading:t,comparison:s,originalResume:i,currentField:a,onClose:o,error:c}=e,d=(0,n.I0)(),u=!!(a&&(null==s?void 0:s.original)&&(null==s?void 0:s.enhanced));return(0,l.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:(0,l.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-hidden flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[(0,l.jsx)("h2",{className:"text-2xl font-semibold text-gray-800",children:t?"Enhancing with AI...":"AI Enhancement Preview"}),(0,l.jsx)("button",{onClick:o,className:"text-gray-500 hover:text-gray-700 transition-colors","aria-label":"Close",children:(0,l.jsx)(ez.Z,{className:"w-6 h-6"})})]}),(0,l.jsxs)("div",{className:"flex-1 overflow-y-auto p-6",children:[t&&(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"w-16 h-16 border-4 border-blue-200 border-t-brand rounded-full animate-spin"}),(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-8 h-8 text-brand",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})})})]}),(0,l.jsx)("p",{className:"text-gray-700 font-medium mt-4",children:"Enhancing your resume with AI..."}),(0,l.jsx)("p",{className:"text-gray-500 text-sm mt-2",children:"This may take 30-60 seconds"})]}),c&&!t&&(0,l.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:[(0,l.jsx)("p",{className:"text-red-800 font-medium",children:"Error"}),(0,l.jsx)("p",{className:"text-red-600 text-sm mt-1",children:c})]}),u&&s&&!t&&!c&&(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Original ",s.fieldName]}),(0,l.jsx)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4",children:(0,l.jsx)("p",{className:"text-gray-700 whitespace-pre-wrap",children:s.original})})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Enhanced ",s.fieldName]}),(0,l.jsx)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:(0,l.jsx)("p",{className:"text-gray-800 whitespace-pre-wrap font-medium",children:s.enhanced})})]})]}),!u&&s&&!t&&!c&&(0,l.jsx)("div",{className:"space-y-4",children:(0,l.jsx)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:(0,l.jsx)("p",{className:"text-sm text-blue-800 font-medium",children:"Full resume enhancement mode - legacy view"})})})]}),!t&&s&&!c&&(0,l.jsx)("div",{className:"border-t border-gray-200 p-6 bg-gray-50",children:(0,l.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,l.jsx)("button",{onClick:o,className:"px-6 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-100 transition-colors font-medium",children:"Cancel"}),(0,l.jsx)("button",{onClick:()=>{if(!s||!a)return;let{section:e,fieldPath:t}=a,{enhanced:l}=s,n=e=>e.split("\n").map(e=>e.trim()).filter(e=>e.length>0);if("profile"===e)d((0,r.WY)({field:t,value:l}));else if(t.includes("workExperiences")&&t.includes("descriptions")){let e=t.match(/workExperiences\.(\d+)\.descriptions/);if(e){let t=parseInt(e[1],10),s=n(l);d((0,r.Dv)({idx:t,field:"descriptions",value:s}))}}else if(t.includes("educations")&&t.includes("descriptions")){let e=t.match(/educations\.(\d+)\.descriptions/);if(e){let t=parseInt(e[1],10),s=n(l);d((0,r.q1)({idx:t,field:"descriptions",value:s}))}}else if(t.includes("projects")&&t.includes("descriptions")){let e=t.match(/projects\.(\d+)\.descriptions/);if(e){let t=parseInt(e[1],10),s=n(l);d((0,r.NR)({idx:t,field:"descriptions",value:s}))}}else if("custom.descriptions"===t){let e=n(l);d((0,r.xx)({field:"descriptions",value:e}))}o()},className:"px-6 py-2 bg-brand text-white rounded-md hover:bg-blue-700 transition-colors font-medium",children:"Apply Enhancement"})]})})]})})};var eF=s(87066),eM=s(88057);let eV={profile:.2,summary:.1,workExperiences:.25,educations:.15,projects:.15,skills:.1,custom:.05};function eI(){let e=(0,n.v9)(r.Dp),t=(0,n.v9)(o.YL),s=(0,u.Yk)();(0,d.useEffect)(()=>
1{if(console.log("useResumeScoreSync - resumeData:",e),console.log("useResumeScoreSync - overallResumeScore:",t),!e){console.log("useResumeScoreSync - No resume data, returning");return}let l=function(e){var t,s,l;let n;let i={profile:(t=null==e?void 0:e.profile,n=0,(null==t?void 0:t.name)&&(n+=25),(null==t?void 0:t.email)&&(n+=25),(null==t?void 0:t.phone)&&(n+=17),(null==t?void 0:t.location)&&(n+=17),(null==t?void 0:t.url)&&(n+=16),n/100*100),summary:(s=null==e?void 0:e.summary)&&0!==s.trim().length?s.length<50?30:s.length<100?60:100:0,workExperiences:function(e){if(!e||0===e.length)return 0;let t=0;return e.forEach(e=>{let s=0;(null==e?void 0:e.company)&&(s+=15),(null==e?void 0:e.jobTitle)&&(s+=15),(null==e?void 0:e.date)&&(s+=10),(null==e?void 0:e.descriptions)&&(null==e?void 0:e.descriptions.length)>0&&(s+=60),t+=s/100*100}),t/e.length}(null==e?void 0:e.workExperiences),educations:function(e){if(!e||0===e.length)return 0;let t=0;return e.forEach(e=>{let s=0;(null==e?void 0:e.school)&&(s+=20),(null==e?void 0:e.degree)&&(s+=20),(null==e?void 0:e.date)&&(s+=15),(null==e?void 0:e.gpa)&&(s+=10),(null==e?void 0:e.descriptions)&&(null==e?void 0:e.descriptions.length)>0&&(s+=35),t+=s/100*100}),t/e.length}(null==e?void 0:e.educations),projects:function(e){if(!e||0===e.length)return 0;let t=0;return e.forEach(e=>{let s=0;(null==e?void 0:e.project)&&(s+=25),(null==e?void 0:e.date)&&(s+=15),(null==e?void 0:e.descriptions)&&(null==e?void 0:e.descriptions.length)>0&&(s+=60),t+=s/100*100}),t/e.length}(null==e?void 0:e.projects),skills:function(e){if(!e)return 0;let t=0;return e.featuredSkills&&e.featuredSkills.length>0&&(t+=70),e.descriptions&&e.descriptions.length>0&&(t+=30),t/100*100}(null==e?void 0:e.skills),custom:(l=null==e?void 0:e.custom)&&l.descriptions&&0!==l.descriptions.length?100:0},r=0,a={};for(let[e,t]of Object.entries(i)){let s=t*eV[e];r+=s,a[e]={score:Math.round(t),weight:100*eV[e],weightedScore:Math.round(s)}}return{overallScore:Math.round(r),breakdown:a,suggestions:function(e,t){var s,l,n;let i=[],r=null==e?void 0:e.profile;return!((null==t?void 0:t.profile)<80)||((null==e?void 0:e.summary)&&!((null==e?void 0:e.summary.length)<100)||i.push("Write a professional summary highlighting your key achievements and career goals (100-200 words)."),(null==r?void 0:r.location)||i.push("Add your current location to help recruiters find you for local opportunities."),(null==r?void 0:r.url)||i.push("Include a LinkedIn, GitHub, or personal portfolio URL to showcase your work."),(null==r?void 0:r.email)||i.push("Add a professional email address."),(null==r?void 0:r.phone)||i.push("Add a phone number so recruiters can reach you easily.")),(null==t?void 0:t.workExperiences)<80&&((null==e?void 0:null===(s=e.workExperiences)||void 0===s?void 0:s.length)?null==e||e.workExperiences.forEach((e,t)=>{(null==e?void 0:e.company)||i.push("Provide the company name for work experience #".concat(t+1,".")),(null==e?void 0:e.jobTitle)||i.push("Specify your job title for work experience #".concat(t+1,".")),(null==e?void 0:e.date)||i.push("Include the start and end dates for work experience #".concat(t+1,".")),(null==e?void 0:e.descriptions)&&!((null==e?void 0:e.descriptions.length)<1)?null==e||e.descriptions.forEach((e,s)=>{e.length<30&&i.push("Expand description #".concat(s+1," in work experience #").concat(t+1," to be more specific and measurable."))}):i.push("Add at least ".concat(1," detailed bullet points for work experience #").concat(t+1,", highlighting your accomplishments with metrics where possible."))}):i.push("Add at least one work experience entry with company, title, dates, and achievements.")),(null==t?void 0:t.educations)<80&&((null==e?void 0:e.educations.length)?null==e||e.educations.forEach((e,t)=>{(null==e?void 0:e.school)||i.push("Provide the school name for education entry #".concat(t+1,".")),(null==e?void 0:e.degree)||i.push("Specify your degree for education entry #".concat(t+1,".")),(null==e?void 0:e.date)||i.push("Include graduation date for education entry #".concat(t+1,".")),(null==e?void 0:e.descriptions)&&(null==e?void 0:e.descriptions.length)!==0||i.push("Add achievements, projects, or honors for education entry #".concat(t+1,"."))}):i.push("Add your educational background including degree, school, and dates.")),(null==t?void 0:t.projects)<60&&((null==e?void 0:e.projects.length)?null==e||e.projects.forEac
1h((e,t)=>{(null==e?void 0:e.project)||i.push("Provide the project name for project #".concat(t+1,".")),(null==e?void 0:e.date)||i.push("Add dates for project #".concat(t+1,".")),(null==e?void 0:e.descriptions)&&!((null==e?void 0:e.descriptions.length)<1)?null==e||e.descriptions.forEach((e,s)=>{e.length<30&&i.push("Expand project description #".concat(s+1," in project #").concat(t+1," to provide more detail or measurable results."))}):i.push("Add at least ".concat(1," detailed description(s) for project #").concat(t+1,", emphasizing outcomes or technologies used."))}):i.push("Include relevant projects with your role, key contributions, and results.")),!((null==t?void 0:t.skills)<80)||((null==e?void 0:e.skills.featuredSkills.filter(e=>e.skill&&e.skill.trim().length>0).length)<6&&i.push("Add more featured skills (at least 6), and indicate your proficiency level if possible."),(null==e?void 0:e.skills.descriptions.length)||i.push("Add a brief description of your skills, such as technologies, tools, or frameworks you excel in.")),!((null==t?void 0:t.custom)<80)||(null==e?void 0:null===(n=e.custom)||void 0===n?void 0:null===(l=n.descriptions)||void 0===l?void 0:l.length)||i.push("Add additional relevant information in the custom section, such as certifications, awards, or volunteer work."),i}(e,i)}}(e);console.log("useResumeScoreSync - Calculated new score:",l),JSON.stringify(l)!==JSON.stringify(t)?(console.log("useResumeScoreSync - Scores are different, dispatching new score"),s((0,o.YA)(l)),console.log("useResumeScoreSync - Dispatch completed")):console.log("useResumeScoreSync - Scores are the same, no update needed")},[e,t,s])}function eZ(e,t){return e||t?t?"present"===t.toLowerCase()?"".concat(e," - Present"):"".concat(e||""," - ").concat(t||"").trim():e||"":""}var eH=s(88772),eO=s(61258),eG=s(4307);let eW={profile:"Profile",summary:"Professional Summary",educations:"Education",workExperiences:"Experience",skills:"Skills",projects:"Projects",certificate:"Certificate",achievements:"Achievement",hobbies:"Hobby",custom:"Custom Section",theme:"Finalize"};function e_(e){let{id:t,label:s,isActive:n,isCompleted:i,onClick:r,isDraggedOver:a,isBeingDragged:o}=e,{attributes:c,listeners:d,setNodeRef:u,transform:m,transition:h,isDragging:p}=(0,eu.nB)({id:t}),x={transform:em.ux.Transform.toString(m),transition:h||"transform 200ms ease",opacity:p?.5:1};return(0,l.jsx)("div",{ref:u,style:x,className:"transition-all duration-200 ".concat(a&&!o?"scale-105":""),children:(0,l.jsxs)("button",{...c,...d,onClick:r,className:"group relative flex gap-2 items-center rounded-xl px-4 py-2 shadow-sm transition-all whitespace-nowrap shrink-0\n ".concat(n?"bg-blue-50 text-blue-700 border border-blue-200":i?"bg-green-50 text-green-700 border border-green-200":"bg-white text-gray-600 border border-gray-200 hover:bg-gray-50","\n ").concat(a&&!o?"border-blue-400 bg-blue-100 ring-2 ring-blue-300":"","\n "),children:[(0,l.jsx)("span",{className:"cursor-grab active:cursor-grabbing text-gray-400 group-hover:text-gray-600",children:"â°"}),(0,l.jsx)("span",{className:"font-medium",children:s}),n&&(0,l.jsx)("span",{className:"ml-auto rounded-full bg-blue-100 px-2 py-0.5 text-xs font-semibold text-blue-600",children:"Active"}),i&&!n&&(0,l.jsx)("span",{className:"ml-auto rounded-full bg-green-100 px-2 py-0.5 text-xs font-semibold text-green-600",children:"Done"})]})})}let eJ=()=>{(0,u.Hn)(),(0,u.Cz)(),eI();let e=(0,u.CG)(e=>e.settingsResume.formsOrder),t=(0,u.CG)(e=>e.resume),s=(0,u.CG)(e=>e.resumeScore),[i,o]=(0,d.useState)(null),{id:c}=(0,eP.useRouter)().query,m=(0,n.I0)(),[h,p]=(0,d.useState)(null),[x,g]=(0,d.useState)(""),[f,b]=(0,d.useState)(""),v=(0,n.v9)(e=>{var t;return null==e?void 0:null===(t=e.userData)||void 0===t?void 0:t.user_id}),j=(0,u.CG)(e=>e.userData),[y,w]=(0,d.useState)(!1),[C,k]=(0,d.useState)([]),[N,S]=(0,d.useState)(!1);(0,d.useRef)(!0);let[E,D]=(0,d.useState)(null),[A,L]=(0,d.useState)(null),[R,P]=(0,d.useState)(!1),[z,B]=(0,d.useState)(!1),[F,M]=(0,d.useState)(null),[V,I]=(0,d.useState)(null),[Z,H]=(0,d.useState)(null),O=(0,d.useRef)(null),G=e=>{if(O.current){let t=O.current.scrollLeft+("right"===e?250:-250);O.current.scrollTo({left:t,behavior:"smooth"})}},W=(0,ed.Dy)((0,ed.VT)(ed.we,{activationConstraint:{distance:8}})),_=e=>e.split("\n").map(e=>e.trim()).filter(e=>e.length>0);(0,d.useEffect)(()=>{c&&o(c.toString())},[c]);let J=(0,d.useMemo)(()=>["profile",...e,"theme"],[e]),U=(e,t)=>"You are an expert resume writer. Enhance the following ".concat(e,' while keeping it professional and concise.\n## CRITICAL RULES:\n1. Return ONLY valid JSON in this exact format: {"enhanced": "your enhanced text here"}\n2. Do NOT add markdown, explanations, or any text outside the JSON\n3. Keep the core meaning and facts, only improve clarity and impact\n4. Use strong action verbs and quantifiable achievements where applicable\n5. Maintain professional tone appropriate for a resume\n6. Keep length reasonable (').concat("objective"===e?"2-3 sentences":"appropriate for the field",")\n\n## ORIGINAL TEXT:\n").concat(t,'\n\n## EXPECTED OUTPUT:\nRespond with ONLY a JSON object: {"enhanced": "improved version here"}'),Y=(e,t,s)=>{if("profile"===e)m((0,r.WY)({field:t,value:s}));else if("summary"===e)m((0,r.Cm)(s));else if(t.includes("workExperiences")&&t.includes("descriptions")){let e=t.match(/workExperiences\.(\d+)\.descriptions/);if(e){let t=parseInt(e[1],10),l=_(s);m((0,r.Dv)({idx:t,field:"descriptions",value:l}))}}else if(t.includes("educations")&&t.includes("descriptions")){let e=t.match(/educations\.(\d+)\.descriptions/);if(e){let t=parseInt(e[1],10),l=_(s);m((0,r.q1)({idx:t,field:"descriptions",value:l}))}}else if(t.includes("projects")&&t.includes("descriptions")){let e=t.match(/projects\.(\d+)\.descriptions/);if(e){let t=parseInt(e[1],10),l=_(s);m((0,r.NR)({idx:t,field:"descriptions",value:l}))}}else if("custom.descriptions"===t){let e=_(s);m((0,r.xx)({field:"descriptions",value:e}))}else if(t.startsWith("certificate.")&&t.endsWith(".description")){let e=t.match(/certificate\.(\d+)\.description/);if(e){let t=parseInt(e[1],10);m((0,r.wA)({idx:t,field:"description",value:s}))}}else if(t.startsWith("achievements.")&&t.endsWith(".description")){let e=t.match(/achievements\.(\d+)\.description/);
1e&&m({type:"resume/changeAchievements",payload:{idx:parseInt(e[1],10),field:"description",value:s}})}else if(t.startsWith("hobbies.")&&t.endsWith(".description")){let e=t.match(/hobbies\.(\d+)\.description/);e&&m({type:"resume/changeHobbies",payload:{idx:parseInt(e[1],10),field:"description",value:s}})}};(0,d.useEffect)(()=>{console.log({enhancingField:h})},[h]);let Q=async(e,t,s)=>{if(!s||""===s.trim()){console.error("Cannot enhance empty field");return}g(e),p(t.startsWith(e)?t:"".concat(e,".").concat(t));let l=t.split(".").pop()||t;t.includes("workExperiences")&&t.includes("descriptions")&&(l="work experience descriptions");let n=U(l,s);try{let s;let l=await eF.default.post("".concat(eM._n,"/admin/resume/enhanced_resume_ai"),{prompt:n},{headers:{"Content-Type":"application/json"},timeout:6e4});if(s="string"==typeof l.data.data?JSON.parse(l.data.data):l.data.data,console.log("Enhanced field data:",s),!(null==s?void 0:s.enhanced))throw Error("Invalid AI response structure");Y(e,t,s.enhanced)}catch(e){var i,r;console.error("AI enhancement error:",e),alert((null===(r=e.response)||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:i.message)||e.message||"Failed to enhance field. Please try again.")}finally{g(""),p(null)}};(0,d.useEffect)(()=>{(async()=>{w(!0);try{let e=(await (0,eR.wK)()).data.map(e=>({id:e.id,name:e.file_name||"Untitled",viewCount:0,score:s.overallScore,attachedJob:"",edited:new Date(e.updated_at).toLocaleDateString(),dateAdded:new Date(e.created_at).toLocaleDateString(),themeColor:e.theme_color,userId:e.user_id,fontSize:e.font_size.toString(),sections:e.section}));k(e)}catch(e){console.error("Error fetching resume data:",e)}finally{w(!1)}})()},[v]),(0,d.useEffect)(()=>{console.log("Resume data changed:",t),el(t)},[t]);let[q,X]=(0,d.useState)("profile"),K=J.indexOf(q),$=()=>{K<J.length-1&&X(J[K+1])},ee=(0,d.useRef)(null),es=(e,t)=>{let s=new FormData;return s.append("theme_color",t.theme_color),s.append("score",t.score.toString()),s.append("font_size",t.font_size.toString()),s.append("section",JSON.stringify([{id:"profile-".concat(Date.now()),name:"profile",values:e.profile},{id:"summary-".concat(Date.now()),name:"summary",values:e.summary},{id:"work-".concat(Date.now()),name:"workExperiences",values:e.workExperiences},{id:"education-".concat(Date.now()),name:"educations",values:e.educations},{id:"projects-".concat(Date.now()),name:"projects",values:e.projects},{id:"skills-".concat(Date.now()),name:"skills",values:e.skills},{id:"custom-".concat(Date.now()),name:"custom",values:e.custom},{id:"certificate-".concat(Date.now()),name:"certificate",values:e.certificates||[]},{id:"achievements-".concat(Date.now()),name:"achievements",values:e.achievements||[]},{id:"hobbies-".concat(Date.now()),name:"hobbies",values:e.hobbies||[]}])),s},el=e=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout(async()=>{try{if(i){let t=es(e,{theme_color:"#323222",score:s.overallScore,font_size:12});await (0,eR.sH)(i,t)}}catch(e){console.error("Error updating resume:",e)}},2e3)},ea=async e=>{try{if(i){let t=es(e,{theme_color:"#323222",score:s.overallScore,font_size:12});await (0,eR.sH)(i,t)}}catch(e){console.error("Error updating resume:",e)}};return(0,d.useEffect)(()=>{if(!i)return;if(i.startsWith("demo-")&&j.is_demo){let e=eH.G.find(e=>e.id===i);if(!e)return;S(!0);let t=e.sections,s={profile:r.c1,summary:"",workExperiences:[r.O3],educations:[r.cS],projects:[r.n_],skills:r.Qe,custom:r.Q6,certificates:[r.QJ],achievements:[{title:"",description:""}],hobbies:[{title:"",description:""}]};t.forEach(e=>{switch(e.name){case"profile":s.profile={...r.c1,...e.values};break;case"summary":var t;s.summary="string"==typeof e.values?e.values:(null===(t=e.values)||void 0===t?void 0:t.summary)||"";break;case"workExperiences":s.workExperiences=e.values.length>0?e.values:[r.O3];break;case"educations":s.educations=e.values.length>0?e.values:[r.cS];break;case"projects":s.projects=e.values.length>0?e.values:[r.n_];break;case"skills":s.skills={...r.Qe,...e.values};break;case"achievements":s.achievements=Array.isArray(e.values)&&e.values.length>0?e.values:[{title:"",description:""}]}}),m((0,r.im)(s));return}if(0===C.length)return;let e=Number(i),t=C.find(t=>
1t.id===e);if(!t)return;let s=(()=>{var e;if("string"==typeof(null==t?void 0:t.sections))try{return JSON.parse(t.sections)}catch(e){return console.error("Invalid JSON in sections:",t.sections),[]}return null!==(e=null==t?void 0:t.sections)&&void 0!==e?e:[]})();(null==s?void 0:s.custom)&&Array.isArray(s.custom)&&s.custom.length>0&&m((0,a.z5)({field:"custom",value:!0})),console.log("Parsed sections:",s);let l={profile:r.c1,summary:"",workExperiences:[r.O3],educations:[r.cS],projects:[r.n_],skills:r.Qe,custom:r.Q6,certificates:[r.QJ],achievements:[{title:"",description:""}],hobbies:[{title:"",description:""}]};s.forEach(e=>{switch(e.name){case"profile":l.profile={...r.c1,...e.values};break;case"summary":var t;l.summary="string"==typeof e.values?e.values:(null===(t=e.values)||void 0===t?void 0:t.summary)||"";break;case"workExperiences":l.workExperiences=e.values.length>0?e.values:[r.O3];break;case"educations":l.educations=e.values.length>0?e.values:[r.cS];break;case"projects":l.projects=e.values.length>0?e.values:[r.n_];break;case"skills":l.skills={...r.Qe,...e.values};break;case"custom":l.custom={...r.Q6,...e.values};break;case"certificate":l.certificates=Array.isArray(e.values)&&e.values.length>0?e.values:[r.QJ];break;case"achievements":l.achievements=Array.isArray(e.values)&&e.values.length>0?e.values:[{title:"",description:""}];break;case"hobbies":l.hobbies=Array.isArray(e.values)&&e.values.length>0?e.values:[{title:"",description:""}]}});let n="string"==typeof s?JSON.parse(s):s;if(function(e){if(!e)return!1;if(Array.isArray(e))return e.some(e=>"status"in e||["summary","workExperience","certificate","achievements","hobbies"].includes(e.name));if("object"==typeof e){let t=Object.keys(e),s=["profile","summary","workExperiences","educations","projects","skills","custom"],l=["summary","workExperience","education","certificate","achievements","hobbies"];if(t.some(e=>l.includes(e)))return!0;t.some(e=>s.includes(e))}return!1}(n)){let e=function(e){let t={profile:{name:"",email:"",phone:"",url:"",location:""},summary:"",workExperiences:[],educations:[],projects:[],skills:{featuredSkills:[],descriptions:[]},custom:{descriptions:[]}};for(let s of e)switch(s.name){case"profile":(function(e,t){let s=e.values;t.profile={name:s.name||t.profile.name,email:s.email||t.profile.email,phone:s.phone||t.profile.phone,url:s.url||s.linkedin||t.profile.url,location:s.location||t.profile.location},t.summary=s.summary||t.summary,s.title&&t.custom.descriptions.push("Title: ".concat(s.title)),s.profilePhoto&&t.custom.descriptions.push("Profile Photo: ".concat(s.profilePhoto))})(s,t);break;case"workExperiences":case"workExperience":(function(e,t){if(Array.isArray(e.values))t.workExperiences.push(...e.values.map(e=>({company:e.company||"",jobTitle:e.jobTitle||"",date:e.date||"",descriptions:e.descriptions||[]})));else{let s=e.values,l={company:s.name||"",jobTitle:s.title||"",date:eZ(s.startDate,s.endDate),descriptions:s.bulletList||(s.description?[s.description]:[])};t.workExperiences.push(l),s.header&&"Work Experience"!==s.header&&t.custom.descriptions.push("Work Experience Header: ".concat(s.header)),s.location&&t.custom.descriptions.push("Work Location (".concat(s.name,"): ").concat(s.location))}})(s,t);break;case"educations":case"education":(function(e,t){if(Array.isArray(e.values))t.educations.push(...e.values.map(e=>({school:e.school||"",degree:e.degree||"",date:e.date||"",gpa:e.gpa||"",descriptions:e.descriptions||[]})));else{let s=e.values,l={school:s.name||"",degree:s.title||"",date:eZ(s.startDate,s.endDate),gpa:"",descriptions:s.bulletList||(s.description?[s.description]:[])};t.educations.push(l),s.header&&"Education"!==s.header&&"Education Header"!==s.header&&t.custom.descriptions.push("Education Header: ".concat(s.header)),s.location&&t.custom.descriptions.push("Education Location (".concat(s.name,"): ").concat(s.location))}})(s,t);break;case"projects":case"project":(function(e,t){if(Array.isArray(e.values))t.projects.push(...e.values.map(e=>({project:e.project||"",date:e.date||"",descriptions:e.descriptions||[]})));else{let s=e.values,l={project:s.title||s.name||"",date:eZ(s.startDate,
1s.endDate),descriptions:s.bulletList||(s.description?[s.description]:[])};t.projects.push(l),s.header&&"Projects"!==s.header&&t.custom.descriptions.push("Project Header: ".concat(s.header)),s.location&&t.custom.descriptions.push("Project Location (".concat(s.name,"): ").concat(s.location))}})(s,t);break;case"skills":case"skill":(function(e,t){let s=e.values;s.featuredSkills&&t.skills.featuredSkills.push(...s.featuredSkills),s.descriptions&&t.skills.descriptions.push(...s.descriptions)})(s,t);break;case"custom":s.values.descriptions&&t.custom.descriptions.push(...s.values.descriptions),s.values.title&&s.values.description?t.custom.descriptions.push("".concat(s.values.title,": ").concat(s.values.description)):s.values.title?t.custom.descriptions.push(s.values.title):s.values.description&&t.custom.descriptions.push(s.values.description);break;case"summary":(function(e,t){let s=e.values;if("string"==typeof s)t.summary=s;else if(!t.summary&&s.description)t.summary=s.description;else if(s.description){let e=s.header||"Professional Summary";t.custom.descriptions.push("".concat(e,": ").concat(s.description))}})(s,t);break;case"certificate":(function(e,t){let s=e.values,l=!1,n="Certificate: ";s.title&&(n+="".concat(s.title||""),l=!0),s.description&&(n+=" - ".concat(s.description),l=!0),s.url&&(n+=" (".concat(s.url,")"),l=!0),l&&t.custom.descriptions.push(n)})(s,t);break;case"achievements":(function(e,t){let s=e.values,l=s.header||"Achievement";l&&(null==s?void 0:s.title)&&(null==s?void 0:s.description)&&t.custom.descriptions.push("".concat(l,": ").concat(s.title||""," - ").concat(s.description||""))})(s,t);break;case"hobbies":(function(e,t){let s=e.values,l=s.header||"Hobby";l&&(null==s?void 0:s.title)&&(null==s?void 0:s.description)&&t.custom.descriptions.push("".concat(l,": ").concat(s.title||""," - ").concat(s.description||""))})(s,t);break;default:(function(e,t){let s=e.values.header||e.name,l=e.values.description||e.values.title||JSON.stringify(e.values);t.custom.descriptions.push("".concat(s,": ").concat(l))})(s,t)}return t}(n);m((0,r.im)(e))}else m((0,r.im)(l))},[i,C,m]),(0,l.jsxs)("div",{className:"flex flex-col h-screen font-md",children:[N&&(0,l.jsxs)("div",{className:"flex items-center gap-2 border-b border-amber-200 bg-amber-50 px-4 py-2 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/30 dark:text-amber-400",children:[(0,l.jsx)("svg",{className:"h-4 w-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,l.jsxs)("span",{children:[(0,l.jsx)("strong",{children:"Demo Resume"})," â This is a sample resume for demonstration. Changes will not be saved."]})]}),(0,l.jsx)("div",{className:"sticky top-0 scrollbar-thin-2 z-20 bg-white border-b border-gray-200",children:(0,l.jsx)(ed.LB,{sensors:W,collisionDetection:ed.pE,onDragStart:e=>{D(e.active.id)},onDragOver:e=>{let{over:t}=e;L((null==t?void 0:t.id)||null)},onDragEnd:t=>{let{active:s,over:l}=t;if(!l||s.id===l.id){D(null),L(null);return}let n=e.indexOf(s.id),i=e.indexOf(l.id),r=(0,eu.Rp)(e,n,i);m((0,a.XI)(r)),D(null),L(null)},onDragCancel:()=>{D(null),L(null)},children:(0,l.jsxs)("div",{className:"relative group/scroll-container px-7",children:[(0,l.jsx)("button",{onClick:()=>G("left"),className:"absolute left-1 top-1/2 -translate-y-1/2 z-10 p-2 bg-white rounded-full shadow-md hover:bg-gray-50 border border-gray-200 text-gray-600 disabled:opacity-50","aria-label":"Scroll left",children:(0,l.jsx)(eO.Z,{className:"w-4 h-4"})}),(0,l.jsxs)("div",{ref:O,className:"flex items-center gap-3 px-4 pt-2 overflow-x-auto min-h-[60px] scroll-smooth",children:[(0,l.jsx)("button",{onClick:()=>X("profile"),className:"px-3 py-2 rounded-xl border transition-all whitespace-nowrap\n ".concat("profile"===q?"bg-blue-50 text-blue-700 border-blue-200":"bg-white text-gray-600 border-gray-200 hover:bg-gray-50"),children:eW.profile}),(0,l.jsx)(eu.Fo,{items:e,strategy:eu.qw,children:e.map((e,t)=>(0,l.jsx)(e_,{id:e,label:eW[e],isActive:q===e,isCompleted:J.indexOf(q)>t+1,onClick:()=>X(e),isDraggedOver:A===e&&E!==e,isBeingDragged:E===e},e))}),(0,l.jsx)("button",{onClick:()=>X("theme"),className:"px-3 py-2 rounded-xl border transition-all whitespace-nowrap\n ".concat("theme"===q?"bg-blue-50 text-blue-700 border-blue-200":"bg-white text-gray-600 border-gray-200 hover:bg-gray-50"),children:eW.theme})]}),(0,l.jsx)("button",{onClick:()=>G("right"),className:"absolute right-1 top-1/2 -translate-y-1/2 z-10 p-2 bg-white rounded-full shadow-md hover:bg-gray-50 border border-gray-200 text-gray-600","aria-label":"Scroll right",children:(0,l.jsx)(eG.Z,{className:"w-4 h-4"})})]})})}),(0,l.jsxs)("div",{className:"flex-1 overflow-y-auto scrollbar-thin-2 lg:mb-8 md:mb-8",children:["profile"===q&&(0,l.jsx)(et,{onEnhanceClick:(e,t)=>Q("profile",e,t),enhancingField:h,isEnhancing:x}),"summary"===q&&(0,l.jsx)(eD,{onEnhanceClick:(e,t)=>Q("summary",e,t),enhancingField:h,isEnhancing:x}),"workExperiences"===q&&(0,l.jsx)(en,{onEnhanceClick:(e,t)=>Q("workExperiences",e,t),enhancingField:h,isEnhancing:x}),"educations"===q&&(0,l.jsx)(ei,{onEnhanceClick:(e,t)=>Q("educations",e,t),enhancingField:h,isEnhancing:x}),"projects"===q&&(0,l.jsx)(er,{onEnhanceClick:(e,t)=>Q("projects",e,t),enhancingField:h,isEnhancing:x}),"certificate"===q&&(0,l.jsx)(eA,{onEnhanceClick:(e,t)=>Q("certificate",e,t),enhancingField:h,isEnhancing:x}),"achievements"===q&&(0,l.jsx)(eT,{onEnhanceClick:(e,t)=>Q("achievements",e,t),enhancingField:h,isEnhancing:x}),"hobbies"===q&&(0,l.jsx)(eL,{onEnhanceClick:(e,t)=>Q("hobbies",e,t),enhancingField:h,isEnhancing:x}),"custom"===q&&(0,l.jsx)(eE,{onEnhanceClick:(e,t)=>Q("custom",e,t),enhancingField:h,isEnhancing:x}),"skills"===q&&(0,l.jsx)(ec,{}),"theme"===q&&(0,l.jsx)(eS,{})]}),(0,l.jsxs)("div",{className:"sticky bottom-0 z-20 bg-white border-t border-gray-200 flex justify-between p-4",children:[(0,l.jsx)("button",{onClick:()=>{K>0&&X(J[K-1])},disabled:0===K,className:T("px-4 py-2 rounded-md border text-sm font-medium transition-colors",0===K?"bg-gray-100 text-gray-400 border-gray-200 cursor-not-allowed":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:"â Previous"}),(0,l.jsx)("button",{onClick:()=>{K<J.length-1?$():K===J.length-1?(ea(t),alert("Resume saved successfully!")):alert("No more sections to navigate.")},className:T("px-3 py-1 rounded-md text-sm font-medium transition-colors bg-brand text-white"),children:K<J.length-1?"Next â":"Save Resume"})]}),R&&(0,l.jsx)(eB,{loading:z,comparison:F,currentField:Z,onClose:()=>{P(!1),I(null),M(null),H(null)},error:V})]})};var eU=s(96561);let eY=e=>{let t=e?eb.BF:eb.wG,s=(0,ex.z)(),l=s.map(e=>'<link rel="preload" as="font" href="/fonts/'.concat(e,'-Regular.ttf" type="font/ttf" crossorigin="anonymous">\n<link rel="preload" as="font" href="/fonts/').concat(e,'-Bold.ttf" type="font/ttf" crossorigin="anonymous">')).join(""),n=s.map(e=>'@font-face {font-family: "'.concat(e,'"; src: url("/fonts/').concat(e,'-Regular.ttf");}\n@font-face {font-family: "').concat(e,'"; src: url("/fonts/').concat(e,'-Bold.ttf"); font-weight: bold;}')).join("");return"<!DOCTYPE html>\n<html>\n <head>\n ".concat(l,"\n <style>\n ").concat(n,"\n </style>\n </head>\n <body style='overflow-y: auto; overflow-x: hidden; width: ").concat(t,"pt; margin: 0; padding: 0; -webkit-text-size-adjust:none;'>\n <div></div>\n </body>\n</html>")},eQ=e=>
1{let{documentSize:t,scale:s=1,children:n,enablePDFViewer:i=!1}=e,r="A4"===t,a=(0,d.useMemo)(()=>eY(r),[r]);if(i)return(0,l.jsx)(eX,{className:"h-full w-full",children:n});let o=r?eb.Zs:eb.iL,c=r?eb.qA:eb.J2;return(0,l.jsx)("div",{style:{width:o*s,height:c*s},children:(0,l.jsx)("div",{style:{width:o,height:c,transform:"scale(".concat(s,")"),transformOrigin:"top left"},className:"bg-white shadow-lg",children:(0,l.jsx)(eU.ZP,{style:{width:"100%",height:"100%"},initialContent:a,children:n},r?"A4":"LETTER")})})},eq=ef()(()=>Promise.resolve(eQ),{ssr:!1}),eX=ef()(()=>Promise.resolve().then(s.bind(s,74500)).then(e=>e.PDFViewer),{loadableGenerated:{webpack:()=>[74500]},ssr:!1});var eK=s(74500);let e$={0:"0",.5:"1.5pt",1:"3pt",1.5:"4.5pt",2:"6pt",2.5:"7.5pt",3:"9pt",3.5:"10.5pt",4:"12pt",5:"15pt",6:"18pt",7:"21pt",8:"24pt",9:"27pt",10:"30pt",11:"33pt",12:"36pt",14:"42pt",16:"48pt",20:"60pt",24:"72pt",28:"84pt",32:"96pt",36:"108pt",40:"120pt",44:"132pt",48:"144pt",52:"156pt",56:"168pt",60:"180pt",64:"192pt",72:"216pt",80:"240pt",96:"288pt"},e0=eK.StyleSheet.create({flexRow:{display:"flex",flexDirection:"row"},flexRowBetween:{display:"flex",flexDirection:"row",justifyContent:"space-between"},flexCol:{display:"flex",flexDirection:"column"},icon:{width:"13pt",height:"13pt",fill:"#525252"}}),e1={email:"M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z",phone:"M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z",location:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z",url:"M256 64C256 46.33 270.3 32 288 32H415.1C415.1 32 415.1 32 415.1 32C420.3 32 424.5 32.86 428.2 34.43C431.1 35.98 435.5 38.27 438.6 41.3C438.6 41.35 438.6 41.4 438.7 41.44C444.9 47.66 447.1 55.78 448 63.9C448 63.94 448 63.97 448 64V192C448 209.7 433.7 224 416 224C398.3 224 384 209.7 384 192V141.3L214.6 310.6C202.1 323.1 181.9 323.1 169.4 310.6C156.9 298.1 156.9 277.9 169.4 265.4L338.7 96H288C270.3 96 256 81.67 256 64V64zM0 128C0 92.65 28.65 64 64 64H160C177.7 64 192 78.33 192 96C192 113.7 177.7 128 160 128H64V416H352V320C352 302.3 366.3 288 384 288C401.7 288 416 302.3 416 320V416C416 451.3 387.3 480 352 480H64C28.65 480 0 451.3 0 416V128z",url_github:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z",url_linkedin:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},e2=e=>{let{type:t,isPDF:s}=e,n=e1[t];return s?(0,l.jsx)(e5,{pathD:n}):(0,l.jsx)(e8,{pathD:n})}
1,{width:e4,height:e6,fill:e3}=e0.icon,e5=e=>{let{pathD:t}=e;return(0,l.jsx)(eK.Svg,{viewBox:"0 0 512 512",style:{width:e4,height:e6},children:(0,l.jsx)(eK.Path,{d:t,fill:e3})})},e8=e=>{let{pathD:t}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:{width:e4,height:e6,fill:e3},children:(0,l.jsx)("path",{d:t})})},e7=e=>{let{themeColor:t,heading:s,style:n={},children:i}=e;return(0,l.jsxs)(eK.View,{style:{...e0.flexCol,gap:e$["2"],marginTop:e$["5"],...n},children:[s&&(0,l.jsxs)(eK.View,{style:{...e0.flexRow,alignItems:"center"},children:[t&&(0,l.jsx)(eK.View,{style:{height:"3.75pt",width:"30pt",backgroundColor:t,marginRight:e$["3.5"]},debug:eb.BE}),(0,l.jsx)(eK.Text,{style:{fontWeight:"bold",letterSpacing:"0.3pt"},debug:eb.BE,children:s})]}),i]})},e9=e=>{let{bold:t=!1,themeColor:s,style:n={},children:i}=e;return(0,l.jsx)(eK.Text,{style:{color:s||a.xw,fontWeight:t?"bold":"normal",...n},debug:eb.BE,children:i})},te=e=>{let{items:t,showBulletPoints:s=!0}=e;return(0,l.jsx)(l.Fragment,{children:t.map((e,t)=>(0,l.jsxs)(eK.View,{style:{...e0.flexRow},children:[s&&(0,l.jsx)(e9,{style:{paddingLeft:e$["2"],paddingRight:e$["2"],lineHeight:"1.3"},bold:!0,children:"â¢"}),(0,l.jsx)(e9,{style:{lineHeight:"1.3",flexGrow:1,flexBasis:0},children:e})]},t))})},tt=e=>{let{items:t,showBulletPoints:s=!0}=e,n=t.filter(e=>e&&""!==e.trim());return(0,l.jsx)(eK.View,{style:{flexDirection:"row",flexWrap:"wrap"},children:(0,l.jsx)(e9,{style:{lineHeight:"1.3",flexShrink:1,paddingLeft:e$["2"]},children:n.join(s?" ⢠":", ")})})},ts=e=>{let{src:t,isPDF:s,children:n}=e;return s?(0,l.jsx)(eK.Link,{src:t,style:{textDecoration:"none"},children:n}):(0,l.jsx)("a",{href:t,style:{textDecoration:"none"},target:"_blank",rel:"noreferrer",children:n})},tl=e=>{let{skill:t,themeColor:s,style:n={}}=e;return(0,l.jsx)(eK.View,{style:{...e0.flexRow,textAlign:"left",...n},children:(0,l.jsx)(e9,{style:{marginRight:e$[.5]},children:t})})},tn=e=>{let{profile:t,themeColor:s,isPDF:n}=e,{name:i,email:r,phone:a,url:o,location:c}=t;return(0,l.jsxs)(e7,{style:{marginTop:e$["4"]},children:[(0,l.jsx)(e9,{bold:!0,themeColor:s,style:{fontSize:"20pt"},children:i}),(0,l.jsx)(eK.View,{style:{...e0.flexRowBetween,flexWrap:"wrap",marginTop:e$["0.5"]},children:Object.entries({email:r,phone:a,location:c,url:o}).map(e=>{let[t,s]=e;if(!s)return null;let i=t;"url"===t&&(s.includes("github")?i="url_github":s.includes("linkedin")&&(i="url_linkedin"));let r=["email","url","phone"].includes(t);return(0,l.jsxs)(eK.View,{style:{...e0.flexRow,alignItems:"center",gap:e$["1"]},children:[(0,l.jsx)(e2,{type:i,isPDF:n}),(0,l.jsx)(e=>{let{children:i}=e;if(!r)return(0,l.jsx)(l.Fragment,{children:i});let a="";switch(t){case"email":a="mailto:".concat(s);break;case"phone":a="tel:".concat(s.replace(/[^\d+]/g,""));break;default:a=s.startsWith("http")?s:"https://".concat(s)}return(0,l.jsx)(ts,{src:a,isPDF:n,children:i})},{children:(0,l.jsx)(e9,{children:s})})]},t)})})]})},ti=e=>{let{heading:t,workExperiences:s,themeColor:n}=e;return(0,l.jsx)(e7,{themeColor:n,heading:t,children:s.map((e,t)=>{let{company:n,jobTitle:i,date:r,descriptions:a}=e,o=t>0&&n===s[t-1].company;return(0,l.jsxs)(eK.View,{style:0!==t?{marginTop:e$["2"]}:{},children:[!o&&(0,l.jsx)(e9,{bold:!0,children:n}),(0,l.jsxs)(eK.View,{style:{...e0.flexRowBetween,marginTop:o?"-"+e$["1"]:e$["1.5"]},children:[(0,l.jsx)(e9,{children:i}),(0,l.jsx)(e9,{children:r})]}),(0,l.jsx)(eK.View,{style:{...e0.flexCol,marginTop:e$["1.5"]},children:(0,l.jsx)(te,{items:a})})]},t)})})},tr=e=>{let{heading:t,educations:s,themeColor:n,showBulletPoints:i}=e;return(0,l.jsx)(e7,{themeColor:n,heading:t,children:s.map((e,t)=>{let{school:n,degree:r,date:a,gpa:o,descriptions:c=[]}=e,d=t>0&&n===s[t-1].school,u=""!==c.join();return(0,l.jsxs)(eK.View,{children:[!d&&(0,l.jsx)(e9,{bold:!0,children:n}),(0,l.jsxs)(eK.View,{style:{...e0.flexRowBetween,marginTop:d?"-"+e$["1"]:e$["1.5"]},children:[(0,l.jsx)(e9,{children:"".concat(o?"".concat(r," - ").concat(Number(o)?o+" GPA":o):r)}),(0,l.jsx)(e9,{children:a})]}),u&&(0,l.jsx)(eK.View,{style:{...e0.flexCol,marginTop:e$["1.5"]},children:(0,l.jsx)(te,{items:c,showBulletPoints:i})})]},t)})})},ta=e=>{let{heading:t,projects:s,themeColor:n}=e;return(0,l.jsx)(e7,{themeColor:n,heading:t,children:s.map((e,t)=>{let{project:s,date:n,descriptions:i}=e;return(0,l.jsxs)(eK.View,{children:[(0,l.jsxs)(eK.View,{style:{...e0.flexRowBetween,marginTop:e$["0.5"]},children:[(0,l.jsx)(e9,{bold:!0,children:s}),(0,l.jsx)(e9,{children:n})]}),(0,l.jsx)(eK.View,{style:{...e0.flexCol,marginTop:e$["0.5"]},children:(0,l.jsx)(te,{items:i})})]},t)})})},to=e=>{let{heading:t,certificates:s,themeColor:n}=e;return s&&0!==s.length?(0,l.jsx)(e7,{themeColor:n,heading:t,children:s.map((e,t)=>{let{title:s,url:i,description:r}=e;return(0,l.jsxs)(eK.View,{children:[(0,l.jsxs)(eK.View,{style:{...e0.flexRowBetween,marginTop:e$["0.5"]},children:[(0,l.jsx)(e9,{bold:!0,children:s}),i?(0,l.jsx)(e9,{style:{color:n},children:i}):null]}),r?(0,l.jsx)(eK.View,{style:{...e0.flexCol,marginTop:e$["0.5"]},children:(0,l.jsx)(e9,{style:{lineHeight:"1.3"},children:r})}):null]},t)})}):null},tc=e=>{let{heading:t,summary:s,themeColor:n}=e;return s&&""!==s.trim()?(0,l.jsx)(e7,{themeColor:n,heading:t,children:(0,l.jsx)(eK.View,{style:{marginTop:e$["0.5"]},children:(0,l.jsx)(e9,{style:{lineHeight:"1.3"},children:s})})}):null},td=e=>{let{heading:t,skills:s,themeColor:n,showBulletPoints:i}=e,{descriptions:r,featuredSkills:a}=s,o=a.filter(e=>e.skill),c=[[o[0],o[3]],[o[1],o[4]],[o[2],o[5]]];return(0,l.jsxs)(e7,{themeColor:n,heading:t,children:[o.length>0&&(0,l.jsx)(eK.View,{style:{...e0.flexRowBetween,marginTop:e$["0.5"]},children:c.map((e,t)=>(0,l.jsx)(eK.View,{style:{...e0.flexCol},children:e.map((e,t)=>e?(0,l.jsx)(tl,{skill:e.skill,themeColor:n,style:{justifyContent:"flex-end"}},t):null)},t))}),(0,l.jsx)(eK.View,{style:{...e0.flexCol},children:(0,l.jsx)(tt,{items:r,showBulletPoints:!1})})]})},tu=e=>{let{heading:t,achievements:s,themeColor:n}=e;return s&&0!==s.length?(0,l.jsx)(e7,{themeColor:n,heading:t,children:s.map((e,t)=>{let{title:s,description:n}=e;return(0,l.jsxs)(eK.View,{children:[(0,l.jsx)(eK.View,{style:{...e0.flexRowBetween,marginTop:e$["0.5"]},children:(0,l.jsx)(e9,{bold:!0,children:s})}),n?(0,l.jsx)(eK.View,{style:{...e0.flexCol,marginTop:e$["0.5"]},children:(0,l.jsx)(e9,{style:{lineHeight:"1.3"},children:n})}):null]},t)})}):null},tm=e=>{let{heading:t,hobbies:s,themeColor:n}=e;return s&&0!==s.length?(0,l.jsx)(e7,{themeColor:n,heading:t,children:s.map((e,t)=>{let{title:s,description:n}=e;return(0,l.jsxs)(eK.View,{children:[(0,l.jsx)(eK.View,{style:{...e0.flexRowBetween,marginTop:e$["0.5"]},children:(0,l.jsx)(e9,{bold:!0,children:s})}),n?(0,l.jsx)(eK.View,{style:{...e0.flexCol,marginTop:e$["0.5"]},children:(0,l.jsx)(e9,{style:{lineHeight:"1.3"},children:n})}):null]},t)})}):null},th=e=>{let{heading:t,custom:s,themeColor:n,showBulletPoints:i}=e,{descriptions:r}=s;return(0,l.jsx)(e7,{themeColor:n,heading:t,children:(0,l.jsx)(eK.View,{style:{...e0.flexCol},children:(0,l.jsx)(te,{items:r,showBulletPoints:i})})})};if("localhost"===window.location.hostname){let e=console.error,t=["DOCUMENT","PAGE","TEXT","VIEW"];console.error=function(s){for(var l=arguments.length,n=Array(l>1?l-1:0),i=1;i<l;i++)n[i-1]=arguments[i];t.some(e=>{var t;return null===(t=n[0])||void 0===t?void 0:t.includes(e)})||e(s,...n)}}let tp=()=>(0,l.jsx)(l.Fragment,{}),tx=e=>{let{resume:t,settings:s,isPDF:n=!1}=e,{profile:i,workExperiences:r,educations:o,projects:c,skills:d,custom:u,certificates:m,achievements:h,hobbies:p}=t,{name:x}=i,{fontFamily:g,fontSize:f,documentSize:b,formToHeading:v,formToShow:j,formsOrder:y,showBulletPoints:w}=s,C=s.themeColor||a.xw,k=y.filter(e=>j[e]),N={summary:()=>
1(0,l.jsx)(tc,{heading:v.summary,summary:t.summary,themeColor:C}),workExperiences:()=>(0,l.jsx)(ti,{heading:v.workExperiences,workExperiences:r,themeColor:C}),educations:()=>(0,l.jsx)(tr,{heading:v.educations,educations:o,themeColor:C,showBulletPoints:w.educations}),projects:()=>(0,l.jsx)(ta,{heading:v.projects,projects:c,themeColor:C}),skills:()=>(0,l.jsx)(td,{heading:v.skills,skills:d,themeColor:C,showBulletPoints:w.skills}),certificate:()=>(0,l.jsx)(to,{heading:v.certificate,certificates:m||[],themeColor:C}),achievements:()=>(0,l.jsx)(tu,{heading:v.achievements,achievements:h||[],themeColor:C}),hobbies:()=>(0,l.jsx)(tm,{heading:v.hobbies,hobbies:p||[],themeColor:C}),custom:()=>(0,l.jsx)(th,{heading:v.custom,custom:u,themeColor:C,showBulletPoints:w.custom})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eK.Document,{title:"".concat(null!=x?x:""," Resume"),author:null!=x?x:"",producer:"Coding JR",children:(0,l.jsxs)(eK.Page,{size:"A4"===b?"A4":"LETTER",style:{...e0.flexCol,color:a.xw,fontFamily:g,paddingBottom:50,paddingTop:30,fontSize:f+"pt"},children:[!!s.themeColor&&(0,l.jsx)(eK.View,{style:{width:"100%",height:e$[3.5],backgroundColor:C}}),(0,l.jsxs)(eK.View,{style:{...e0.flexCol,padding:"".concat(e$[0]," ").concat(e$[20])},children:[(0,l.jsx)(tn,{profile:i,themeColor:C,isPDF:n}),k.map(e=>{let t=N[e];return(0,l.jsx)(eK.View,{children:(0,l.jsx)(t,{})},e)})]})]})}),(0,l.jsx)(tp,{})]})},tg=()=>parseFloat(getComputedStyle(document.querySelector("body"))["font-size"])||16,tf=e=>{let{setScale:t,documentSize:s}=e,[l,n]=(0,d.useState)(!0);return(0,d.useEffect)(()=>{let e=()=>{let e=window.innerHeight,t=tg(),l=parseFloat("3.5rem"),n=parseFloat("3rem");return Math.round((e/t-l-n-2*parseFloat("1.5rem"))*t/("A4"===s?eb.qA:eb.J2)*100)/100},n=()=>{t(e())};return l&&(n(),window.addEventListener("resize",n)),()=>{window.removeEventListener("resize",n)}},[t,l,s]),{scaleOnResize:l,setScaleOnResize:n}};var tb=s(93069),tv=s(66140);let tj=e=>{let{scale:t,setScale:s,documentSize:n,pdfDocument:i,fileName:r}=e,{scaleOnResize:a,setScaleOnResize:o}=tf({setScale:s,documentSize:n}),[c,u]=(0,d.useState)(!1),[m,h]=(0,d.useState)(null),p=async()=>{try{u(!0),h(null);let e=t=>{var s;if(!t||"object"!=typeof t)return t;let l={...t};if(null===(s=l.style)||void 0===s?void 0:s.borderRadius){let e=l.style.borderRadius;"string"==typeof e&&e.includes("%")&&(l.style={...l.style,borderRadius:999})}return l.props&&(l.props={...l.props},l.props.children&&(Array.isArray(l.props.children)?l.props.children=l.props.children.map(e):l.props.children=e(l.props.children)),Object.keys(l.props).forEach(t=>{"children"!==t&&l.props[t]&&"object"==typeof l.props[t]&&(l.props[t]=e(l.props[t]))})),l},t=e(i),s=await (0,eK.pdf)(t).toBlob(),l=URL.createObjectURL(s),n=window.document.createElement("a");n.href=l,n.download="".concat(r,".pdf"),window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n),URL.revokeObjectURL(l)}catch(e){console.error("Error generating PDF:",e),e instanceof Error?h("PDF Generation Error: ".concat(e.message)):h("An unexpected error occurred while generating the PDF")}finally{u(!1)}};return(0,l.jsx)("div",{className:"flex w-full justify-between border p-2 bg-white h-20 rounded-lg",children:(0,l.jsx)("div",{className:"flex items-center justify-between px-4 w-full ",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-2 justify-center items-center w-full",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 w-full justify-center mx-auto xl:col-span-2 ",children:[(0,l.jsx)(tb.Z,{className:"h-5 w-5 text-gray-500","aria-hidden":"true"}),(0,l.jsx)("input",{type:"range",min:.5,max:1.5,step:.01,value:t,onChange:e=>{o(!1),s(Number(e.target.value))},className:"w-28 accent-blue-600 cursor-pointer"}),(0,l.jsx)("div",{className:"w-12 text-sm font-medium text-gray-700 text-center",children:"".concat(Math.round(100*t),"%")}),(0,l.jsxs)("label",{className:"hidden items-center justify-center gap-1 text-sm text-gray-600 lg:flex",children:[(0,l.jsx)("input",{type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500",checked:a,onChange:()=>
1o(e=>!e)}),(0,l.jsx)("span",{className:"select-none",children:"Autoscale"})]})]}),(0,l.jsx)("div",{className:"w-full flex justify-center items-center",children:(0,l.jsxs)("button",{onClick:p,disabled:c,className:"flex items-center gap-2 rounded-md border px-4 py-1.5 text-sm font-medium ".concat(c?"bg-blue-600 border-gray-200 text-gray-200 cursor-not-allowed":"bg-blue-500 border-gray-300 text-white shadow-sm hover:bg-blue-600 transition"),children:[(0,l.jsx)(tv.Z,{className:"h-4 w-4"}),(0,l.jsx)("span",{children:c?"Generating...":"Download"})]})})]})})})},ty=ef()(()=>Promise.resolve(tj),{ssr:!1}),tw=()=>(0,l.jsx)("div",{className:"absolute bottom-[var(--resume-control-bar-height)] w-full "}),tC=()=>{(0,d.useEffect)(()=>{(0,ex.z)().forEach(e=>{eK.Font.register({family:e,fonts:[{src:"fonts/".concat(e,"-Regular.ttf")},{src:"fonts/".concat(e,"-Bold.ttf"),fontWeight:"bold"}]})})},[])},tk=e=>{(0,d.useEffect)(()=>{ep.JL.includes(e)?eK.Font.registerHyphenationCallback(e=>[e]):eK.Font.registerHyphenationCallback(e=>e.split("").map(e=>[e,""]).flat())},[e])},tN=ef()(()=>Promise.all([s.e(57583),s.e(97725)]).then(s.bind(s,97725)),{loadableGenerated:{webpack:()=>[97725]},ssr:!1}),tS=()=>{let[e,t]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{(0,ex.z)().includes("NotoSansSC")&&t(!0)},[]),(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsx)(tN,{})})},tE=()=>{var e;let[t,s]=(0,d.useState)(.8),n=(0,u.CG)(r.Dp),i=(0,u.CG)(a.vi),o=(0,d.useMemo)(()=>{try{return(0,l.jsx)(tx,{resume:n,settings:i,isPDF:!0})}catch(e){return console.error("Error creating PDF document:",e),null}},[n,i]);return(tC(),tk(i.fontFamily),n&&i)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tS,{}),(0,l.jsx)("div",{className:"relative h-full flex justify-center md:justify-start bg-gray-50 flex-col",children:(0,l.jsxs)("div",{className:"relative flex-1 h-full flex flex-col justify-between",children:[!1,(0,l.jsx)("section",{className:"flex-1 w-full overflow-auto p-6 md:p-8",children:(0,l.jsx)("div",{className:"w-full h-full flex justify-center items-center",children:(0,l.jsx)(eq,{documentSize:i.documentSize,enablePDFViewer:!1,scale:t,children:(0,l.jsx)(tx,{resume:n,settings:i,isPDF:!1})})})}),(0,l.jsxs)("div",{className:"flex justify-between sticky bottom-4 md:bottom-6 z-20 mt-4 bg-transparent",children:[(0,l.jsx)(tw,{}),o&&(0,l.jsx)(ty,{scale:t,setScale:s,documentSize:i.documentSize,pdfDocument:o,fileName:(null==n?void 0:null===(e=n.profile)||void 0===e?void 0:e.name)+" - Resume"})]})]})})]}):(0,l.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,l.jsx)("p",{className:"text-gray-500",children:"Loading resume data..."})})};var tD=s(47041),tA=s(87645),tT=s(92761),tL=s(18178),tR=s(68760),tP=s(11515);let tz={profile:"Profile",summary:"Professional Summary",educations:"Education",workExperiences:"Experience",skills:"Skills",projects:"Projects",certificate:"Certifications",achievements:"Achievements",hobbies:"Hobbies",custom:"Custom Section",theme:"Finalize"};function tB(e){let{id:t,label:s,isActive:n,isCompleted:i,onClick:r}=e,{attributes:a,listeners:o,setNodeRef:c,transform:d,transition:u}=(0,eu.nB)({id:t}),m={transform:em.ux.Transform.toString(d),transition:u};return(0,l.jsxs)("button",{ref:c,style:m,...a,...o,onClick:r,className:"group relative flex gap-2 w-full items-center rounded-xl px-4 py-2 shadow-sm transition-all\n ".concat(n?"bg-blue-50 text-blue-700 border border-blue-200":i?"bg-green-50 text-green-700 border border-green-200":"bg-white text-gray-600 border border-gray-200 hover:bg-gray-50","\n "),children:[(0,l.jsx)("span",{className:"cursor-grab text-gray-400 group-hover:text-gray-600",...o,children:"â°"}),(0,l.jsx)("span",{className:"font-medium",children:s}),n&&(0,l.jsx)("span",{className:"ml-auto rounded-full bg-blue-100 px-2 py-0.5 text-xs font-semibold text-blue-600",children:"Active"}),i&&!n&&(0,l.jsx)("span",{className:"ml-auto rounded-full bg-green-100 px-2 py-0.5 text-xs font-semibold text-green-600",children:"Done"})]})}function tF(e){let{activeForm:t,setActiveForm:s}=e,i=(0,n.I0)(),r=(0,u.CG)(a.cd),o=(0,ed.Dy)((0,ed.VT)(ed.we)),c=["profile",...r,"theme"];return(0,l.jsx)(ed.LB,{sensors:o,collisionDetection:ed.pE,onDragEnd:e=>{let{active:t,over:s}=e;if(!s||t.id===s.id)return;
1let l=r.indexOf(t.id),n=r.indexOf(s.id),o=(0,eu.Rp)(r,l,n);i((0,a.XI)(o))},children:(0,l.jsx)(eu.Fo,{items:r,strategy:eu.qw,children:(0,l.jsx)("div",{className:"flex items-center flex-col gap-4 overflow-x-auto",children:c.map((e,n)=>{let i=tz[e];return"profile"===e||"theme"===e?(0,l.jsx)("button",{onClick:()=>s(e),className:"text-sm ".concat(t===e?"text-blue-700":"text-gray-400"),children:i},e):(0,l.jsx)(tB,{id:e,label:i,isActive:t===e,isCompleted:c.indexOf(t)>n,onClick:()=>s(e)},e)})})})})}var tM=s(13697),tV=s(70088),tI=s(23050),tZ=s(68655),tH=s(39810),tO=s(20113),tG=e=>{let{value:t,size:s=112,strokeWidth:n=8,color:i="#10B981",bgColor:r="#e5e7eb",textColor:a="#111"}=e,o=(s-n)/2,c=2*Math.PI*o;return(0,l.jsxs)("svg",{width:s,height:s,className:"block",children:[(0,l.jsx)("circle",{cx:s/2,cy:s/2,r:o,stroke:r,strokeWidth:n,fill:"none"}),(0,l.jsx)("circle",{cx:s/2,cy:s/2,r:o,stroke:i,strokeWidth:n,fill:"none",strokeDasharray:c,strokeDashoffset:c-t/100*c,strokeLinecap:"round",transform:"rotate(-90 ".concat(s/2," ").concat(s/2,")")}),(0,l.jsxs)("text",{x:"50%",y:"50%",dominantBaseline:"middle",textAnchor:"middle",fontSize:.22*s,fill:a,fontWeight:"600",children:[Math.round(t),"%"]})]})},tW=()=>{var e,t,s,i,r,a,c;let d=(0,n.v9)(o.YL),u=e=>e>=80?"#10B981":e>=60?"#F59E0B":e>=40?"#F97316":"#EF4444",m=e=>{switch(e){case"profile":return"Profile";case"workExperiences":return"Work Experience";case"educations":return"Education";case"projects":return"Projects";case"skills":return"Skills";case"custom":return"Summary";default:return e}},h=(c=null!==(e=null==d?void 0:d.overallScore)&&void 0!==e?e:0)>=80?{text:"Excellent",icon:tV.Z,color:"text-green-600",badgeClass:"bg-green-100 text-green-800 border border-green-200"}:c>=60?{text:"Good",icon:tI.Z,color:"text-yellow-600",badgeClass:"bg-yellow-100 text-yellow-800 border border-yellow-200"}:c>=40?{text:"Needs Improvement",icon:tZ.Z,color:"text-orange-600",badgeClass:"bg-orange-100 text-orange-800 border border-orange-200"}:{text:"Poor",icon:tH.Z,color:"text-red-600",badgeClass:"bg-red-100 text-red-800 border border-red-200"},p=h.icon;return(0,l.jsxs)("div",{className:"p-4 max-w-2xl mx-auto scrollbar-thin-2 h-screen my-auto overflow-y-auto space-y-6",children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 lg:gap-0 items-center p-6 rounded-lg border shadow-sm",style:{backgroundColor:(0,tM.a7)(u(null!==(t=null==d?void 0:d.overallScore)&&void 0!==t?t:0),.1),borderColor:u(null!==(s=null==d?void 0:d.overallScore)&&void 0!==s?s:0)},children:[(0,l.jsx)("div",{className:"w-full h-28 flex items-center justify-center lg:items-center mx-auto xl:col-span-1",children:(0,l.jsx)("div",{className:"flex items-center justify-center w-28 h-28",children:(0,l.jsx)(tG,{value:null!==(i=null==d?void 0:d.overallScore)&&void 0!==i?i:0,color:u(null!==(r=null==d?void 0:d.overallScore)&&void 0!==r?r:0),size:112,strokeWidth:8,textColor:"#111",bgColor:"#e5e7eb"})})}),(0,l.jsxs)("div",{className:"flex-1 xl:col-span-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-2 flex-wrap",children:[(0,l.jsx)(p,{className:"w-6 h-6 ".concat(h.color," shrink-0")}),(0,l.jsx)("h2",{className:"text-2xl font-semibold text-gray-800",children:"Resume Score"}),(0,l.jsx)("span",{className:"px-3 py-1 rounded-full text-sm font-medium ".concat(h.badgeClass),children:h.text})]}),(0,l.jsxs)("p",{className:"text-gray-600",children:["Your resume has an overall score of ",(0,l.jsxs)("strong",{children:[Math.round(null!==(a=null==d?void 0:d.overallScore)&&void 0!==a?a:0),"%"]}),". Aim for 70% or higher for strong applications."]}),(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-500 mt-2",children:[(0,l.jsx)(tO.Z,{className:"w-4 h-4"}),(0,l.jsx)("span",{children:"Target Score: 70%+"})]})]})]}),(0,l.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200 p-6 space-y-4",children:[(0,l.jsx)("h3",{className:"text-xl font-semibold text-gray-800 flex items-center gap-2",children:"Score Breakdown"}),(0,l.jsx)("div",{className:"space-y-3",children:(null==d?void 0:d.breakdown)&&Object.entries(d.breakdown).map(e=>{let[t,s]=e;return(0,l.jsxs)("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-100 hover:bg-gray-100 transition-colors",children:[(0,l.jsx)("div",{className:"flex justify-between mb-1",children:(0,l.jsx)("span",{className:"font-medium text-gray-700",children:m(t)})}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:(0,l.jsx)("div",{className:"h-2 rounded-full transition-all duration-500",style:{width:"".concat(s.score,"%"),backgroundColor:u(s.score)}})}),(0,l.jsxs)("span",{className:"text-sm font-semibold text-gray-700 min-w-[3rem]",children:[Math.round(s.score),"%"]})]}),(0,l.jsxs)("div",{className:"mt-1 text-xs text-gray-500",children:["Weighted Score: ",Math.round(s.weightedScore),"%"]})]},t)})})]}),(null==d?void 0:d.suggestions)&&d.suggestions.length>0&&(0,l.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 p-6 space-y-3 mb-200",children:[(0,l.jsx)("h3",{className:"text-xl font-semibold text-gray-800 flex items-center gap-2",children:"Suggestions for Improvement"}),(0,l.jsx)("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:d.suggestions.map((e,t)=>(0,l.jsx)("li",{children:e},t))})]}),(0,l.jsx)("div",{className:"bg-gray-50"})]})};function t_(){(0,u.Hn)(),(0,u.Cz)(),eI(),(0,n.v9)(r.Dp),(0,n.v9)(o.YL);let[e,t]=(0,d.useState)(!1),[s,i]=(0,d.useState)("design"),a=(0,eP.useRouter)(),{id:m}=a.query;(0,d.useEffect)(()=>{(0,tD.getCookie)("token")?t(!0):a.replace("/sign_in")},[a]);let[h,p]=(0,d.useState)("profile");if(!e)return(0,l.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,l.jsx)("span",{className:"h-8 w-8 animate-spin rounded-full border-transparent border-l-brand"})});let x=()=>(0,l.jsxs)("div",{className:"flex flex-col h-full font-md p-8",children:[(0,l.jsx)("div",{className:"text-xl font-semibold text-start ",children:"Reorder the sections by dragging the boxes"}),(0,l.jsx)("div",{className:"mb-8 text-md font-normal text-start text-gray-500 ",children:"Select and drag the section up and down to rearrange"}),(0,l.jsx)(tF,{activeForm:h,setActiveForm:p}),(0,l.jsxs)("button",{className:"relative flex flex-col mt-12 items-center justify-center bg-brand text-white font-semibold py-6 px-8 rounded-xl overflow-hidden disabled:cursor-none",disabled:!0,children:[(0,l.jsx)("span",{className:"absolute bottom-[-10px] left-[-10px] w-20 h-20 bg-brand4 rounded-full opacity-50"}),(0,l.jsx)("span",{className:"absolute top-[-10px] right-[-10px] w-16 h-16 bg-brand4 rounded-full opacity-50"}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center z-20",children:[(0,l.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mb-2",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.6 20.4C21.6 21.0624 21.0629 21.6 20.4 21.6H16.8C16.1371 21.6 15.6 21.0624 15.6 20.4V16.8C15.6 16.1376 16.1371 15.6 16.8 15.6H20.4C21.0629 15.6 21.6 16.1376 21.6 16.8V20.4ZM21.6 13.2H15.6C14.2743 13.2 13.2 14.274 13.2 15.6V21.6C13.2 22.926 14.2743 24 15.6 24H21.6C22.9257 24 24 22.926 24 21.6V15.6C24 14.274 22.9257 13.2 21.6 13.2ZM21.6 7.2C21.6 7.8624 21.0629 8.4 20.4 8.4H16.8C16.1371 8.4 15.6 7.8624 15.6 7.2V3.6C15.6 2.9376 16.1371 2.4 16.8 2.4H20.4C21.0629 2.4 21.6 2.9376 21.6 3.6V7.2ZM21.6 0H15.6C14.2743 0 13.2 1.074 13.2 2.4V8.4C13.2 9.726 14.2743 10.8 15.6 10.8H21.6C22.9257 10.8 24 9.726 24 8.4V2.4C24 1.074 22.9257 0 21.6 0ZM8.4 20.4C8.4 21.0624 7.86286 21.6 7.2 21.6H3.6C2.93714 21.6 2.4 21.0624 2.4 20.4V3.6C2.4 2.9376 2.93714 2.4 3.6 2.4H7.2C7.86286 2.4 8.4 2.9376 8.4 3.6V20.4ZM8.4 0H2.4C1.07429 0 0 1.074 0 2.4V21.6C0 22.926 1.07429 24 2.4 24H8.4C9.72571 24 10.8 22.926 10.8 21.6V2.4C10.8 1.074 9.72571 0 8.4 0Z",fill:"white"})}),(0,l.jsx)("p",{className:"text-sm opacity-80",children:"Get Inspired"}),(0,l.jsx)("p",{className:"text-lg font-bold",children:"View Winning Resumes"})]})]})]}),g=()=>(0,l.jsx)(eJ,{}),f=()=>(0,l.jsx)(tW,{});return(0,l.jsx)(n.zt,{store:c,children:(0,l.jsxs)("div",{className:"min-h-screen flex flex-col md:flex-row bg-gray-50",children:[(0,l.jsxs)("aside",{className:"w-full md:w-16 bg-brand flex md:flex-col items-center py-2 md:py-4 space-x-6 md:space-x-0 md:space-y-6 text-white",children:[(0,l.jsx)("button",{onClick:()=>a.back(),className:"flex items-center justify-center w-10 h-10 rounded-full bg-white hover:bg-gray-100",children:(0,l.jsx)(tT.Z,{className:"w-5 h-5 text-gray-700"})}),(0,l.jsxs)("div",{className:"flex flex-row md:flex-col items-center space-x-6 md:space-x-0 md:space-y-6 mt-2 md:mt-6",children:[(0,l.jsxs)("button",{onClick:()=>i("layout"),className:"flex flex-col items-center px-2 py-1 rounded-l-md md:w-16 ".concat("layout"===s?"bg-white text-brand":"text-white hover:text-brand4"),children:[(0,l.jsx)(tL.Z,{className:"w-6 h-6 mb-1"}),(0,l.jsx)("span",{className:"text-xs",children:"Layout"})]}),(0,l.jsxs)("button",{onClick:()=>i("design"),className:"flex flex-col items-center px-2 py-1 rounded-l-md md:w-16 ".concat("design"===s?"bg-white text-brand":"text-white hover:text-brand4"),children:[(0,l.jsx)(tR.Z,{className:"w-6 h-6 mb-1"}),(0,l.jsx)("span",{className:"text-xs",children:"Design"})]}),(0,l.jsxs)("button",{onClick:()=>i("score"),className:"flex flex-col items-center px-2 py-1 rounded-l-md md:w-16 ".concat("score"===s?"bg-white text-brand":"text-white hover:text-brand4"),children:[(0,l.jsx)(tP.Z,{className:"w-6 h-6 mb-1"}),(0,l.jsx)("span",{className:"text-xs",children:"Score"})]})]})]}),(0,l.jsxs)("main",{className:"flex-1 flex flex-col gap-4 p-4 md:grid md:grid-cols-6 md:p-6 md:max-h-screen",children:[(0,l.jsx)("section",{className:"w-full md:col-span-3 border bg-white rounded p-0 overflow-hidden flex flex-col",children:(()=>{switch(s){case"layout":return(0,l.jsx)(x,{});
1case"design":return(0,l.jsx)(g,{});case"score":return(0,l.jsx)(f,{});default:return null}})()}),(0,l.jsxs)("aside",{className:"w-full md:col-span-3 border bg-white rounded md:h-full overflow-auto","aria-label":"Resume Preview",children:[(0,l.jsx)("div",{className:"md:hidden text-center font-semibold py-2 border-b",children:"Resume Preview"}),(0,l.jsx)("div",{className:"flex-1 h-full p-4",children:(0,l.jsx)(tE,{})})]})]})]})})}t_.getLayout=e=>(0,l.jsx)(tA.Z,{children:e})},88772:function(e,t,s){"use strict";s.d(t,{G:function(){return i}});let l=e=>{let t=new Date;return t.setDate(t.getDate()-e),t.toISOString()},n=e=>"".concat(e,"-demo"),i=[{id:"demo-resume-001",name:"Software Engineer Resume",themeColor:"#1D3459",score:87.5,fontSize:"12",createdAt:l(30),updatedAt:l(5),sections:[{id:n("profile"),name:"profile",values:{name:"Arjun Patel",email:"[email protected]",phone:"+91 9876543210",location:"Bengaluru, India",url:"github.com/arjunpatel",summary:"Passionate software engineer with experience in full-stack web development and cloud technologies.",header:"Software Engineer",title:"B.Tech Computer Science",linkedin:"linkedin.com/in/arjunpatel",profilePhoto:""},status:{visible:!0}},{id:n("summary"),name:"summary",values:"Results-driven software engineer with 2+ years of experience building scalable web applications using React, Node.js, and AWS. Passionate about clean code, system design, and delivering high-quality software solutions.",status:{visible:!0}},{id:n("workExperiences"),name:"workExperiences",values:[{company:"TechCorp Solutions",jobTitle:"Software Engineer Intern",date:"Jun 2023 â Aug 2023",descriptions:["Developed RESTful APIs using Node.js and Express, improving API response time by 30%.","Built responsive UI components in React and integrated with backend services.","Collaborated with cross-functional teams using Agile/Scrum methodology."]}],status:{visible:!0}},{id:n("educations"),name:"educations",values:[{school:"Demo University",degree:"B.Tech in Computer Science and Engineering",gpa:"8.5 / 10",date:"2021 â 2025",descriptions:["Relevant coursework: Data Structures, Algorithms, DBMS, OS, Computer Networks."]}],status:{visible:!0}},{id:n("projects"),name:"projects",values:[{project:"Campus Management System",date:"Jan 2024 â Mar 2024",descriptions:["Built a full-stack campus management system using Next.js and Go.","Implemented features for online tests, hackathons, and placement preparation.","Deployed on AWS EC2 with PostgreSQL as the primary database."]},{project:"Real-time Chat Application",date:"Sep 2023 â Nov 2023",descriptions:["Developed a real-time messaging app using WebSockets and React.","Integrated JWT authentication and end-to-end message encryption."]}],status:{visible:!0}},{id:n("skills"),name:"skills",values:{featuredSkills:[{skill:"React"},{skill:"Node.js"},{skill:"TypeScript"},{skill:"Python"},{skill:"SQL"},{skill:"AWS"}],descriptions:["Data Structures & Algorithms","System Design","Git & CI/CD","REST APIs"]},status:{visible:!0}}]},{id:"demo-resume-002",name:"Data Science Internship",themeColor:"#2563eb",score:72.3,fontSize:"12",createdAt:l(20),updatedAt:l(12),sections:[{id:n("profile"),name:"profile",values:{name:"Priya Sharma",email:"[email protected]",phone:"+91 9845671234",location:"Pune, India",url:"github.com/priyasharma",summary:"Data science enthusiast with strong skills in Python, machine learning, and statistical analysis.",header:"Data Science Intern",title:"B.Tech Computer Science",linkedin:"linkedin.com/in/priyasharma",profilePhoto:""},status:{visible:!0}},{id:n("summary"),name:"summary",values:"Aspiring data scientist with hands-on experience in Python, scikit-learn, and data visualization tools. Skilled at transforming raw data into actionable insights and building predictive models.",status:{visible:!0}},{id:n("educations"),name:"educations",values:[{school:"Demo University",degree:"B.Tech in Computer Science and Engineering",gpa:"7.9 / 10",date:"2021 â 2025",descriptions:["Relevant coursework: Machine Learning, Statistics, Big Data Analytics, NLP."]}],status:{visible:!0}},{id:n("projects"),name:"projects",values:[{project:"Sentiment Analysis on Social Media",date:"Aug 2023 â Oct 2023",descriptions:["Built a sentiment classifier using BERT achieving 92% accuracy on Twitter dataset.","Used pandas and matplotlib for exploratory data analysis and visualization."]},{project:"Sales Forecasting Model",date:"Feb 2024 â Apr 2024",descriptions:["Developed time-series forecasting model using LSTM networks in TensorFlow.","Reduced forecast error by 18% compared to baseline ARIMA model."]}],status:{visible:!0}},{id:n("skills"),name:"skills",values:{featuredSkills:[{skill:"Python"},{skill:"scikit-learn"},{skill:"TensorFlow"},{skill:"SQL"},{skill:"Tableau"},{skill:"R"}],descriptions:["Statistical Analysis","Data Visualization","Machine Learning","NLP"]},status:{visible:!0}}]},{id:"demo-resume-003",name:"Campus Placement 2025",themeColor:"#16a34a",score:94.1,fontSize:"11",createdAt:l(10),updatedAt:l(2),sections:[{id:n("profile"),name:"profile",values:{name:"Rahul Singh",email:"[email protected]",phone:"+91 9912345678",location:"Hyderabad, India",url:"github.com/rahulsingh",summary:"Full-stack developer and competitive programmer targeting top-tier tech placements.",header:"Full-Stack Developer",title:"B.Tech Computer Science",linkedin:"linkedin.com/in/rahulsingh",profilePhoto:""},status:{visible:!0}},{id:n("summary"),name:"summary",values:"Highly motivated B.Tech student with strong problem-solving skills, 400+ LeetCode problems solved, and experience building production-grade applications. Seeking a software engineer role at a product-based company.",status:{visible:!0}},{id:n("workExperiences"),name:"workExperiences",values:[{company:"StartupXYZ",jobTitle:"Full Stack Developer Intern",date:"May 2024 â Jul 2024",descriptions:["Architected and shipped 3 production features reducing user churn by 15%.","Built microservices in Go and integrated
1with React frontend using REST and GraphQL.","Set up CI/CD pipelines using GitHub Actions and Docker."]}],status:{visible:!0}},{id:n("educations"),name:"educations",values:[{school:"Demo University",degree:"B.Tech in Computer Science and Engineering",gpa:"9.1 / 10",date:"2021 â 2025",descriptions:["Department rank 3 out of 120 students.","Relevant coursework: DSA, OS, DBMS, CN, System Design."]}],status:{visible:!0}},{id:n("projects"),name:"projects",values:[{project:"Distributed Key-Value Store",date:"Nov 2023 â Jan 2024",descriptions:["Implemented a Raft consensus-based distributed KV store in Go.","Handles 10,000+ RPS with fault tolerance across 3-node cluster."]},{project:"Online Judge Platform",date:"Mar 2024 â May 2024",descriptions:["Built a scalable online judge supporting C++, Java, and Python submissions.","Used Docker sandboxing for secure code execution; handles 500 concurrent submissions."]}],status:{visible:!0}},{id:n("skills"),name:"skills",values:{featuredSkills:[{skill:"C++"},{skill:"Go"},{skill:"React"},{skill:"PostgreSQL"},{skill:"Docker"},{skill:"Kubernetes"}],descriptions:["DSA","System Design","Distributed Systems","LeetCode 400+"]},status:{visible:!0}},{id:n("achievements"),name:"achievements",values:[{title:"Codeforces Rating 1800+",description:"Expert rank on Codeforces competitive programming platform."},{title:"Smart India Hackathon 2023",description:"Won first prize among 200+ teams at national level hackathon."}],status:{visible:!0}}]}]},42480:function(){}},function(e){e.O(0,[7439,91111,52191,43507,4208,70917,97083,81354,69959,72750,50765,92888,49774,40179],function(){return e(e.s=14697)}),_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.