1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9967],{5778:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-resume",function(){return t(92497)}])},40306:function(e,a,t){"use strict";t.d(a,{Z:function(){return n}});var s=t(85893),i=t(67694),r=t(49240);function n(e){let{message:a="Loading...",fullScreen:t=!1,children:n,showBrandIcon:o=!0,ariaLabel:l,size:d="md"}=e,{theme:c}=(0,i.F)(),m={sm:{wrapper:"w-12 h-12 sm:w-14 sm:h-14",icon:"w-6 h-6 sm:w-7 sm:h-7"},md:{wrapper:"w-16 h-16 sm:w-20 sm:h-20",icon:"w-8 h-8 sm:w-10 sm:h-10"},lg:{wrapper:"w-20 h-20 sm:w-24 sm:h-24",icon:"w-10 h-10 sm:w-12 sm:h-12"}}[d];return(0,s.jsxs)("div",{className:t?"fixed inset-0 z-[9999] flex items-center justify-center":"absolute inset-0 z-10 flex items-center justify-center",role:"status","aria-live":"polite","aria-label":null!=l?l:a,children:[(0,s.jsx)("div",{className:"absolute inset-0 ".concat("dark"===c?"bg-[#1A1A1B]":"bg-white")}),(0,s.jsxs)("div",{className:"relative z-10 flex flex-col items-center space-y-4",children:[o&&(0,s.jsx)("div",{className:"relative ".concat(m.wrapper," rounded-2xl flex items-center justify-center ").concat("dark"===c?"bg-gradient-to-br from-blue-600 to-[#E03D00]":"bg-gradient-to-br from-blue-500 to-[#FF4500]"," shadow-lg"),children:(0,s.jsx)(r.Z,{className:"".concat(m.icon," animate-pulse"),fill:"white"})}),n?(0,s.jsx)("div",{className:"w-full",children:n}):(0,s.jsxs)("div",{className:"text-center px-4",children:[(0,s.jsx)("p",{className:"text-sm sm:text-base font-medium ".concat("dark"===c?"text-white":"text-gray-900"),style:{fontFamily:"Rajdhani, sans-serif",fontWeight:700},children:a}),(0,s.jsxs)("div",{className:"flex items-center justify-center space-x-1 mt-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce ".concat("dark"===c?"bg-blue-400":"bg-blue-600"),style:{animationDelay:"0ms"}}),(0,s.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce ".concat("dark"===c?"bg-[#FF4500]/20":"bg-[#FF4500]"),style:{animationDelay:"150ms"}}),(0,s.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce ".concat("bg-[#FF4500]"),style:{animationDelay:"300ms"}})]})]})]})]})}t(67294)},67162:function(e,a,t){"use strict";t.d(a,{Z:function(){return n}});var s=t(85893),i=t(9008),r=t.n(i);function n(e){let{title:a="TrueResume - AI Resume Builder | ATS-Optimized Resumes in Seconds",description:i="Create professional, ATS-optimized resumes tailored to any job description using advanced AI. Free resume builder with 90%+ ATS match scores. Get 3x more interviews.",canonical:n="https://trueresume.ai",ogImage:o="https://trueresume.ai/og-image.png",ogType:l="website",twitterCard:d="summary_large_image",keywords:c="AI resume builder, ATS resume, resume generator, professional resume, job application, resume maker, free resume, CV builder, career tools",structuredData:m,siteWide:f=!0,noindex:u=!1,lang:h="en",alternate:x=[],preconnect:b=["https://fonts.gstatic.com","https://www.google-analytics.com"]}=e,p=e=>null==e?"":String(e),g=()=>{try{let e=t(78311),s=[];return s.push(e.organizationSchema()),s.push(e.webSiteSchema()),s.push(e.webPageSchema({url:String(n),name:String(a),description:String(i)})),s}catch(e){return console.warn("SEO: failed to load site schema helper",e),null}},y=(e=>{if(!e)return null;try{return Array.isArray(e)?e.map(e=>JSON.stringify(e)):JSON.stringify(e)}catch(e){return console.warn("SEO: failed to stringify structuredData",e),null}})((()=>
1{if(!f)return m||null;let e=g();return e||m?m?Array.isArray(m)?[...e,...m]:[...e,m]:e:null})());return(0,s.jsxs)(r(),{children:[b.map(e=>(0,s.jsx)("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"},e)),(0,s.jsx)("title",{children:p(a)}),(0,s.jsx)("meta",{name:"title",content:p(a)}),(0,s.jsx)("meta",{name:"description",content:p(i)}),c&&(0,s.jsx)("meta",{name:"keywords",content:c}),(0,s.jsx)("link",{rel:"canonical",href:n}),u?(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"}):(0,s.jsx)("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),(0,s.jsx)("meta",{property:"og:type",content:p(l)}),(0,s.jsx)("meta",{property:"og:url",content:p(n)}),(0,s.jsx)("meta",{property:"og:title",content:p(a)}),(0,s.jsx)("meta",{property:"og:description",content:p(i)}),(0,s.jsx)("meta",{property:"og:image",content:p(o)}),(0,s.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,s.jsx)("meta",{property:"og:image:height",content:"630"}),(0,s.jsx)("meta",{property:"og:site_name",content:"TrueResume"}),(0,s.jsx)("meta",{name:"twitter:card",content:p(d)}),(0,s.jsx)("meta",{name:"twitter:url",content:p(n)}),(0,s.jsx)("meta",{name:"twitter:title",content:p(a)}),(0,s.jsx)("meta",{name:"twitter:description",content:p(i)}),(0,s.jsx)("meta",{name:"twitter:image",content:p(o)}),(0,s.jsx)("meta",{name:"twitter:creator",content:"@TrueResume"}),y&&(Array.isArray(y)?y.map((e,a)=>(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:e}},a)):(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:y}})),x.map(e=>(0,s.jsx)("link",{rel:"alternate",hrefLang:e.hrefLang,href:e.href},e.hrefLang))]})}},79508:function(e,a,t){"use strict";t.d(a,{Z:function(){return r}});var s=t(85893);t(67294);var i=t(91594);function r(e){let{isOpen:a,onClose:t,cancelAt:r}=e;if(!a)return null;let n=r?new Date(r).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):null;return(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end md:items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/40",onClick:t}),(0,s.jsxs)("div",{className:"relative w-full md:max-w-xl md:rounded-lg md:shadow-lg bg-white dark:bg-gray-900 md:mx-4 md:my-8 md:transform md:transition md:duration-150",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between p-4 md:p-6 border-b dark:border-gray-800",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Subscription scheduled for cancellation"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-300",children:"Your subscription is scheduled to cancel at the end of your current billing period."})]}),(0,s.jsx)("button",{className:"ml-3 p-1 rounded-md text-gray-500 hover:text-gray-700 dark:text-gray-400",onClick:t,"aria-label":"Close",children:(0,s.jsx)(i.Z,{className:"h-6 w-6"})})]}),(0,s.jsxs)("div",{className:"p-4 md:p-6",children:[n?(0,s.jsxs)("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:["You will keep access until ",(0,s.jsx)("strong",{children:n}),". After that date your plan will be downgraded and any paid features will be removed."]}):(0,s.jsx)("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Your subscription is scheduled to cancel at period end. You will continue to have access until then."}),(0,s.jsx)("div",{className:"mt-4 flex gap-3 justify-end",children:(0,s.jsx)("button",{className:"inline-flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-200 px-4 py-2 text-sm",onClick:t,children:"OK"})})]}),(0,s.jsx)("div",{className:"h-6 md:hidden"})]})]})}},78311:function(e,a,t){"use strict";function s(){let{name:e="TrueResume",url:a="https://trueresume.ai",logo:t="https://trueresume.ai/favicon-512x512.png",sameAs:s=["https://twitter.com/TrueResume","https://www.linkedin.com/company/trueresume","https://github.com/TrueResume"],alternateNames:i=["TruResume","truresume","True Resume","Tru Resume","Trueresume"]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"@context":"https://schema.org","@type":"Organization",name:e,url:a,logo:t,sameAs:s,alternateName:i}}function i(){let{name:e="TrueResume",url:a="https://trueresume.ai",searchPath:t="/search?q={search_term_string}"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"@context":"https://schema.org","@type":"WebSite",name:e,url:a,potentialAction:{"@type":"SearchAction",target:"".concat(a.replace(/\/$/,"")).concat(t),"query-input":"required name=search_term_string"}}}function r(){let{url:e="https://trueresume.ai",name:a="TrueResume",description:t="AI resume builder and ATS-optimized resume generator",pageType:s="WebPage"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"@context":"https://schema.org","@type":s,url:e,name:a,description:t}}function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map(e=>({"@type":"ListItem",position:e.position,name:e.name,item:e.item}))}}t.r(a),t.d(a,{breadcrumbList:function(){return n},organizationSchema:function(){return s},webPageSchema:function(){return r},webSiteSchema:function(){return i}}),a.default={organizationSchema:s,webSiteSchema:i,webPageSchema:r,breadcrumbList:n}},92497:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return e6}});var s=t(85893),i=t(40645),r=t.n(i),n=t(67294),o=t(33299),l=t(11163),d=t(9008),c=t.n(d),m=t(67162);function f(e){if(!e)return"";if("string"==typeof e)return e;try{return String(e)}catch(e){return""}}var u=function(e,a){var t,s,i,r,n,o,l,d;let c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return null;let m=c?f(null===(t=e.personalInfo)||void 0===t?void 0:t.fullName):void 0,u=f((null===(i=e.experiences)||void 0===i?void 0:null===(s=i[0])||void 0===s?void 0:s.title)||(null===(r=e.summary)||void 0===r?void 0:r.slice(0,160))),h=f(e.summary||"Professional resume generated by TrueResume"),x=Object.values(e.skillsSection||{}).flatMap(e=>Array.isArray(e)?e:[]).slice(0,50).map(e=>f(e));(e.experiences||[]).map(e=>({"@type":"Organization",name:f(e.company)||f(e.employer)||void 0,description:f(e.summary)||void 0,roleName:f(e.title)||void 0,startDate:e.startDate||void 0,endDate:e.endDate||void 0}));let b=(e.education||[]).map(e=>({"@type":"EducationalOrganization",name:f(e.institution||e.school||e.university)||void 0,description:f(e.description)||void 0,startDate:e.startDate||void 0,endDate:e.endDate||void 0}));return[{"@context":"https://schema.org","@type":"Person",name:m||void 0,headline:u||void 0,description:h||void 0,url:a||void 0,sameAs:(()=>{var a,t,s;if(!c)return;let i=[null===(a=e.personalInfo)||void 0===a?void 0:a.linkedin,null===(t=e.personalInfo)||void 0===t?void 0:t.github,null===(s=e.personalInfo)||void 0===s?void 0:s.portfolio].filter(
1Boolean);return i.length?i:void 0})(),jobTitle:(null===(o=e.experiences)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.title)||void 0,alumniOf:b.length?b:void 0,workLocation:(null===(l=e.personalInfo)||void 0===l?void 0:l.location)||void 0,skills:x.length?x:void 0},{"@type":"CreativeWork",name:"".concat(m||"Resume"," â TrueResume"),description:h||void 0,author:c?{"@type":"Person",name:m||void 0}:{"@type":"Organization",name:"TrueResume"},datePublished:(null==e?void 0:null===(d=e.metadata)||void 0===d?void 0:d.generatedAt)||(null==e?void 0:e.generatedAt)||void 0,about:x.length?x.slice(0,10):void 0,url:a||void 0}]},h=t(86501),x=t(54271),b=t(42949),p=t(87542),g=t(89508),y=t(85412),v=t(67694),j=t(52481),w=t(5152),k=t.n(w),N=t(68479),F=t(7218),S=t(96246),A=t(26915);function D(e){try{var a,t;let s="string"==typeof(null==e?void 0:e.summary)?e.summary:Array.isArray(null==e?void 0:e.summary)?e.summary.join(" "):(null==e?void 0:null===(t=e.summary)||void 0===t?void 0:null===(a=t.bullets)||void 0===a?void 0:a.join(" "))||"",i=((null==e?void 0:e.experiences)||[]).map(e=>{let a=e.title||"",t=e.company||"",s="".concat(e.startDate||"","-").concat(e.endDate||""),i=(e.description||"").slice(0,200),r=Array.isArray(e.bullets)?e.bullets.join("|"):"",n=Array.isArray(e.techStack)?e.techStack.join(","):"";return"".concat(a,"|").concat(t,"|").concat(s,"|").concat(i,"|").concat(r.slice(0,500),"|").concat(n)}).join("||"),r=Array.isArray(null==e?void 0:e.skills)?e.skills.join(","):JSON.stringify((null==e?void 0:e.skillsSection)||(null==e?void 0:e.skills)||{}),n=(null==e?void 0:e.personalInfo)||{},o=(n.targetRole||n.title||"").toString().trim(),l=(n.name||n.fullName||"").toString().trim(),d=(n.email||"").toString().trim(),c=(n.phone||"").toString().trim(),m=(n.location||n.city||"").toString().trim(),f="".concat(o,"|").concat(l,"|").concat(d,"|").concat(c,"|").concat(m).slice(0,200),u=[s.slice(0,500),i.slice(0,1500),r.slice(0,400),f].join("::");return"".concat(u.length,"-").concat(function(e){let a=0;for(let t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t),a&=a;return Math.abs(a).toString(36)}(u))}catch(e){return console.error("computeResumeFingerprint error:",e),null}}t(61120),t(91819);let C=(e,a)=>{let t=document.createElement("style");if(t.id="pdf-pagebreak-styles",t.textContent="\n @media print {\n .experience-item, \n .education-item, \n .certification-item,\n .project-item {\n /* Allow sensible breaks to avoid creating big empty wedges when a\n large item is pushed to the next page; our fragmentation logic\n tries to keep headings with at least one bullet but we still\n allow breaks when necessary. */\n page-break-inside: auto !important;\n break-inside: auto !important;\n }\n \n /* allow sections to break naturally across pages; previously this forced\n whole sections onto the next page and caused large empty regions */\n section {\n page-break-inside: auto !important;\n break-inside: auto !important;\n }\n \n /* allow headings to naturally begin at the bottom of a page when necessary\n but prefer to keep items such as .experience-item together */\n h1, h2, h3, h4 {\n page-break-after: auto !important;\n break-after: auto !important;\n }\n \n ul, ol {\n /* Allow lists to continue across pages â preventing split here can create large empty gaps */\n page-break-inside: auto !important;\n break-inside: auto !important;\n }\n \n .page-break {\n page-break-before: always !important;\n break-before: page !important;\n }\n \n .page-break-after {\n page-break-after: always !important;\n break-after: page !important;\n }\n }\n \n /* Better spacing for PDF */\n .pdf-optimized {\n line-height: 1.5;\n font-size: 11pt;\n }\n \n .pdf-optimized h1 {\n font-size: 28pt;\n margin-bottom: 8pt;\n }\n \n .pdf-optimized h2 {\n font-size: 14pt;\n margin-bottom: 12pt;\n margin-top: 24pt;\n }\n \n .pdf-optimized h3 {\n font-size: 12pt;\n margin-bottom: 6pt;\n }\n \n .pdf-optimized p {\n margin-bottom: 12pt;\n hyphens: auto;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n word-break: break-word;
1\n overflow-wrap: anywhere;\n widows: 2;\n orphans: 2;\n }\n \n .pdf-optimized ul {\n margin-bottom: 16pt;\n }\n \n .pdf-optimized li {\n margin-bottom: 6pt;\n }\n ",document.getElementById("pdf-pagebreak-styles")||document.head.appendChild(t),a)try{e.style.fontFamily=a}catch(e){}e.classList.add("pdf-optimized")},E=()=>{let e=document.getElementById("pdf-pagebreak-styles");e&&e.remove(),document.querySelectorAll(".pdf-optimized").forEach(e=>{e.classList.remove("pdf-optimized")})};async function q(e){var a,t;if(!e.content||!e.jobTitle)return{ok:!1};let s=null===(a=e.jobId)||void 0===a?void 0:a.trim();s||(s=sessionStorage.getItem("last_applied_job")||void 0),s||(s=function(e,a){let t=e.trim().toLowerCase(),s=(a||"").trim().replace(/\s+/g," ").slice(0,400).toLowerCase(),i="".concat(t,"::").concat(s),r=2166136261;for(let e=0;e<i.length;e++)r^=i.charCodeAt(e),r=Math.imul(r,16777619);return"resume-jd-".concat((r>>>0).toString(36))}(e.jobTitle,e.jobDescription));let i=e.companyName,r=e.applyUrl;if(!i)try{i=JSON.parse(sessionStorage.getItem("last_applied_job_meta")||"{}").companyName||i}catch(e){}try{let a=await fetch("/api/jobs/applications/attach-resume",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:s,existingResumeId:e.existingResumeId,jobTitle:e.jobTitle,companyName:i||"",applyUrl:r,jobDescription:e.jobDescription,content:e.content,template:e.template,matchScore:e.matchScore,pdfUrl:e.pdfUrl,fontSchemeId:e.fontSchemeId,colorSchemeId:e.colorSchemeId,fontSizeScheme:e.fontSizeScheme,applyMethod:"resume_builder",confirmed:null!==(t=e.confirmed)&&void 0!==t&&t})}),n=await a.json().catch(()=>({}));return{ok:a.ok,resumeId:"string"==typeof n.resumeId?n.resumeId:void 0,jobId:"string"==typeof n.jobId?n.jobId:s}}catch(e){return{ok:!1,jobId:s}}}var B=t(40306),T=t(49240),W=t(53488),I=t(15928),z=t(33058),R=t(20113),P=t(47379),L=t(46611),M=t(73416),O=t(28378),_=t(89176),Z=t(32225),G=t(80893),U=t(22954),H=t(1781),J=t(10569),K=t(62190),Q=t(78865),Y=t(4307),V=t(44976);let X=[{id:1,question:"What does 'Tell me about yourself' really mean in an interview?",options:["Share your entire life story","Discuss your professional journey relevant to the role","Talk about hobbies and personal life","Read your resume aloud"],correct:1,explanation:"Focus on professional experience relevant to the position."},{id:2,question:"What's the best way to answer 'Why do you want to work here?'",options:["Mention the salary","Show knowledge of company and alignment with values","Say you need a job","Compare to your current employer"],correct:1,explanation:"Research the company and show genuine interest in their mission."},{id:3,question:"How should you handle 'What's your greatest weakness?'",options:["Say 'I have no weaknesses'","Mention a real weakness and how you're improving","Turn a strength into a weakness","Criticize past employers"],correct:1,explanation:"Be honest and show self-awareness with improvement steps."},{id:4,question:"What does STAR stand for in interview responses?",options:["Skills, Tasks, Actions, Results","Situation, Task, Action, Result","Story, Theme, Action, Reflection","Strengths, Targets, Achievements, Reviews"],correct:1,explanation:"STAR is a structured method for behavioral interview answers."},{id:5,question:"What's the ideal length for 'Tell me about yourself'?",options:["30 seconds","1-2 minutes","5-10 minutes","As long as possible"],correct:1,explanation:"Keep it concise but comprehensive - around 2 minutes."},{id:6,question:"When asked about salary expectations, what's best?",options:["Give the lowest possible number","Research market rate and give a range","Refuse to answer","Ask for double your current salary"],correct:1,explanation:"Research market rates and provide a reasonable range."},{id:7,question:"How many questions should you prepare to ask the interviewer?",options:["None - it shows confidence","1-2 questions","3-5 thoughtful questions","Ask about salary only"],correct:2,explanation:"Prepare 3-5 questions showing genuine interest in the role."},{id:8,question:"What's the best way to explain a gap in employment?",options:["Lie about it","Be honest and highlight what you learned","Blame the economy","Don't mention it"],correct:1,explanation:"Honesty with a positive spin on what you accomplished."},{id:9,question:"When should you arrive for an in-person interview?",options:["Exactly on time","10-15 minutes early","30 minutes early","5 minutes late to seem busy"],correct:1,explanation:"Arrive 10-15 minutes early to settle in without waiting too long."},{id:10,question:"What's 'cultural fit' in hiring?",options:["Your fashion sense","Alignment with company values and work style","Your social media presence","Your nationality"],correct:1,explanation:"How well your values and work style match the organization."},{id:11,question:"How should you handle 'Where do you see yourself in 5 years?'",options:["Say 'In your job'","Show ambition aligned with company growth","Say 'I don't know'","Mention starting your own company"],correct:1,explanation:"Show career ambition that aligns with growth at the company."},{id:12,question:"What's the purpose of a thank-you email after an interview?",options:["To beg for the job","Reinforce interest and recap key points","To negotiate salary","It's outdated and unnecessary"],correct:1,explanation:"It shows professionalism and keeps you top of mind."},{id:13,question:"How do you handle 'Why are you leaving your current job?'",options:["Complain about your boss","Focus on seeking new challenges and growth","Mention conflicts with coworkers","Say you were fired"],correct:1,explanation:"Stay positive and focus on growth opportunities."},{id:14,question:"What's the best attire for a tech company interview?",options:["Always suit and tie","Research company culture and dress one level up","Casual jeans and t-shirt","Whatever is comfortable"],correct:1,explanation:"Match company culture but slightly more formal."},{id:15,question:"How should you handle an unexpected question?",options:["Panic and make something up","Take a moment to think, then answer thoughtfully","Say 'I don't know' immediately","Change the subject"],correct:1,explanation:"It's okay to pause and collect your thoughts."},{id:16,question:"What's the elevator pitch?",options:["A sales pitch for elevators","A 30-60 second summary of your professional value","Your entire resume spoken aloud","A pitch you give in an elevator"],correct:1,explanation:"A brief, compelling summary of who you are professionally."},{id:17,question:"How do you handle 'What makes you unique?'",options:["Say you're not unique","Highlight specific skills/experiences that differentiate you","List generic qualities","Compare yourself to celebrities"],correct:1,explanation:"Focus on specific differentiators relevant to the role."},{id:18,question:"What's the best way to follow up after no response?",options:["Call every day","Send one polite follow-up email after a week","Show up at the office","Post on social media"],correct:1,explanation:"One professional follow-up after the stated t
1imeline."},{id:19,question:"How should you describe a conflict with a coworker?",options:["Blame them entirely","Focus on resolution and what you learned","Say you never have conflicts","Avoid the question"],correct:1,explanation:"Show conflict resolution skills and maturity."},{id:20,question:"What's informational interviewing?",options:["A test","Meeting professionals to learn about their role/industry","A fake interview","Background check"],correct:1,explanation:"Networking meetings to learn about careers and build connections."},{id:21,question:"How do you handle 'Do you have any questions for me?'",options:["Say 'No, you covered everything'","Ask about team culture, growth, and challenges","Only ask about benefits","Ask when you'll hear back"],correct:1,explanation:"Ask thoughtful questions about the role and company."},{id:22,question:"What's the best body language in interviews?",options:["Cross your arms to look confident","Good eye contact, smile, sit upright","Slouch to look relaxed","Avoid eye contact to think better"],correct:1,explanation:"Open, confident body language builds rapport."},{id:23,question:"How should you handle technical questions you don't know?",options:["Make up an answer","Admit honestly and explain how you'd find the answer","Change the subject","Say the question is unfair"],correct:1,explanation:"Honesty plus problem-solving approach is valued."},{id:24,question:"What's a panel interview?",options:["Interview with one person","Interview with multiple interviewers at once","Interview about panels","Group interview with other candidates"],correct:1,explanation:"Multiple interviewers assess you simultaneously."},{id:25,question:"How do you research a company before an interview?",options:["Just read the job posting","Website, news, LinkedIn, Glassdoor, products","Ask the recruiter everything","Don't research - be authentic"],correct:1,explanation:"Thorough research shows genuine interest."},{id:26,question:"What's the purpose of behavioral questions?",options:["To confuse candidates","To predict future behavior from past examples","To fill time","To test memory"],correct:1,explanation:"Past behavior is the best predictor of future behavior."},{id:27,question:"How should you handle 'What's your management style?'",options:["Say you don't have one","Describe your approach with examples","Say 'I do whatever works'","Criticize other styles"],correct:1,explanation:"Show self-awareness with concrete examples."},{id:28,question:"What's a working interview?",options:["Interview while working out","Trial period doing actual job tasks","Phone interview","Interview about work history"],correct:1,explanation:"Hands-on assessment of your skills on real tasks."},{id:29,question:"How do you handle 'What are your salary requirements?'",options:["Give the first number","Research market rate, then give a range","Say 'Whatever you offer'","Decline to answer"],correct:1,explanation:"Know your worth based on market research."},{id:30,question:"What's the best way to end an interview?",options:["Just say goodbye","Express enthusiasm, ask about next steps, thank them","Ask if you got the job","Leave quickly"],correct:1,explanation:"End on a positive note with clear next steps."}],$=[{id:1,question:"What is the latest LTS version of .NET (as of 2024)?",options:[".NET 6",".NET 7",".NET 8",".NET 9"],correct:2,explanation:".NET 8 is the latest LTS (Long Term Support) version released in Nov 2023."},{id:2,question:"What is the time complexity of binary search?",options:["O(n)","O(log n)","O(n\xb2)","O(1)"],correct:1,explanation:"Binary search halves the search space each iteration: O(log n)."},{id:3,question:"What does REST stand for?",options:["Remote State Transfer","Representational State Transfer","Request State Transfer","Responsive State Transfer"],correct:1,explanation:"REST = Representational State Transfer, an architectural style for APIs."},{id:4,question:"Which data structure uses LIFO?",options:["Queue","Stack","Array","Linked List"],correct:1,explanation:"Stack uses Last-In-First-Out (LIFO) principle."},{id:5,question:"What is the time complexity of quicksort (average case)?",options:["O(n)","O(n log n)","O(n\xb2)","O(log n)"],correct:1,explanation:"Quicksort averages O(n log n) but worst case is O(n\xb2)."},{id:6,question:"What does SOLID's 'S' stand for?",options:["Simple Responsibility","Single Responsibility","Structured Responsibility","Standard Responsibility"],correct:1,explanation:"Single Responsibility Principle: A class should have one reason to change."},{id:7,question:"Which HTTP status code means 'Not Found'?",options:["401","403","404","500"],correct:2,explanation:"404 = Not Found. 401 =
1Unauthorized, 403 = Forbidden, 500 = Server Error."},{id:8,question:"What is a microservice?",options:["A small computer","A small independently deployable service","A mini website","A type of database"],correct:1,explanation:"Microservices are small, autonomous services that work together."},{id:9,question:"What does SQL's JOIN do?",options:["Splits tables","Combines rows from multiple tables","Deletes rows","Creates new tables"],correct:1,explanation:"JOIN combines rows from two or more tables based on related columns."},{id:10,question:"What is Docker?",options:["A type of whale","A container platform for applications","A programming language","A database"],correct:1,explanation:"Docker is a platform for developing, shipping, and running applications in containers."},{id:11,question:"What's the difference between == and === in JavaScript?",options:["No difference","=== checks type and value, == only value","== is faster","=== is deprecated"],correct:1,explanation:"=== is strict equality (type + value), == allows type coercion."},{id:12,question:"What is Git rebase?",options:["Delete a branch","Move commits to a new base","Create a new repository","Undo all changes"],correct:1,explanation:"Rebase moves or combines commits to a new base commit."},{id:13,question:"What is Kubernetes primarily used for?",options:["Code editing","Container orchestration","Database management","Frontend development"],correct:1,explanation:"Kubernetes automates deployment, scaling, and management of containerized applications."},{id:14,question:"What's the purpose of an index in a database?",options:["Make data look pretty","Speed up data retrieval","Encrypt data","Compress data"],correct:1,explanation:"Indexes speed up queries by providing quick access paths to data."},{id:15,question:"What is a closure in programming?",options:["Ending a program","Function with access to outer scope","Closing a file","Type of loop"],correct:1,explanation:"A closure is a function that retains access to its outer scope variables."},{id:16,question:"What does API stand for?",options:["Applied Programming Interface","Application Programming Interface","Automated Programming Index","Application Process Integration"],correct:1,explanation:"API = Application Programming Interface for software interaction."},{id:17,question:"What is the purpose of async/await?",options:["Make code slower","Handle asynchronous operations more readably","Create animations","Debug code"],correct:1,explanation:"Async/await simplifies working with promises and asynchronous code."},{id:18,question:"What is a hash table's average lookup time?",options:["O(n)","O(log n)","O(1)","O(n\xb2)"],correct:2,explanation:"Hash tables provide O(1) average time for lookups, inserts, and deletes."},{id:19,question:"What is CI/CD?",options:["Computer Integration/Computer Delivery","Continuous Integration/Continuous Deployment","Code Inspection/Code Delivery","Central Integration/Central Deployment"],correct:1,explanation:"CI/CD automates code integration, testing, and deployment."},{id:20,question:"What is the CAP theorem about?",options:["Capital letters","Consistency, Availability, Partition tolerance tradeoffs","Computer Architecture Protocols","Cache Application Performance"],correct:1,explanation:"CAP: You can only guarantee 2 of 3: Consistency, Availability, Partition tolerance."},{id:21,question:"What is dependency injection?",options:["Adding more dependencies","Providing dependencies to a class externally","Removing dependencies","Injecting bugs"],correct:1,explanation:"DI provides dependencies from outside rather than creating them internally."},{id:22,question:"What does ORM stand for?",options:["Object Relational Mapping","Ordered Record Management","Object Reference Model","Online Resource Manager"],correct:0,explanation:"ORM maps objects to database tables for easier data manipulation."},{id:23,question:"What is a race condition?",options:["A coding competition","When outcome depends on timing of uncontrolled events","A type of loop","A sorting algorithm"],correct:1,explanation:"Race conditions occur when behavior depends on timing/sequencing of events."},{id:24,question:"What is GraphQL?",options:["A graph database","A query language for APIs","A charting library","A programming language"],correct:1,explanation:"GraphQL is a query language allowing clients to request specific data."},{id:25,question:"What's the difference between PUT and PATCH?",options:["No difference","PUT replaces entirely, PATCH partially updates","PUT is faster","PATCH is deprecated"],correct:1,explanation:"PUT replaces the entire resource; PATCH updates only specified fields."},{id:26,question:"What is a deadlock?",options:["A strong lock","When processes wait forever for each other","A type of encryption","A database backup"],correct:1,explanation:"Deadlock: Two or more processes waiting indefinitely for resources held by each other."},{id:27,question:"What is the purpose of Redis?",options:["A programming language","In-memory data store for caching","A frontend framework","A testing tool"],correct:1,explanation:"Redis is an in-memory data structure store used for caching and messaging."},{id:28,question:"What is Big O notation used for?",options:["Describing surprises","Measuring algorithm efficiency","Rating code quality","Counting bugs"],correct:1,explanation:"Big O describes the upper bound of algorithm time/space complexity."},{id:29,question:"What is a JWT?",options:["JavaScript Web Technology","JSON Web Token","Java Web Tool","JavaScript Widget Template"],correct:1,explanation:"JWT (JSON Web Token) is used for secure information transmission."},{id:30,question:"What is the Singleton pattern?",options:["A pattern for single developers","Ensures only one instance of a class exists","A type of loop","A database pattern"],correct:1,explanation:"Singleton restricts instantiation to one object."},{id:31,question:"What is WebSocket?",options:["A type of cable","Full-duplex communication protocol","A web framework","A database"],correct:1,explanation:"WebSocket enables two-way real-time communication between client and server."},{id:32,question:"What is the difference between SQL and NoSQL?",options:["No difference","SQL is relational, NoSQL is non-relational","NoSQL is newer SQL","SQL is faster"],correct:1,explanation:"SQL uses structured tables; NoSQL uses flexible document/key-value stores."},{id:33,question:"What is a memory leak?",options:["RAM falling out","Memory not released after use","A security breach","Slow internet"],correct:1,explanation:"Memory leak: allocated memory not released, causing gradual memory exhaustion."},{id:34,question:"What is the Observer pattern?",options:["Watching code run","Objects notified of state changes in another object","A debugging technique","A security pattern"],correct:1,explanation:"Observer: Objects subscribe to events from a subject and get notified of changes."},{id:35,question:"What is sharding in databases?",options:["Deleting data","Splitting data across multiple databases","Compressing data","Encrypting data"],correct:1,explanation:"Sharding distributes data across multiple databases for scalability."}],ee=[{id:1,question:"How do you prioritize tasks when everything is urgent?",options:["Do everything at once","Assess impact and deadlines, communicate with stakeholders","Ignore most tasks","Complain about workload"],correct:1,explanation:"Prioritize by impact, communicate constraints to stakeholders."},{id:2,question:"Describe your ideal work environment.",options:["No collaboration","Collaborative with clear expectations and growth opportunities","N
1o deadlines","Working alone always"],correct:1,explanation:"Shows self-awareness and helps assess cultural fit."},{id:3,question:"How do you handle feedback you disagree with?",options:["Ignore it","Listen, seek to understand, then discuss respectfully","Argue immediately","Complain to others"],correct:1,explanation:"Show maturity by listening first, then having a constructive discussion."},{id:4,question:"Tell me about a time you failed.",options:["I never fail","Describe failure, what you learned, and how you improved","Blame others","Make something up"],correct:1,explanation:"Failure stories show growth mindset and self-awareness."},{id:5,question:"How do you stay updated with technology trends?",options:["I don't need to","Blogs, conferences, courses, communities, side projects","My company trains me","I already know everything"],correct:1,explanation:"Continuous learning is essential in tech."},{id:6,question:"How would you handle a disagreement with a team member?",options:["Escalate immediately","Discuss privately, understand their perspective, find common ground","Ignore the person","Get others to take your side"],correct:1,explanation:"Direct, respectful communication resolves most conflicts."},{id:7,question:"What's your approach to work-life balance?",options:["Work is life","Set boundaries while meeting commitments during critical periods","Never work overtime","Personal life always first"],correct:1,explanation:"Balance shows sustainability and maturity."},{id:8,question:"How do you handle tight deadlines?",options:["Panic","Break down work, communicate risks, focus on critical path","Miss the deadline","Blame the timeline"],correct:1,explanation:"Structured approach and communication are key."},{id:9,question:"Describe a time you went above and beyond.",options:["I only do what's required","Specific example with context, action, and positive outcome","I don't remember","Every day"],correct:1,explanation:"Concrete examples demonstrate initiative."},{id:10,question:"How do you handle ambiguity?",options:["Wait for clarity","Gather information, make assumptions, validate, iterate","Refuse to work without details","Guess and hope"],correct:1,explanation:"Comfort with ambiguity is crucial in fast-paced environments."},{id:11,question:"What motivates you at work?",options:["Only money","Impact, growth, collaboration, and challenging problems","Nothing really","Just the title"],correct:1,explanation:"Shows what drives your best work."},{id:12,question:"How do you mentor junior developers?",options:["I don't have time","Pair programming, code reviews, creating safe learning environment","Let them figure it out","Just give them documentation"],correct:1,explanation:"Mentoring shows leadership and team investment."},{id:13,question:"How do you handle working with difficult personalities?",options:["Avoid them","Find common ground, focus on work goals, maintain professionalism","Complain to manager","Match their energy"],correct:1,explanation:"Professional approach focusing on shared goals."},{id:14,question:"What's your approach to documentation?",options:["It's a waste of time","Essential for maintainability and knowledge transfer","Only when required","Someone else's job"],correct:1,explanation:"Good documentation is a sign of professionalism."},{id:15,question:"How do you handle being blocked?",options:["Wait until unblocked","Communicate, seek alternatives, help unblock myself","Blame the blocker","Do nothing"],correct:1,explanation:"Proactive approach to keep making progress."},{id:16,question:"Describe a successful project you led.",options:["I've never led anything","STAR format: project scope, your role, actions, measurable results","I don't remember details","Every project is successful"],correct:1,explanation:"Leadership examples with measurable impact."},{id:17,question:"How do you estimate project timelines?",options:["Guess","Break down tasks, add buffer, use historical data, involve team","Always double the time","Let others estimate"],correct:1,explanation:"Systematic estimation with contingencies."},{id:18,question:"What do you do when you disagree with a decision?",options:["Refuse to comply","Voice concerns, commit once decided, disagree and commit","Sabotage silently","Always agree publicly"],correct:1,explanation:"Professional disagreement, then commitment."},{id:19,question:"How do you handle multiple stakeholders with conflicting priorities?",options:["Ignore some","Understand each perspective, facilitate discussion, align on priorities","Do whatever the loudest wants","Escalate everything"],correct:1,explanation:"Facilitation and alignment skills."},{id:20,question:"What's your experience with Agile/Scrum?",options:["It's just meetings","Iterative development, sprint planning, retrospectives, continuous improvement","I prefer Waterfall always","I've heard of it"],correct:1,explanation:"Understanding and experience with modern methodologies."}
1,{id:21,question:"How do you handle unexpected changes to requirements?",options:["Refuse the change","Assess impact, communicate tradeoffs, adapt plan","Accept everything silently","Complain about scope creep"],correct:1,explanation:"Flexibility with clear communication."},{id:22,question:"Tell me about a time you had to learn something quickly.",options:["I already know everything","Specific example with learning approach and successful outcome","I learn slowly","I avoid new things"],correct:1,explanation:"Demonstrates adaptability and learning ability."},{id:23,question:"How do you ensure code quality in your team?",options:["Hope for the best","Code reviews, testing, CI/CD, coding standards, pair programming","Blame QA","Quality isn't my job"],correct:1,explanation:"Multiple quality gates and shared ownership."},{id:24,question:"What's your approach to technical debt?",options:["Ignore it forever","Track, prioritize, allocate time to address strategically","Fix everything now","It's not real"],correct:1,explanation:"Balanced approach to managing technical debt."},{id:25,question:"How do you communicate technical concepts to non-technical stakeholders?",options:["Use all the jargon","Use analogies, focus on impact, avoid jargon, visual aids","Avoid communicating","Tell them to trust you"],correct:1,explanation:"Effective communication is a key leadership skill."},{id:26,question:"What's your biggest professional achievement?",options:["I don't have any","Specific measurable achievement with context and impact","Everything I do","I'm not proud of anything"],correct:1,explanation:"Quantifiable achievements demonstrate impact."},{id:27,question:"How do you handle production incidents?",options:["Panic","Triage, communicate, fix, then post-mortem to prevent recurrence","Blame someone","Wait for it to fix itself"],correct:1,explanation:"Systematic incident response and learning."},{id:28,question:"What do you look for in a manager?",options:["Someone who leaves me alone","Clear expectations, growth opportunities, feedback, support","Someone who does my work","I don't care"],correct:1,explanation:"Shows maturity and what helps you thrive."},{id:29,question:"How do you handle underperforming team members?",options:["Fire them immediately","Understand root cause, provide support and clear expectations, document","Ignore it","Do their work for them"],correct:1,explanation:"Supportive but accountable approach."},{id:30,question:"Where do you see your career in 5 years?",options:["Doing the same thing","Growing into senior/leadership role with expanded impact","I don't plan ahead","Your job"],correct:1,explanation:"Shows ambition aligned with realistic growth."},{id:31,question:"How do you balance innovation with delivery?",options:["Only deliver","Allocate time for both, experiment safely, measure outcomes","Only innovate","Let management decide"],correct:1,explanation:"Pragmatic approach to balancing competing needs."},{id:32,question:"What would you change about your current/last team?",options:["Everything","Constructive suggestions without badmouthing","Nothing, it was perfect","Complain extensively"],correct:1,explanation:"Shows critical thinking without negativity."}];function ea(e){let{isVisible:a,theme:t,showBackdrop:i=!0,generationType:o="resume"}=e,l=(0,n.useRef)(null),[d,c]=(0,n.useState)(0),[m,f]=(0,n.useState)(0),[u,h]=(0,n.useState)("intro"),[x,b]=(0,n.useState)(0),[y,v]=(0,n.use
1State)(null),[j,w]=(0,n.useState)(!1),[k,N]=(0,n.useState)({intro:0,technical:0,manager:0}),[F,S]=(0,n.useState)({intro:0,technical:0,manager:0}),[A,D]=(0,n.useState)(0),C=[{id:"jd-analysis",label:"Analyzing Job Description",icon:W.Z,description:"Extracting requirements, skills, and keywords",status:"pending",duration:5},{id:"profile-analysis",label:"Evaluating Your Profile",icon:I.Z,description:"Scoring experience relevance and skill matching",status:"pending",duration:3},{id:"skill-bridging",label:"Intelligent Skill Bridging",icon:z.Z,description:"Translating your skills to match JD requirements",status:"pending",duration:2},{id:"experience-selection",label:"Selecting Best Experiences",icon:R.Z,description:"Scoring and ranking your most relevant roles",status:"pending",duration:2},{id:"keyword-strategy",label:"Creating Keyword Strategy",icon:z.Z,description:"Distributing ATS keywords across resume sections",status:"pending",duration:3},{id:"summary-generation",label:"Generating Summary",icon:P.Z,description:"Crafting strategic professional summary",status:"pending",duration:10},{id:"experience-generation",label:"Writing Unique Experiences",icon:L.Z,description:"Generating ATS-optimized bullets",status:"pending",duration:180},{id:"ats-validation",label:"ATS Score Validation",icon:M.Z,description:"Ensuring 90%+ ATS compatibility",status:"pending",duration:5},{id:"final-optimization",label:"Final Optimization",icon:O.Z,description:"Polishing and quality validation",status:"pending",duration:3}],E=[{id:"jd-analysis",label:"Analyzing Job Description",icon:W.Z,description:"Extracting company info",status:"pending",duration:4},{id:"profile-review",label:"Reviewing Your Profile",icon:I.Z,description:"Identifying qualifications",status:"pending",duration:3},{id:"matching-skills",label:"Matching Your Skills",icon:R.Z,description:"Connecting to requirements",status:"pending",duration:3},{id:"crafting-intro",label:"Crafting Introduction",icon:z.Z,description:"Writing opening",status:"pending",duration:5},{id:"writing-body",label:"Writing Body",icon:L.Z,description:"Highlighting achievements",status:"pending",duration:15},{id:"closing-cta",label:"Creating Strong Close",icon:O.Z,description:"Professional closing",status:"pending",duration:3},{id:"tone-polish",label:"Polishing Tone",icon:z.Z,description:"Ensuring tone",status:"pending",duration:2}],q=[{id:"jd-analysis",label:"Analyzing Job Description",icon:W.Z,description:"Extracting requirements",status:"pending",duration:5},{id:"profile-analysis",label:"Evaluating Your Profile",icon:I.Z,description:"Scoring relevance",status:"pending",duration:3},{id:"resume-generation",label:"Generating Resume",icon:L.Z,description:"Creating ATS-optimized resume",status:"pending",duration:180},{id:"cover-letter-generation",label:"Generating Cover Letter",icon:z.Z,description:"Crafting cover letter",status:"pending",duration:20},{id:"final-optimization",label:"Final Optimization",icon:O.Z,description:"Polishing documents",status:"pending",duration:5}],B="cover-letter"===o?E:"both"===o?q:C,ea=(0,n.useCallback)(()=>{switch(u){case"intro":default:return X;case"technical":return $;case"manager":return ee}},[u])(),et=ea[x%ea.length],es=e=>{j||v(e)},ei=(0,n.useCallback)(()=>{null!==y&&(w(!0),y===et.correct?(N(e=>({...e,[u]:e[u]+1})),D(e=>e+1)):D(0),S(e=>({...e,[u]:e[u]+1})))},[y,et.correct,u]),er=(0,n.useCallback)(()=>{b(e=>e+1),v(null),w(!1)},[]),en=(0,n.useCallback)(e=>{h(e),b(0),v(null),w(!1)},[]);(0,n.useEffect)(()=>{if(!a){c(0),f(0),N({intro:0,technical:0,manager:0}),S({intro:0,technical:0,manager:0}),D(0),b(0),v(null),w(!1);return}let e=setInterval(()=>f(e=>e+1),1e3);return()=>clearInterval(e)},[a]),(0,n.useEffect)(()=>{if(a&&i&&(null==l?void 0:l.current))try{l.current.focus()}catch(e){}},[a,i]),(0,n.useEffect)(()=>{if(!a)return;let e=0;for(let a=0;a<B.length;a++)if(m<(e+=B[a].duration)){c(a);return}c(B.length-1)},[m,a,B]);let eo=B.map((e,a)=>({...e,status:a<d?"complete":a===d?"active":"pending"})),el=Math.min(m/B.reduce((e,a)=>e+a.duration,0)*100,98),ed=[{chapter:1,title:"The Quest Begins",message:'"Let me read this job posting carefully... Ah, I see what they need!"',narration:"Our crane hero unfurls the job description scroll and studies every word with laser focus.",mood:"curious"},{chapter:2,title:"Discovering Your Strengths",message:'"Wow, your profile is impressive! I know exactly how to present this."',n
1arration:"The crane examines your experience like a master strategist planning the perfect move.",mood:"excited"},{chapter:3,title:"The Secret Connection",message:'"I found hidden connections between your skills and their requirements!"',narration:"With a spark of brilliance, the crane discovers powerful links others would miss.",mood:"magic"},{chapter:4,title:"Choosing the Best",message:'"These experiences will make them say â we NEED to interview this person."',narration:"The crane carefully selects your most impactful achievements, each one a winning card.",mood:"focused"},{chapter:5,title:"Planting Keywords",message:'"I\'m weaving ATS keywords so naturally, no robot will reject this resume!"',narration:"Like a master gardener, the crane plants keywords where they'll bloom perfectly.",mood:"clever"},{chapter:6,title:"Crafting Your Story",message:'"Your summary needs to grab them in 6 seconds... Here goes!"',narration:"The crane dips its quill and writes the most compelling opening they'll ever read.",mood:"writing"},{chapter:7,title:"The Masterpiece",message:'"Every bullet point is a mini achievement story. Numbers, impact, results!"',narration:"Page by page, the crane crafts each experience into a powerful narrative of success.",mood:"building"},{chapter:8,title:"Quality Shield",message:'"Running final ATS checks... I won\'t rest until this scores 90%+!"',narration:"The crane inspects every detail with fierce determination â nothing gets past this shield.",mood:"protecting"},{chapter:9,title:"The Grand Finale",message:'"It\'s beautiful! This resume is going to land you that interview!"',narration:"The crane steps back to admire the masterpiece â polished, powerful, and perfectly ATS-optimized.",mood:"celebrating"}],ec=ed[Math.min(d,ed.length-1)],em={curious:{arm:[-8,6,-8],head:[0,6,-4,0],bounce:[0,-4,0]},excited:{arm:[-10,12,-10],head:[0,8,-6,0],bounce:[0,-8,0]},magic:{arm:[-5,15,-5],head:[0,5,0],bounce:[0,-6,0,-3,0]},focused:{arm:[-3,3,-3],head:[0,3,-2,0],bounce:[0,-2,0]},clever:{arm:[-6,10,-6],head:[0,5,-3,0],bounce:[0,-5,0]},writing:{arm:[-5,8,-5,10,-5],head:[0,2,0],bounce:[0,-3,0]},building:{arm:[-8,10,-6,12,-8],head:[0,4,-3,0],bounce:[0,-6,0]},protecting:{arm:[-3,6,-3],head:[0,3,0],bounce:[0,-3,0]},celebrating:{arm:[-12,15,-12],head:[0,6,-6,0],bounce:[0,-10,0,-5,0]}},ef=em[ec.mood]||em.curious,eu=[{type:"intro",icon:_.Z,label:"Intro Round",color:"blue"},{type:"technical",icon:Z.Z,label:"Technical Round",color:"orange"},{type:"manager",icon:G.Z,label:"Manager Round",color:"green"}];if(!a)return null;let eh={curious:{dark:"from-[#1A1A1B] via-[#1e2a3a] to-[#1A1A1B]",light:"from-[#EEF4FF] via-[#F0F7FF] to-[#EAF0FA]"},excited:{dark:"from-[#1A1A1B] via-[#2a1e1e] to-[#1A1A1B]",light:"from-[#FFF1EE] via-[#FFF5F2] to-[#FFF8F5]"},magic:{dark:"from-[#1A1A1B] via-[#251e2a] to-[#1A1A1B]",light:"from-[#F5EEFF] via-[#FAF5FF] to-[#F0E8FF]"},focused:{dark:"from-[#1A1A1B] via-[#1e2a20] to-[#1A1A1B]",light:"from-[#EEFFF1] via-[#F5FFF7] to-[#ECFAEE]"},clever:{dark:"from-[#1A1A1B] via-[#2a2a1e] to-[#1A1A1B]",light:"from-[#FFFBEE] via-[#FFFDF5] to-[#FFF9E8]"},writing:{dark:"from-[#1A1A1B] via-[#272729] to-[#1A1A1B]",light:"from-[#FFF8EE] via-[#FFFBF5] to-[#FFF5E8]"},building:{dark:"from-[#1A1A1B] via-[#1e2028] to-[#1A1A1B]",light:"from-[#EEF0FF] via-[#F5F6FF] to-[#E8ECFF]"},protecting:{dark:"from-[#1A1A1B] via-[#1e2825] to-[#1A1A1B]",light:"from-[#EEFFF8] via-[#F2FFFA] to-[#E8FFF5]"},celebrating:{dark:"from-[#1A1A1B] via-[#2a201e] to-[#1A1A1B]",light:"from-[#FFF1EE] via-[#FFFAF5] to-[#FFF5EE]"}},ex=eh[ec.mood]||eh.curious,eb=(0,s.jsxs)(p.E.div,{initial:{scale:.9,y:20,opacity:0},animate:{scale:1,y:0,opacity:1},exit:{scale:.9,y:20,opacity:0},className:"w-full max-w-6xl rounded-3xl overflow-hidden shadow-2xl ".concat("dark"===t?"bg-gradient-to-br from-[#1A1A1B] via-[#272729] to-[#1A1A1B] border border-[#343536]":"bg-gradient-to-br from-white via-gray-50 to-white border border-gray-200"),children:[(0,s.jsx)(r(),{id:"4518768dcda45ef2",dynamic:["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"],children:".custom-scrollbar::-webkit-scrollbar{width:8px}.custom-scrollbar::-webkit-scrollbar-track{background:".concat("dark"===t?"#1e293b":"#f1f5f9",";-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.custom-scrollbar::-webkit-scrollbar-thumb{background:").concat("dark"===t?"#475569":"#cbd5e1",";-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:").concat("dark"===t?"#64748b":"#94a3b8","}")}),(0,s.jsxs)("div",{style:{minHeight:"70vh",maxHeight:"85vh"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" grid grid-cols-1 lg:grid-cols-5",children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"lg:col-span-3 flex flex-col h-full border-r ".concat("dark"===t?"border-[#343536]":"border-gray-200"),children:[(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-shrink-0 px-5 py-3 border-b ".concat("dark"===t?"border-[#343536]":"border-gray-200"),children:(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center gap-3",children:[(0,s.jsx)(p.E.div,{animate:{rotate:360},transition:{duration:4,repeat:1/0,ease:"linear"},className:"p-2 rounded-xl ".concat("dark"===t?"bg-[#FF4500]/15 border border-[#FF4500]/30":"bg-[#FFF1EE] border border-[#FFE5DB]"),children:(0,s.jsx)(T.Z,{className:"w-5 h-5",fill:"#FF4500"})}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center justify-between mb-1",children:[(0,s.jsx)("h3",{style:{fontFamily:"Rajdhani, sans-serif"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-sm font-bold ".concat("dark"===t?"text-white":"text-gray-900"),children:"AI Intelligence Engine"}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" text-lg font-mono font-bold text-[#FF4500]",children:"".concat(Math.floor(m/60),":").concat((m%60).toString().padStart(2,"0"))})]}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"h-1.5 rounded-full overflow-hidden ".concat("dark"===t?"bg-[#272729]":"bg-gray-200"),children:(0,s.jsx)(p.E.div,{initial:{width:0},animate:{width:"".concat(el,"%")},transition:{duration:.5},className:"h-full bg-gradient-to-r from-[#FF4500] via-[#E03D00] to-[#CC3700]"})})]})]})}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex-1 flex flex-col overflow-hidden",children:(0,s.jsx)(g.M,{mode:"wait",children:(0,s.jsxs)(p.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.6},className:"flex-1 flex flex-col bg-gradient-to-br ".concat("dark"===t?ex.dark:ex.light," relative overflow-hidden"),children:[[...Array(6)].map((e,a)=>(0,s.jsx)(p.E.div,{className:"absolute rounded-full ".concat("dark"===t?"bg-[#FF4500]/8":"bg-[#FF4500]/5"),style:{width:4+a%3*4,height:4+a%3*4,left:"".concat(15+15*a,"%"),top:"".concat(20+a%4*18,"%")},animate:{y:[0,-20,0],opacity:[.3,.7,.3]},transition:{duration:3+.5*a,repeat:1/0,delay:.6*a}},a)),(0,s.jsxs)(p.E.div,{initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},className:"flex-shrink-0 px-6 py-3 flex items-center justify-between border-b ".concat("dark"===t?"border-[#343536]/50 bg-black/20":"border-gray-200/50 bg-white/40"),style:{backdropFilter:"blur(8px)"},children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center gap-3",children:[(0,s.jsx)(p.E.div,{animate:{scale:[1,1.15,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},className:"w-10 h-10 rounded-xl flex items-center justify-center ".concat("dark"===t?"bg-[#FF4500]/15 border border-[#FF4500]/30":"bg-[#FFF1EE] border border-[#FFE5DB] shadow-sm"),children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" overflow-visible",children:["curious"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.circle,{cx:"11",cy:"11",r:"7",stroke:"#FF4500",strokeWidth:"2",fill:"none",animate:{r:[7,8,7]},transition:{duration:1.5,repeat:1/0}}),(0,s.jsx)(p.E.line,{x1:"16",y1:"16",x2:"22",y2:"22",stroke:"#FF4500",strokeWidth:"2.5",strokeLinecap:"round",animate:{x2:[22,21,22]},transition:{duration:1.5,repeat:1/0}})]}),"excited"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.path,{d:"M12 2C8 2 5 5.5 5 9c0 5 7 13 7 13s7-8 7-13c0-3.5-3-7-7-7z",fill:"#FF4500",opacity:"0.8",animate:{scale:[1,1.1,1]},transition:{duration:1,repeat:1/0},style:{transformOrigin:"12px 10px"}}),(0,s.jsx)("circle",{cx:"12",cy:"9",r:"3",fill:"white",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),"magic"===ec.mood&&(0,s.jsx)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:(0,s.jsx)(p.E.path,{d:"M12 2L14.5 9H22L16 13.5L18 21L12 16.5L6 21L8 13.5L2 9H9.5Z",fill:"#FF4500",animate:{rotate:[0,15,-15,0]},transition:{duration:3,repeat:1/0},style:{transformOrigin:"12px 12px"}})}),"focused"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"#FF4500",strokeWidth:"1.5",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"6",stroke:"#FF4500",strokeWidth:"1.5",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)(p.E.circle,{cx:"12",cy:"12",r:"2.5",fill:"#FF4500",animate:{r:[2.5,3.5,2.5]},transition:{duration:1,repeat:1/0}})]}),"clever"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.rect,{x:"4",y:"8",width:"10",height:"14",rx:"2",stroke:"#FF4500",strokeWidth:"2",fill:"none",animate:{rotate:[-3,3,-3]},transition:{duration:1.5,repeat:1/0},style:{transformOrigin:"9px 15px"}}),(0,s.jsx)("circle",{cx:"9",cy:"5",r:"4",stroke:"#FF4500",strokeWidth:"2",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)(p.E.line,{x1:"15",y1:"12",x2:"20",y2:"12",stroke:"#FF4500",strokeWidth:"2",strokeLinecap:"round",animate:{x2:[20,22,20]},transition:{duration:1,repeat:1/0}})]}),"writing"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.path,{d:"M20 4L8 16V20H12L24 8Z",stroke:"#FF4500",strokeWidth:"2",fill:"none",animate:{rotate:[-2,2,-2]},transition:{duration:1,repeat:1/0},style:{transformOrigin:"14px 12px"}}),(0,s.jsx)(p.E.line,{x1:"4",y1:"20",x2:"12",y2:"20",stroke:"#FF4500",strokeWidth:"2",strokeLinecap:"round",animate:{x2:[10,14,10]},transition:{duration:2,repeat:1/0}})]}),"building"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.path,{d:"M12 2L20 8V20H4V8Z",stroke:"#FF4500",strokeWidth:"2",fill:"none",animate:{y:[0,-1,0]},transition:{duration:1.5,repeat:1/0}}),(0,s.jsx)(p.E.rect,{x:"9",y:"14",width:"6",height:"6",fill:"#FF4500",animate:{o
1pacity:[.6,1,.6]},transition:{duration:1,repeat:1/0}})]}),"protecting"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.path,{d:"M12 2L20 6V12C20 17 12 22 12 22S4 17 4 12V6Z",stroke:"#FF4500",strokeWidth:"2",fill:"none",animate:{scale:[1,1.08,1]},transition:{duration:1.5,repeat:1/0},style:{transformOrigin:"12px 12px"}}),(0,s.jsx)(p.E.path,{d:"M8 12L11 15L16 9",stroke:"#FF4500",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",animate:{pathLength:[0,1,1]},transition:{duration:1.5,repeat:1/0,times:[0,.5,1]}})]}),"celebrating"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)(p.E.path,{d:"M6 8L6 16L10 16L10 12L14 12L14 16L18 16L18 8L12 3Z",fill:"#FF4500",animate:{y:[0,-2,0]},transition:{duration:1,repeat:1/0}}),(0,s.jsx)(p.E.circle,{cx:"6",cy:"4",r:"1.5",fill:"#EAB308",animate:{y:[0,-4,0],opacity:[1,0,1]},transition:{duration:1.5,repeat:1/0}}),(0,s.jsx)(p.E.circle,{cx:"18",cy:"4",r:"1.5",fill:"#46D160",animate:{y:[0,-4,0],opacity:[1,0,1]},transition:{duration:1.5,repeat:1/0,delay:.3}})]})]})}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-[10px] font-bold uppercase tracking-[0.2em] ".concat("dark"===t?"text-[#FF4500]/80":"text-[#CC3700]/70"),children:["Chapter ",ec.chapter," of ",ed.length]}),(0,s.jsx)("div",{style:{fontFamily:"Rajdhani, sans-serif"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-base font-bold ".concat("dark"===t?"text-white":"text-gray-900"),children:ec.title})]})]}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex gap-1.5",children:ed.map((e,a)=>(0,s.jsx)(p.E.div,{className:"rounded-full transition-all ".concat(a<d?"w-2 h-2 bg-[#46D160]":a===d?"w-6 h-2 bg-[#FF4500] rounded-full":"w-2 h-2 ".concat("dark"===t?"bg-[#343536]":"bg-gray-300")),animate:a===d?{opacity:[.7,1,.7]}:{},transition:{duration:1.5,repeat:1/0}},a))})]}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex-1 flex flex-col items-center justify-center px-8 py-4 relative",children:[(0,s.jsx)(p.E.div,{initial:{scale:.7,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.2,type:"spring",stiffness:180},className:"relative mb-5",children:(0,s.jsx)(p.E.div,{animate:{y:ef.bounce},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"},children:(0,s.jsxs)("svg",{width:"180",height:"180",viewBox:"-20 -20 140 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" overflow-visible",children:[(0,s.jsx)(p.E.ellipse,{cx:"50",cy:"98",rx:"30",ry:"5",fill:"dark"===t?"rgba(0,0,0,0.3)":"rgba(0,0,0,0.06)",animate:{rx:[28,32,28]},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"}}),("writing"===ec.mood||"building"===ec.mood)&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsx)("rect",{x:"10",y:"78",width:"80",height:"6",rx:"2",fill:"dark"===t?"#343536":"#D7DADC",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"18",y:"60",width:"20",height:"18",rx:"2",fill:"dark"===t?"#272729":"#EDEFF1",stroke:"dark"===t?"#434345":"#D7DADC",strokeWidth:"1",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"22",y1:"66",x2:"34",y2:"66",stroke:"dark"===t?"#818384":"#999",strokeWidth:"1",opacity:"0.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"22",y1:"70",x2:"32",y2:"70",stroke:"dark"===t?"#818384":"#999",strokeWidth:"1",opacity:"0.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"22",y1:"74",x2:"30",y2:"74",stroke:"dark"===t?"#818384":"#999",strokeWidth:"1",opacity:"0.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsxs)(p.E.g,{animate:{rotate:[-5,5,-5]},transition:{duration:1,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"75px 65px"},children:[(0,s.jsx)("line",{x1:"72",y1:"58",x2:"78",y2:"72",stroke:"#CC3700",strokeWidth:"2",strokeLinecap:"round",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M72 56 L74 58 L70 58Z",fill:"#FF4500",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]})]}),"curious"===ec.mood&&(0,s.jsxs)(p.E.g,{animate:{rotate:[-5,8,-5],x:[-2,4,-2]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:[(0,s.jsx)("circle",{cx:"-5",cy:"40",r:"12",stroke:"dark"===t?"#60A5FA":"#3B82F6",strokeWidth:"3",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"-5",y1:"52",x2:"-5",y2:"65",stroke:"dark"===t?"#60A5FA":"#3B82F6",strokeWidth:"3",strokeLinecap:"round",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}
1),(0,s.jsx)("circle",{cx:"-5",cy:"40",r:"8",fill:"dark"===t?"rgba(96,165,250,0.1)":"rgba(59,130,246,0.08)",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"70",y:"30",width:"28",height:"38",rx:"3",fill:"dark"===t?"#272729":"#F6F7F8",stroke:"dark"===t?"#434345":"#D7DADC",strokeWidth:"1.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"75",y1:"38",x2:"93",y2:"38",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"75",y1:"43",x2:"90",y2:"43",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"75",y1:"48",x2:"88",y2:"48",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"75",y1:"53",x2:"91",y2:"53",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"75",y1:"58",x2:"85",y2:"58",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),"excited"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsxs)(p.E.g,{animate:{y:[-3,3,-3],scale:[1,1.08,1]},transition:{duration:2,repeat:1/0},style:{transformOrigin:"85px 28px"},children:[(0,s.jsx)("circle",{cx:"85",cy:"28",r:"14",fill:"dark"===t?"rgba(255,69,0,0.12)":"rgba(255,69,0,0.08)",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M80 28 Q78 20 82 18 Q86 16 88 20 Q90 16 94 18 Q98 22 94 28 Q98 30 96 34 Q94 38 90 36 Q88 40 84 38 Q80 40 78 36 Q74 32 78 28Z",fill:"#FF4500",opacity:"0.7",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M87 18 L87 36",stroke:"#CC3700",strokeWidth:"1",opacity:"0.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M82 22 Q87 26 92 22",stroke:"#CC3700",strokeWidth:"1",fill:"none",opacity:"0.4",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M80 30 Q87 34 94 30",stroke:"#CC3700",strokeWidth:"1",fill:"none",opacity:"0.4",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)(p.E.circle,{cx:"85",cy:"28",r:"16",stroke:"#FF4500",strokeWidth:"1",fill:"none",opacity:"0.3",animate:{r:[16,20,16],opacity:[.3,0,.3]},transition:{duration:1.5,repeat:1/0}})]}),(0,s.jsxs)(p.E.g,{animate:{y:[-2,4,-2]},transition:{duration:2.5,repeat:1/0,delay:.3},children:[(0,s.jsx)("rect",{x:"-10",y:"35",width:"22",height:"16",rx:"3",fill:"dark"===t?"#272729":"#F6F7F8",stroke:"#46D160",strokeWidth:"1.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"-3",cy:"41",r:"3",fill:"#46D160",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"3",y1:"40",x2:"10",y2:"40",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"3",y1:"44",x2:"8",y2:"44",stroke:"dark"===t?"#818384":"#aaa",strokeWidth:"1",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),[0,1,2].map(e=>(0,s.jsx)(p.E.circle,{cx:78+6*e,cy:10,r:1.5,fill:"#FF4500",animate:{y:[0,-8,0],opacity:[0,1,0]},transition:{duration:1.2,repeat:1/0,delay:.4*e}},"idea-".concat(e)))]}),"magic"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[[0,1,2,3,4].map(e=>(0,s.jsx)(p.E.circle,{cx:-8+28*e,cy:20+e%2*40,r:3,fill:"#FF4500",animate:{o
1pacity:[0,1,0],scale:[.5,1.5,.5]},transition:{duration:1.5,repeat:1/0,delay:.3*e}},"spark-".concat(e))),(0,s.jsx)(p.E.path,{d:"M-5 25 Q30 5 50 20 Q70 35 105 20",stroke:"#FF4500",strokeWidth:"1.5",strokeDasharray:"4 4",fill:"none",opacity:"0.4",animate:{strokeDashoffset:[0,-16]},transition:{duration:2,repeat:1/0,ease:"linear"}}),(0,s.jsx)(p.E.path,{d:"M-5 65 Q30 80 50 60 Q70 40 105 65",stroke:"#A855F7",strokeWidth:"1.5",strokeDasharray:"4 4",fill:"none",opacity:"0.3",animate:{strokeDashoffset:[0,16]},transition:{duration:2.5,repeat:1/0,ease:"linear"}})]}),"focused"===ec.mood&&(0,s.jsxs)(p.E.g,{animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0},style:{transformOrigin:"85px 35px"},children:[(0,s.jsx)("circle",{cx:"85",cy:"35",r:"16",stroke:"dark"===t?"#46D160":"#22C55E",strokeWidth:"2",fill:"none",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"85",cy:"35",r:"10",stroke:"dark"===t?"#46D160":"#22C55E",strokeWidth:"1.5",fill:"none",opacity:"0.4",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"85",cy:"35",r:"4",fill:"dark"===t?"#46D160":"#22C55E",opacity:"0.8",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)(p.E.rect,{x:"-15",y:"28",width:"18",height:"12",rx:"2",fill:"dark"===t?"#272729":"#F6F7F8",stroke:"#46D160",strokeWidth:"1.5",animate:{y:[28,24,28]},transition:{duration:2,repeat:1/0}}),(0,s.jsx)(p.E.rect,{x:"-12",y:"48",width:"18",height:"12",rx:"2",fill:"dark"===t?"#272729":"#F6F7F8",stroke:"dark"===t?"#434345":"#D7DADC",strokeWidth:"1",animate:{y:[48,52,48]},transition:{duration:2,repeat:1/0,delay:.5}})]}),"clever"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsxs)(p.E.g,{animate:{rotate:[0,20,0]},transition:{duration:2,repeat:1/0},style:{transformOrigin:"-5px 40px"},children:[(0,s.jsx)("circle",{cx:"-5",cy:"35",r:"6",stroke:"#EAB308",strokeWidth:"2",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"-7",y:"41",width:"4",height:"10",rx:"1",fill:"#EAB308",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"-6",y:"47",width:"6",height:"2",rx:"1",fill:"#EAB308",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),[0,1,2].map(e=>(0,s.jsxs)(p.E.g,{animate:{y:[0,-5,0],opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,delay:.4*e},children:[(0,s.jsx)("rect",{x:68+5*e,y:22+18*e,width:24,height:12,rx:6,fill:"#FF4500",opacity:"0.15",stroke:"#FF4500",strokeWidth:"1",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:72+5*e,y1:27+18*e,x2:82+5*e,y2:27+18*e,stroke:"#FF4500",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.6",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:74+5*e,y1:30+18*e,x2:86+5*e,y2:30+18*e,stroke:"#FF4500",strokeWidth:"1",strokeLinecap:"round",opacity:"0.3",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]},"kw-".concat(e)))]}),"protecting"===ec.mood&&(0,s.jsxs)(p.E.g,{animate:{scale:[1,1.06,1]},transition:{duration:2,repeat:1/0},style:{transformOrigin:"85px 40px"},children:[(0,s.jsx)("path",{d:"M85 20 L102 28 L102 48 Q102 60 85 65 Q68 60 68 48 L68 28Z",fill:"dark"===t?"rgba(70,209,96,0.15)":"rgba(70,209,96,0.1)",stroke:"#46D160",strokeWidth:"2",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)(p.E.path,{d:"M78 40 L83 46 L93 34",stroke:"#46D160",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",animate:{pathLength:[0,1,1]},transition:{duration:1.5,repeat:1/0,times:[0,.5,1]}}),(0,s.jsx)(p.E.line,{x1:"-10",y1:"50",x2:"40",y2:"50",stroke:"dark"===t?"#46D160":"#22C55E",strokeWidth:"1",opacity:"0.3",animate:{y1:[35,65,35],y2:[35,65,35]},transition:{duration:3,repeat:1/0}})]}),"celebrating"===ec.mood&&(0,s.jsxs)("g",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:[(0,s.jsxs)(p.E.g,{animate:{y:[-3,3,-3],rotate:[-5,5,-5]},transition:{duration:2,repeat:1/0},style:{transformOrigin:"85px 35px"},children:[(0,s.jsx)("path",{d:"M78 25 L78 40 Q78 48 85 48 Q92 48 92 40 L92 25Z",fill:"#EAB308",stroke:"#CA8A04",strokeWidth:"1.5",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"82",y:"48",width:"6",height:"6",fill:"#CA8A04",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"78",y:"54",width:"14",height:"3",rx:"1.5",fill:"#CA8A04",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M68 28 Q68 20 78 25",stroke:"#CA8A04",strokeWidth:"2",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("path",{d:"M102 28 Q102 20 92 25",stroke:"#CA8A04",strokeWidth:"2",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),[0,1,2,3,4,5].map(e=>(0,s.jsx)(p.E.rect,{x:10+18*e,y:10,width:4,height:4,rx:1,fill:["#FF4500","#46D160","#3B82F6","#EAB308","#A855F7","#EC4899"][e],animate:{y:[10,85],x:[10+18*e,15+16*e+(e%2?8:-8)],opacity:[1,0],rotate:[0,360]},transition:{duration:2+.3*e,repeat:1/0,delay:.4*e}},"conf-".concat(e)))]}
1),(0,s.jsx)("ellipse",{cx:"50",cy:"68",rx:"20",ry:"14",fill:"#FF4500",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("ellipse",{cx:"50",cy:"70",rx:"12",ry:"8",fill:"#FF6033",opacity:"0.35",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("rect",{x:"44",y:"46",width:"12",height:"16",rx:"6",fill:"#FF4500",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsxs)(p.E.g,{animate:{rotate:ef.arm.map(e=>.15*e)},transition:{duration:1,repeat:1/0},style:{transformOrigin:"44px 80px"},children:[(0,s.jsx)("line",{x1:"44",y1:"80",x2:"39",y2:"95",stroke:"#CC3700",strokeWidth:"4",strokeLinecap:"round",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"39",y1:"95",x2:"33",y2:"95",stroke:"#CC3700",strokeWidth:"3.5",strokeLinecap:"round",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),(0,s.jsxs)(p.E.g,{animate:{rotate:ef.arm.map(e=>-.15*e)},transition:{duration:1,repeat:1/0,delay:.5},style:{transformOrigin:"56px 80px"},children:[(0,s.jsx)("line",{x1:"56",y1:"80",x2:"61",y2:"95",stroke:"#CC3700",strokeWidth:"4",strokeLinecap:"round",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("line",{x1:"61",y1:"95",x2:"67",y2:"95",stroke:"#CC3700",strokeWidth:"3.5",strokeLinecap:"round",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),(0,s.jsxs)(p.E.g,{animate:{rotate:ef.arm},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"38px 64px"},children:[(0,s.jsx)("path",{d:"M38 64 Q24 52 18 38",stroke:"#FF4500",strokeWidth:"5.5",strokeLinecap:"round",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"18",cy:"38",r:"4",fill:"#FF4500",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),(0,s.jsxs)(p.E.g,{animate:{rotate:ef.head.map(e=>-.4*e)},transition:{duration:2,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"62px 64px"},children:[(0,s.jsx)("path",{d:"M62 64 Q74 54 78 46",stroke:"#FF4500",strokeWidth:"5",strokeLinecap:"round",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"78",cy:"46",r:"3.5",fill:"#FF4500",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),(0,s.jsxs)(p.E.g,{animate:{rotate:ef.head},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"50px 33px"},children:[(0,s.jsx)("circle",{cx:"50",cy:"33",r:"20",fill:"#FF4500",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)(p.E.line,{x1:"50",y1:"13",x2:"50",y2:"6",stroke:"#FF4500",strokeWidth:"2.5",strokeLinecap:"round",animate:{rotate:[0,15,-15,0]},transition:{duration:2,repeat:1/0},style:{transformOrigin:"50px 13px"}}),(0,s.jsx)(p.E.circle,{cx:"50",cy:"5",r:"3",fill:"#FF6033",animate:{scale:[1,1.3,1]},transition:{duration:1.5,repeat:1/0}}),(0,s.jsx)("path",{d:"M68 30 L84 25 L68 37Z",fill:"#CC3700",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsxs)(p.E.g,{animate:{scaleY:[1,1,.1,1,1]},transition:{duration:3,repeat:1/0,times:[0,.42,.43,.44,1]},style:{transformOrigin:"42px 31px"},children:[(0,s.jsx)("circle",{cx:"42",cy:"31",r:"5",fill:"#1A1A1B",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"43.5",cy:"29",r:"2",fill:"white",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),(0,s.jsxs)(p.E.g,{animate:{scaleY:[1,1,.1,1,1]},transition:{duration:3,repeat:1/0,times:[0,.42,.43,.44,1],delay:.1},style:{transformOrigin:"58px 31px"},children:[(0,s.jsx)("circle",{cx:"58",cy:"31",r:"5",fill:"#1A1A1B",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"59.5",cy:"29",r:"2",fill:"white",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]}),(0,s.jsx)("path",{d:"celebrating"===ec.mood?"M40 39 Q50 50 60 39":"M42 38 Q50 45 58 38",stroke:"#CC3700",strokeWidth:"2.8",strokeLinecap:"round",fill:"none",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"34",cy:"37",r:"5",fill:"#FF6B6B",opacity:"0.3",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])}),(0,s.jsx)("circle",{cx:"66",cy:"37",r:"5",fill:"#FF6B6B",opacity:"0.3",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])})]})]})})}),(0,s.jsxs)(p.E.div,{initial:{opacity:0,y:15,scale:.92}
1,animate:{opacity:1,y:0,scale:1},transition:{delay:.35,type:"spring",stiffness:250},className:"relative max-w-lg w-full px-5 py-4 rounded-2xl text-center ".concat("dark"===t?"bg-[#343536] border border-[#434345]":"bg-white border border-[#EDEFF1] shadow-md"),children:[(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"absolute -top-2 left-1/2 -translate-x-1/2 w-4 h-4 rotate-45 ".concat("dark"===t?"bg-[#343536] border-l border-t border-[#434345]":"bg-white border-l border-t border-[#EDEFF1]")}),(0,s.jsx)("p",{style:{fontFamily:"Rajdhani, sans-serif"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-base font-bold italic leading-relaxed relative z-10 ".concat("dark"===t?"text-[#D7DADC]":"text-[#1A1A1B]"),children:ec.message})]},"speech-".concat(d)),(0,s.jsx)(p.E.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.6},className:"text-sm mt-4 text-center max-w-md leading-relaxed ".concat("dark"===t?"text-[#818384]":"text-gray-500"),children:ec.narration},"narr-".concat(d))]}),(0,s.jsx)("div",{style:{backdropFilter:"blur(8px)"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-shrink-0 px-4 py-3 border-t ".concat("dark"===t?"border-[#343536]/50 bg-black/15":"border-gray-200/50 bg-white/30"),children:(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center gap-1 overflow-x-auto",children:eo.map((e,a)=>{let i=e.icon,n="active"===e.status,o="complete"===e.status;return(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center",children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex items-center gap-1.5 px-2 py-1 rounded-lg text-[10px] font-medium whitespace-nowrap transition-all ".concat(n?"dark"===t?"bg-[#FF4500]/20 text-[#FF4500] border border-[#FF4500]/40":"bg-[#FFF1EE] text-[#FF4500] border border-[#FF4500]/30":o?"text-[#46D160]":"dark"===t?"text-[#818384]/60":"text-gray-400"),children:[o?(0,s.jsx)(U.Z,{className:"w-3 h-3"}):n?(0,s.jsx)(p.E.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},children:(0,s.jsx)(i,{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" w-3 h-3"})}):(0,s.jsx)(i,{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" w-3 h-3"}),(0,s.jsx)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" hidden sm:inline",children:e.label.split(" ").slice(0,2).join(" ")})]}),a<eo.length-1&&(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"w-3 h-px mx-0.5 ".concat(o?"bg-[#46D160]":"dark"===t?"bg-[#343536]":"bg-gray-300")})]},e.id)})})})]},d)})})]}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" lg:col-span-2 flex flex-col h-full overflow-hidden",children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-shrink-0 px-5 py-4 border-b ".concat("dark"===t?"border-[#343536] bg-[#272729]":"border-gray-100 bg-white"),children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center justify-between mb-3",children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center gap-2",children:[(0,s.jsx)(H.Z,{className:"w-5 h-5 ".concat("dark"===t?"text-yellow-400":"text-[#FF4500]")}),(0,s.jsx)("span",{style:{fontFamily:"Rajdhani, sans-serif"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"font-bold ".concat("dark"===t?"text-white":"text-gray-900"),children:"Interview Prep"})]}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center gap-2",children:[A>2&&(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex items-center gap-1 px-2 py-1 rounded-md text-xs font-bold ".concat("dark"===t?"bg-orange-500/20 text-orange-400":"bg-orange-100 text-orange-600"),children:[(0,s.jsx)(J.Z,{className:"w-3 h-3"})," ",A]}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"px-2 py-1 rounded-md text-xs font-bold ".concat("dark"===t?"bg-[#46D160]/20 text-green-400":"bg-[#46D160]/10 text-green-700"),children:["â ",k[u],"/",F[u]]})]})]}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex gap-1",children:eu.map(e=>{let{type:a,icon:i,label:n,color:o}=e;return(0,s.jsxs)("button",{onClick:()=>en(a),style:u===a?{background:"blue"===o?"#3b82f6":"orange"===o?"#FF4500":"#10b981"}:{},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-1 flex items-center justify-center gap-1.5 py-2 px-2 rounded-lg text-xs !font-bold transition-all ".concat(u===a?"text-white":"dark"===t?"text-[#818384] hover:text-white hover:bg-[#343536]/50":"text-gray-500 hover:text-gray-900 hover:bg-gray-100"),children:[(0,s.jsx)(i,{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" w-3.5 h-3.5"}),(0,s.jsx)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:n})]},a)})})]}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex-1 overflow-y-auto custom-scrollbar",children:(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" p-5 space-y-5",children:(0,s.jsx)(g.M,{mode:"wait",children:(0,s.jsxs)(p.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:[(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"p-4 rounded-xl mb-4 ".concat("dark"===t?"bg-[#272729] border border-[#343536]":"bg-gray-50 border border-gray-200"),children:[(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center justify-between mb-3",children:(0,s.jsxs)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-[10px] font-bold uppercase tracking-widest px-2 py-0.5 rounded ".concat("intro"===u?"dark"===t?"bg-[#FF4500]/20 text-[#FF4500]":"bg-[#FFF1EE] text-[#FF4500]":"technical"===u?"dark"===t?"bg-[#FF4500]/20 text-[#FF4500]":"bg-[#FFE5DB] text-[#FF4500]":"dark"===t?"bg-[#46D160]/20 text-green-400":"bg-[#46D160]/10 text-[#46D160]"),children:["Q",x%ea.length+1," of ",ea.length]})}),(0,s.jsx)("p",{style:{fontFamily:"Rajdhani, sans-serif"},className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-sm !font-bold leading-relaxed ".concat("dark"===t?"text-white":"text-gray-900"),children:et.question})]}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" space-y-2 mb-4",children:et.options.map((e,a)=>{let i=y===a,n=a===et.correct,o="dark"===t?"bg-[#272729] border-[#343536] hover:bg-[#343536]/60 hover:border-[#343536]":"bg-white border-[#EDEFF1] hover:bg-gray-50 hover:border-gray-300";return j?o=n?"dark"===t?"bg-[#46D160]/10 border-green-500 text-green-400":"bg-[#46D160]/5 border-green-500 text-green-700":i?"dark"===t?"bg-red-500/10 border-red-500 text-red-400":"bg-red-50 border-red-500 text-red-700":"dark"===t?"bg-[#272729]/30 border-[#343536]/30 opacity-40":"bg-gray-50 border-gray-200 opacity-40":i&&(o="dark"===t?"bg-[#FF4500]/10 border-[#FF4500]":"bg-[#FFF1EE] border-[#FF4500]"),(0,s.jsxs)("button",{onClick:()=>es(a),disabled:j,className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"w-full p-3 rounded-lg text-left text-sm border transition-all flex items-center gap-3 ".concat(o),children:[(0,s.jsx)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"w-7 h-7 rounded-md flex items-center justify-center text-xs font-bold flex-shrink-0 ".concat(j?n?"bg-[#46D160]/50 text-white":i?"bg-red-500 text-white":"dark"===t?"bg-[#343536] text-[#818384]":"bg-gray-200 text-gray-400":i?"bg-[#FF4500] text-white":"dark"===t?"bg-[#343536] text-[#D7DADC]":"bg-gray-200 text-gray-600"),children:String.fromCharCode(65+a)}),(0,s.jsx)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-1 ".concat("dark"===t?"text-[#D7DADC]":"text-gray-700"),children:e}),j&&n&&(0,s.jsx)(U.Z,{className:"w-5 h-5 text-green-500 flex-shrink-0"}),j&&i&&!n&&(0,s.jsx)(K.Z,{className:"w-5 h-5 text-red-500 flex-shrink-0"})]},a)})}),j&&(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"p-3 rounded-lg mb-4 ".concat(y===et.correct?"dark"===t?"bg-[#46D160]/10 border border-[#46D160]/30":"bg-[#46D160]/5 border border-[#46D160]/20":"dark"===t?"bg-[#FF4500]/10 border border-[#FF4500]/30":"bg-[#FFF1EE] border border-[#EDEFF1]"),children:(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-start gap-2",children:[(0,s.jsx)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]]),children:"\uD83D\uDCA1"}),(0,s.jsx)("p",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"text-xs leading-relaxed ".concat("dark"===t?"text-[#D7DADC]":"text-gray-600"),children:et.explanation})]})}),(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex gap-2",children:[j?(0,s.jsxs)("button",{onClick:er,className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-1 flex items-center justify-center gap-2 py-3 rounded-full !font-bold text-sm transition-all ".concat(y===et.correct?"bg-[#46D160] text-white hover:bg-[#3BB856]":"bg-[#FF4500] text-white hover:bg-[#FF4500]/90"),children:[(0,s.jsx)(Y.Z,{className:"w-4 h-4"}),"Next"]}):(0,s.jsxs)("button",{onClick:ei,disabled:null===y,className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-1 flex items-center justify-center gap-2 py-3 rounded-full !font-bold text-sm transition-all ".concat(null!==y?"bg-[#FF4500] text-white hover:bg-[#FF4500]/90":"dark"===t?"bg-[#272729] text-[#818384] cursor-not-allowed":"bg-gray-100 text-gray-400 cursor-not-allowed"),children:[(0,s.jsx)(Q.Z,{className:"w-4 h-4"}),"Submit"]}),(0,s.jsx)("button",{onClick:er,title:"Skip",className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"p-3 rounded-lg transition-all ".concat("dark"===t?"bg-[#272729] text-[#818384] hover:bg-[#343536]":"bg-gray-100 text-gray-500 hover:bg-gray-200"),children:(0,s.jsx)(V.Z,{className:"w-4 h-4"})})]})]},"".concat(u,"-").concat(x))})})}),(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+"flex-shrink-0 px-5 py-3 border-t ".concat("dark"===t?"border-[#343536] bg-[#272729]":"border-gray-100 bg-white"),children:(0,s.jsx)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex items-center justify-between text-xs",children:(0,s.jsxs)("div",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" flex gap-3",children:[(0,s.jsxs)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" text-[#FF4500]",children:[(0,s.jsx)(_.Z,{className:"w-3 h-3 inline mr-1"}),"HR: ",k.intro,"/",F.intro]}),(0,s.jsxs)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" text-[#FF4500]",children:[(0,s.jsx)(Z.Z,{className:"w-3 h-3 inline mr-1"}),"Tech: ",k.technical,"/",F.technical]}),(0,s.jsxs)("span",{className:r().dynamic([["4518768dcda45ef2",["dark"===t?"#1e293b":"#f1f5f9","dark"===t?"#475569":"#cbd5e1","dark"===t?"#64748b":"#94a3b8"]]])+" "+(("dark"===t?"text-green-400":"text-[#46D160]")||""),children:[(0,s.jsx)(G.Z,{className:"w-3 h-3 inline mr-1"}),"Mgr: ",k.manager,"/",F.manager]})]})})})]})]})]});return!1===i?(0,s.jsx)(g.M,{children:eb}):(0,s.jsx)(g.M,{children:(0,s.jsx)(p.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":"Resume generation in progress",ref:l,style:{backgroundColor:"dark"===t?"rgba(15, 23, 42, 0.98)":"rgba(255, 255, 255, 0.98)",backdropFilter:"blur(16px)"},children:eb})})}function et(e){let{active:a,message:t="Generation in progress"}=e,i=(0,l.useRouter)(),r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!a)return;r.current=document.activeElement;let e=e=>(e.preventDefault(),e.returnValue=t,t),s=e=>{if(a){let a="Route change blocked during generation";throw i.events.emit("routeChangeError",a,e),Error(a)}};window.addEventListener("beforeunload",e),i.beforePopState(()=>!1),i.events.on("routeChangeStart",s);let n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("beforeunload",e),i.beforePopState(()=>!0),i.events.off("routeChangeStart",s),document.body.style.overflow=n||"";try{var a,t;null===(t=r.current)||void 0===t||null===(a=t.focus)||void 0===a||a.call(t)}catch(e){}}},[a,i,t]),a?(0,s.jsx)("div",{"aria-live":"assertive",className:"sr-only",children:t}):null}var es=t(80172),ei=t(79298),er=t(24942),en=t(31767),eo=t(91594);function el(e){let{open:a,forceOpen:i=!1,onClose:r}=e,{theme:o}
1=(0,v.F)(),[l,d]=(0,n.useState)(!1),[c,m]=(0,n.useState)(null),[f,u]=(0,n.useState)(null),[h,x]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!a)return;d(!0);let e=null;return Promise.all([fetch("/api/referral/link").then(e=>e.json()),fetch("/api/referral/status").then(e=>e.json()).catch(()=>({dismissed:!1}))]).then(a=>{let[s,i]=a;u((null==s?void 0:s.referralCode)||null),m((null==s?void 0:s.inviteUrl)||null),null==i||i.dismissed,null==i||i.snoozed,e=setInterval(async()=>{try{let e=await fetch("/api/referral/status");if(!e.ok)return;await e.json();try{let e=await fetch("/api/notifications?unread=true");if(e.ok){let a=await e.json();if(Array.isArray(a.notifications)&&a.notifications.length){for(let e of a.notifications)if("REFERRAL_CREDIT"===e.type){let{default:a}=await Promise.resolve().then(t.bind(t,86501));a.success(e.title||"You earned 3 free resumes!"),(async()=>{try{await fetch("/api/notifications",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e._id,read:!0})})}catch(e){}})()}}}}catch(e){}}catch(e){}},2500)}).catch(e=>console.error("Failed to fetch referral link/status",e)).finally(()=>d(!1)),()=>{e&&clearInterval(e)}},[a,i,r]);let b=async()=>{try{await fetch("/api/referral/dismiss",{method:"POST"})}catch(e){console.error("Failed to record dismissal",e)}try{r()}catch(e){}},p=async()=>{if(c)try{await navigator.clipboard.writeText(c),x(!0),(async()=>{let{default:e}=await Promise.resolve().then(t.bind(t,86501));e.success("Link copied!")})(),setTimeout(()=>x(!1),2500)}catch(e){console.error(e)}},g=async()=>{if(navigator.share&&c)try{await navigator.share({title:"Try TrueResume",text:"Sign up for 3 free resumes from me on TrueResume",url:c})}catch(e){}else await p()};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(er.u,{show:a,as:n.Fragment,children:(0,s.jsxs)(en.Vq,{as:"div",className:"relative z-50",onClose:()=>{},children:[(0,s.jsx)(er.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-black/40"})}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,s.jsx)(er.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsxs)(en.Vq.Panel,{className:"relative w-full max-w-lg transform overflow-hidden rounded-2xl bg-white p-6 text-center align-middle shadow-2xl transition-all",children:[(0,s.jsx)("button",{onClick:b,"aria-label":"Close",className:"absolute right-4 top-4 p-1 rounded-md text-gray-500 hover:bg-gray-100",children:(0,s.jsx)(eo.Z,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,s.jsx)("div",{className:"w-16 h-16 rounded-xl flex items-center justify-center shadow-md ".concat("dark"===o?"bg-gradient-to-br from-[#E03D00] to-[#E03D00] text-white":"bg-gradient-to-br from-emerald-500 to-blue-600 text-white"),children:(0,s.jsx)(T.Z,{className:"w-8 h-8",fill:"white"})}),(0,s.jsxs)("div",{className:"max-w-[28rem]",children:[(0,s.jsxs)(en.Vq.Title,{as:"h3",className:"text-2xl font-extrabold leading-8 text-gray-900",children:["Share your link â get ",(0,s.jsx)("span",{className:"text-green-600",children:"+3"})," resumes"]}),(0,s.jsx)("p",{className:"mt-2 text-sm text-gray-700",children:"When a friend signs up with your link and creates their first resume, weâll automatically add 3 free resumes to your account."})]}),(0,s.jsxs)("div",{className:"w-full max-w-[28rem] mt-4",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-stretch gap-3",children:[(0,s.jsx)("div",{className:"flex-1 bg-white border border-gray-200 px-4 py-3 rounded-md text-sm text-gray-900 break-words text-left",children:c||"â"}),(0,s.jsx)("div",{className:"flex gap-2 items-center",children:(0,s.jsx)(ei.zx,{size:"sm",variant:"secondary",onClick:p,"aria-label":"Copy link",children:h?"Copied":"Copy"})})]}),(0,s.jsx)(ei.zx,{size:"md",variant:"primary",className:"mt-4 w-full",onClick:g,"aria-label":"Share & Get +3",children:"Share & Get +3"}),(0,s.jsx)("div",{className:"mt-3 text-xs text-gray-500",children:"One-time per referred person ⢠Monthly cap may apply"}),(0,s.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-3",children:[(0,s.jsx)(ei.zx,{size:"xs",variant:"secondary",className:"rounded-full px-3 py-1",onClick:async()=>{try{await fetch("/api/referral/snooze",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({days:7})})}catch(e){console.error(e)}b()},children:"Remind me 7d"}),(0,s.jsx)(ei.zx,{size:"xs",variant:"ghost",className:"rounded-full px-3 py-1",onClick:b,children:"Dismiss"})]})]})]})]})})})})]})})})}function ed(e){let{open:a,onClose:t}=e,i=(0,l.useRouter)(),{theme:r}=(0,v.F)(),n="dark"===r;if(!a)return null;let o=async()=>{try{await fetch("/api/referral/dismiss-invite",{method:"POST"})}catch(e){}t()};return(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 ",onClick:o}),(0,s.jsxs)("div",{className:"relative max-w-md w-full p-6 rounded-xl shadow-xl ".concat(n?"bg-[#272729] border border-[#343536]":"bg-white border border-[#
1EDEFF1]"),children:[(0,s.jsx)("button",{"aria-label":"Close invite",title:"Dismiss",className:"absolute right-3 top-3 ".concat(n?"text-[#818384] hover:text-[#D7DADC]":"text-gray-400 hover:text-gray-600"),onClick:o,children:"\xd7"}),(0,s.jsx)("h3",{className:"text-lg font-bold ".concat(n?"text-white":"text-gray-900"),children:"Invitation used â just one step left"}),(0,s.jsx)("p",{className:"mt-2 text-sm ".concat(n?"text-[#D7DADC]":"text-gray-600"),children:"Thanks for using an invitation! Create your first resume to complete the referral and help your friend get 3 free resumes."}),(0,s.jsxs)("div",{className:"mt-4 flex gap-2 justify-end",children:[(0,s.jsx)(ei.zx,{variant:"ghost",size:"sm",onClick:o,children:"Remind me later"}),(0,s.jsx)(ei.zx,{variant:"primary",size:"sm",onClick:()=>i.push("/create-resume"),children:"Create my first resume"})]})]})]})}function ec(e){let{onUpgradeClick:a,refreshTrigger:t,onUsageUpdate:i}=e,{theme:r}=(0,v.F)(),[o,l]=(0,n.useState)(null),[d,c]=(0,n.useState)(!0),[m,f]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),[x,b]=(0,n.useState)(!1),[p,g]=(0,n.useState)(null),[y,j]=(0,n.useState)(null);(0,n.useEffect)(()=>{w();let e=()=>{let e=0,a=async()=>{e+=1;let t=await w();if(null===t){e<5?setTimeout(a,700*Math.pow(2,e-1)+Math.floor(200*Math.random())):(0,A.Ki)("[referral] subscription refresh failed after retries");return}let s=-1===p?1/0:p,i=-1===t?1/0:t;if(null===p||i!==s){(0,A.Cv)("[referral] observed subscription remaining change:",p,"->",t);return}e<5?setTimeout(a,700*Math.pow(2,e-1)+Math.floor(200*Math.random())):(0,A.Ki)("[referral] subscription did not change after multiple attempts â UI may show temporary state until a full refresh")};a()};return window.addEventListener("referral_credit_occurred",e),()=>window.removeEventListener("referral_credit_occurred",e)},[t]);let w=async()=>{try{if(y&&Date.now()<y)return(0,A.Ki)("[usage] in backoff until",new Date(y).toISOString()),p;let e=await fetch("/api/subscription/status?t=".concat(Date.now()));if(429===e.status)return j(Date.now()+5e3),(0,A.Ki)("[usage] subscription/status returned 429 â backing off for",5e3,"ms"),p;if(!e.ok)return(0,A.Ki)("subscription/status fetch failed",e.status),p;let a=await e.json(),t=a.subscription||{},s=a.usage||{},r={plan:t.plan||"free",resumesUsed:t.resumesGenerated||0,resumesLimit:t.resumeLimit||s.limit||3,isUnlimited:-1===t.resumeLimit||s.isUnlimited||!1,isActive:void 0===t.isActive||t.isActive};!1===r.isActive&&(r.isUnlimited=!1,r.resumesUsed=r.resumesLimit),l(r);let n=r.isUnlimited?1/0:Math.max(0,r.resumesLimit-r.resumesUsed);g(n===1/0?-1:n),i&&i(r.resumesUsed,r.resumesLimit);try{let e=await fetch("/api/referral/should-show");if(e.ok){let a=await e.json();if(null==a?void 0:a.showReferralInviteUsed)return h(!0),n===1/0?-1:n;if(null==a?void 0:a.show)return f(!0),n===1/0?-1:n}}catch(e){}try{let e=r.isUnlimited?1/0:Math.max(0,r.resumesLimit-r.resumesUsed);"free"===r.plan&&0===e&&f(!0)}catch(e){}return n===1/0?-1:n}catch(e){return(0,A.V3)("Failed to fetch usage:",e),p}finally{c(!1)}};if(d&&!o)return null;let k=o||{plan:"free",resumesUsed:0,resumesLimit:3,isUnlimited:!1},N=k.isUnlimited?1/0:Math.max(0,k.resumesLimit-k.resumesUsed),F=k.isUnlimited?100:k.resumesUsed/k.resumesLimit*100,S=async()=>{try{await fetch("/api/referral/dismiss",{method:"POST"})}catch(e){console.error("Failed to persist referral dismissal",e)}f(!1),b(!1)};return(0,s.jsxs)("div",{className:"w-full border-b ".concat("dark"===r?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,s.jsx)(el,{open:m,forceOpen:x,onClose:S}),(0,s.jsx)(ed,{open:u,onClose:()=>h(!1)}),(0,s.jsx)("div",{className:"px-4 py-2.5",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 sm:gap-4",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 sm:gap-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 ".concat("dark"===r?"text-[#D7DADC]":"text-gray-700"),children:[(0,s.jsx)(es.Z,{className:"w-3 h-3 sm:w-4 sm:h-4"}),(0,s.jsx)("span",{className:"text-xs sm:text-sm !font-bold",style:{fontFamily:"Rajdhani, sans-serif"},children:k.isUnlimited?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-bold",children:k.resumesUsed}),(0,s.jsx)("span",{className:"hidden sm:inline ".concat("dark"===r?"text-[#818384]":"text-gray-400"),children:" resumes generated"}),(0,s.jsx)("span",{className:"sm:hidden ".concat("dark"===r?"text-[#818384]":"text-gray-400"),children:" generated"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"font-bold ".concat(0===N?"text-red-500":1===N?"text-[#FF4500]":""),children:N}),(0,s.jsxs)("span",{className:"hidden sm:inline ".concat("dark"===r?"text-[#818384]":"text-gray-400"),children:["/",k.resumesLimit]}),(0,s.jsx)("span",{className:"ml-1",children:"left"})]})})]}),!k.isUnlimited&&(0,s.jsx)("div",{className:"w-16 sm:w-32 h-1.5 rounded-full overflow-hidden ".concat("dark"===r?"bg-[#272729]":"bg-gray-200"),children:(0,s.jsx)("div",{className:"h-full transition-all duration-300 ".concat(0===N?"bg-red-500":"bg-[#FF4500]"),style:{width:"".concat(F,"%")}})})]})}),"free"===k.plan?0===N?(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center w-full justify-end isolate",children:[(0,s.jsxs)(ei.zx,{size:"sm",variant:"primary",onClick:()=>{f(!0),b(!0)},noHoverScale:!0,className:"flex-1 sm:flex-1 md:flex-none md:w-auto md:max-w-[220px]",children:[(0,s.jsx)("span",{className:"hidden sm:inline",children:"Share to get +3"}),(0,s.jsx)("span",{className:"sm:hidden",children:"Share +3"})]}),(0,s.jsxs)(ei.zx,{size:"sm",variant:"primary",onClick:a,noHoverScale:!0,className:"flex-1 sm:flex-1 md:flex-none md:w-auto md:max-w-[220px] hover:bg-[#CC3700] shadow-md",children:[(0,s.jsx)(es.Z,{className:"w-3 h-3 sm:w-4 sm:h-4 flex-shrink-0"}),(0,s.jsx)("span",{className:"ml-2 hidden sm:inline",children:"Upgrade to Pro"}),(0,s.jsx)("span",{className:"ml-2 sm:hidden",children:"Upgrade"})]})]}):(0,s.jsx)("div",{className:"flex justify-end w-full",children:(0,s.jsxs)("button",{onClick:a,className:"flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 rounded-full font-bold text-xs sm:text-sm transition-all hover:shadow-xl whitespace-nowrap bg-[#FF4500] text-white hover:bg-[#CC3700] shadow-md",children:[(0,s.jsx)(es.Z,{className:"w-3 h-3 sm:w-4 sm:h-4 flex-shrink-0"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Upgrade to Pro"}),(0,s.jsx)("span",{className:"sm:hidden",children:"Upgrade"})]})}):(0,s.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1 sm:px-4 sm:py-1.5 rounded-lg font-bold text-xs sm:text-sm whitespace-nowrap ".concat("enterprise"===k.plan?"dark"===r?"bg-gradient-to-r from-[#FF4500] to-orange-600 text-white":"bg-gradient-to-r from-[#FF4500] to-orange-500 text-white":"bg-[#FF4500] text-white"),children:[(0,s.jsx)(es.Z,{className:"w-3 h-3 sm:w-4 sm:h-4 flex-shrink-0"}),(0,s.jsxs)("span",{className:"hidden md:inline",children:["enterprise"===k.plan?"ENTERPRISE":"PRO"," MEMBER"]}),(0,s.jsx)("span",{className:"md:hidden hidden sm:inline",children:"enterprise"===k.plan?"ENT"
1:"PRO"}),(0,s.jsx)("span",{className:"hidden",children:"enterprise"===k.plan?"E":"P"})]})]})})]})}var em=t(7117),ef=t(23302),eu=t(28337);function eh(e){let{onSelectOffer:a,className:t=""}=e,{theme:i}=(0,v.F)(),r=(0,ef.J)(),[o,l]=(0,n.useState)(null),[d,c]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e=!1;return(async()=>{try{let a=await fetch("/api/coupons/active"),t=await a.json(),s=Array.isArray(t.offers)?t.offers[0]:null;!e&&(null==s?void 0:s.code)&&(null==s?void 0:s.discountLabel)&&l({code:s.code,discountLabel:s.discountLabel})}catch(a){e||l(null)}finally{e||c(!0)}})(),()=>{e=!0}},[]),d&&o)?(0,s.jsxs)(p.E.button,{type:"button",title:"".concat(o.discountLabel," â ").concat(o.code),"aria-label":"Active offer: ".concat(o.discountLabel,". Code ").concat(o.code,"."),onClick:()=>null==a?void 0:a(o.code),initial:!r&&{opacity:0,x:8,scale:.94},animate:{opacity:1,x:0,scale:1},transition:{duration:.4,ease:[.22,1,.36,1]},whileTap:r?void 0:{scale:.96},whileHover:r?void 0:{scale:1.03},className:"relative inline-flex max-w-[5.25rem] shrink-0 touch-manipulation items-center gap-1 overflow-hidden rounded-full border px-2.5 py-1.5 text-[10px] font-semibold leading-none focus:outline-none focus:ring-2 focus:ring-[#FF4500]/45 sm:max-w-[7.5rem] sm:gap-1.5 sm:px-2.5 sm:py-1.5 sm:text-[11px] ".concat("dark"===i?"border-[#FF4500]/40 bg-[#272729] text-[#FF8A65]":"border-[#FF4500]/35 bg-white text-[#CC3700] shadow-sm"," ").concat(t),children:[!r&&(0,s.jsx)(p.E.span,{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -skew-x-12 bg-gradient-to-r from-transparent via-[#FF4500]/12 to-transparent",initial:{x:"-120%"},animate:{x:"220%"},transition:{duration:2.8,repeat:1/0,repeatDelay:4.2,ease:"easeInOut"}}),(0,s.jsxs)("span",{className:"relative flex h-2 w-2 shrink-0 sm:h-2.5 sm:w-2.5",children:[!r&&(0,s.jsx)(p.E.span,{"aria-hidden":!0,className:"absolute inset-0 rounded-full bg-[#FF4500]",animate:{opacity:[.35,.08,.35],scale:[1,1.55,1]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut"}}),(0,s.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-[#FF4500] sm:h-2.5 sm:w-2.5"})]}),(0,s.jsx)(eu.Z,{className:"relative z-[1] h-3 w-3 shrink-0 text-[#FF4500] sm:h-3.5 sm:w-3.5","aria-hidden":!0}),(0,s.jsx)("span",{className:"relative z-[1] truncate",children:o.discountLabel})]}):null}var ex=t(79508),eb=t(13431);function ep(e){let{isOpen:a,onClose:t,onConfirmLeave:i,onDownload:r,title:o="Resume Not Downloaded",message:l="You haven't downloaded your resume yet. If you leave this page, your generated resume will be lost and you'll need to generate it again.",downloadLabel:d="Download Resume",leaveLabel:c="Leave Anyway",cancelLabel:m="Stay on Page"}=e,{theme:f}=(0,v.F)();return a?(0,s.jsx)(er.u,{appear:!0,show:a,as:n.Fragment,children:(0,s.jsxs)(en.Vq,{as:"div",className:"relative z-[9999]",onClose:t,children:[(0,s.jsx)(er.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-black/60 "})}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,s.jsx)(er.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,s.jsxs)(en.Vq.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl p-6 text-left align-middle shadow-2xl transition-all ".concat("dark"===f?"bg-[#1A1A1B]/95 border border-[#343536]":"bg-white border border-[#EDEFF1]"),children:[(0,s.jsx)("button",{onClick:t,className:"absolute top-4 right-4 p-1 rounded-lg transition-colors ".concat("dark"===f?"text-[#818384] hover:text-white hover:bg-[#272729]":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"),children:(0,s.jsx)(eo.Z,{className:"w-5 h-5"})}),(0,s.jsx)("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-[#FFE5DB] dark:bg-[#FF4500]/20 mb-4",children:(0,s.jsx)(eb.Z,{className:"h-7 w-7 text-[#FF4500] dark:text-[#FF4500]"})}),(0,s.jsx)(en.Vq.Title,{as:"h3",className:"text-xl font-semibold text-center mb-3 ".concat("dark"===f?"text-white":"text-gray-900"),children:o}),(0,s.jsx)("p",{className:"text-sm text-center mb-6 leading-relaxed ".concat("dark"===f?"text-[#D7DADC]":"text-gray-600"),children:l}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[r&&(0,s.jsxs)("button",{onClick:()=>{r(),t()},className:"w-full flex items-center justify-center gap-2 px-4 py-3 rounded-full text-sm font-semibold transition-all ".concat("bg-emerald-600 text-white hover:bg-emerald-700 shadow-md"),children:[(0,s.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),d]}),(0,s.jsx)("button",{onClick:t,className:"w-full px-4 py-3 rounded-full text-sm font-medium transition-all ".concat("dark"===f?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-gray-100 text-gray-700 hover:bg-gray-200 border border-gray-300"),children:m}),(0,s.jsx)("button",{onClick:()=>{i(),t()},className:"w-full px-4 py-2.5 rounded-full text-sm font-medium transition-all ".concat("dark"===f?"text-red-400 hover:text-red-300 hover:bg-red-500/10":"text-red-600 hover:text-red-700 hover:bg-red-50"),children:c})]}),(0,s.jsx)("p",{className:"text-xs text-center mt-4 ".concat("dark"===f?"text-[#818384]":"text-gray-400"),children:"Your resume is not saved automatically. Download it now to keep a copy."})]})})})})]})}):null}var eg=t(51846),ey=t(99617),ev=t(2553),ej=t(33284),ew=t(52042),ek=t(42171),eN=t(60641),eF=t(43765),eS=t(86691),eA=t(12779),eD=t(92761),eC=t(83989),eE=t(15432),eq=t(4960),eB=t(57632),eT=t(91766),eW=t(21700),eI=t(3350);
1let ez={name:"Sarah Johnson",title:"Senior Software Engineer",email:"[email protected]",phone:"+1 (555) 123-4567",location:"San Francisco, CA",summary:"Results-driven Senior Software Engineer with 8+ years of experience architecting and building scalable web applications, leading high-performing cross-functional engineering teams, and delivering mission-critical enterprise solutions. Deep expertise in modern JavaScript/TypeScript ecosystems including React, Node.js, and cloud-native architectures on AWS and GCP. Proven track record of reducing infrastructure costs by 40%, improving system performance by 300%, and successfully mentoring junior developers. Passionate about clean code, test-driven development, and continuous improvement.",summaryBullets:["8+ years of full-stack development experience with expertise in React, Node.js, TypeScript, and Python","Architected microservices infrastructure serving 2M+ daily active users with 99.9% uptime SLA","Led and mentored cross-functional teams of 8-12 engineers using Agile/Scrum methodologies","Reduced infrastructure costs by 40% through strategic optimization and caching strategies","Designed real-time data pipelines processing 10M+ events daily using Apache Kafka and Redis","AWS Solutions Architect Professional certified with extensive cloud-native development experience","Proven track record of delivering high-impact solutions that increased revenue by $2M annually"],skills:["React","TypeScript","Node.js","Python","AWS","Docker","GraphQL","PostgreSQL","Redis","Kubernetes"],skillsSection:{languages:["JavaScript","TypeScript","Python","Java","SQL"],frameworks:["React","Node.js","Express","Next.js","GraphQL"],databases:["PostgreSQL","MongoDB","Redis","DynamoDB"],cloud:["AWS","GCP","Docker","Kubernetes","Terraform"],tools:["Git","Jenkins","Jira","Datadog","Splunk"]},experience:[{company:"Tech Corp Inc.",title:"Senior Software Engineer",duration:"2021 - Present",bullets:["Architected microservices infrastructure serving 2M+ daily active users with 99.9% uptime","Reduced infrastructure costs by 40% through performance optimization and caching strategies","Led and mentored a team of 8 engineers, implementing agile methodologies","Designed real-time data pipeline processing 10M+ events daily using Kafka","Implemented automated testing framework achieving 95% code coverage across all services"]},{company:"StartupXYZ",title:"Full Stack Developer",duration:"2018 - 2021",bullets:["Built customer-facing analytics dashboard used by 500+ enterprise clients","Implemented CI/CD pipeline reducing deployment time from 2 hours to 15 minutes","Developed RESTful APIs handling 100K+ requests per minute","Integrated third-party payment systems processing $5M+ monthly transactions","Optimized database queries reducing average response time by 60%"]},{company:"Digital Agency Co.",title:"Junior Developer",duration:"2016 - 2018",bullets:["Developed responsive web applications for 20+ Fortune 500 clients","Collaborated with UX team to implement pixel-perfect designs","Maintained legacy systems and migrated to modern tech stack","Created reusable component library reducing development time by 30%","Participated in code reviews and contributed to team best practices documentation"]}],education:{degree:"B.S. Computer Science",school:"Stanford University",year:"2016"},certifications:["AWS Solutions Architect Professional","Google Cloud Professional","Kubernetes Administrator (CKA)","MongoDB Developer"]},eR=[{id:"classic",name:"Classic",layout:"classic",accent:"#1f2937",headerBg:"#ffffff",headerText:"#1f2937"},{id:"modern-sidebar",name:"Modern",layout:"modern-sidebar",accent:"#1a1a1a",headerBg:"#ffffff",headerText:"#1a1a1a",sidebarBg:"#f8fafb"},{id:"two-column",name:"Professional",layout:"two-column",accent:"#000000",headerBg:"#ffffff",headerText:"#000000",sidebarBg:"#f8fafb"},{id:"minimal",name:"Minimalist",layout:"minimal",accent:"#1a1a1a",headerBg:"#ffffff",headerText:"#1a1a1a"},{id:"creative",name:"Creative",layout:"creative",accent:"#1a1a1a",headerBg:"#ffffff",headerText:"#1a1a1a",sidebarBg:"#ffffff"},{id:"executive",name:"Executive",layout:"executive",accent:"#1a1a1a",headerBg:"#ffffff",headerText:"#1a1a1a",sidebarBg:"#f8fafc"}],eP=e=>({templateBadgeBg:e?"bg-[#1A1A1B]/95 text-white border-[#343536]":"bg-white text-gray-800 border-gray-300",activeTemplateDot:e?"bg-[#FF4500]/20":"bg-[#FF4500]",inactiveTemplateDot:e?"bg-[#343536]":"bg-gray-300"}),eL=8.5/11;function eM(e){let{className:a=""}=e,{theme:t}=(0,v.F)(),i="dark"===t;(0,n.useMemo)(()=>eP(i),[i]);
1let o=(0,n.useRef)(null),[l,d]=(0,n.useState)({width:0,height:0}),[c,m]=(0,n.useState)(0),f=(0,n.useMemo)(()=>eR[c],[c]),u=(0,eq.c)(0),h=(0,eq.c)(0),x=(0,eB.q)((0,eT.H)(h,[-.5,.5],[20,-20]),{stiffness:120,damping:15}),b=(0,eB.q)((0,eT.H)(u,[-.5,.5],[-20,20]),{stiffness:120,damping:15}),y=(0,eB.q)(1,{stiffness:200,damping:20}),j=(0,n.useCallback)(e=>{if(!o.current)return;let a=o.current.getBoundingClientRect(),t=(e.clientX-a.left)/a.width-.5,s=(e.clientY-a.top)/a.height-.5;u.set(t),h.set(s)},[u,h]),w=(0,n.useCallback)(e=>{if(!o.current||!e.touches[0])return;let a=o.current.getBoundingClientRect(),t=(e.touches[0].clientX-a.left)/a.width-.5,s=(e.touches[0].clientY-a.top)/a.height-.5;u.set(t),h.set(s)},[u,h]),k=(0,n.useCallback)(()=>{u.set(0),h.set(0)},[u,h]),N=(0,n.useCallback)(()=>{y.set(1.01)},[y]),F=(0,n.useCallback)(()=>{u.set(0),h.set(0),y.set(1)},[u,h,y]);(0,n.useEffect)(()=>{let e=o.current;if(!e||"undefined"==typeof ResizeObserver)return;let a=()=>{let{width:a,height:t}=e.getBoundingClientRect(),s=function(e,a){if(e<1||a<1)return{width:0,height:0};let t=e,s=t/eL;return s>a&&(t=(s=a)*eL),{width:Math.max(0,Math.floor(t)),height:Math.max(0,Math.floor(s))}}(a,t);d(e=>e.width===s.width&&e.height===s.height?e:s)};a();let t=new ResizeObserver(a);return t.observe(e),()=>t.disconnect()},[]),(0,n.useEffect)(()=>{let e=setInterval(()=>m(e=>(e+1)%eR.length),5e3);return()=>clearInterval(e)},[]);let S=l.width>0&&l.height>0;return(0,s.jsx)("div",{className:"relative flex h-full min-h-0 flex-col ".concat(a),children:(0,s.jsx)("div",{ref:o,className:"relative flex min-h-0 w-full min-w-0 flex-1 flex-col items-center justify-center overflow-hidden p-0",onMouseMove:j,onMouseEnter:N,onMouseLeave:F,onTouchMove:w,onTouchEnd:k,style:{perspective:"1200px"},children:(0,s.jsx)(g.M,{mode:"wait",children:(0,s.jsx)(p.E.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.4},className:"relative flex h-full min-h-0 w-full items-center justify-center",style:{transformStyle:"preserve-3d"},children:(0,s.jsxs)(p.E.div,{className:"resume-card-container relative flex shrink-0 flex-col overflow-hidden rounded-lg bg-white",style:{rotateX:x,rotateY:b,scale:y,transformStyle:"preserve-3d",boxShadow:i?"0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.1)":"0 30px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5)",width:S?l.width:"100%",height:S?l.height:"auto",aspectRatio:S?void 0:"8.5 / 11",maxWidth:"100%",maxHeight:"100%",containerType:"size"},children:[(0,s.jsx)(r(),{id:"7af6f111de3886f9",children:".resume-card-container.jsx-7af6f111de3886f9{container-type:size}"}),(0,s.jsx)("div",{style:{background:"linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.3) 45%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.3) 55%, transparent 65%)"},className:"jsx-7af6f111de3886f9 absolute inset-0 pointer-events-none z-10 opacity-30"}),"classic"===f.layout&&(0,s.jsxs)("div",{style:{fontFamily:"'Times New Roman', serif",padding:"2.5cqh 2.5cqw"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 bg-white overflow-hidden flex flex-col",children:[(0,s.jsxs)("header",{style:{marginBottom:"1.5cqh",paddingBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-center border-b border-gray-400 flex-shrink-0",children:[(0,s.jsx)("h1",{style:{fontSize:"4cqh",marginBottom:"0.5cqh",letterSpacing:"0.05em",fontWeight:700,color:f.accent},className:"jsx-7af6f111de3886f9",children:ez.name}),(0,s.jsx)("div",{style:{fontSize:"2cqh",marginBottom:"0.5cqh",fontWeight:500},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.title}),(0,s.jsxs)("div",{style:{fontSize:"1.6cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:[ez.email," ⢠",ez.phone," ⢠",ez.location]})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent},className:"jsx-7af6f111de3886f9 uppercase border-b border-gray-300",children:"Professional Summary"}),(0,s.jsx)("p",{style:{fontSize:"1.6cqh",lineHeight:1.4},className:"jsx-7af6f111de3886f9 text-gray-700 text-justify line-clamp-3",children:ez.summary})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent},className:"jsx-7af6f111de3886f9 uppercase border-b border-gray-300",children:"Professional Experience"}),ez.experience.slice(0,2).map((e,a)=>(0,s.jsxs)("div",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between items-baseline",children:[(0,s.jsx)("span",{style:{fontSize:"1.8cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:e.company}),(0,s.jsx)("span",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.duration})]}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 italic text-gray-700",children:e.title}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:e.bullets.slice(0,5).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.5cqh",lineHeight:1.3},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 line-clamp-1",children:e})]},a))})]},a))]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent},className:"jsx-7af6f111de3886f9 uppercase border-b border-gray-300",children:"Technical Skills"}),(0,s.jsx)("p",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.skills.join(", ")})]}),(0,s.jsxs)("section",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent},className:"jsx-7af6f111de3886f9 uppercase border-b border-gray-300",children:"Education"}),(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9",children:[(0,s.jsx)("div",{style:{fontSize:"1.5cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:ez.education.school}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 italic text-gray-700",children:ez.education.degree})]}),(0,s.jsx)("span",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.education.year})]})]}),(0,s.jsxs)("section",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent},className:"jsx-7af6f111de3886f9 uppercase border-b border-gray-300",children:"Certifications"}),(0,s.jsx)("p",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.certifications.join(" ⢠")})]})]}),"modern-sidebar"===f.layout&&(0,s.jsxs)("div",{style:{fontFamily:"Calibri, Arial, sans-serif"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 bg-white overflow-hidden flex flex-col",children:[(0,s.jsxs)("header",{style:{padding:"2cqh 2.5cqw",borderBottom:"1px solid #E5E7EB",background:"#ffffff"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h1",{style:{fontSize:"4cqh",marginBottom:"0.5cqh",fontWeight:700,color:f.accent},className:"jsx-7af6f111de3886f9",children:ez.name}),(0,s.jsx)("div",{style:{fontSize:"2cqh",marginBottom:"0.5cqh",fontWeight:500},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.title}),(0,s.jsxs)("div",{style:{fontSize:"1.6cqh"},className:"jsx-7af6f111de3886f9 flex flex-wrap gap-x-3 gap-y-1",children:[(0,s.jsxs)("span",{className:"jsx-7af6f111de3886f9 flex items-center gap-1 text-gray-700",children:[(0,s.jsx)(eW.Z,{style:{width:"2cqh",height:"2cqh",color:"#1a1a1a"}}),ez.phone]}),(0,s.jsxs)("span",{className:"jsx-7af6f111de3886f9 flex items-center gap-1 text-gray-700",children:[(0,s.jsx)(eS.Z,{style:{width:"2cqh",height:"2cqh",color:"#1a1a1a"}}),ez.email]}),(0,s.jsxs)("span",{className:"jsx-7af6f111de3886f9 flex items-center gap-1 text-gray-700",children:[(0,s.jsx)(eI.Z,{style:{width:"2cqh",height:"2cqh",color:"#1a1a1a"}}),ez.location]})]})]}),(0,s.jsxs)("div",{style:{padding:"2cqh 2.5cqw"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 overflow-hidden flex flex-col",children:[(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB",display:"inline-block"},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Summary"}),(0,s.jsx)("p",{style:{fontSize:"1.6cqh",lineHeight:1.4},className:"jsx-7af6f111de3886f9 text-gray-700 line-clamp-3",children:ez.summary})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB",display:"inline-block"},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Experience"}),ez.experience.slice(0,2).map((e,a)=>(0,s.jsxs)("div",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between items-baseline",children:[(0,s.jsx)("span",{style:{fontSize:"1.8cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:e.title}),(0,s.jsx)("span",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.duration})]}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.company}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:e.bullets.slice(0,1===a?3:5).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.5cqh",lineHeight:1.3},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 line-clamp-1",children:e})]},a))})]},a))]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB",display:"inline-block"},className:"jsx-7af6f111de3886f9 uppercase",children:"Skills"}),(0,s.jsx)("div",{className:"jsx-7af6f111de3886f9 flex flex-wrap gap-1",children:ez.skills.map((e,a)=>(0,s.jsx)("span",{style:{fontSize:"1.5cqh",padding:"0.3cqh 1cqw"},className:"jsx-7af6f111de3886f9 bg-gray-100 rounded text-gray-700",children:e},a))})]}),(0,s.jsxs)("section",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB",display:"inline-block"},className:"jsx-7af6f111de3886f9 uppercase",children:"Education"}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:ez.education.degree}),(0,s.jsxs)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:[ez.education.school,", ",ez.education.year]}
1)]}),(0,s.jsxs)("section",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB",display:"inline-block"},className:"jsx-7af6f111de3886f9 uppercase",children:"Certifications"}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.certifications.join(" ⢠")})]})]})]}),"two-column"===f.layout&&(0,s.jsxs)("div",{style:{fontFamily:"Calibri, Arial, sans-serif",padding:"2cqh 2.5cqw"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 bg-white overflow-hidden relative flex flex-col",children:[(0,s.jsx)("div",{style:{fontSize:"1.5cqh",padding:"0.5cqh 1cqw",backgroundColor:"#10b981"},className:"jsx-7af6f111de3886f9 absolute top-1 right-1 rounded font-bold text-white",children:"â Recommended"}),(0,s.jsxs)("header",{style:{marginBottom:"2cqh",paddingBottom:"1.5cqh",borderBottom:"0.7cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 text-center flex-shrink-0",children:[(0,s.jsx)("h1",{style:{fontSize:"3.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.08em",color:f.accent},className:"jsx-7af6f111de3886f9 uppercase",children:ez.name}),(0,s.jsx)("div",{style:{fontSize:"2cqh",marginBottom:"0.5cqh",fontWeight:600},className:"jsx-7af6f111de3886f9 text-gray-800",children:ez.title}),(0,s.jsxs)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:[ez.email," ⢠",ez.phone," ⢠",ez.location]})]}),(0,s.jsxs)("section",{style:{marginBottom:"2cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.8cqh",fontWeight:700,letterSpacing:"0.08em",color:f.accent,borderBottom:"0.4cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Summary"}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:ez.summaryBullets.slice(0,3).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.5cqh",lineHeight:1.4},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9",children:e})]},a))})]}),(0,s.jsxs)("section",{style:{marginBottom:"2cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.8cqh",fontWeight:700,letterSpacing:"0.08em",color:f.accent,borderBottom:"0.4cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Technical Skills"}),(0,s.jsxs)("div",{style:{fontSize:"1.5cqh",lineHeight:1.5},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 text-gray-700",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 font-bold",children:"Languages:"})," ",ez.skillsSection.languages.join(", ")]}),(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 text-gray-700",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 font-bold",children:"Frameworks:"})," ",ez.skillsSection.frameworks.join(", ")]}),(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 text-gray-700",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 font-bold",children:"Cloud & Tools:"})," ",ez.skillsSection.cloud.slice(0,3).join(", ")]})]})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.8cqh",fontWeight:700,letterSpacing:"0.08em",color:f.accent,borderBottom:"0.4cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Experience"}),ez.experience.slice(0,2).map((e,a)=>(0,s.jsxs)("div",{style:{marginBottom:"1.2cqh"},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between items-baseline",children:[(0,s.jsx)("span",{style:{fontSize:"1.7cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:e.title}),(0,s.jsx)("span",{style:{fontSize:"1.4cqh",fontWeight:600},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.duration})]}),(0,s.jsx)("div",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-700 italic",children:e.company}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:e.bullets.slice(0,5).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.4cqh",lineHeight:1.3},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9",children:e})]},a))})]},a))]}),(0,s.jsxs)("section",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.08em",color:f.accent,borderBottom:"0.4cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Education"}),(0,s.jsx)("div",{style:{fontSize:"1.4cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:ez.education.degree}),(0,s.jsxs)("div",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:[ez.education.school," ⢠",ez.education.year]}
1)]}),(0,s.jsxs)("section",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.08em",color:f.accent,borderBottom:"0.4cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Certifications"}),(0,s.jsx)("div",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.certifications.join(" ⢠")})]})]}),"minimal"===f.layout&&(0,s.jsxs)("div",{style:{fontFamily:"Calibri, Arial, sans-serif",padding:"2.5cqh 2.5cqw"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 bg-white overflow-hidden flex flex-col",children:[(0,s.jsxs)("header",{style:{marginBottom:"1.5cqh",paddingBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 border-b border-gray-200 flex-shrink-0",children:[(0,s.jsx)("h1",{style:{fontSize:"4.5cqh",marginBottom:"0.5cqh",fontWeight:300,letterSpacing:"-0.02em",color:f.accent},className:"jsx-7af6f111de3886f9",children:ez.name}),(0,s.jsx)("div",{style:{fontSize:"2cqh",marginBottom:"0.5cqh",fontWeight:400},className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.title}),(0,s.jsxs)("div",{style:{fontSize:"1.6cqh"},className:"jsx-7af6f111de3886f9 flex flex-wrap gap-3",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 text-gray-500",children:ez.email}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 text-gray-500",children:ez.phone}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 text-gray-500",children:ez.location})]})]}),(0,s.jsx)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:(0,s.jsx)("p",{style:{fontSize:"1.6cqh",lineHeight:1.5},className:"jsx-7af6f111de3886f9 text-gray-700 text-justify line-clamp-3",children:ez.summary})}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",marginBottom:"1cqh",fontWeight:600,letterSpacing:"0.1em"},className:"jsx-7af6f111de3886f9 uppercase text-gray-900",children:"Experience"}),ez.experience.slice(0,3).map((e,a)=>(0,s.jsxs)("div",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between items-baseline",children:[(0,s.jsx)("span",{style:{fontSize:"1.8cqh",fontWeight:600},className:"jsx-7af6f111de3886f9 text-gray-900",children:e.company}),(0,s.jsx)("span",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-500",children:e.duration})]}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.title}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:e.bullets.slice(0,4).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.5cqh",lineHeight:1.3},className:"jsx-7af6f111de3886f9 text-gray-600 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 line-clamp-1",children:e})]},a))})]},a))]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh",paddingTop:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0 border-t border-gray-200",children:[(0,s.jsx)("h2",{style:{fontSize:"1.8cqh",marginBottom:"0.8cqh",fontWeight:600,letterSpacing:"0.1em"},className:"jsx-7af6f111de3886f9 uppercase text-gray-900",children:"Skills"}),(0,s.jsx)("p",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.skills.join(" \xb7 ")})]}),(0,s.jsxs)("section",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"1.8cqh",marginBottom:"0.5cqh",fontWeight:600,letterSpacing:"0.1em"},className:"jsx-7af6f111de3886f9 uppercase text-gray-900",children:"Education"}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.education.degree}),(0,s.jsxs)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-500",children:[ez.education.school," ⢠",ez.education.year]})]}),(0,s.jsxs)("section",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"1.8cqh",marginBottom:"0.5cqh",fontWeight:600,letterSpacing:"0.1em"},className:"jsx-7af6f111de3886f9 uppercase text-gray-900",children:"Certifications"}),(0,s.jsx)("p",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.certifications.join(" \xb7 ")})]})]}),"creative"===f.layout&&(0,s.jsxs)("div",{style:{fontFamily:"Calibri, Arial, sans-serif",padding:"2.5cqh 2.5cqw"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 bg-white overflow-hidden flex flex-col",children:[(0,s.jsxs)("header",{style:{marginBottom:"1.5cqh",paddingBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 relative border-b border-gray-200 flex-shrink-0",children:[(0,s.jsx)("h1",{style:{fontSize:"4cqh",marginBottom:"0.5cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:ez.name}),(0,s.jsx)("div",{style:{fontSize:"2cqh",marginBottom:"0.5cqh",fontWeight:500},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.title}),(0,s.jsxs)("div",{style:{fontSize:"1.6cqh"},className:"jsx-7af6f111de3886f9 flex flex-wrap gap-x-3 gap-y-1",children:[(0,s.jsxs)("span",{className:"jsx-7af6f111de3886f9 flex items-center gap-1 text-gray-500",children:[(0,s.jsx)(eS.Z,{style:{width:"2cqh",height:"2cqh",color:"#1a1a1a"}}),ez.email]}),(0,s.jsxs)("span",{className:"jsx-7af6f111de3886f9 flex items-center gap-1 text-gray-500",children:[(0,s.jsx)(eW.Z,{style:{width:"2cqh",height:"2cqh",color:"#1a1a1a"}}),ez.phone]}),(0,s.jsxs)("span",{className:"jsx-7af6f111de3886f9 flex items-center gap-1 text-gray-500",children:[(0,s.jsx)(eI.Z,{style:{width:"2cqh",height:"2cqh",color:"#1a1a1a"}}),ez.location]})]})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB"},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Summary"}),(0,s.jsx)("p",{style:{fontSize:"1.6cqh",lineHeight:1.4},className:"jsx-7af6f111de3886f9 text-gray-700 line-clamp-3",children:ez.summary})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB"},className:"jsx-7af6f111de3886f9 uppercase",children:"Experience"}),ez.experience.slice(0,2).map((e,a)=>(0,s.jsxs)("div",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between items-baseline",children:[(0,s.jsx)("span",{style:{fontSize:"1.8cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:e.title}),(0,s.jsx)("span",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-500",children:e.duration})]}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.company}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:e.bullets.slice(0,5).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.5cqh",lineHeight:1.3},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{style:{color:f.accent},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¸"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 line-clamp-1",children:e})]},a))})]},a))]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB"},className:"jsx-7af6f111de3886f9 uppercase",children:"Skills"}),(0,s.jsx)("div",{className:"jsx-7af6f111de3886f9 flex flex-wrap gap-1",children:ez.skills.map((e,a)=>(0,s.jsx)("span",{style:{fontSize:"1.5cqh",padding:"0.3cqh 1cqw",backgroundColor:"#f3f4f6",color:"#1a1a1a"},className:"jsx-7af6f111de3886f9 rounded",children:e},a))})]}),(0,s.jsxs)("section",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB"},className:"jsx-7af6f111de3886f9 uppercase",children:"Education"}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:ez.education.degree}),(0,s.jsxs)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:[ez.education.school," ⢠",ez.education.year]}
1)]}),(0,s.jsxs)("section",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"1px solid #E5E7EB"},className:"jsx-7af6f111de3886f9 uppercase",children:"Certifications"}),(0,s.jsx)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.certifications.join(" ⢠")})]})]}),"executive"===f.layout&&(0,s.jsxs)("div",{style:{fontFamily:"Calibri, Arial, sans-serif",padding:"2cqh 2.5cqw"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0 bg-white overflow-hidden relative flex flex-col",children:[(0,s.jsx)("div",{style:{fontSize:"1.5cqh",padding:"0.5cqh 1cqw",backgroundColor:"#10b981"},className:"jsx-7af6f111de3886f9 absolute top-1 right-1 rounded font-bold text-white",children:"â Recommended"}),(0,s.jsxs)("header",{style:{marginBottom:"2cqh",paddingBottom:"1.5cqh",borderBottom:"0.8cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h1",{style:{fontSize:"4cqh",marginBottom:"0.5cqh",fontWeight:700,color:f.accent},className:"jsx-7af6f111de3886f9",children:ez.name}),(0,s.jsx)("div",{style:{fontSize:"2cqh",marginBottom:"0.5cqh",fontWeight:500},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.title}),(0,s.jsxs)("div",{style:{fontSize:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex flex-wrap gap-x-4 gap-y-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.phone}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.email}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 text-gray-600",children:ez.location})]})]}),(0,s.jsxs)("section",{style:{marginBottom:"2cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.8cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"0.5cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Summary"}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:ez.summaryBullets.slice(0,3).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.5cqh",lineHeight:1.4},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9",children:e})]},a))})]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-1 min-h-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.8cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"0.5cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Professional Experience"}),ez.experience.slice(0,3).map((e,a)=>(0,s.jsxs)("div",{style:{marginBottom:"1.2cqh"},className:"jsx-7af6f111de3886f9",children:[(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 flex justify-between items-baseline",children:[(0,s.jsx)("span",{style:{fontSize:"1.7cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:e.title}),(0,s.jsx)("span",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.duration})]}),(0,s.jsx)("div",{style:{fontSize:"1.4cqh",marginBottom:"0.3cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:e.company}),(0,s.jsx)("ul",{className:"jsx-7af6f111de3886f9",children:e.bullets.slice(0,2===a?2:4).map((e,a)=>(0,s.jsxs)("li",{style:{fontSize:"1.4cqh",lineHeight:1.3},className:"jsx-7af6f111de3886f9 text-gray-700 flex items-start gap-1",children:[(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:"â¢"}),(0,s.jsx)("span",{className:"jsx-7af6f111de3886f9",children:e})]},a))})]},a))]}),(0,s.jsxs)("section",{style:{marginBottom:"1.5cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"0.5cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Technical Skills"}),(0,s.jsx)("p",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.skills.join(" ⢠")})]}),(0,s.jsxs)("section",{style:{marginBottom:"1cqh"},className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"0.5cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Education"}),(0,s.jsx)("div",{style:{fontSize:"1.4cqh",fontWeight:700},className:"jsx-7af6f111de3886f9 text-gray-900",children:ez.education.degree}),(0,s.jsxs)("div",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-600",children:[ez.education.school," ⢠",ez.education.year]}
1)]}),(0,s.jsxs)("section",{className:"jsx-7af6f111de3886f9 flex-shrink-0",children:[(0,s.jsx)("h2",{style:{fontSize:"2cqh",paddingBottom:"0.5cqh",marginBottom:"0.5cqh",fontWeight:700,letterSpacing:"0.05em",color:f.accent,borderBottom:"0.5cqh solid ".concat(f.accent)},className:"jsx-7af6f111de3886f9 uppercase",children:"Certifications"}),(0,s.jsx)("p",{style:{fontSize:"1.4cqh"},className:"jsx-7af6f111de3886f9 text-gray-700",children:ez.certifications.join(" ⢠")})]})]}),(0,s.jsx)("div",{className:"jsx-7af6f111de3886f9 absolute top-0 left-0 z-50",children:(0,s.jsxs)("div",{className:"jsx-7af6f111de3886f9 relative",children:[(0,s.jsx)("div",{style:{fontSize:"1.6cqh",padding:"0.6cqh 1.5cqw",clipPath:"polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%)"},className:"jsx-7af6f111de3886f9 bg-red-600 text-white font-bold uppercase tracking-wide shadow-md",children:f.name}),(0,s.jsx)("div",{style:{bottom:"-0.8cqh",width:"0.8cqh",height:"0.8cqh",clipPath:"polygon(0 0, 100% 0, 100% 100%)"},className:"jsx-7af6f111de3886f9 absolute left-0 bg-red-800"})]})})]})},f.id)})})})}function eO(){let e=Date.now();return[{_id:"f1",title:"Senior Software Engineer",companyName:"Google",companyLogo:"https://www.google.com/s2/favicons?domain=google.com&sz=128",postedDate:new Date(e-12e4).toISOString()},{_id:"f2",title:"GenAI Engineer",companyName:"Microsoft",companyLogo:"https://www.google.com/s2/favicons?domain=microsoft.com&sz=128",postedDate:new Date(e-3e5).toISOString()},{_id:"f3",title:"Data Scientist",companyName:"Amazon",companyLogo:"https://www.google.com/s2/favicons?domain=amazon.com&sz=128",postedDate:new Date(e-54e4).toISOString()},{_id:"f4",title:"Frontend Engineer",companyName:"Meta",companyLogo:"https://www.google.com/s2/favicons?domain=meta.com&sz=128",postedDate:new Date(e-84e4).toISOString()},{_id:"f5",title:"ML Engineer",companyName:"Nvidia",companyLogo:"https://www.google.com/s2/favicons?domain=nvidia.com&sz=128",postedDate:new Date(e-12e5).toISOString()},{_id:"f6",title:"Backend Engineer",companyName:"Stripe",companyLogo:"https://www.google.com/s2/favicons?domain=stripe.com&sz=128",postedDate:new Date(e-168e4).toISOString()},{_id:"f7",title:"Cloud Architect",companyName:"Salesforce",companyLogo:"https://www.google.com/s2/favicons?domain=salesforce.com&sz=128",postedDate:new Date(e-21e5).toISOString()},{_id:"f8",title:"Sr Principal Developer",companyName:"Oracle",companyLogo:"https://www.google.com/s2/favicons?domain=oracle.com&sz=128",postedDate:new Date(e-252e4).toISOString()},{_id:"f9",title:"Research Scientist, AI/ML",companyName:"OpenAI",companyLogo:"https://www.google.com/s2/favicons?domain=openai.com&sz=128",postedDate:new Date(e-33e5).toISOString()},{_id:"f10",title:"Product Manager",companyName:"Apple",companyLogo:"https://www.google.com/s2/favicons?domain=apple.com&sz=128",postedDate:new Date(e-408e4).toISOString()}]}function e_(){return(0,s.jsx)(r(),{id:"f8103a7834da4c74",children:"@-webkit-keyframes jobticker{0%{-webkit-transform:translatex(0);transform:translatex(0)}100%{-webkit-transform:translatex(-50%);transform:translatex(-50%)}}@-moz-keyframes jobticker{0%{-moz-transform:translatex(0);transform:translatex(0)}100%{-moz-transform:translatex(-50%);transform:translatex(-50%)}}@-o-keyframes jobticker{0%{-o-transform:translatex(0);transform:translatex(0)}100%{-o-transform:translatex(-50%);transform:translatex(-50%)}}@keyframes jobticker{0%{-webkit-transform:translatex(0);-moz-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}100%{-webkit-transform:translatex(-50%);-moz-transform:translatex(-50%);-o-transform:translatex(-50%);transform:translatex(-50%)}}"})}function eZ(e){let{className:a="",forceDark:t=!1}=e,{theme:i}=(0,v.F)(),[r,o]=(0,n.useState)(()=>eO()),[l,d]=(0,n.useState)(!0),c=t||"dark"===i;(0,n.useEffect)(()=>{let e=!1;function a(){fetch("/api/jobs/ticker").then(e=>e.ok?e.json():null).then(a=>{var t;!e&&(null==a?void 0:null===(t=a.jobs)||void 0===t?void 0:t.length)>=3&&(o(a.jobs),d(!1))}).catch(()=>{})}a();let t=setInterval(a,3e5);return()=>{e=!0,clearInterval(t)}},[]),(0,n.useEffect)(()=>
1{if(!l)return;let e=setInterval(()=>o(eO()),6e4);return()=>clearInterval(e)},[l]);let m=[...r,...r],f=Math.max(4*r.length,30);return(0,s.jsxs)("div",{className:"relative w-full overflow-hidden py-1 ".concat(a),children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-6 sm:w-14",style:{background:c?"linear-gradient(to right, #030303, transparent)":"linear-gradient(to right, #ffffff, transparent)"}}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-6 sm:w-14",style:{background:c?"linear-gradient(to left, #030303, transparent)":"linear-gradient(to left, #ffffff, transparent)"}}),(0,s.jsx)("div",{className:"flex flex-nowrap justify-start items-center gap-4 sm:gap-8 lg:gap-10 min-w-max",style:{animation:"jobticker ".concat(f,"s linear infinite"),willChange:"transform"},children:m.map((e,a)=>(0,s.jsx)(eG,{job:e,isDark:c},"".concat(e._id,"-").concat(a)))}),(0,s.jsx)(e_,{})]})}function eG(e){let{job:a,isDark:t}=e,[i,r]=(0,n.useState)(!1);return(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[!i&&a.companyLogo?(0,s.jsx)("img",{src:a.companyLogo,alt:a.companyName,width:40,height:40,className:"w-9 h-9 sm:w-10 sm:h-10 rounded-lg object-cover flex-shrink-0",style:{background:t?"#1e293b":"#f1f5f9"},onError:()=>r(!0),loading:"lazy"}):(0,s.jsx)("div",{className:"w-9 h-9 sm:w-10 sm:h-10 rounded-lg flex items-center justify-center text-sm font-bold flex-shrink-0 ".concat(t?"bg-[#343536] text-[#D7DADC]":"bg-gray-100 text-gray-600"),children:a.companyName.charAt(0).toUpperCase()}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("span",{className:"text-xs sm:text-sm ".concat(t?"text-[#818384]":"text-gray-500"),children:[a.companyName," \xb7 ",function(e){let a=Date.now()-new Date(e).getTime(),t=Math.floor(a/6e4),s=Math.floor(a/36e5),i=Math.floor(a/864e5);return t<2?"just now":t<60?"".concat(t," minute").concat(1===t?"":"s"," ago"):s<24?"".concat(s," hour").concat(1===s?"":"s"," ago"):i<7?"".concat(i,"d ago"):"".concat(Math.floor(i/7),"w ago")}(a.postedDate)]}),(0,s.jsx)("span",{className:"text-sm sm:text-base font-medium max-w-[160px] sm:max-w-[220px] truncate ".concat(t?"text-white":"text-gray-900"),children:a.title})]})]})}var eU=t(10795),eH=t(70088),eJ=t(89561),eK=t(53495),eQ=t(61258),eY=t(58220);function eV(e){let{rating:a,isDark:t,size:i="sm"}=e,r=Math.min(5,Math.max(0,Math.round(a))),n="md"===i?"h-3.5 w-3.5":"sm"===i?"h-3 w-3":"h-2.5 w-2.5";return(0,s.jsx)("span",{className:"flex items-center gap-[2px]","aria-label":"".concat(r," out of 5 stars"),children:Array.from({length:5},(e,a)=>(0,s.jsx)(eH.Z,{className:"".concat(n," ").concat(a<r?"fill-amber-400 text-amber-400":t?"fill-white/10 text-white/10":"fill-gray-100 text-gray-200")},a))})}function eX(){return(0,s.jsx)(r(),{id:"821378881ec7e11b",children:"@-webkit-keyframes reviewticker{0%{-webkit-transform:translatey(0);transform:translatey(0)}100%{-webkit-transform:translatey(-50%);transform:translatey(-50%)}}@-moz-keyframes reviewticker{0%{-moz-transform:translatey(0);transform:translatey(0)}100%{-moz-transform:translatey(-50%);transform:translatey(-50%)}}@-o-keyframes reviewticker{0%{-o-transform:translatey(0);transform:translatey(0)}100%{-o-transform:translatey(-50%);transform:translatey(-50%)}}@keyframes reviewticker{0%{-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0)}100%{-webkit-transform:translatey(-50%);-moz-transform:translatey(-50%);-o-transform:translatey(-50%);transform:translatey(-50%)}}"})}function e$(e){var a;let{className:t="",embedInPreview:i=!1,onHasReviews:r}=e,{theme:o}=(0,v.F)(),l="dark"===o,[d,c]=(0,n.useState)([]),[m,f]=(0,n.useState)(!0),[u,h]=(0,n.useState)(!1),[x,b]=(0,n.useState)(0),[y,j]=(0,n.useState)(1),w=(0,n.useCallback)(async()=>{f(!0);try{let e=await fetch("/api/reviews?limit=14"),a=await e.json();if(!e.ok||!a.success)throw Error("load_failed");c(Array.isArray(a.reviews)?a.reviews.map(e=>(function(e){let a=e.photoUrls,t=Array.isArray(a)&&a.length>0?a.map(e=>
1String(e||"").trim()).filter(Boolean):String(e.photoUrl||"").trim()?[String(e.photoUrl).trim()]:[];return{id:String(e.id||""),displayName:String(e.displayName||""),roleTitle:String(e.roleTitle||""),rating:Number(e.rating)||0,body:String(e.body||""),photoUrl:t[0]||"",photoUrls:t,companyName:String(e.companyName||""),companyDomain:String(e.companyDomain||"")}})(e)):[])}catch(e){c([])}finally{f(!1)}},[]);(0,n.useEffect)(()=>{w()},[w]),(0,n.useEffect)(()=>{m||null==r||r(d.length>0)},[m,d.length,r]);let k=(0,n.useCallback)(e=>{j(e),b(a=>{let t=a+e;return t<0?d.length-1:t>=d.length?0:t})},[d.length]),N=(0,n.useCallback)(e=>{e!==x&&(j(e>x?1:-1),b(e))},[x]),F=(0,n.useCallback)(e=>{let a=d.findIndex(a=>a.id===e);a>=0&&b(a),h(!0)},[d]),S=d.length>0?Math.max(2,Math.ceil(8/d.length)):2,A=Array.from({length:S%2==0?S:S+1},()=>d).flat(),D=Math.max(4*d.length,14),C=l?"border-[#2E2E2F]":"border-gray-200",E=l?"bg-gradient-to-b from-[#1A1A1C] to-[#141415]":"bg-gradient-to-b from-[#fafbfc] to-white",q=l?"bg-[#0F0F10]":"bg-[#F6F7F8]",B=l?"shadow-[0_4px_24px_rgba(0,0,0,0.55)]":"shadow-[0_2px_12px_rgba(0,0,0,0.10),0_1px_3px_rgba(0,0,0,0.07)]",T=l?"shadow-[0_6px_32px_rgba(255,69,0,0.18),0_2px_12px_rgba(0,0,0,0.55)] ring-1 ring-[#FF4500]/25":"shadow-[0_8px_28px_rgba(255,69,0,0.13),0_2px_8px_rgba(0,0,0,0.10)] ring-1 ring-[#FF4500]/25",W=l?"#0F0F10":"#F6F7F8";if(m)return(0,s.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-xl border ".concat(C," ").concat(q," ").concat(B," ").concat(t),children:[(0,s.jsx)("div",{className:"shrink-0 flex items-center px-2.5 py-1.5 border-b ".concat(l?"border-[#2A2A2C] bg-[#161618]/80":"border-gray-200 bg-gray-50"),children:(0,s.jsx)("span",{className:"text-[8.5px] font-bold uppercase tracking-[0.22em] text-[#FF4500]",children:i?"Stories":"Member Stories"})}),(0,s.jsxs)("div",{className:"flex flex-1 items-center justify-center gap-1.5",children:[(0,s.jsx)("div",{className:"h-2 w-2 animate-pulse rounded-full bg-[#FF4500]/50"}),(0,s.jsx)("span",{className:"text-[9px] ".concat(l?"text-white/30":"text-gray-400"),children:"Loadingâ¦"})]})]});if(0===d.length)return null;let I=d[x];return(0,s.jsxs)("div",{className:"relative flex h-full w-full flex-col overflow-hidden rounded-xl border [container-type:size] ".concat(C," ").concat(q," ").concat(B," transition-shadow duration-300 ").concat(u?T:""," ").concat(t),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[(0,s.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-2.5 py-1.5 border-b ".concat(l?"border-[#2A2A2C] bg-[#161618]/80":"border-gray-200 bg-gray-50"),children:[(0,s.jsx)("span",{className:"text-[clamp(8.5px,2.2cqw,11px)] font-bold uppercase tracking-[0.22em] text-[#FF4500]",children:i?"Stories":"Member Stories"}),(0,s.jsx)("span",{className:"text-[clamp(8.5px,2.2cqw,11px)] font-semibold tabular-nums ".concat(l?"text-white/28":"text-gray-400"),children:d.length})]}),(0,s.jsxs)("div",{className:"relative flex-1 min-h-0 overflow-hidden [container-type:size]",children:[(0,s.jsx)("div",{className:"flex flex-col gap-3 py-2",style:{animation:"reviewticker ".concat(D,"s linear infinite"),animationPlayState:u?"paused":"running",willChange:"transform"},children:A.map((e,a)=>(0,s.jsxs)("div",{className:"relative mx-1 shrink-0 cursor-default rounded-lg border px-3 py-3 flex flex-col justify-between min-h-[clamp(7.5rem,calc((100cqh-2.25rem)/2.75),18rem)] ".concat(l?"border-[#2E2E2F] bg-[#1A1A1C]":"border-gray-200 bg-white"),onMouseEnter:()=>F(e.id),children:[e.companyDomain||e.companyName?(0,s.jsx)("div",{className:"absolute right-2 top-2 z-[1]",children:(0,s.jsx)(eY.Z,{domain:e.companyDomain,label:e.companyName||e.companyDomain,className:"h-7 w-7 shrink-0 sm:h-8 sm:w-8",theme:l?"dark":"light"})}):null,(0,s.jsx)("p",{className:"mb-2 line-clamp-4 font-serif text-[clamp(11px,3.2cqw,14px)] leading-snug pr-10 ".concat(l?"text-[#C8CACC]/75":"text-gray-700"),children:e.body}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,s.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full ring-[1px] sm:h-9 sm:w-9 ".concat(l?"bg-white/5 ring-[#FF4500]/30":"bg-black/[0.04] ring-[#FF4500]/20"),children:e.photoUrl?(0,s.jsx)("img",{src:e.photoUrl,alt:"",className:"h-full w-full object-cover"}):(0,s.jsx)(eJ.Z,{className:"h-4 w-4 ".concat(l?"text-white/30":"text-gray-400"),"aria-hidden":!0})}),(0,s.jsx)("p",{className:"truncate text-[clamp(10px,2.8cqw,13px)] font-semibold leading-tight ".concat(l?"text-white/65":"text-gray-600"),children:e.displayName})]}),(0,s.jsx)(eV,{rating:e.rating,isDark:l,size:"sm"})]})]},"".concat(e.id,"-").concat(a)))}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-6 z-10",style:{background:"linear-gradient(to bottom, ".concat(W,", transparent)")}}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-6 z-10",style:{background:"linear-gradient(to top, ".concat(W,", transparent)")}}),(0,s.jsx)(g.M,{children:u&&I&&(0,s.jsxs)(p.E.div,{initial:{opacity:0,scale:.96}
1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.28,ease:[.32,.72,0,1]},className:"absolute inset-0 z-20 flex flex-col overflow-hidden ".concat(E),children:[(0,s.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-2.5 py-1.5 border-b ".concat(l?"border-[#2A2A2C] bg-[#161618]/80":"border-gray-200 bg-gray-50"),children:[(0,s.jsx)("span",{className:"text-[8.5px] font-bold uppercase tracking-[0.22em] text-[#FF4500]",children:i?"Stories":"Member Stories"}),(0,s.jsxs)("span",{className:"flex items-center gap-[3px] text-[8.5px] font-semibold tabular-nums ".concat(l?"text-white/28":"text-gray-400"),children:[(0,s.jsx)("span",{className:"h-1 w-1 rounded-full bg-[#FF4500]/50"}),x+1,"â/â",d.length]})]}),(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"shrink-0 flex items-start gap-2 border-b px-3 pb-2 pt-3 ".concat(l?"border-white/[0.07]":"border-gray-200"),children:[(0,s.jsx)("div",{className:"relative flex h-11 w-11 shrink-0 items-center justify-center overflow-hidden rounded-full ring-2 ring-offset-[2px] ".concat(l?"bg-white/5 ring-[#FF4500]/45 ring-offset-[#1A1A1C]":"bg-black/[0.04] ring-[#FF4500]/35 ring-offset-white"),children:I.photoUrl?(0,s.jsx)("img",{src:I.photoUrl,alt:"",className:"h-full w-full object-cover"}):(0,s.jsx)(eJ.Z,{className:"h-5 w-5 ".concat(l?"text-white/30":"text-gray-400"),"aria-hidden":!0})}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center gap-0.5 pt-0.5",children:[(0,s.jsx)(eV,{rating:I.rating,isDark:l,size:"md"}),(0,s.jsxs)("span",{className:"text-[10px] font-bold tabular-nums ".concat(l?"text-amber-400/85":"text-amber-600"),children:[Math.round(Math.min(5,Math.max(0,I.rating))),".0"]}),I.companyName||I.companyDomain?(0,s.jsx)("span",{className:"max-w-full truncate text-center text-[9px] font-semibold ".concat(l?"text-white/45":"text-gray-500"),children:null!==(a=I.companyName)&&void 0!==a?a:I.companyDomain}):null]}),(0,s.jsx)(eY.Z,{domain:I.companyDomain,label:I.companyName||I.companyDomain,className:"h-11 w-11 shrink-0",theme:l?"dark":"light"})]}),(0,s.jsxs)("div",{className:"relative min-h-0 flex-1 overflow-hidden px-3 pb-1 pt-2",children:[(0,s.jsx)("span",{className:"pointer-events-none absolute left-1 top-1 select-none font-serif text-[3.2rem] leading-none text-[#FF4500]/[0.10]","aria-hidden":!0,children:"â"}),(0,s.jsx)(g.M,{custom:y,initial:!1,mode:"wait",children:(0,s.jsx)(p.E.div,{custom:y,variants:{enter:e=>({opacity:0,x:e>0?20:-20}),center:{opacity:1,x:0},exit:e=>({opacity:0,x:e>0?-20:20})},initial:"enter",animate:"center",exit:"exit",transition:{duration:.22,ease:[.25,.1,.25,1]},className:"relative z-[1] h-full overflow-y-auto pl-4 pr-1 scrollbar-none",children:(0,s.jsx)("p",{className:"font-serif text-[11.5px] leading-[1.6] tracking-[0.005em] ".concat(l?"text-[#DADCDF]/88":"text-gray-800"),children:I.body})},x)})]}),I.photoUrls.length>1?(0,s.jsxs)("div",{className:"shrink-0 border-t px-3 py-2 ".concat(l?"border-white/[0.07] bg-black/15":"border-gray-200 bg-gray-50/90"),children:[(0,s.jsx)("p",{className:"mb-1.5 text-[8px] font-bold uppercase tracking-[0.18em] text-[#FF4500]/85",children:"Gallery"}),(0,s.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-0.5 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:I.photoUrls.slice(1).map((e,a)=>(0,s.jsx)("img",{src:e,alt:"",className:"h-14 w-14 shrink-0 rounded-lg object-cover ring-1 ".concat(l?"ring-white/10":"ring-black/10")},a))})]}):null]}),(0,s.jsx)("div",{className:"shrink-0 border-t px-3 py-2 ".concat(l?"border-white/[0.07] bg-black/[0.2]":"border-gray-200 bg-gray-50"),children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[9px] font-semibold ".concat(l?"bg-emerald-500/15 text-emerald-300 ring-1 ring-emerald-500/20":"bg-emerald-50 text-emerald-700 ring-1 ring-emerald-200"),children:[(0,s.jsx)(eK.Z,{className:"h-2.5 w-2.5"}),"Verified Member"]}),(0,s.jsxs)("div",{className:"min-w-0 text-right",children:[(0,s.jsx)("p",{className:"truncate text-[11px] font-semibold leading-tight ".concat(l?"text-white/90":"text-gray-900"),children:I.displayName}),I.roleTitle?(0,s.jsx)("p",{className:"truncate text-[9px] font-medium leading-tight ".concat(l?"text-white/40":"text-gray-500"),children:I.roleTitle}):(0,s.jsx)("p",{className:"text-[8px] font-semibold uppercase tracking-wider text-[#FF4500]/65",children:"Member"})]})]})}),d.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>k(-1),className:"absolute left-0.5 top-[44%] z-30 -translate-y-1/2 flex h-5 w-5 items-center justify-center rounded-full shadow-md transition-colors ".concat(l?"bg-[#252527]/95 text-white/55 hover:bg-[#FF4500] hover:text-white":"bg-white/95 text-gray-400 hover:bg-[#FF4500] hover:text-white"),"aria-label":"Previous review",children:(0,s.jsx)(eQ.Z,{className:"h-3 w-3"})}),(0,s.jsx)("button",{type:"button",onClick:()=>k(1),className:"absolute right-0.5 top-[44%] z-30 -translate-y-1/2 flex h-5 w-5 items-center justify-center rounded-full shadow-md transition-colors ".concat(l?"bg-[#252527]/95 text-white/55 hover:bg-[#FF4500] hover:text-white":"bg-white/95 text-gray-400 hover:bg-[#FF4500] hover:text-white"),"aria-label":"Next review",children:(0,s.jsx)(Y.Z,{className:"h-3 w-3"})})]}),d.length>1&&(0,s.jsxs)("div",{className:"shrink-0 flex items-center justify-center gap-[5px] py-1.5 overflow-hidden",children:[d.slice(0,7).map((e,a)=>(0,s.jsx)("button",{type:"button",onClick:()=>N(a),className:"rounded-full transition-all duration-300 ".concat(a===x?"h-1.5 w-4 bg-[#FF4500]":l?"h-1.5 w-1.5 bg-white/15 hover:bg-white/38":"h-1.5 w-1.5 bg-black/10 hover:bg-black/28"),"aria-label":"Go to story ".concat(a+1)},a)),d.length>7&&(0,s.jsxs)("span",{className:"ml-0.5 text-[7.5px] ".concat(l?"text-white/22":"text-gray-400"),children:["+",d.length-7]})]})]})})]}),(0,s.jsx)(eX,{})]})}let e0=k()(()=>Promise.all([t.e(4948),t.e(3755),t.e(506)]).then(t.bind(t,70506)).then(e=>
1e.ColoredResume),{loadableGenerated:{webpack:()=>[70506]},ssr:!1}),e1=k()(()=>Promise.all([t.e(5062),t.e(63),t.e(3409)]).then(t.bind(t,73409)).then(e=>e.DraggableResumeEditor),{loadableGenerated:{webpack:()=>[73409]},ssr:!1}),e5=k()(()=>t.e(5666).then(t.bind(t,25666)),{loadableGenerated:{webpack:()=>[25666]},ssr:!1}),e4="tr_resume_archive_job_id",e3="tr_resume_archive_resume_id";function e2(e,a){var t,s,i,r,n,o,l,d,c,m,f,u,h,x,b,p,g,y,v,j,w,k,N,F,S,A,D,C,E,q,B,T,W,I;if(!e)return null;let z=e.atsAnalysis||e.v3Scoring||e,R=null!==(g=null!==(p=null!==(b=null!==(x=null!==(h=null==z?void 0:z.totalScore)&&void 0!==h?h:e.matchScore)&&void 0!==x?x:null===(t=e.resume)||void 0===t?void 0:t.matchScore)&&void 0!==b?b:null===(i=e.resume)||void 0===i?void 0:null===(s=i._meta)||void 0===s?void 0:s.matchScore)&&void 0!==p?p:a)&&void 0!==g?g:0,P=e.matchRate||(null==z?void 0:z.matchRate)||null,L=e.breakdown||(null==z?void 0:z.v3Breakdown)||(null==z?void 0:z.breakdown)||{},M={hardSkillMatch:null!==(y=L.hardSkillMatch)&&void 0!==y?y:0,jobTitleMatch:null!==(v=L.jobTitleMatch)&&void 0!==v?v:0,measurableResults:null!==(j=L.measurableResults)&&void 0!==j?j:0,keywordPlacement:null!==(k=null!==(w=L.keywordPlacement)&&void 0!==w?w:L.keywordContext)&&void 0!==k?k:0,searchability:null!==(F=null!==(N=L.searchability)&&void 0!==N?N:L.formatCompliance)&&void 0!==F?F:0,skillDiversity:null!==(S=L.skillDiversity)&&void 0!==S?S:0},O=(null==z?void 0:z.penalties)||(null==z?void 0:z.v3Penalties)||{},_={missingCriticalSkills:null!==(D=null!==(A=O.missingCriticalSkills)&&void 0!==A?A:O.missingHardSkills)&&void 0!==D?D:0,keywordStuffing:null!==(C=O.keywordStuffing)&&void 0!==C?C:0,genericContent:null!==(E=O.genericContent)&&void 0!==E?E:0,missingMetrics:null!==(B=null!==(q=O.missingMetrics)&&void 0!==q?q:O.noMetrics)&&void 0!==B?B:0},Z=[];for(let a of[null==z?void 0:null===(r=z.details)||void 0===r?void 0:r.skillsFound,null==z?void 0:z.skillsFound,e.skillsFound])if(Array.isArray(a)&&a.length>0&&(null===(T=a[0])||void 0===T?void 0:T.skill)){Z=a.filter(e=>null==e?void 0:e.skill);break}if(0===Z.length){for(let a of[null==z?void 0:z.matchedKeywords,null==z?void 0:null===(W=z.details)||void 0===W?void 0:W.matchedKeywords,e.matchedKeywords])if(Array.isArray(a)&&a.length>0){Z=a.map(e=>({skill:"string"==typeof e?e:(null==e?void 0:e.skill)||(null==e?void 0:e.keyword)||String(e),matchType:"exact",location:"resume",frequency:"object"==typeof e&&(null==e?void 0:e.frequency)||1})).filter(e=>e.skill);break}}if(0===Z.length){let e=(null==z?void 0:z.keywordDetails)||(null==z?void 0:null===(I=z.details)||void 0===I?void 0:I.keywordDetails);Array.isArray(e)&&(Z=e.filter(e=>(null==e?void 0:e.found)||(null==e?void 0:e.matched)).map(e=>({skill:e.skill||e.keyword||"",matchType:e.variantType||e.matchType||"exact",location:"resume",frequency:e.frequency||1})).filter(e=>e.skill))}let G=[];for(let e of[null==z?void 0:null===(n=z.details)||void 0===n?void 0:n.skillsMissing,null==z?void 0:z.skillsMissing,null==z?void 0:z.missedKeywords,null==z?void 0:null===(o=z.details)||void 0===o?void 0:o.missedKeywords])if(Array.isArray(e)&&e.length>0){G=e.filter(e=>"string"==typeof e);break}let U=(null==z?void 0:null===(l=z.details)||void 0===l?void 0:l.criticalSkillsFound)||(null==z?void 0:z.criticalSkillsFound)||[],H=(null==z?void 0:null===(d=z.details)||void 0===d?void 0:d.criticalSkillsMissing)||(null==z?void 0:z.criticalSkillsMissing)||[],J=(null==z?void 0:null===(c=z.details)||void 0===c?void 0:c.sectionScores)||(null==z?void 0:z.sectionScores)||{summary:0,experience:0,skills:0},K=(null==z?void 0:null===(m=z.details)||void 0===m?void 0:m.jobTitleMatch)||(null==z?void 0:z.jobTitleMatch)||{found:!1,variant:null,location:null},Q=(null==z?void 0:z.recommendations)||[];return{totalScore:"number"==typeof R?Math.round(R):0,matchRate:P,breakdown:M,penalties:_,details:{skillsFound:Z,skillsMissing:G,criticalSkillsFound:U,criticalSkillsMissing:H,jobTitleMatch:K,metricsCount:(null==z?void 0:null===(f=z.details)||void 0===f?void 0:f.metricsCount)||(null==z?void 0:z.metricsCount)||0,keywordDensity:(null==z?void 0:null===(u=z.details)||void 0===u?void 0:u.ke
1ywordDensity)||(null==z?void 0:z.keywordDensity)||e.keywordDensity||0,sectionScores:J},recommendations:Q}}function e6(){var e,a,i,d,f,w,k,T,W,R,P,_,Z,H,J,Q;let{data:Y,status:X}=(0,o.useSession)(),{theme:$}=(0,v.F)(),ee=(0,l.useRouter)(),[es,ei]=(0,n.useState)(!1),[er,en]=(0,n.useState)(!1),[eo,el]=(0,n.useState)(1),[ed,ef]=(0,n.useState)(""),[eu,eb]=(0,n.useState)("checking"),[eq,eB]=(0,n.useState)("ats-professional"),[eT,eW]=(0,n.useState)("none"),[eI,ez]=(0,n.useState)("calibri"),[eR,eP]=(0,n.useState)("medium"),[eL,eO]=(0,n.useState)(!1),[e_,eG]=(0,n.useState)(!1),[eH,eJ]=(0,n.useState)(null),[eK,eQ]=(0,n.useState)(null),[eY,eV]=(0,n.useState)(null),[eX,e6]=(0,n.useState)([]),[e8,e7]=(0,n.useState)(null),[e9,ae]=(0,n.useState)(null),[aa,at]=(0,n.useState)(!1),[as,ai]=(0,n.useState)(null),[ar,an]=(0,n.useState)([]),[ao,al]=(0,n.useState)(null),[ad,ac]=(0,n.useState)([]),[am,af]=(0,n.useState)(null),[au,ah]=(0,n.useState)(!1),[ax,ab]=(0,n.useState)([]),[ap,ag]=(0,n.useState)(!1),[ay,av]=(0,n.useState)(!1),[aj,aw]=(0,n.useState)(null),[ak,aN]=(0,n.useState)(null),[aF,aS]=(0,n.useState)(null),[aA,aD]=(0,n.useState)(null),[aC,aE]=(0,n.useState)(null),[aq,aB]=(0,n.useState)(!1),[aT,aW]=(0,n.use
1State)(null),[aI,az]=(0,n.useState)(0),[aR,aP]=(0,n.useState)(""),aL=(0,n.useRef)(null),aM=(0,n.useRef)(!0),aO=(0,n.useRef)(null),[a_,aZ]=(0,n.useState)(!1),[aG,aU]=(0,n.useState)(void 0),[aH,aJ]=(0,n.useState)(void 0),[aK,aQ]=(0,n.useState)(!1),[aY,aV]=(0,n.useState)(""),[aX,a$]=(0,n.useState)("resume"),[a0,a1]=(0,n.useState)(null),[a5,a4]=(0,n.useState)(!1),[a3,a2]=(0,n.useState)("resume"),[a6,a8]=(0,n.useState)(null),[a7,a9]=(0,n.useState)(!1),[te,ta]=(0,n.useState)(null),[tt,ts]=(0,n.useState)(!1),[ti,tr]=(0,n.useState)(0),[tn,to]=(0,n.useState)(!1),[tl,td]=(0,n.useState)(""),[tc,tm]=(0,n.useState)(!1),[tf,tu]=(0,n.useState)(0),[th,tx]=(0,n.useState)(3),[tb,tp]=(0,n.useState)("free"),[tg,ty]=(0,n.useState)(0),[tv,tj]=(0,n.useState)(null),[tw,tk]=(0,n.useState)(!1),[tN,tF]=(0,n.useState)(null),[tS,tA]=(0,n.useState)(null),[tD,tC]=(0,n.useState)(!1),[tE,tq]=(0,n.useState)(null),[tB,tT]=(0,n.useState)(!1),[tW,tI]=(0,n.useState)(0),[tz,tR]=(0,n.useState)(0),tP=(0,n.useMemo)(()=>{if(!eK)return!1;if(tW>tz)return!0;if(!ak)return!1;let e=aa&&as?as:eK,a=e?D(e):null;return!!a&&a!==ak},[eK,as,aa,ak,tW,tz]);(0,n.useEffect)(()=>{let{success:e,session_id:a,canceled:t}=ee.query;if("true"===t){let e="last_cancel_shown",a=sessionStorage.getItem(e);(a?Date.now()-parseInt(a):1/0)>5e3&&(sessionStorage.setItem(e,Date.now().toString()),h.default.error("Subscription cancelled. No charges were made.",{duration:4e3,icon:(0,b.q)("wave")})),ee.replace("/create-resume",void 0,{shallow:!0});return}if("true"===e&&a){let e="checkout_success_".concat(a);sessionStorage.getItem(e)||sessionStorage.setItem(e,"true"),ty(e=>e+1),ee.replace("/create-resume",void 0,{shallow:!0})}},[ee.query,ee]),(0,n.useEffect)(()=>{},[eK,eo]);let[tL,tM]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e,a;if(eK){try{let e=D(eK);e&&!ak&&aN(e)}catch(e){}if(!aj){let a=(null==eK?void 0:null===(e=eK._meta)||void 0===e?void 0:e.originalJD)||(null==eK?void 0:eK.originalJD)||null;ed&&ed.trim()?aw(ed.trim()):a&&a.trim()&&(aw(a.trim()),aB(!0))}try{let e=eK&&(eK.summary||(null===(a=eK.experiences)||void 0===a?void 0:a.length)),t="number"==typeof(null==eK?void 0:eK.matchScore)&&eK.matchScore>0;!tL&&e&&t&&!au&&(tM(!0),av(!0),(async()=>{try{await t3({persist:!1,overwrite:!1})}catch(e){(0,A.Ki)("Background rescore failed",e)}finally{av(!1)}})())}catch(e){}}},[eK,ed,ak,aj,tL,ao,e9,au]),(0,n.useEffect)(()=>{ei(!0)},[]),(0,n.useEffect)(()=>{fetch("/api/reviews?limit=1").then(e=>e.json()).then(e=>{en(e.success&&Array.isArray(e.reviews)&&e.reviews.length>0)}).catch(()=>en(!1))},[]),(0,n.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),(0,n.useEffect)(()=>{localStorage.removeItem("pendingJobDescription"),localStorage.removeItem("generatedResume"),localStorage.removeItem("resumeMatchScore"),localStorage.removeItem("resumeSuggestions"),el(1),ef(""),eQ(null),eV(null),e6([]),e7(null),ae(null),al(null),at(!1),ai(null),eO(!1),tk(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),ta(null),tr(0),ts(!1)},[]),(0,n.useEffect)(()=>{let{step:e}=ee.query;if(!e)return;let a=parseInt(Array.isArray(e)?e[0]:String(e),10);if(Number.isFinite(a)&&!(a<1)){1===a?(el(1),ef(""),eQ(null),eV(null),e6([]),e7(null),ae(null),al(null),at(!1),ai(null),eO(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),ta(null),tr(0),ts(!1)):el(a);try{ee.replace("/create-resume",void 0,{shallow:!0})}catch(e){(0,A.Ki)("Failed to clean step query param:",e)}}},[ee.query.step]);let tO=(0,n.useCallback)(async(e,a)=>{let t=a||eK;if(!t)return;let s=async()=>{var a,s,i,r;let n=(null===(a=t.personalInfo)||void 0===a?void 0:a.targetRole)||(null===(s=t.personalInfo)||void 0===s?void 0:s.fullName)||"Tailored role",o="";try{o=JSON.parse(sessionStorage.getItem("last_applied_job_meta")||"{}").companyName||""}catch(e){}let l=tN||void 0;l||(l=sessionStorage.getItem("last_applied_job")||sessionStorage.getItem(e4)||void 0);let d=tS||void 0;d||(d=sessionStorage.getItem(e3)||void 0);let c=(null==ed?void 0:ed.trim())||(null===(r=t._meta)||void 0===r?void 0:null===(i=r.originalJD)||void 0===i?void 0:i.trim())||"",m=await q({jobId:l,existingResumeId:d,jobTitle:n,companyName:o,jobDescription:c||void 0,content:t,template:eq,matchScore:"number"==typeof(null==t?void 0:t.matchScore)?t.matchScore:null!=eY?eY:void 0,pdfUrl:e,fontSchemeId:eI,colorSchemeId:eT,fontSizeScheme:eR,confirmed:!1});m.ok&&(m.jobId&&(tF(m.jobId),sessionStorage.setItem(e4,m.jobId)),m.resumeId&&(tA(m.resumeId),sessionStorage.setItem(e3,m.resumeId)))};aO.current&&await aO.current;let i=s();aO.current=i;try{await i}finally{aO.current===i&&(aO.current=null)}},[eK,ed,eq,eY,eI,eT,eR,tN,tS]);(0,n.useEffect)(()=>
1{try{let e=null,a=window.location.hash||"",t=/(?:^|[#&])tr_handoff=([^&]+)/.exec(a);if(t)try{let a=decodeURIComponent(t[1]);e=decodeURIComponent(escape(atob(a)));let s=new URL(window.location.href);s.hash="",window.history.replaceState({},"",s.toString())}catch(e){(0,A.Ki)("Failed to decode extension handoff hash",e)}if(e||(e=sessionStorage.getItem("tr_autoapply_handoff")),!e)return;let s=JSON.parse(e);if(sessionStorage.removeItem("tr_autoapply_handoff"),!s||!s.resume&&!s.coverLetter)return;if(s.jobDescription&&ef(String(s.jobDescription)),s.resume){let e=(0,ey.sortGeneratedResume)(s.resume),a={...e,_meta:{...e._meta||{},originalJD:s.jobDescription||"",generatedAt:s.generatedAt||new Date().toISOString()}};eQ(a),ai(a),tO(void 0,a)}"number"==typeof s.matchScore&&eV(Math.round(s.matchScore)),s.coverLetter&&(a1(String(s.coverLetter)),a8(String(s.coverLetter))),s.coverLetter&&s.resume?a$("both"):s.coverLetter?a$("cover-letter"):a$("resume"),a2(s.coverLetter&&!s.resume?"cover-letter":"resume"),el(4)}catch(e){(0,A.Ki)("Failed to hydrate from auto-apply handoff:",e)}},[]);let t_=(0,n.useCallback)(()=>4===eo&&!!eK&&!tw,[eo,eK,tw]);(0,n.useEffect)(()=>{if(4!==eo||!eK||tw)return;let e=e=>(e.preventDefault(),e.returnValue="Your resume has not been downloaded. Are you sure you want to leave?",e.returnValue),a=()=>{window.history.pushState(null,"",window.location.href),tq(()=>()=>{tk(!0),window.history.back()}),tC(!0)};return window.history.pushState(null,"",window.location.href),window.addEventListener("beforeunload",e),window.addEventListener("popstate",a),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("popstate",a)}},[eo,eK,tw]),(0,n.useEffect)(()=>{if(4!==eo||!eK||tw)return;let e=!1,a=a=>{if(!e&&a!==ee.asPath)throw tq(()=>()=>{e=!0,ee.push(a)}),tC(!0),"Navigation blocked - awaiting user confirmation"},t=e=>{if("Navigation blocked - awaiting user confirmation"===e)return};return ee.events.on("routeChangeStart",a),ee.events.on("routeChangeError",t),()=>{ee.events.off("routeChangeStart",a),ee.events.off("routeChangeError",t)}},[eo,eK,tw,ee]);let tZ=(0,n.useCallback)(()=>{tk(!0),tE&&(tE(),tq(null))},[tE]),tG=(0,n.useCallback)(e=>{t_()?(tq(()=>e),tC(!0)):e()},[t_]);(0,n.useEffect)(()=>{localStorage.setItem("selectedTemplate",eq),localStorage.setItem("selectedColor",eT),localStorage.setItem("selectedFont",eI),localStorage.setItem("selectedFontSize",eR)},[eq,eT,eI,eR]);let tU=()=>{switch(eo){case 1:return ed.trim().length>100;case 2:return"complete"===eu;case 3:return!0;case 4:return!!eK;default:return!1}};(0,n.useEffect)(()=>{if(2===eo){var e;if(!Y){eb("missing");return}(null==Y?void 0:null===(e=Y.user)||void 0===e?void 0:e.email)&&tH()}},[eo,Y]),(0,n.useEffect)(()=>{let e=localStorage.getItem("postLoginRedirect"),a=localStorage.getItem("loginJD");Y&&e&&a&&(ef(a),el(2),localStorage.removeItem("postLoginRedirect"),localStorage.removeItem("loginJD"))},[Y]),(0,n.useEffect)(()=>{t.e(7097).then(t.bind(t,37097)).then(e=>{let{consumePrefill:a}=e,t=a();(null==t?void 0:t.jd)&&t.jd.trim().length>=50&&(ef(t.jd),el(2))}).catch(()=>{})},[]);let tH=async()=>{eb("checking");let e=setTimeout(()=>{eb("missing"),h.default.error("Connection timeout. Please try again.",{duration:4e3,style:{maxWidth:"400px"}})},1e4);try{var a,t,s;let i=await fetch("/api/check-profile");if(clearTimeout(e),401===i.status){eb("missing");return}let r=await i.json();r.exists&&(null===(a=r.profile.personal)||void 0===a?void 0:a.fullName)&&(null===(t=r.profile.experiences)||void 0===t?void 0:t.length)>0?(eb("complete"),r.profile.certifications&&Array.isArray(r.profile.certifications)&&ab(r.profile.certifications)):r.exists?(eb("incomplete"),(null===(s=r.profile)||void 0===s?void 0:s.certifications)&&Array.isArray(r.profile.certifications)&&ab(r.profile.certifications),h.default.error("Please complete your profile first",{duration:4e3,style:{maxWidth:"400px"}})):(eb("missing"),h.default.error("Profile not found. Please create one first.",{duration:4e3,style:{maxWidth:"400px"}}))}catch(a){clearTimeout(e),console.error("Profile check error:",a),eb("missing"),h.default.error("Failed to load profile. Please try again.",{duration:4e3,style:{maxWidth:"400px"}})}},tJ=(0,n.useCallback)(async(e,a)=>{let t=0,s=0;
1aL.current=new AbortController;let i=aL.current.signal,r=async()=>{if(!aM.current||i.aborted)return{success:!1,error:"Polling cancelled",cancelled:!0};try{t++;let n=new AbortController,o=setTimeout(()=>n.abort(),1e4),l=await fetch("/api/ai/resume-job-status?jobId=".concat(e),{signal:n.signal});if(clearTimeout(o),!aM.current||i.aborted)return{success:!1,error:"Polling cancelled",cancelled:!0};if(!l.ok)throw Error("HTTP ".concat(l.status,": ").concat(l.statusText));let d=await l.json();if(s=0,aM.current&&(d.progress&&az(d.progress),d.currentStep)){aP(d.currentStep);let e=d.progress||0;h.default.loading("".concat(d.currentStep),{id:a,icon:(0,b.q)(e<30?"search":e<50?"thinking":e<85?"briefcase":e<95?"chart":"sparkle"),style:{maxWidth:"420px"}})}if("completed"===d.status&&d.success)return aM.current&&(aW(null),az(100),aP("Resume ready!")),{success:!0,data:d};if("failed"===d.status)return aM.current&&aW(null),console.error("â Resume generation failed:",d.error),{success:!1,error:d.error||"Generation failed",canRetry:!1!==d.canRetry};if(t>=240)return console.warn("â±ï¸ Polling timeout reached after",t,"polls"),aM.current&&aW(null),{success:!1,error:"Generation is taking longer than expected. Please try again.",canRetry:!0};let c=d.progress||0,m=c<30?1500:c<90?1e3:1500;return await new Promise(e=>setTimeout(e,m)),r()}catch(a){if("AbortError"===a.name||i.aborted||!aM.current)return{success:!1,error:"Polling cancelled",cancelled:!0};if(s++,console.error("Polling error (attempt ".concat(s,"/").concat(5,"):"),a.message),s>=5)return aM.current&&aW(null),console.error("â Too many consecutive network errors, giving up"),{success:!1,error:"Network connection lost. Please check your internet and try again.",canRetry:!0};if(t>=240)return aM.current&&aW(null),{success:!1,error:"Polling failed",canRetry:!0};let e=Math.min(2e3*Math.pow(2,s-1),32e3);return await new Promise(a=>setTimeout(a,e)),r()}};return r()},[]);(0,n.useEffect)(()=>(aM.current=!0,()=>{aM.current=!1,aL.current&&aL.current.abort()}),[]);let tK=async()=>{var e,a,t,s,i,r,n,o,l,d,c,m,f,u,x,p,g,y,v,j,w,k,N,F;if(eL){h.default.error("Generation already in progress. Please wait.",{duration:2e3});return}try{let m=await fetch("/api/subscription/status"),f=await m.json();if(tj(f),(null===(e=f.subscription)||void 0===e?void 0:e.plan)&&tp(f.subscription.plan),f.subscription&&!1===f.subscription.isActive){tu((null===(i=f.subscription)||void 0===i?void 0:i.resumesGenerated)||0),tx((null===(r=f.subscription)||void 0===r?void 0:r.resumeLimit)||(null===(n=f.usage)||void 0===n?void 0:n.limit)||3),to(!0),h.default.error((null===(o=f.subscription)||void 0===o?void 0:o.message)||"Your subscription is not active. Please renew to continue.",{duration:6e3,icon:(0,b.q)("warn"),style:{maxWidth:"400px"}});return}if(f.usage&&!f.usage.isUnlimited&&f.usage.remaining<=0){tu((null===(l=f.subscription)||void 0===l?void 0:l.resumesGenerated)||0),tx((null===(d=f.subscription)||void 0===d?void 0:d.resumeLimit)||(null===(c=f.usage)||void 0===c?void 0:c.limit)||3),to(!0),h.default.error("Free limit reached (3 resumes). Upgrade for unlimited!",{duration:6e3,icon:(0,b.q)("warn"),style:{maxWidth:"400px"}});return}tu((null===(a=f.subscription)||void 0===a?void 0:a.resumesGenerated)||0),tx((null===(t=f.subscription)||void 0===t?void 0:t.resumeLimit)||(null===(s=f.usage)||void 0===s?void 0:s.limit)||3)}catch(e){console.error("Failed to check usage:",e)}eO(!0),tF(null),tA(null),sessionStorage.removeItem(e4),sessionStorage.removeItem(e3),az(0),aP("Starting...");let S=h.default.loading("Creating your resume...",{icon:(0,b.q)("sparkle"),style:{maxWidth:"400px"}});try{let e=void 0!==aG||void 0!==aH||aY.trim(),a=await fetch("/api/ai/generate-resume-from-jd?async=true",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobDescription:ed,userId:(null==Y?void 0:null===(m=Y.user)||void 0===m?void 0:m.email)||"guest",async:!0,...e&&{customInstructions:{bulletsPerExperience:aG,bulletSize:aH,customPrompt:aY.trim()||void 0}}})}),t=await a.json();if(!t.success&&(403===a.status||"Usage limit exceeded"===t.error)){try{let e=await fetch("/api/subscription/status"),a=await e.json();tj(a),tu((null===(f=a.subscription)||void 0===f?void 0:f.resumesGenerated)||0),tx((null===(u=a.subscription)||void 0===u?void 0:u.resumeLimit)||3),tp((null===(x=a.subscription)||void 0===x?void 0:x.plan)||tb),to(!0)}catch(e){(0,A.Ki)("Failed to refresh subscription status after usage error:",e)}h.default.error(t.message||t.error||"Usage limit exceeded. Please upgrade to continue.",{duration:6e3,icon:(0,b.q)("warn"),style:{maxWidth:"400px"}}),console.error("Resume generation error details:",t);return}if(t.async&&t.jobId){aW(t.jobId);let e=await tJ(t.jobId,S);if(e.success&&e.data){let a=e.data;if(h.default.dismiss(S),!a.resume||!a.resume.personalInfo){console.error("â Invalid resume structure from async job:",a.resume),h.default.error("Resume generation failed. Please try again.",{duration:5e3,style:{maxWidth:"400px"}}),eO(!1);return}let t={...(0,ey.sortGeneratedResume)(a.resume),_meta:{...a.resume._meta||{},originalJD:(null==ed?void 0:ed.trim())||"",generatedAt:new Date().toISOString()}};eQ(t),aw((null==ed?void 0:ed.trim())||"");try{let e=D(t);e&&aN(e)}catch(e){}let s=e2(a),i=null!==(g=null!==(p=null==s?void 0:s.totalScore)&&void 0!==p?p:a.matchScore)&&void 0!==g?g:0;eV(i),e6((a.suggestions||[]).filter(e=>"string"==typeof e&&!e.startsWith("--- ACTIONABLE TIPS ---")&&!e.startsWith("AI analyzed"))),ae(a.atsAnalysis||null);let r=s?{totalScore:s.totalScore,breakdown:s.breakdown,penalties:s.penalties,details:s.details,recommendations:s.recommendations}:null;al(r),h.default.success("⨠Resume generated! ATS Score: ".concat(i,"%"),{duration:4e3,style:{maxWidth:"400px"}}),ah(!0),tO(void 0,t),el(4),eO(!1);return}if(e.cancelled){h.default.dismiss(S);return}h.default.dismiss(S),h.default.error(e.error||"Generation failed. Please try again.",{duration:5e3,style:{maxWidth:"400px"}}),eO(!1);return}if(t.success){if(!t.resume||!t.resume.personalInfo){console.error("â Invalid resume structure:",t.resume),h.default.error("Resume generation failed. Please try again.",{duration:5e3,style:{maxWidth:"400px"}});return}let e={...(0,ey.sortGeneratedResume)(t.resume),_meta:{...t.resume._meta||{},originalJD:(null==ed?void 0:ed.trim())||"",generatedAt:new Date().toISOString()}};eQ(e),aw((null==ed?void 0:ed.trim())||"");try{let a=D(e);a&&aN(a)}catch(e){}let a=e2(t),s=null!==(w=null==a?void 0:a.totalScore)&&void 0!==w?w:0;eV(s),e6((t.suggestions||[]).filter(e=>"string"==typeof e&&!e.startsWith("--- ACTIONABLE TIPS ---")&&!e.startsWith("AI analyzed")&&!e.startsWith("\uD83C\uDF93 Skills organized")&&!e.startsWith("â¡ Generated"))),e7(t.experienceGuidance||null),ae(t.atsAnalysis||null);let i=a?{totalScore:a.totalScore,breakdown:a.breakdown,penalties:a.penalties,details:a.details,recommendations:a.recommendations.length>0?a.recommendations:(null===(y=t.suggestions)||void 0===y?void 0:y.filter(e=>
1e.startsWith("Missing")||e.startsWith("Add")||e.startsWith("Consider")||e.startsWith("\uD83C\uDFAF")||e.startsWith("\uD83D\uDCDD")||e.startsWith("\uD83D\uDCBC")))||[]}:null;if(al(i),t.actionableTips&&Array.isArray(t.actionableTips)&&t.actionableTips.length>0)ac(t.actionableTips.slice(0,10));else if(t.suggestions&&Array.isArray(t.suggestions)){let e=t.suggestions.indexOf("--- ACTIONABLE TIPS ---");if(-1!==e){let a=t.suggestions.slice(e+1,e+10).filter(Boolean);ac(a)}}try{let e="number"==typeof t.matchScore?t.matchScore:"string"==typeof t.matchScore?parseFloat(t.matchScore):NaN;if((!t.actionableTips||0===t.actionableTips.length)&&Array.isArray(t.improvements)&&t.improvements.length>0&&!Number.isNaN(e)&&e<90)ac(t.improvements.slice(0,10));else if((!t.actionableTips||0===t.actionableTips.length)&&(!Array.isArray(t.improvements)||0===t.improvements.length)&&!Number.isNaN(e)&&e<90){let e=(t.suggestions||[]).filter(e=>"string"==typeof e&&e.startsWith("Missing")||e.startsWith("Add")||e.startsWith("Consider"));e.length&&ac(e.slice(0,6))}}catch(e){(0,A.Ki)("â ï¸ Error populating fallback actionable tips:",(null==e?void 0:e.message)||e)}if(t.aiGeneratedBannerText)af(t.aiGeneratedBannerText);else{let e=(t.suggestions||[]).find(e=>"string"==typeof e&&e.includes("AI Generated"));e&&af(e)}let r=[];if(t.experienceGuidance&&(r.push("â ï¸ Experience Gap: You have ".concat(t.experienceGuidance.userExperience," years but this role requires ").concat(t.experienceGuidance.requiredExperience,"+ years (").concat(t.experienceGuidance.gap," year gap)")),null===(k=t.experienceGuidance.suggestions)||void 0===k||k.forEach(e=>r.push(e))),"number"==typeof t.matchScore&&t.matchScore<90){let e=Math.round(t.matchScore);r.push("\uD83D\uDCCA ATS Score: ".concat(e,"% - Aim for 90%+ by incorporating more job-specific keywords"))}if((null===(j=t.atsAnalysis)||void 0===j?void 0:null===(v=j.missedKeywords)||void 0===v?void 0:v.length)>0&&r.push("\uD83D\uDD11 Add these keywords: ".concat(t.atsAnalysis.missedKeywords.slice(0,5).join(", "))),t.suggestions&&Array.isArray(t.suggestions)){let e=t.suggestions.indexOf("--- ACTIONABLE TIPS ---");if(-1!==e){let a=t.suggestions.slice(e+1,e+6).filter(Boolean);a.length&&ac(a)}else ac([])}else ac([]);0===r.length&&r.push("Resume generated â review the content and adjust as needed."),am||af("AI Generated: This resume was created using AI. Please review and adjust the content to ensure accuracy before submitting.");let n=r.filter(e=>{if(!e||"string"!=typeof e)return!1;let a=e.toLowerCase();return!(a.includes("actionable tips")||a.includes("--- actionable tips ---")||a.includes("ai generated")||ad&&ad.length>0&&ad.some(a=>a.trim()===e.trim()))});an(n),h.default.dismiss(S);let o=Math.round(s);if(h.default.success("Resume ready! ".concat(o,"% ATS match"),{duration:4e3,icon:(0,b.q)(o>=90?"target":o>=85?"sparkle":"profile"),style:{maxWidth:"400px"}}),ah(!0),tO(void 0,e),t.cached,t.usageTracked)try{let e=t.usage;if(e){let a=-1===e.remaining?0:(e.limit||3)-(e.remaining||0);tu(a),tx(e.limit||th),ty(e=>e+1)}}catch(e){(0,A.Ki)("Failed to refresh usage UI from server-tracked response:",e)}else try{let e=await fetch("/api/subscription/usage",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({resumeId:t.resume._id||t.resume.id||new Date().getTime().toString(),template:eq,atsScore:t.matchScore,jobTitle:(null===(N=t.resume.personalInfo)||void 0===N?void 0:N.targetRole)||""})}),a=await e.json();if(a.success){(0,A.Cv)("â
Usage tracked successfully:",a.message);let e="number"==typeof a.resumesGenerated?a.resumesGenerated:-1===a.remaining?0:a.limit-a.remaining;tu(e),tx(a.limit||th),a.overLimit&&(h.default.error("You have exceeded your resume quota for your current plan. Please upgrade to continue.",{duration:6e3,icon:(0,b.q)("warn"),style:{maxWidth:"400px"}}),to(!0)),(null===(F=a.subscription)||void 0===F?void 0:F.cancelAtPeriodEnd)&&tm(!0),ty(e=>e+1),(0,A.Cv)("\uD83D\uDD04 Refreshing usage banner. Used: ".concat(e,"/").concat(a.limit))}else(0,A.Ki)("â ï¸ Usage tracking failed:",a.message)}catch(e){(0,A.V3)("â Failed to track usage:",e)}a2("resume"),el(4)}else throw Error(t.error||"Generation failed")}catch(n){h.default.dismiss(S);let e={};if(n instanceof Error){let a=n.message.toLowerCase();if(a.includes("unexpected token")||a.includes("not valid json")||a.includes("json at position"))e.error="Server returned an invali
1d response. Please try again.",e.isServerError=!0;else try{let a=JSON.parse(n.message);(a.error||a.userMessage)&&(e=a)}catch(a){e.error=n.message}}let a=(e.error||e.userMessage||"Unknown error").toLowerCase(),t="Resume generation failed",s=e.userMessage||e.error||"Unable to generate resume",i=e.suggestion||"Please try again",r=!1!==e.canRetry;e.isServerError?(t="Server issue",s="The server encountered a temporary issue. This usually resolves quickly.",i="Please wait a moment and try again.",r=!0):a.includes("network")||a.includes("fetch")||a.includes("failed to fetch")?(t="Connection error",s="Unable to reach the server. Please check your internet connection.",i="Verify your connection and try again",r=!0):a.includes("timeout")||a.includes("timed out")||a.includes("taking longer")?(t="Request timed out",s="Resume generation is taking longer than expected. This can happen with complex profiles or high server load.",i="Please try again. If the issue persists, try simplifying your job description.",r=!0):a.includes("invalid response")||a.includes("server returned")?(t="Server issue",s="The server returned an unexpected response.",i="Please wait a moment and try again.",r=!0):a.includes("processing error")||a.includes("json")&&!a.includes("unexpected token")||a.includes("parse")&&!a.includes("unexpected token")?(t="Processing error",s="We received an incomplete response while generating your resume. This is usually temporary.",i="Please try again in a moment. Our system is self-healing and should work on retry.",r=!0):a.includes("service")||a.includes("busy")||a.includes("rate limit")?(t="Service busy",s="Our AI service is currently experiencing high demand.",i="Please wait 10-30 seconds and try again.",r=!0):a.includes("database")||a.includes("connection")?(t="Connectivity issue",s="Temporary database connection problem.",i="This usually resolves quickly. Please try again.",r=!0):a.includes("profile")||a.includes("incomplete")?(t="Profile incomplete",s="Your profile is missing required information.",i="Please complete your profile with work experience and skills before generating a resume.",r=!1):a.includes("job description")&&(t="Invalid job description",s="The job description provided is invalid or too short.",i="Please provide a detailed job description with requirements and responsibilities.",r=!1),h.default.error(t,{duration:3e3}),setTimeout(()=>{{let e='\n <div id="error-modal-overlay" style="\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.75);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n backdrop-filter: blur(4px);\n animation: fadeIn 0.2s ease-out;\n ">\n <div style="\n background: '.concat("dark"===$?"#1e293b":"white",";\n color: ").concat("dark"===$?"#f1f5f9":"#1e293b",";\n border-radius: 16px;\n padding: 32px;\n max-width: 480px;\n width: 90%;\n box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);\n animation: slideUp 0.3s ease-out;\n border: 1px solid ").concat("dark"===$?"#334155":"#e2e8f0",';\n ">\n <div style="text-align: center; margin-bottom: 24px;">\n <div style="\n font-size: 48px;\n margin-bottom: 16px;\n filter: grayscale(20%);\n ">\uD83D\uDE14</div>\n <h2 style="\n font-size: 24px;\n font-weight: 700;\n margin: 0 0 12px 0;\n color: ').concat("dark"===$?"#f1f5f9":"#1e293b",';\n ">').concat(t,'</h2>\n <p style="\n font-size: 16px;\n line-height: 1.6;\n margin: 0 0 20px 0;\n color: ').concat("dark"===$?"#cbd5e1":"#64748b",';\n ">').concat(s,'</p>\n <div style="\n background: ').concat("dark"===$?"#334155":"#f8fafc",";\n border-left: 4px solid ").concat(r?"#3b82f6":"#f59e0b",';\n padding: 16px;\n border-radius: 8px;\n text-align: left;\n margin-bottom: 24px;\n ">\n <p style="\n margin: 0;\n font-size: 14px;\n color: ').concat("dark"===$?"#e2e8f0":"#475569",';\n "><strong>\uD83D\uDCA1 Suggestion:</strong> ').concat(i,'</p>\n </div>\n </div>\n <div style="display: flex; gap: 12px; justify-content: center;">\n ').concat(r?"\n <button id=\"error-retry-btn\" style=\"\n background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);\n color: white;\n border: none;\n padding: 14px 32px;\n border-radius: 10px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s;\n box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);\n \" onmouseover=\"this.style.transform='translateY(-2px)'; this.style.boxShadow='0 6px 16px rgba(59, 130, 246, 0.4)'\" onmouseout=\"this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 12px rgba(59, 130, 246, 0.3)'\">\n \uD83D\uDD04 Try Again\n </button>\n ":"",'\n <button id="error-close-btn" style="\n background: ').concat("dark"===$?"#334155":"#f1f5f9",";\n color: ").concat("dark"===$?"#f1f5f9":"#475569",';\n border: none;\n padding: 14px 32px;\n border-radius: 10px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s;\n " onmouseover="this.style.opacity=\'0.8\'" onmouseout="this.style.opacity=\'1\'">\n ').concat(r?"Cancel":"Close","\n </button>\n </div>\n </div>\n </div>\n <style>\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { transform: translateY(20px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n </style>\n "),a=document.getElementById("error-modal-overlay");a&&a.remove(),document.body.insertAdjacentHTML("beforeend",e);let n=document.getElementById("error-close-btn"),o=document.getElementById("error-retry-btn"),l=document.getElementById("error-modal-overlay"),d=()=>{l&&(l.style.animation="fadeIn 0.2s ease-out reverse",setTimeout(()=>l.remove(),200))};null==n||n.addEventListener("click",d),null==o||o.addEventListener("click",()=>{d(),setTimeout(()=>tK(),500)}),null==l||l.addEventListener("click",e=>{e.target===l&&d()});let c=e=>{"Escape"===e.key&&(d(),document.removeEventListener("keydown",c))};document.addEventListener("keydown",c)}},500),console.error("Resume generation error details:",{error:n,errorData:e,canRetry:r,title:t,message:s,suggestion:i})}finally{eO(!1)}},tQ=async()=>{a4(!0);let e=h.default.loading("Generating cover letter...",{icon:(0,b.q)("edit"),style:{maxWidth:"400px"}});try{let a="",t="",s=ed.match(/(?:at|with|for|company[:\s]+)([A-Z][a-zA-Z\s&]+(?:Inc|LLC|Corp|Ltd|Co)?\.?)/i);s&&(a=s[1].trim());let i=ed.match(/(?:position|role|job\s*title|hiring\s*(?:a|for)?)[:\s]+([^\n.]+)/i);i&&(t=i[1].trim());let r=await fetch("/api/ai/generate-cover-letter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobDescription:ed,companyName:a,jobTitle:t,tone:"professional"})}),n=await r.json();
1if(n.success&&n.coverLetter)return a1(n.coverLetter),a8(n.coverLetter),af("AI Generated: This cover letter was created using AI. Please review and adjust the content to ensure accuracy before submitting."),h.default.dismiss(e),h.default.success("Cover letter generated!",{duration:3e3,icon:(0,b.q)("team"),style:{maxWidth:"400px"}}),!0;throw Error(n.error||"Failed to generate cover letter")}catch(t){h.default.dismiss(e);let a=t instanceof Error?t.message:"Cover letter generation failed";return h.default.error(a,{duration:5e3}),console.error("Cover letter generation error:",t),!1}finally{a4(!1)}},tY=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a="number"==typeof e.retries?e.retries:2,t={jobDescription:ed,template:eq,forceNewGeneration:!1,...(void 0!==aG||void 0!==aH||aY.trim())&&{customInstructions:{bulletsPerExperience:aG,bulletSize:aH,customPrompt:aY.trim()||void 0}}},s=null;for(let i=0;i<=a;i++)try{let r=await fetch("/api/ai/generate-resume-from-jd",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),signal:e.signal}),n=null;try{n=await r.json()}catch(e){if(s=Error("Server returned non-JSON response (HTTP ".concat(r.status,")")),r.status>=500&&i<a){await new Promise(e=>setTimeout(e,800*Math.pow(2,i)));continue}return{success:!1,error:s.message,_httpStatus:r.status}}if(r.ok&&(null==n?void 0:n.success)&&(null==n?void 0:n.resume))return n;if([400,401,402,403,404].includes(r.status))return{...n,success:!1,_httpStatus:r.status,_nonRetriable:!0};if(i<a){await new Promise(e=>setTimeout(e,800*Math.pow(2,i)));continue}return{...n||{},success:!1,_httpStatus:r.status}}catch(e){if(s=e,(null==e?void 0:e.name)==="AbortError")throw e;if(i<a){await new Promise(e=>setTimeout(e,800*Math.pow(2,i)));continue}}return{success:!1,error:(null==s?void 0:s.message)||"Resume generation failed after retries"}},tV=e=>{var a,t,s,i;let r=(0,ey.sortGeneratedResume)(e.resume),n={...r,_meta:{...r._meta||{},originalJD:(null==ed?void 0:ed.trim())||"",generatedAt:new Date().toISOString()}};eQ(n),ai(n),aw((null==ed?void 0:ed.trim())||"");try{let e=D(n);e&&aN(e)}catch(e){}let o=e2(e),l=null!==(s=null==o?void 0:o.totalScore)&&void 0!==s?s:0;eV("number"==typeof l?Math.round(l):l),e.suggestions&&e6((e.suggestions||[]).filter(e=>"string"==typeof e&&!e.startsWith("--- ACTIONABLE TIPS ---")&&!e.startsWith("AI analyzed")&&!e.startsWith("\uD83C\uDF93 Skills organized")&&!e.startsWith("â¡ Generated"))),e.experienceGuidance&&e7(e.experienceGuidance),e.atsAnalysis&&ae(e.atsAnalysis);let d=o?{totalScore:o.totalScore,breakdown:o.breakdown,penalties:o.penalties,details:o.details,recommendations:o.recommendations.length>0?o.recommendations:(null===(a=e.suggestions)||void 0===a?void 0:a.filter(e=>e.startsWith("Missing")||e.startsWith("Add")||e.startsWith("Consider")||e.startsWith("\uD83C\uDFAF")||e.startsWith("\uD83D\uDCDD")||e.startsWith("\uD83D\uDCBC")))||[]}:null;d&&al(d);let c=[];if(e.experienceGuidance&&(c.push("â ï¸ Experience Gap: You have ".concat(e.experienceGuidance.userExperience," years but this role requires ").concat(e.experienceGuidance.requiredExperience,"+ years (").concat(e.experienceGuidance.gap," year gap)")),null===(i=e.experienceGuidance.suggestions)||void 0===i||i.forEach(e=>c.push(e))),"number"==typeof e.matchScore&&e.matchScore<90){let a=Math.round(e.matchScore);c.push("\uD83D\uDCCA ATS Score: ".concat(a,"% - Aim for 90%+ by incorporating more job-specific keywords"))}return(null==o?void 0:null===(t=o.details)||void 0===t?void 0:t.skillsMissing)&&o.details.skillsMissing.length>0&&c.push("\uD83D\uDD11 Add these keywords: ".concat(o.details.skillsMissing.slice(0,5).join(", "))),0===c.length&&c.push("â
Resume generated â review the content and adjust as needed."),am||af("AI Generated: This resume was created using AI. Please review and adjust the content to ensure accuracy before submitting."),an(c.filter(e=>{if(!e||"string"!=typeof e)return!1;let a=e.toLowerCase();return!(a.includes("actionable tips")||a.includes("--- actionable tips ---")||a.includes("ai generated")||ad&&ad.length>0&&ad.some(a=>a.trim()===e.trim()))})),tO(void 0,n),n},tX=async e=>{try{var a;let t=await fetch("/api/subscription/usage",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({resumeId:e.resume._id||e.resume.id||new Date().getTime().toString(),template:eq,atsScore:e.matchScore,jobTitle:(null===(a=e.resume.personalInfo)||void 0===a?void 0:a.targetRole)||""})}),s=await t.json();if(s.success){let e=-1===s.remaining?0:s.limit-s.remaining;tu(e),tx(s.limit||th),ty(e=>e+1)}}catch(e){console.error("â Failed to track usage:",e)}},t$=async()=>
1{if(tt||eL)return;ts(!0),ta(null);let e=h.default.loading("Retrying resume generation...",{icon:(0,b.q)("sparkle"),style:{maxWidth:"400px"}});try{let a=await tY({retries:2});if(h.default.dismiss(e),(null==a?void 0:a.success)&&a.resume)tV(a),await tX(a),tr(e=>e+1),a2("resume"),h.default.success("Resume generated successfully!",{duration:3e3,icon:(0,b.q)("check")});else{let e=(null==a?void 0:a.userMessage)||(null==a?void 0:a.error)||(null==a?void 0:a.message)||"Resume generation failed";ta(e),(null==a?void 0:a._nonRetriable)&&(null==a?void 0:a._httpStatus)===402&&to(!0),h.default.error(e,{duration:5e3})}}catch(t){h.default.dismiss(e);let a=(null==t?void 0:t.message)||"Unexpected error during resume generation";ta(a),h.default.error(a,{duration:5e3})}finally{ts(!1)}},t0=async()=>{let e=!0,a=!0;if("resume"===aX)await tK();else if("cover-letter"===aX)eO(!0),a=await tQ(),eO(!1),a&&(el(4),a2("cover-letter"));else if("both"===aX){var t,s,i,r,n,o,l,d,c,m;try{let e=await fetch("/api/subscription/status"),a=await e.json();if(tj(a),(null===(t=a.subscription)||void 0===t?void 0:t.plan)&&tp(a.subscription.plan),a.usage&&!a.usage.isUnlimited&&a.usage.remaining<=0){tu((null===(n=a.subscription)||void 0===n?void 0:n.resumesGenerated)||0),tx((null===(o=a.subscription)||void 0===o?void 0:o.resumeLimit)||(null===(l=a.usage)||void 0===l?void 0:l.limit)||3),to(!0),h.default.error("Free limit reached (3 resumes). Upgrade for unlimited!",{duration:6e3,icon:(0,b.q)("warn"),style:{maxWidth:"400px"}});return}tu((null===(s=a.subscription)||void 0===s?void 0:s.resumesGenerated)||0),tx((null===(i=a.subscription)||void 0===i?void 0:i.resumeLimit)||(null===(r=a.usage)||void 0===r?void 0:r.limit)||3)}catch(e){console.error("Failed to check usage:",e)}eO(!0),ta(null);let f=h.default.loading("Generating resume & cover letter...",{icon:(0,b.q)("rocket"),style:{maxWidth:"400px"}});try{let[t,s]=await Promise.allSettled([tY({retries:2}),tQ()]);if(h.default.dismiss(f),"fulfilled"===t.status&&(null===(d=t.value)||void 0===d?void 0:d.success)&&(null===(c=t.value)||void 0===c?void 0:c.resume)){let e=t.value;tV(e),await tX(e)}else{e=!1;let a="fulfilled"===t.status?t.value:{error:null===(m=t.reason)||void 0===m?void 0:m.message},s=(null==a?void 0:a.userMessage)||(null==a?void 0:a.error)||(null==a?void 0:a.message)||"Resume generation failed";ta(s),((null==a?void 0:a._httpStatus)===402||/usage limit|upgrade/i.test(String(s)))&&to(!0),h.default.error("Resume: ".concat(s),{duration:5e3})}"fulfilled"===s.status&&s.value||(a=!1),(e||a)&&(e&&a?h.default.success("Generation complete!",{duration:3e3,icon:(0,b.q)("trophy"),style:{maxWidth:"400px"}}):e?(0,h.default)("Resume ready â cover letter can be regenerated.",{duration:5e3,icon:(0,b.q)("wave"),style:{maxWidth:"420px"}}):(0,h.default)("Cover letter ready â you can retry the resume from the Resume tab.",{duration:5e3,icon:(0,b.q)("wave"),style:{maxWidth:"450px"}}),el(4),a2("resume"))}catch(e){h.default.dismiss(f),h.default.error("Generation failed. Please try again.",{duration:5e3}),console.error("Combined generation error:",e)}finally{eO(!1)}}};(0,n.useEffect)(()=>{4!==eo||"resume"!==a3||"both"!==aX||eK||!te||0!==ti||tt||t$()},[a3,eo,aX,eK,te]);let t1=async()=>{if(aa){h.default.error('You are in Edit Mode. Please click "Apply" or "Done" to save your changes before downloading.',{duration:5e3,icon:(0,b.q)("edit"),style:{maxWidth:"450px"}});return}if(eG(!0),eJ("pdf"),!eK){h.default.error("No resume to download. Generate one first.",{duration:4e3,style:{maxWidth:"400px"}});return}let e=document.getElementById("resume-preview");if(!e){h.default.error("Resume not found. Please generate again.",{duration:4e3,style:{maxWidth:"400px"}});return}try{var a,s,i,r,n,o,l,d,c,m,f,u,x,p,g;h.default.loading("Generating PDF...",{id:"pdf-generation",icon:(0,b.q)("profile"),style:{maxWidth:"400px"}});let y=null,v="html2pdf";try{let e=await t.e(3842).then(t.t.bind(t,80599,23));y=e.default||e}catch(e){(0,A.Ki)("â ï¸ html2pdf.js not available, will use fallback method"),v="fallback"}let j=e.firstElementChild;if(!j)throw Error("Template element not found");let w="".concat((null===(s=eK.personalInfo)||void 0===s?void 0:null===(a=s.fullName)||void 0===a?void 0:a.replace(/[^a-zA-Z0-9]/g,"_"))||"Resume",".pdf");try{let e=null===(i=(0,F.A)(eI))||void 0===i?void 0:i.fontFamily,a=await fetch("/api/export/server-pdf",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({resume:eK,templateId:eq,fileName:w,fontSchemeId:eI,fontFamily:e,colorSchemeId:eT,fontSizeScheme:eR,highlightKeywords:(null==e9?void 0:e9.matchedKeywords)||(null==e9?void 0:null===(r=e9.details)||void 0===r?void 0:r.matchedKeywords)||(null==ao?void 0:null===(o=ao.details)||void 0===o?void 0:null===(n=o.skillsFound)||void 0===n?void 0:n.map(e=>e.skill))||(null==eK?void 0:null===(d=eK._meta)||void 0===d?void 0:null===(l=d.atsAnalysis)||void 0===l?void 0:l.matchedKeywords)||(null==eK?void 0:null===(f=eK._meta)||void 0===f?void 0:null===(m=f.atsAnalysis)||void 0===m?void 0:null===(c=m.details)||void 0===c?void 0:c.matchedKeywords)||[]})});if(a.ok&&(null===(u=a.headers.get("content-type"))||void 0===u?void 0:u.includes("application/pdf"))){let e=await a.arrayBuffer(),t=new Blob([e],{type:"application/pdf"}),s=window.URL.createObjectURL(t),i=document.createElement("a");i.href=s,i.download=w,document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(s),tk(!0),tO(),h.default.success("PDF downloaded successfully!",{id:"pdf-generation",icon:(0,b.q)("profile"),duration:3e3,style:{maxWidth:"400px"}});return}}
1catch(e){(0,A.Ki)("Server-side PDF export failed, falling back to client generation:",e)}if("html2pdf"===v&&y){try{let e=null===(x=(0,F.A)(eI))||void 0===x?void 0:x.fontFamily;try{j.style.fontFamily=e}catch(e){}C(j,e)}catch(e){(0,A.Ki)("Failed to prepare element for PDF:",e)}let e=document.createElement("style");e.id="pdf-pagebreak-styles",e.textContent="\n @media print {\n .experience-item, .education-item, .project-item {\n /* Allow breaking of large items to reduce empty wedges at page breaks */\n page-break-inside: auto !important;\n break-inside: auto !important;\n }\n\n /* Allow sections to flow across pages to avoid leaving large empty wedges */\n section { page-break-inside: auto !important; break-inside: auto !important; padding-block-start: 0.06in !important; padding-block-end: 0.06in !important; margin: 0 !important; }\n\n /* Headings should be allowed to sit at page boundaries naturally and retain padding\n so top-of-page spacing is preserved even when elements are at page start. */\n h1, h2, h3 { page-break-after: auto !important; break-after: auto !important; padding-block-start: 0.06in !important; padding-block-end: 0.06in !important; margin: 0 !important; }\n\n /* Ensure temporary PDF container has a top padding so pages never start flush */\n .pdf-temp-container { padding-top: 0.175in; }\n }\n ",document.head.appendChild(e);let a={margin:[.175,.175,.175,.175],filename:w,image:{type:"jpeg",quality:.95},html2canvas:{scale:2,useCORS:!0,letterRendering:!0,logging:!1,backgroundColor:"#ffffff",scrollY:-window.scrollY,scrollX:0},jsPDF:{unit:"in",format:"letter",orientation:"portrait"},pagebreak:{mode:["avoid-all","css","legacy"],before:".page-break",after:".page-break-after",avoid:["section","h1","h2","h3"]}};try{j.style.fontFamily=null===(p=(0,F.A)(eI))||void 0===p?void 0:p.fontFamily}catch(e){}let t={inter:"Inter:wght@300;400;600;700;800",calibri:"Roboto:wght@300;400;500;700",arial:"Roboto:wght@300;400;500;700",helvetica:"Roboto:wght@300;400;500;700",georgia:"Merriweather:wght@300;400;700",times:"Merriweather:wght@300;400;700"}[eI];if(t){let e="https://fonts.googleapis.com/css2?family=".concat(t,"&display=swap");if(!document.querySelector('link[href="'.concat(e,'"]'))){let a=document.createElement("link");a.rel="stylesheet",a.href=e,document.head.appendChild(a),await new Promise(e=>setTimeout(e,50))}}try{document.fonts&&document.fonts.ready&&await document.fonts.ready}catch(e){}await y().set(a).from(j).save();try{E()}catch(e){console.warn("cleanupPDFStyles failed:",e)}if(tk(!0),tO(),h.default.success("PDF downloaded successfully!",{id:"pdf-generation",icon:(0,b.q)("profile")}),h.default.dismiss("pdf-generation"),confirm('PDF Download\n\nThe PDF library is temporarily unavailable.\n\nWould you like to use your browser\'s Print dialog?\n(Choose "Save as PDF" as the destination)\n\nClick OK to open Print dialog, or Cancel to download as Word instead.')){try{C(j,null===(g=(0,F.A)(eI))||void 0===g?void 0:g.fontFamily)}catch(e){}let e=document.createElement("style");e.id="print-fallback-styles",e.textContent="\n @media print {\n body * { visibility: hidden; }\n #resume-preview, #resume-preview * { visibility: visible; }\n #resume-preview { \n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n }\n nav, button, .no-print { display: none !important; }\n }\n ",document.head.appendChild(e),window.print(),setTimeout(()=>{let e=document.getElementById("print-fallback-styles");e&&e.remove();try{E()}catch(e){}},1e3),tk(!0),h.default.success("Use the Print dialog to save as PDF",{duration:4e3,icon:(0,b.q)("wave")})}else h.default.loading("Downloading as Word document instead...",{duration:2e3}),t2()}let k=document.getElementById("pdf-pagebreak-styles");k&&k.remove();try{E()}catch(e){}tk(!0),tO(),h.default.success("PDF downloaded successfully!",{id:"pdf-generation",icon:(0,b.q)("profile")})}catch(a){console.error("PDF generation error:",a);let e=document.getElementById("pdf-pagebreak-styles");e&&e.remove();try{E()}catch(e){}h.default.error(a instanceof Error?a.message:"Failed to generate PDF",{id:"pdf-generation"})}finally{eG(!1),eJ(null)}}
1,[t5,t4]=(0,n.useState)(null),t3=async function(){let{persist:e=!1,overwrite:a=!0,force:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=aa&&as?as:eK;if(!s){h.default.error("No resume available to re-score.");return}if(ap)return;ag(!0);let i="rescore_loading";h.default.loading("Refreshing resume score...",{id:i,icon:(0,b.q)("sparkle"),style:{maxWidth:"400px"}});try{var r,n,o,l,d,c,m,f,u,x,p,g,y,v,j,w,k,N,F,S,C,E,q,B,T,W,I,z,R,P;let L=(null==s?void 0:null===(r=s._meta)||void 0===r?void 0:r.originalJD)||(null==s?void 0:s.originalJD)||(null==s?void 0:null===(n=s._meta)||void 0===n?void 0:n.jobDescription)||"",M=!1;if((!ed||!ed.trim())&&!L&&((null==eK?void 0:eK.cacheId)||(null==eK?void 0:null===(o=eK._meta)||void 0===o?void 0:o.cacheId)))try{let e=(null==eK?void 0:eK.cacheId)||(null==eK?void 0:null===(p=eK._meta)||void 0===p?void 0:p.cacheId),a=await fetch("/api/cache/get?cacheId=".concat(encodeURIComponent(e))),t=await a.json();a.ok&&t&&t.originalJD&&(L=t.originalJD,M=!0)}catch(e){console.warn("Failed to fetch original JD from cache:",e)}let O=ed&&ed.trim()?ed:L&&L.trim()?L:"";if(!O){h.default.error("Cannot refresh score: missing job description. Edit the job description or the resume and try again."),ag(!1),h.default.dismiss(i);return}let _={resume:s,jobDescription:O,cacheId:(null==eK?void 0:eK.cacheId)||(null==eK?void 0:null===(l=eK._meta)||void 0===l?void 0:l.cacheId)||void 0,persist:e,overwrite:a},Z=await fetch("/api/ai/score-resume",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)}),G=await Z.json();if(!Z.ok||!G.success){(0,A.Ki)("Rescore failed",G),h.default.error(G.error||"Failed to refresh score"),ag(!1),h.default.dismiss(i);return}let U=e2(G),H=null!==(v=null!==(y=null!==(g=null==U?void 0:U.totalScore)&&void 0!==g?g:G.matchScore)&&void 0!==y?y:null===(d=G.atsAnalysis)||void 0===d?void 0:d.totalScore)&&void 0!==v?v:null,J=(null==U?void 0:U.breakdown)||G.breakdown||(null===(c=G.atsAnalysis)||void 0===c?void 0:c.v3Breakdown)||(null===(m=G.atsAnalysis)||void 0===m?void 0:m.breakdown),K=J&&Object.values(J).some(e=>"number"==typeof e&&e>0),Q="number"==typeof H&&H>0;if(G.incomplete&&!t){if(Q||K)(0,A.Cv)("Accepting rescore despite server INCOMPLETE flag because data appears valid",{cacheId:_.cacheId,returnedMatchScore:H,hasValidBreakdown:K});else{console.warn("Server returned incomplete rescore - saved for potential force-apply",{cacheId:_.cacheId}),t4(G),h.default.error("Rescore returned incomplete data â keeping previous score. You can Force Apply if needed.",{duration:6e3}),ag(!1),h.default.dismiss(i);return}}if(!K&&!Q){console.warn("Rescore returned truly incomplete data â skipping to avoid destructive change",{returnedMatchScore:H,breakdown:J}),t4(G),h.default.error("Rescore returned incomplete data â keeping previous score.",{duration:5e3}),ag(!1),h.default.dismiss(i);return}let Y=null!==(w=null!==(j=null==eK?void 0:eK.matchScore)&&void 0!==j?j:eY)&&void 0!==w?w:0;if(G.incomplete&&t){try{let e=Q?H:null,a=(null==U?void 0:null===(k=U.details)||void 0===k?void 0:k.sectionScores)||G.sectionScores||(null===(F=G.atsAnalysis)||void 0===F?void 0:null===(N=F.details)||void 0===N?void 0:N.sectionScores)||null;e&&eV(e),U&&al({totalScore:U.totalScore,breakdown:U.breakdown,penalties:U.penalties,details:U.details,recommendations:U.recommendations}),G.atsAnalysis&&ae(G.atsAnalysis),aS(new Date),aD(null!=e?e:null),aE(G),eQ(t=>{var s,i,r,n;return t?{...t,matchScore:"number"==typeof e?e:t.matchScore,atsAnalysis:G.atsAnalysis?G.atsAnalysis:t.atsAnalysis,breakdown:G.breakdown?G.breakdown:t.breakdown,sectionScores:a||t.sectionScores,_meta:{...t._meta||{},atsAnalysis:G.atsAnalysis?G.atsAnalysis:null===(s=t._meta)||void 0===s?void 0:s.atsAnalysis,breakdown:G.breakdown?G.breakdown:null===(i=t._meta)||void 0===i?void 0:i.breakdown,matchScore:"number"==typeof e?e:null===(r=t._meta)||void 0===r?void 0:r.matchScore,sectionScores:a||(null===(n=t._meta)||void 0===n?void 0:n.sectionScores)}}:t}),t4(null),h.default.success("Partial rescore applied (forced).")}catch(e){console.error("Failed to apply forced partial rescore:",e),h.default.error("Failed to apply partial rescore.")}ag(!1),h.default.dismiss(i);return}if("number"==typeof H&&0===H&&Y>0){console.warn("Rescore produced a zero score while previous score was positive; skipping to avoid regression",{prevScore:Y,returnedMatchScore:H}
1),h.default.error("Rescore produced invalid zero score â keep editing to improve your resume before rescoring."),ag(!1),h.default.dismiss(i);return}let V=e2(G,H),X=null!==(C=null!==(S=null==V?void 0:V.totalScore)&&void 0!==S?S:H)&&void 0!==C?C:eY,$=V?{totalScore:V.totalScore,breakdown:V.breakdown,penalties:V.penalties,details:V.details,recommendations:V.recommendations}:G.atsAnalysis||G;al($),eV(null!=X?X:eY),ae(G.atsAnalysis||e9),aS(new Date),aD(null!=X?X:null),aE(G);try{let e=(null==V?void 0:V.recommendations)||(null===(E=G.atsAnalysis)||void 0===E?void 0:E.recommendations)||G.recommendations||[];if(e.length>0){let a=e.filter(e=>e&&"string"==typeof e&&e.trim().length>0);a.length>0&&ac(a.slice(0,8)),e6(e.filter(e=>e&&"string"==typeof e&&!e.startsWith("--- ACTIONABLE TIPS ---")&&!e.startsWith("AI analyzed")))}let a=[],t=(null===(B=G.atsAnalysis)||void 0===B?void 0:null===(q=B.details)||void 0===q?void 0:q.skillsMissing)||[];null===(W=G.atsAnalysis)||void 0===W||null===(T=W.details)||void 0===T||T.skillsFound;let s=(null===(z=G.atsAnalysis)||void 0===z?void 0:null===(I=z.details)||void 0===I?void 0:I.metricsCount)||0,i=(null===(P=G.atsAnalysis)||void 0===P?void 0:null===(R=P.details)||void 0===R?void 0:R.sectionScores)||{};if(t.length>0&&t.length<=5?a.push("\uD83C\uDFAF Add these missing skills to boost your score: ".concat(t.join(", "))):t.length>5&&a.push("\uD83C\uDFAF Focus on adding key skills: ".concat(t.slice(0,5).join(", ")," (+").concat(t.length-5," more)")),s<3&&a.push("\uD83D\uDCCA Add ".concat(3-s," more quantifiable achievements (numbers, percentages, metrics)")),i.summary<50&&a.push("\uD83D\uDCDD Strengthen your summary by including more key skills from the job description"),i.experience<50&&a.push("\uD83D\uDCBC Add more relevant keywords from the JD to your experience bullets"),i.skills<50&&a.push("\uD83D\uDD27 Update your skills section to include more required technologies"),a.length>0&&0===e.length)ac(a);else if(a.length>0){let t=[...new Set([...e.slice(0,5),...a])].slice(0,10);ac(t)}}catch(e){console.warn("Failed to update actionable tips from rescore:",e)}try{aw(O.trim())}catch(e){}try{let e=D(s);e&&aN(e)}catch(e){}tR(tW),t4(null);let ee=(null==U?void 0:null===(f=U.details)||void 0===f?void 0:f.sectionScores)||G.sectionScores||(null===(x=G.atsAnalysis)||void 0===x?void 0:null===(u=x.details)||void 0===u?void 0:u.sectionScores);if(eQ(e=>{var a,t,s,i,r;return e?{...e,matchScore:"number"==typeof X?X:e.matchScore,atsAnalysis:G.atsAnalysis?G.atsAnalysis:e.atsAnalysis,breakdown:J||e.breakdown,keywordDensity:"number"==typeof G.keywordDensity?G.keywordDensity:e.keywordDensity,sectionScores:ee||e.sectionScores,_meta:{...e._meta||{},atsAnalysis:G.atsAnalysis?G.atsAnalysis:null===(a=e._meta)||void 0===a?void 0:a.atsAnalysis,breakdown:J||(null===(t=e._meta)||void 0===t?void 0:t.breakdown),matchScore:"number"==typeof X?X:null===(s=e._meta)||void 0===s?void 0:s.matchScore,keywordDensity:"number"==typeof G.keywordDensity?G.keywordDensity:null===(i=e._meta)||void 0===i?void 0:i.keywordDensity,sectionScores:ee||(null===(r=e._meta)||void 0===r?void 0:r.sectionScores)}}:e}),M){h.default.success("Rescore completed using saved Job Description from cache.");try{aB(!0),setTimeout(()=>aB(!1),6e3)}catch(e){}}let ea=Y||eY||0,et=(null!=X?X:0)-ea;h.default.success("Score updated: ".concat(null!=X?X:0,"% (").concat(et>0?"+".concat(et):et<0?"".concat(et):"unchanged",")"),{duration:4e3,icon:(0,b.q)(et>0?"chart":et<0?"warn":"check")}),G.persisted?h.default.success("Score persisted to cache."):e&&(G.error?h.default.error(G.error):h.default.success("Score computed but not persisted."))}catch(e){(0,A.V3)("Refresh score failed",e),h.default.error("Error refreshing score. Try again later.")}finally{ag(!1),h.default.dismiss(i)}},t2=async()=>{var e,a,s,i,r,n,o,l,d,c,m,f,u,x;if(aa){h.default.error('You are in Edit Mode. Please click "Apply" or "Done" to save your changes before downloading.',{duration:5e3,icon:(0,b.q)("edit"),style:{maxWidth:"450px"}});return}if(eK){eG(!0),eJ("word");try{let t=await fetch("/api/subscription/status"),i=await t.json();if(tj(i),(null===(e=i.subscription)||void 0===e?void 0:e.plan)&&tp(i.subscription.plan),(null===(a=i.subscription)||void 0===a?void 0:a.plan)==="free"){eG(!1),eJ(null),setTimeout(()=>to(!0),30);let e=eg.T0.find(e=>"pro"===e.id),a=(null==e?void 0:null===(s=e.price)||void 0===s?void 0:s.monthlyDisplay)||"$".concat((0,eg.Wr)("pro"));h.default.error("Word downloads require Pro (".concat(a,"/month)"),{duration:5e3,icon:(0,b.q)("briefcase"),style:{maxWidth:"400px"}});return}}
1catch(e){console.error("Failed to check subscription:",e),eG(!1),eJ(null),setTimeout(()=>to(!0),30);return}try{let e="".concat((null===(i=eK.personalInfo)||void 0===i?void 0:i.fullName)||"Resume",".docx"),a=(0,N.Jm)(eT),s="000000";(null==a?void 0:null===(r=a.colors)||void 0===r?void 0:r.primary)&&(s=a.colors.primary.replace("#","").toUpperCase());let{downloadWordDocument:p}=await Promise.all([t.e(1381),t.e(4809),t.e(4948),t.e(8489)]).then(t.bind(t,38489)),g=(null===(n=(0,F.A)(eI))||void 0===n?void 0:n.fontFamily)||"Calibri",y=String(g).split(",")[0].replace(/['"]+/g,"").trim();await p(eK,e,s,y,(null==e9?void 0:e9.matchedKeywords)||(null==e9?void 0:null===(o=e9.details)||void 0===o?void 0:o.matchedKeywords)||(null==ao?void 0:null===(d=ao.details)||void 0===d?void 0:null===(l=d.skillsFound)||void 0===l?void 0:l.map(e=>e.skill))||(null==eK?void 0:null===(m=eK._meta)||void 0===m?void 0:null===(c=m.atsAnalysis)||void 0===c?void 0:c.matchedKeywords)||(null==eK?void 0:null===(x=eK._meta)||void 0===x?void 0:null===(u=x.atsAnalysis)||void 0===u?void 0:null===(f=u.details)||void 0===f?void 0:f.matchedKeywords)||[]),tk(!0),h.default.success("Word document downloaded!",{duration:3e3,icon:(0,b.q)("check"),style:{maxWidth:"400px"}})}catch(e){console.error("Word generation error:",e),h.default.error("Word generation failed. Try PDF instead.",{duration:5e3,style:{maxWidth:"400px"}})}finally{eG(!1),eJ(null)}}},t6=()=>{localStorage.removeItem("pendingJobDescription")},t8=async()=>{if(a7){h.default.error('You are in Edit Mode. Please click "Apply" or "Done" to save your changes before downloading.',{duration:5e3,icon:(0,b.q)("edit"),style:{maxWidth:"450px"}});return}if(!a0&&!a6){h.default.error("No cover letter to download",{duration:3e3});return}try{var e;h.default.loading("Generating PDF...",{id:"cover-letter-pdf",icon:(0,b.q)("profile"),style:{maxWidth:"400px"}});let a=a6||a0||"",s="Cover_Letter_".concat(new Date().toISOString().split("T")[0],".pdf"),i=(null===(e=(0,F.A)(eI))||void 0===e?void 0:e.fontFamily)||"Georgia, serif",r="#1f2937",n={small:.9,medium:1,large:1.1}[eR]||1,o="".concat((12*n).toFixed(1),"pt"),l={inter:"Inter:wght@300;400;600;700;800",calibri:"Roboto:wght@300;400;500;700",arial:"Roboto:wght@300;400;500;700",helvetica:"Roboto:wght@300;400;500;700",georgia:"Merriweather:wght@300;400;700",times:"Merriweather:wght@300;400;700"}[eI];if(l){let e="https://fonts.googleapis.com/css2?family=".concat(l,"&display=swap");if(!document.querySelector('link[href="'.concat(e,'"]'))){let a=document.createElement("link");a.rel="stylesheet",a.href=e,document.head.appendChild(a),await new Promise(e=>setTimeout(e,100))}}try{document.fonts&&document.fonts.ready&&await document.fonts.ready}catch(e){}try{let e=(await Promise.resolve().then(t.t.bind(t,61120,23))).default,n=(await Promise.resolve().then(t.bind(t,91819))).default,l=document.createElement("div");l.style.cssText="\n position: fixed;\n top: -10000px;\n left: -10000px;\n width: ".concat(7,"in;\n background: white;\n font-family: ").concat(i,";\n font-size: ").concat(o,";\n line-height: 1.6;\n color: ").concat(r,";\n padding: 0;\n box-sizing: border-box;\n -webkit-print-color-adjust: exact;\n color-adjust: exact;\n "),a.split(/\n\n+/).filter(e=>e.trim()).forEach((e,a)=>{let t=document.createElement("div");t.style.cssText="\n margin-bottom: 16px;\n white-space: pre-wrap;\n word-wrap: break-word;\n overflow-wrap: break-word;\n font-size: ".concat(o,";\n line-height: 1.6;\n color: ").concat(r,";\n "),t.innerHTML=e.split("\n").map(e=>'<span style="display: block; min-height: 1.6em; color: '.concat(r,';">').concat(e||" ","</span>")).join(""),l.appendChild(t)}),document.body.appendChild(l),await new Promise(e=>setTimeout(e,100));let d=Array.from(l.children),c=d.map(e=>e.getBoundingClientRect().height),m=[],f=[],u=0;c.forEach((e,a)=>{u+e<=912||0===f.length?(f.push(a),u+=e):(m.push(f),f=[a],u=e)}),f.length>0&&m.push(f);let x=new n({orientation:"portrait",unit:"in",format:"letter",compress:!0});for(let a=0;a<m.length;a++){let t=m[a],s=document.createElement("div");s.style.cssText="\n width: ".concat(7,"in;\n min-height: ").concat(9.5,"in;\n background: white;\n font-family: ").concat(i,";\n font-size: ").concat(o,";\n line-height: 1.6;\n color: ").concat(r,";\n padding: 0;\n box-sizing: border-box;
1\n "),t.forEach(e=>{let a=d[e].cloneNode(!0);s.appendChild(a)});let n=document.createElement("div");n.style.cssText="\n position: fixed;\n top: -10000px;\n left: -10000px;\n width: ".concat(8.5,"in;\n min-height: ").concat(11,"in;\n background: white;\n padding: ").concat(.75,"in;\n box-sizing: border-box;\n "),n.appendChild(s),document.body.appendChild(n),await new Promise(e=>setTimeout(e,50));let l=await e(n,{scale:2,useCORS:!0,backgroundColor:"#ffffff",logging:!1,width:816,height:1056});a>0&&x.addPage();let c=l.toDataURL("image/jpeg",.95);x.addImage(c,"JPEG",0,0,8.5,11,void 0,"FAST"),document.body.removeChild(n)}document.body.removeChild(l),x.save(s),tk(!0),h.default.success("Cover letter PDF downloaded!",{id:"cover-letter-pdf",duration:3e3,icon:(0,b.q)("profile"),style:{maxWidth:"400px"}})}catch(e){console.error("PDF generation failed:",e),h.default.error("PDF generation failed",{id:"cover-letter-pdf",duration:4e3})}}catch(e){console.error("Cover letter PDF error:",e),h.default.error("Failed to generate PDF",{id:"cover-letter-pdf",duration:4e3})}},t7=()=>{if(a7){h.default.error('You are in Edit Mode. Please click "Apply" or "Done" to save your changes before downloading.',{duration:5e3,icon:(0,b.q)("edit"),style:{maxWidth:"450px"}});return}let e=a6||a0||"";if(!e){h.default.error("No cover letter to download",{duration:3e3});return}let a=new Blob([e],{type:"text/plain"}),t=window.URL.createObjectURL(a),s=document.createElement("a");s.href=t,s.download="Cover_Letter_".concat(new Date().toISOString().split("T")[0],".txt"),document.body.appendChild(s),s.click(),s.remove(),window.URL.revokeObjectURL(t),tk(!0),h.default.success("Cover letter downloaded!",{duration:3e3,icon:(0,b.q)("check"),style:{maxWidth:"400px"}})},t9=eK?u(eK,window.location.href||"https://trueresume.ai/create-resume",!1):null,se={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{question:"How does TrueResume generate my resume?",answer:"Paste a job description and our AI analyzes the role, extracts key skills and responsibilities, then generates an ATS-optimized resume tailored to that job, including a summary, work history bullets, and formatting."},{question:"Is TrueResume optimized for Applicant Tracking Systems (ATS)?",answer:"Yes â our algorithm emphasizes keywords and structure to produce resumes that achieve higher ATS match scores. We also provide a live ATS score and suggestions to improve match rate."},{question:"Can I download my resume as PDF or Word?",answer:"Absolutely â after generation you can download your resume as a high-quality PDF or a Word document (.docx) with your chosen template and colors."},{question:"Do I need to sign up to use TrueResume?",answer:"You can try generation without signup, but signing up enables saving resumes, profile-driven generation, and subscription features for unlimited or higher-volume exports."},{question:"Will my personal data appear publicly on TrueResume?",answer:"No â TrueResume does not publish your personal resume data publicly by default. Any resume examples used for marketing are anonymized and remove personal identifiers."},{question:"I misspell the brand (e.g., TruResume) â will searches still find TrueResume?",answer:"Search engines learn common brand variants and misspellings. TrueResume provides canonical brand signals and structured data so both correct and commonly-misspelled searches are recognized."}].map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))},sa=t9?Array.isArray(t9)?[...t9,se]:[t9,se]:se;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c(),{children:[(0,s.jsx)("title",{children:"Smart Resume Generator | TrueResume - ATS-Optimized Resume Builder"}),(0,s.jsx)("meta",{name:"description",content:"Create your professional, ATS-optimized resume in seconds. Paste any job description and our AI generates a perfectly tailored resume with 90%+ ATS match score."}),(0,s.jsx)("meta",{name:"keywords",content:"create resume, AI resume builder, ATS resume, resume generator, job application, professional resume maker"}),(0,s.jsx)("link",{rel:"canonical",href:"https://trueresume.ai/create-resume"}),(0,s.jsx)("meta",{property:"og:title",content:"Create AI Resume | TrueResume - Get 3x More Interviews"}),(0,s.jsx)("meta",{property:"og:description",content:"Create your professional, ATS-optimized resume in seconds. Our AI analyzes job descriptions and generates tailored resumes with 90%+ match scores."}),(0,s.jsx)("meta",{property:"og:url",content:"https://trueresume.ai/create-resume"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:image",content:"https://trueresume.ai/og-image.png"}),(0,s.jsx)("meta",{property:"og:site_name",content:"TrueResume"}),(0,s.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:title",content:"Create AI Resume | TrueResume - Get 3x More Interviews"}),(0,s.jsx)("meta",{name:"twitter:description",content:"Create your professional, ATS-optimized resume in seconds with AI"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://trueresume.ai/twitter-image.png"}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"WebApplication",name:"TrueResume AI Resume Builder",description:"AI-powered resume builder that creates ATS-optimized resumes tailored to job descriptions",url:"https://trueresume.ai/create-resume",applicationCategory:"BusinessApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["AI-Powered Resume Generation","ATS Optimization (90%+ Match Score)","Job Description Analysis","Professional Templates","Instant PDF & Word Download","Real-time ATS Score","Keyword Optimization","Experience Tailoring"],screenshot:"https://trueresume.ai/screenshot-create-resume.png",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",ratingCount:"2840",bestRating:"5",worstRating:"1"},author:{"@type":"Organization",name:"TrueResume",url:"https://trueresume.ai"}})}}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://trueresume.ai"},{"@type":"ListItem",position:2,name:"Create Resume",item:"https://trueresume.ai/create-resume"}]})}})]}),(0,s.jsx)(m.Z,{title:eK?"".concat((null===(e=eK.personalInfo)||void 0===e?void 0:e.fullName)||"Resume"," â Generated Resume | TrueResume"):"Create Resume - TrueResume",description:(null==eK?void 0:eK.summary)||"Generate a professional, ATS-optimized resume tailored to a job description using AI.",canonical:"https://trueresume.ai/create-resume",structuredData:sa}),(0,s.jsx)(et,{active:eL||a5,message:"AI generation in progress â please stay on this page until complete."}),(eL||a5)&&(0,s.jsx)(B.Z,{fullScreen:!0,children:(0,s.jsx)(ea,{isVisible:!0,theme:$,showBackdrop:!1,generationType:aX})}),e_&&"pdf"===eH&&(0,s.jsx)(B.Z,{fullScreen:!0,showBrandIcon:!0,message:"Preparing your PDF â one moment please"}),e_&&"word"===eH&&(0,s.jsx)(B.Z,{fullScreen:!0,showBrandIcon:!0,message:"Preparing Word document â please wait..."}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"h-screen pt-12 sm:pt-16 has-bottom-bar overflow-hidden relative ".concat("dark"===$?"bg-[#030303]":"bg-transparent"),children:[(0,s.jsx)(r(),{id:"af6cbd54a7b0fbaa",children:".resume-preview-step3 .ats-professional,.resume-preview-step3 .ats-modern,.resume-preview-step3 .ats-executive,.resume-preview-step3 .ats-minimalist,.resume-preview-step3 .ats-creative,.resume-preview-step3 .ats-technical,.resume-preview-step3 .ats-timeline,.resume-preview-step3 .ats-sidebar,.resume-preview-step3 .ats-classic-traditional,.resume-preview-step3 .ats-executive-bold,.resume-preview-step3 .ats-modern-accent,.resume-preview-step3 .ats-elegant-simple,.resume-preview-step4 .ats-professional,.resume-preview-step4 .ats-modern,.resume-preview-step4 .ats-executive,.resume-preview-step4 .ats-minimalist,.resume-preview-step4 .ats-creative,.resume-preview-step4 .ats-technical,.resume-preview-step4 .ats-timeline,.resume-preview-step4 .ats-sidebar,.resume-preview-step4 .ats-classic-traditional,.resume-preview-step4 .ats-executive-bold,.resume-preview-step4 .ats-modern-accent,.resume-preview-step4 .ats-elegant-simple{margin:0!important;width:100%!important;max-width:100%!important}@media(min-width:1024px){.create-resume-step1-grid{display:grid;grid-template-rows:1fr;-webkit-box-align:stretch;-webkit-align-items:stretch;-moz-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.create-resume-step1-grid--with-reviews{grid-template-columns:minmax(0,1fr)minmax(280px,340px)minmax(240px,300px)}.create-resume-step1-grid--preview-only{grid-template-columns:minmax(0,1fr)minmax(300px,360px)}}@media(min-width:1280px){.create-resume-step1-grid--with-reviews{grid-template-columns:minmax(0,1fr)minmax(300px,380px)minmax(260px,320px)}.create-resume-step1-grid--preview-only{grid-template-columns:minmax(0,1fr)minmax(320px,400px)}}@media(min-width:1536px){.create-resume-step1-grid--with-reviews{grid-template-columns:minmax(0,1.05fr)minmax(360px,min(30vw,520px))minmax(280px,min(22vw,400px))}.create-resume-step1-grid--preview-only{grid-template-columns:minmax(0,1fr)minmax(380px,min(36vw,580px))}}@media(min-width:1800px){.create-resume-step1-grid--with-reviews{grid-template-columns:minmax(0,1.1fr)minmax(420px,min(32vw,640px))minmax(300px,min(20vw,460px))}.create-resume-step1-grid--preview-only{grid-template-columns:minmax(0,1.05fr)minmax(440px,min(40vw,700px))}}"}),(0,s.jsx)(y.Z,{}),1===eo&&Y&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa relative z-20",children:(0,s.jsx)(ec,{onUpgradeClick:()=>to(!0),refreshTrigger:tg,onUsageUpdate:(e,a)=>{tu(e),tx(a)}},"usage-".concat(tg))}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa relative z-10 flex flex-col mobile-container h-full",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"flex-shrink-0 ".concat(1===eo?"py-2 sm:py-4":"py-1 sm:py-2"),children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa px-3 sm:px-6",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-1.5 sm:gap-3",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa block sm:hidden",children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center justify-center gap-1 pr-0.5",children:[{num:1,icon:ev.Z,label:"Job Description"},{num:2,icon:M.Z,label:"Profile"},{num:3,icon:ej.Z,label:"Customize"},{num:4,icon:O.Z,label:"Download"}].map((e,a)=>{let t=e.icon,i=eo>=e.num,r=eo===e.num,n=e.num<eo||e.num===eo;return(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-1",children:[(0,s.jsx)(p.E.button,{onClick:()=>e.num<eo&&el(e.num),whileHover:n?{scale:1.05}:{},whileTap:n?{scale:.95}:{},disabled:e.num>eo,className:"relative flex items-center justify-center w-9 h-9 rounded-full transition-all ".concat(r?"dark"===$?"bg-[#FF4500] border border-[#FF4500] shadow-lg shadow-[#FF4500]/30 breathing-glow":"bg-[#FF4500] border border-[#CC3700] shadow-lg shadow-[#FF4500]/30 breathing-glow":i?"dark"===$?"bg-[#343536] border border-[#343536] curs
1or-pointer hover:bg-[#343536]":"bg-white border border-[#EDEFF1] cursor-pointer hover:bg-gray-100":"dark"===$?"bg-[#272729] border border-[#343536]":"bg-white border border-[#EDEFF1]"),title:e.label,children:(0,s.jsx)(t,{className:"jsx-af6cbd54a7b0fbaa "+"w-4 h-4 ".concat(r?"text-white":i?"dark"===$?"text-[#D7DADC]":"text-[#1C1C1C]":"dark"===$?"text-[#818384]":"text-[#7C7C7C]")})}),a<3&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"w-2 h-0.5 ".concat(eo>e.num?"bg-[#FF4500]":"dark"===$?"bg-[#343536]":"bg-[#EDEFF1]")})]},e.num)})})}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa hidden sm:flex items-center justify-center gap-2",children:[{num:1,icon:ev.Z,label:"Job Description"},{num:2,icon:M.Z,label:"Profile"},{num:3,icon:ej.Z,label:"Customize"},{num:4,icon:O.Z,label:"Download"}].map((e,a)=>{let t=e.icon,i=eo>=e.num,r=eo===e.num,n=e.num<eo||e.num===eo;return(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center",children:[(0,s.jsxs)("button",{onClick:()=>{e.num<eo&&tG(()=>el(e.num))},disabled:!n||e.num>eo,className:"jsx-af6cbd54a7b0fbaa "+"group relative flex items-center justify-center transition-all ".concat(n&&e.num<eo?"cursor-pointer hover:scale-110":e.num>eo?"cursor-not-allowed":""),children:[(0,s.jsxs)(p.E.div,{initial:{scale:.8,opacity:0}
1,animate:{scale:r?1.05:1,opacity:1},transition:{delay:.05*a},className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"relative flex items-center justify-center w-8 h-8 rounded-lg transition-all duration-300 ".concat(i?r?"bg-[#FF4500] text-white shadow-lg shadow-blue-500/30":"bg-[#FF4500] text-white":"dark"===$?"bg-[#343536] text-[#818384]":"bg-white text-[#818384]"),children:eo>e.num?(0,s.jsx)(U.Z,{className:"w-4 h-4"}):(0,s.jsx)(t,{className:"jsx-af6cbd54a7b0fbaa w-4 h-4"})}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-sm font-medium transition-all ".concat(i?"dark"===$?"text-white":"text-[#1A1A1B]":"dark"===$?"text-[#4F4F51]":"text-[#818384]"),children:e.label})]}),n&&e.num<eo&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"absolute -bottom-8 left-1/2 -translate-x-1/2 px-2 py-1 rounded text-xs font-medium whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-50 ".concat("dark"===$?"bg-[#272729] text-white":"bg-gray-900 text-white"),children:["Go to ",e.label]})]}),a<3&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"w-12 h-0.5 mx-2 rounded-full ".concat(eo>e.num?"bg-[#FF4500]":"dark"===$?"bg-[#343536]":"bg-white")})]},e.num)})})]}),1===eo&&"free"===tb&&(0,s.jsx)(eh,{className:"shrink-0 self-center",onSelectOffer:e=>{td(e),to(!0)}})]})})}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"flex-1 min-h-0 ".concat(1===eo&&er?"overflow-y-auto lg:overflow-hidden":"overflow-hidden"," ").concat(1===eo?"pb-[120px] sm:pb-[100px] lg:pb-10":"pb-0"),children:(0,s.jsxs)(g.M,{mode:"wait",children:[1===eo&&(0,s.jsx)(p.E.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.2},className:er?"flex min-h-full lg:h-full w-full max-w-full flex-col items-stretch px-2 sm:px-3 py-2 pt-3 sm:py-3 sm:pt-4":"h-full flex items-stretch justify-center px-2 sm:px-6 py-2 sm:py-6 pt-4 sm:pt-6",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+((er?"flex w-full max-w-full flex-col gap-4 pb-2 lg:flex-1 lg:min-h-0":"w-full h-full px-4 sm:px-8 pb-3 sm:pb-1")||""),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+((er?"create-resume-step1-grid create-resume-step1-grid--with-reviews flex min-h-[min(52vh,560px)] flex-1 flex-col overflow-hidden rounded-2xl border lg:min-h-0 lg:h-full ".concat("dark"===$?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1] shadow-[0_8px_40px_-12px_rgba(0,0,0,0.08)]"):"create-resume-step1-grid create-resume-step1-grid--preview-only h-full flex flex-col lg:min-h-0 lg:h-full rounded-2xl border overflow-hidden ".concat("dark"===$?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1] shadow-[0_8px_40px_-12px_rgba(0,0,0,0.08)]"))||""),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+((er?"flex min-h-0 flex-1 flex-col min-w-0 lg:flex-none lg:h-full lg:min-h-0":"flex flex-1 flex-col min-h-0 min-w-0 lg:flex-none lg:h-full lg:min-h-0")||""),children:[(0,s.jsx)("textarea",{value:ed,onChange:e=>ef(e.target.value),onPaste:e=>{e.stopPropagation()},placeholder:"Paste your job description here...\n\nExample:\nPython Developer\n\nMust Have Skills:\n⢠Core Python, Flask, GraphQL, FASTAPI\n⢠React, Next.JS, Tailwind CSS\n⢠Microservices, PostgreSQL\n\nResponsibilities:\n⢠Design and implement back-end software components\n⢠Develop and maintain front-end web pages\n⢠Create and maintain APIs and web services\n⢠Participate in the entire software development life cycle",style:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},autoFocus:!0,className:"jsx-af6cbd54a7b0fbaa "+"w-full flex-grow min-h-[80px] sm:min-h-[200px] md:min-h-[250px] lg:min-h-[300px] px-4 sm:px-8 py-3 sm:py-8 text-sm sm:text-base resize-none bg-transparent border-0 focus:outline-none focus:ring-0 overflow-y-auto jd-textarea-scrollbar ".concat("dark"===$?"text-white placeholder-[#818384]":"text-[#1A1A1B] placeholder-[#818384]")}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"relative flex-shrink-0 border-t lg:hidden ".concat("dark"===$?"border-[#343536]":"border-[#
1EDEFF1]"),children:[(0,s.jsxs)(g.M,{children:[aK&&(0,s.jsxs)(p.E.div,{initial:{opacity:0,y:20,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:20,height:0},transition:{type:"spring",damping:25,stiffness:300},className:"absolute bottom-full left-0 right-0 z-50 overflow-hidden rounded-t-2xl border-t border-x shadow-2xl ".concat("dark"===$?"bg-[#1A1A1B]/98 border-[#343536]/80 shadow-black/40":"bg-white/98 border-[#EDEFF1] shadow-black/10"),style:{backdropFilter:"blur(20px)"},children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-between px-4 py-3 border-b ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"p-1.5 rounded-lg ".concat("bg-[#FF4500]/15"),children:(0,s.jsx)(I.Z,{className:"w-4 h-4 ".concat("text-[#FF4500]")})}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-sm font-semibold ".concat("dark"===$?"text-white":"text-[#1A1A1B]"),children:"ATS Templates"})]}),(0,s.jsx)("button",{onClick:()=>aQ(!1),className:"jsx-af6cbd54a7b0fbaa "+"p-1.5 rounded-lg transition-colors ".concat("dark"===$?"hover:bg-[#272729] text-[#818384]":"hover:bg-gray-100 text-[#818384]"),children:(0,s.jsx)(K.Z,{className:"w-4 h-4"})})]}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa h-[55vh] max-h-[420px] overflow-hidden",children:(0,s.jsx)(eM,{className:"w-full h-full"},"mobile-preview")})]}),a_&&(0,s.jsxs)(p.E.div,{initial:{opacity:0,y:20,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:20,height:0},transition:{type:"spring",damping:25,stiffness:300},className:"absolute bottom-full left-0 right-0 z-50 overflow-hidden rounded-t-2xl border-t border-x shadow-2xl ".concat("dark"===$?"bg-[#1A1A1B] border-[#343536]/80 shadow-black/40":"bg-white border-[#EDEFF1] shadow-black/10"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-between px-4 py-3 border-b ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"p-1.5 rounded-lg ".concat("bg-[#FF4500]/15"),children:(0,s.jsx)(ew.Z,{className:"w-4 h-4 ".concat("text-[#FF4500]")})}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-sm font-semibold ".concat("dark"===$?"text-white":"text-[#1A1A1B]"),children:"Custom Instructions"}),(void 0!==aG||void 0!==aH||aY)&&(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"px-2 py-0.5 text-[10px] font-semibold rounded-full ".concat("bg-[#FF4500]/15 text-[#FF4500]/20"),children:"Active"})]}),(0,s.jsx)("button",{onClick:()=>aZ(!1),className:"jsx-af6cbd54a7b0fbaa "+"p-1.5 rounded-lg transition-colors ".concat("dark"===$?"hover:bg-[#272729] text-[#818384]":"hover:bg-gray-100 text-[#818384]"),children:(0,s.jsx)(K.Z,{className:"w-4 h-4"})})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa px-4 py-4 space-y-4 max-h-[55vh] overflow-y-auto",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"block text-xs font-semibold uppercase tracking-wider ".concat("text-[#818384]"),children:"Bullets per Experience"}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-1.5",children:[(0,s.jsx)("button",{onClick:()=>aU(void 0),className:"jsx-af6cbd54a7b0fbaa "+"px-3 py-2 rounded-xl text-xs font-semibold transition-all ".concat(void 0===aG?"dark"===$?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/15":"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/20":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-[#F6F7F8] text-[#1A1A1B] hover:bg-[#EDEFF1] border border-[#EDEFF1]"),children:"Auto"}),[5,8,10,13].map(e=>(0,s.jsx)("button",{onClick:()=>aU(e),className:"jsx-af6cbd54a7b0fbaa "+"px-3 py-2 rounded-xl text-xs font-semibold transition-all ".concat(aG===e?"dark"===$?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/15":"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/20":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-[#F6F7F8] text-[#1A1A1B] hover:bg-[#
1EDEFF1] border border-[#EDEFF1]"),children:e},e))]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"block text-xs font-semibold uppercase tracking-wider ".concat("text-[#818384]"),children:"Bullet Point Size"}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-1.5",children:[(0,s.jsx)("button",{onClick:()=>aJ(void 0),className:"jsx-af6cbd54a7b0fbaa "+"px-3 py-2 rounded-xl text-xs font-semibold transition-all ".concat(void 0===aH?"dark"===$?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/15":"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/20":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-[#F6F7F8] text-[#1A1A1B] hover:bg-[#EDEFF1] border border-[#EDEFF1]"),children:"Auto"}),[{value:"1",label:"1 line"},{value:"1.5",label:"1.5"},{value:"2",label:"2 lines"}].map(e=>(0,s.jsx)("button",{onClick:()=>aJ(e.value),className:"jsx-af6cbd54a7b0fbaa "+"px-3 py-2 rounded-xl text-xs font-semibold transition-all ".concat(aH===e.value?"dark"===$?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/15":"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/20":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-[#F6F7F8] text-[#1A1A1B] hover:bg-[#EDEFF1] border border-[#EDEFF1]"),children:e.label},e.value))]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"block text-xs font-semibold uppercase tracking-wider ".concat("text-[#818384]"),children:"Custom Prompt"}),(0,s.jsx)("textarea",{value:aY,onChange:e=>aV(e.target.value),placeholder:"E.g., Focus on leadership, emphasize cloud tech...",rows:2,className:"jsx-af6cbd54a7b0fbaa "+"w-full px-4 py-3 rounded-xl text-sm resize-none transition-colors ".concat("dark"===$?"bg-[#272729] text-white placeholder-[#818384] border-[#343536] focus:border-[#FF4500] focus:ring-[#FF4500]/15":"bg-[#F6F7F8] text-[#1A1A1B] placeholder-[#818384] border-[#EDEFF1] focus:border-[#FF4500] focus:ring-[#FF4500]/15"," border focus:outline-none focus:ring-2")})]})]})]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{aZ(!1),aQ(!aK)},className:"jsx-af6cbd54a7b0fbaa "+"flex-1 flex items-center justify-center gap-2 py-3.5 text-xs font-semibold transition-all border-r ".concat(aK?"dark"===$?"text-[#FF4500] bg-[#FF4500]/10 border-[#343536]":"text-[#FF4500] bg-[#FF4500]/10 border-[#EDEFF1]":"dark"===$?"text-[#818384] hover:text-[#D7DADC] hover:bg-[#272729] border-[#343536]":"text-[#818384] hover:text-[#1A1A1B] hover:bg-[#EDEFF1] border-[#EDEFF1]"),children:[(0,s.jsx)(I.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Templates"}),aK&&(0,s.jsx)(ek.Z,{className:"w-3 h-3 rotate-180"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{aQ(!1),aZ(!a_)},className:"jsx-af6cbd54a7b0fbaa "+"flex-1 flex items-center justify-center gap-2 py-3.5 text-xs font-semibold transition-all ".concat(a_?"text-[#FF4500] bg-[#FF4500]/10":"dark"===$?"text-[#818384] hover:text-[#D7DADC] hover:bg-[#272729]":"text-[#818384] hover:text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ew.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Instructions"}),(void 0!==aG||void 0!==aH||aY)&&(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"w-2 h-2 rounded-full ".concat("dark"===$?"bg-[#FF4500]/20":"bg-[#FF4500]")}),a_&&(0,s.jsx)(ek.Z,{className:"w-3 h-3 rotate-180"})]})]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"relative flex-shrink-0 border-t hidden lg:block ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]"),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>aZ(!a_),className:"jsx-af6cbd54a7b0fbaa "+"w-full px-8 py-3 flex items-center justify-between text-sm font-medium transition-colors ".concat("dark"===$?"text-[#818384] hover:text-white hover:bg-[#272729]":"text-[#818384] hover:text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2",children:[(0,s.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"jsx-af6cbd54a7b0fbaa "+"w-4 h-4 transition-transform ".concat(a_?"rotate-180":""),children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7",className:"jsx-af6cbd54a7b0fbaa"})}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Custom Instructions"}),(void 0!==aG||void 0!==aH||aY)&&(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"ml-2 px-2 py-0.5 text-xs rounded-full ".concat("bg-[#FF4500]/15 text-[#FF4500]/20"),children:"Customized"})]}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs ".concat("text-[#818384]"),children:"Optional"})]}),(0,s.jsx)(g.M,{children:a_&&(0,s.jsx)(p.E.div,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"absolute bottom-full left-0 right-0 z-50 rounded-t-xl border ".concat("dark"===$?"bg-[#272729] border-[#343536]":"bg-white border-[#EDEFF1]"),children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa px-8 py-4 space-y-4",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa block text-sm font-medium text-[#D7DADC]",children:"Bullets per Experience"}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-1.5",children:[(0,s.jsx)("button",{onClick:()=>aU(void 0),className:"jsx-af6cbd54a7b0fbaa "+"px-2.5 py-1.5 rounded-lg text-xs font-medium transition-all ".concat(void 0===aG?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/25":"bg-[#343536] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]"),children:"Auto"}),[5,8,10,13].map(e=>(0,s.jsx)("button",{onClick:()=>aU(e),className:"jsx-af6cbd54a7b0fbaa "+"px-2.5 py-1.5 rounded-lg text-xs font-medium transition-all ".concat(aG===e?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/25":"bg-[#343536] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]"),children:e},e))]}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs text-[#818384]",children:"Number of bullet points for each job"})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa block text-sm font-medium text-[#D7DADC]",children:"Bullet Point Size"}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-1.5",children:[(0,s.jsx)("button",{onClick:()=>aJ(void 0),className:"jsx-af6cbd54a7b0fbaa "+"px-2.5 py-1.5 rounded-lg text-xs font-medium transition-all ".concat(void 0===aH?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/25":"bg-[#343536] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]"),children:"Auto"}),[{value:"1",label:"1 line"},{value:"1.5",label:"1.5"},{value:"2",label:"2 lines"}].map(e=>(0,s.jsx)("button",{onClick:()=>aJ(e.value),className:"jsx-af6cbd54a7b0fbaa "+"px-2.5 py-1.5 rounded-lg text-xs font-medium transition-all ".concat(aH===e.value?"bg-[#FF4500] text-white shadow-lg shadow-[#FF4500]/25":"bg-[#343536] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]"),children:e.label},e.value))]}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs text-[#818384]",children:"Length of each bullet point"})]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa block text-sm font-medium text-[#D7DADC]",children:"Custom Instructions (Optional)"}),(0,s.jsx)("textarea",{value:aY,onChange:e=>aV(e.target.value),placeholder:"E.g., Focus on leadership experience, emphasize cloud technologies, highlight certifications...",rows:2,className:"jsx-af6cbd54a7b0fbaa w-full px-4 py-3 rounded-lg text-sm resize-none transition-colors bg-[#343536] text-white placeholder-[#818384] border-[#343536] focus:border-[#FF4500] focus:ring-[#FF4500]/15 border focus:outline-none focus:ring-2"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs text-[#818384]",children:"Add specific instructions for how your resume should be tailored"})]})]})})})]})]}),er?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"relative z-10 hidden min-h-0 min-w-0 flex-col border-t lg:flex lg:h-full lg:min-h-0 lg:border-l lg:border-t-0 lg:overflow-hidden ".concat("dark"===$?"border-[#343536] bg-[#272729]/20":"border-[#EDEFF1] bg-[#F6F7F8]"),children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa flex min-h-0 w-full flex-1 flex-col items-stretch justify-center overflow-hidden p-1.5 2xl:p-2",children:(0,s.jsx)(eM,{className:"flex h-full min-h-0 w-full min-w-0 flex-1"})})}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"relative z-0 hidden min-h-0 flex-col border-t p-1.5 lg:flex lg:h-full lg:min-h-0 lg:min-w-0 lg:border-l lg:border-t-0 2xl:p-2.5 ".concat("dark"===$?"border-[#343536] bg-[#272729]/20":"border-[#
1EDEFF1] bg-[#F6F7F8]"),children:(0,s.jsx)(e$,{className:"min-h-0 flex-1"})})]}):(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"hidden lg:flex lg:h-full lg:min-h-0 lg:flex-col lg:border-l lg:overflow-hidden ".concat("dark"===$?"border-[#343536] bg-[#272729]/20":"border-[#EDEFF1] bg-[#F6F7F8]"),children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa flex min-h-0 w-full flex-1 flex-col items-stretch justify-center overflow-hidden p-1.5 2xl:p-2",children:(0,s.jsx)(eM,{className:"flex h-full min-h-0 w-full min-w-0 flex-1"})})})]}),er&&(0,s.jsx)("aside",{"aria-label":"Member reviews",className:"jsx-af6cbd54a7b0fbaa w-full min-w-0 max-w-full shrink-0 scroll-mt-28 lg:hidden",children:(0,s.jsx)(eU.Z,{surface:"hero",variant:"trustRail"})})]})},"step1"),2===eo&&(0,s.jsx)(p.E.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.2},className:"h-full flex items-center justify-center px-3 sm:px-6 py-3 sm:py-6",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"w-full max-w-2xl p-6 sm:p-12 rounded-xl sm:rounded-2xl border-2 shadow-lg ".concat("dark"===$?"border-[#343536] bg-[#1A1A1B]":"border-[#EDEFF1] bg-white shadow-[0_8px_40px_-12px_rgba(0,0,0,0.08)]"),children:["checking"===eu&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa text-center py-8",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa relative inline-block mb-6",children:(0,s.jsx)(eN.Z,{className:"w-16 h-16 animate-spin ".concat("text-[#FF4500]")})}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa "+"text-lg ".concat("dark"===$?"text-gray-300":"text-gray-600"),children:"Checking your profile..."})]}),"complete"===eu&&(0,s.jsxs)(p.E.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"text-center py-8",children:[(0,s.jsx)(U.Z,{className:"w-14 h-14 sm:w-16 sm:h-16 text-green-500 mx-auto mb-6"}),(0,s.jsx)("h3",{style:{fontFamily:"Rajdhani, sans-serif"},className:"jsx-af6cbd54a7b0fbaa "+"text-2xl font-bold mb-2 ".concat("dark"===$?"text-white":"text-[#1A1A1B]"),children:"Profile Complete"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa "+"".concat("dark"===$?"text-gray-400":"text-gray-500"),children:"Ready to generate your resume"})]}),("missing"===eu||"incomplete"===eu)&&(0,s.jsxs)(p.E.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"text-center py-8",children:[(0,s.jsx)(eF.Z,{className:"w-14 h-14 sm:w-16 sm:h-16 mx-auto mb-6 ".concat("dark"===$?"text-orange-400":"text-orange-500")}),(0,s.jsx)("h3",{style:{fontFamily:"Rajdhani, sans-serif"},className:"jsx-af6cbd54a7b0fbaa "+"text-2xl font-bold mb-3 ".concat("dark"===$?"text-white":"text-[#1A1A1B]"),children:Y?"missing"===eu?"Profile Not Found":"Profile Incomplete":"Login Required"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa "+"mb-8 ".concat("dark"===$?"text-gray-400":"text-gray-500"),children:Y?"missing"===eu?"Create your profile to start generating resumes":"Complete your profile with work experience to continue":"Please login to access your profile and generate resumes"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa flex gap-4 justify-center flex-wrap",children:Y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>ee.push("/profile-setup"),className:"jsx-af6cbd54a7b0fbaa "+"px-8 py-3 rounded-full font-semibold transition-all hover:scale-105 ".concat("dark"===$?"bg-white text-[#1C1C1C] hover:bg-[#EDEFF1]":"bg-[#FF4500] text-white hover:shadow-lg hover:shadow-[#FF4500]/25"),children:"missing"===eu?"Create Profile":"Complete Profile"}),(0,s.jsx)("button",{onClick:tH,className:"jsx-af6cbd54a7b0fbaa "+"px-6 py-3 rounded-full font-medium transition-all hover:scale-105 border-2 ".concat("dark"===$?"bg-[#1A1A1B] text-white border-[#343536] hover:bg-[#272729]":"bg-[#F6F7F8] text-[#1A1A1B] border-[#EDEFF1] hover:bg-[#EDEFF1]"),children:"Retry"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>{ed.trim().length>100&&(localStorage.setItem("loginJD",ed),localStorage.setItem("postLoginRedirect","true")),ee.push("/login?callbackUrl=/create-resume")},className:"jsx-af6cbd54a7b0fbaa "+"px-8 py-3 rounded-full font-semibold transition-all hover:scale-105 shadow-lg ".concat("bg-[#FF4500] text-white hover:bg-[#
1E03D00]"),children:"Login Now"}),(0,s.jsx)("button",{onClick:()=>tG(()=>el(1)),className:"jsx-af6cbd54a7b0fbaa "+"px-6 py-3 rounded-full font-medium transition-all hover:scale-105 border-2 ".concat("dark"===$?"bg-[#1A1A1B] text-white border-[#343536] hover:bg-[#272729]":"bg-[#F6F7F8] text-[#1A1A1B] border-[#EDEFF1] hover:bg-[#EDEFF1]"),children:"Go Back"})]})})]})]})},"step2"),3===eo&&(0,s.jsx)(p.E.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.2},className:"h-full px-1 sm:px-3 py-0.5 sm:py-1",children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa h-full overflow-y-auto lg:overflow-hidden",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex flex-col lg:grid lg:grid-cols-[360px_1fr] gap-1.5 lg:gap-2 lg:h-full",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"rounded-xl border-2 p-3 sm:p-4 lg:overflow-y-auto order-2 lg:order-1 ".concat("dark"===$?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1] shadow-[0_4px_24px_-6px_rgba(0,0,0,0.08)]"),children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-4 lg:space-y-6",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-semibold uppercase tracking-wider ".concat("dark"===$?"text-[#818384]":"text-gray-500"),children:"What to Generate"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-1 gap-2",children:[{id:"resume",name:"Resume Only",craneVariant:"profile",description:"ATS-optimized resume"},{id:"cover-letter",name:"Cover Letter Only",craneVariant:"team",description:"Tailored cover letter"},{id:"both",name:"Resume + Cover Letter",craneVariant:"rocket",description:"Complete package",tag:"Best Value"}].map(e=>(0,s.jsxs)("button",{onClick:()=>a$(e.id),className:"jsx-af6cbd54a7b0fbaa "+"relative w-full flex items-center gap-3 p-3 rounded-xl text-left transition-all active:scale-[0.98] border-2 ".concat(aX===e.id?"bg-gradient-to-r from-[#FF4500]/20 to-[#E03D00]/20 border-[#FF4500] shadow-md":"dark"===$?"bg-[#272729] border-[#343536] hover:border-[#343536] hover:bg-[#272729]":"bg-white border-[#EDEFF1] hover:border-[#D7DADC] hover:bg-gray-100"),children:[(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa inline-flex text-xl leading-none items-center justify-center",children:(0,s.jsx)(x.ZP,{variant:e.craneVariant,size:26})}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex-1",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"font-semibold text-sm ".concat(aX===e.id?"dark"===$?"text-white":"text-[#FF4500]":"dark"===$?"text-[#D7DADC]":"text-[#1A1A1B]"),children:e.name}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs ".concat("text-[#818384]"),children:e.description})]}),aX===e.id&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"w-5 h-5 rounded-full flex items-center justify-center ".concat("bg-[#FF4500]"),children:(0,s.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"jsx-af6cbd54a7b0fbaa w-3 h-3 text-white",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7",className:"jsx-af6cbd54a7b0fbaa"})})}),e.tag&&(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa absolute -top-2 -right-2 px-2 py-0.5 text-[10px] font-bold rounded-full bg-gradient-to-r from-[#FF4500] to-orange-500 text-white shadow-lg",children:e.tag})]},e.id))})]}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"border-t ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]")}),("resume"===aX||"both"===aX)&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-1.5 sm:space-y-3",children:[(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-semibold uppercase tracking-wider ".concat("dark"===$?"text-[#818384]":"text-gray-500"),children:"Template"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-2 gap-1.5 sm:gap-3",children:S.$.map(e=>{var a,t,i,r;let n=S.T[e],o=null!==(i=null===(a=n.createBadge)||void 0===a?void 0:a.tag)&&void 0!==i?i:null,l=null!==(r=null===(t=n.createBadge)||void 0===t?void 0:t.tagColor)&&void 0!==r?r:null;return(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa relative",children:[(0,s.jsx)("button",{onClick:()=>eB(e),className:"jsx-af6cbd54a7b0fbaa "+"w-full py-2 px-2 rounded-lg text-xs font-medium transition-all active:scale-95 ".concat(eq===e?"bg-[#FF4500] text-white shadow-lg":"dark"===$?"bg-[#272729] text-[#D7DADC] border border-[#343536] hover:bg-[#272729]":"bg-white text-[#1A1A1B] border border-[#
1EDEFF1] hover:bg-gray-100"),children:n.name}),o&&(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"absolute -top-2 -right-2 px-2 py-0.5 text-[10px] font-bold rounded-full ".concat("blue"===l?"bg-[#FF4500] text-white":"purple"===l?"bg-[#FF4500] text-white":"green"===l?"bg-green-500 text-white":"orange"===l?"bg-orange-500 text-white":"bg-gray-200 text-gray-700 dark:bg-[#343536] dark:text-[#D7DADC]"),children:o})]},e)})})]}),"cover-letter"!==aX&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-1.5 sm:space-y-3",children:[(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-semibold uppercase tracking-wider ".concat("dark"===$?"text-[#818384]":"text-gray-500"),children:"Color"}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-4 gap-1.5 sm:gap-3",children:[(0,s.jsx)("button",{onClick:()=>eW("none"),title:"Default Black",className:"jsx-af6cbd54a7b0fbaa "+"aspect-square rounded-md transition-all active:scale-95 border flex items-center justify-center ".concat("none"===eT?"dark"===$?"ring-2 ring-white ring-offset-2 ring-offset-[#030303] border-white bg-[#1A1A1B] shadow-lg":"ring-2 ring-[#343536] ring-offset-2 ring-offset-white border-[#1A1A1B] bg-white shadow-lg":"dark"===$?"border-[#343536] bg-[#272729]":"border-[#EDEFF1] bg-white"),children:(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-[10px] sm:text-xs font-semibold ".concat("dark"===$?"text-white":"text-black"),children:"None"})}),N.R.slice(0,7).map(e=>(0,s.jsx)("button",{onClick:()=>eW(e.id),style:{backgroundColor:e.colors.primary},title:e.name,className:"jsx-af6cbd54a7b0fbaa "+"aspect-square rounded-md transition-all active:scale-95 border ".concat(eT===e.id?"dark"===$?"ring-2 ring-white ring-offset-2 ring-offset-[#030303] border-white shadow-lg":"ring-2 ring-[#343536] ring-offset-2 ring-offset-white border-[#1A1A1B] shadow-lg":"dark"===$?"border-[#343536]":"border-[#EDEFF1]")},e.id))]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-1.5 sm:space-y-3",children:[(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-semibold uppercase tracking-wider ".concat("dark"===$?"text-[#818384]":"text-gray-500"),children:"Font"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-2 gap-1.5 sm:gap-3",children:F.R.map(e=>(0,s.jsx)("button",{onClick:()=>ez(e.id),style:{fontFamily:e.fontFamily},className:"jsx-af6cbd54a7b0fbaa "+"p-2 rounded-lg text-xs font-medium transition-all active:scale-95 border ".concat(eI===e.id?"dark"===$?"bg-white text-[#1C1C1C] border-white shadow-lg":"bg-[#FF4500] text-white border-[#FF4500] shadow-sm":"dark"===$?"bg-[#1A1A1B] text-gray-300 hover:bg-[#272729] border-[#343536]":"bg-[#F6F7F8] text-[#1A1A1B] hover:bg-[#EDEFF1] border-[#EDEFF1]"),children:e.name},e.id))})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-1.5 sm:space-y-3",children:[(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-semibold uppercase tracking-wider ".concat("dark"===$?"text-[#818384]":"text-gray-500"),children:"Font Size"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-3 gap-1.5 sm:gap-2",children:[{id:"small",label:"Small",desc:"9-10pt"},{id:"medium",label:"Medium",desc:"10-11pt"},{id:"large",label:"Large",desc:"11-12pt"}].map(e=>(0,s.jsxs)("button",{onClick:()=>eP(e.id),className:"jsx-af6cbd54a7b0fbaa "+"p-2 rounded-lg text-xs font-medium transition-all active:scale-95 border flex flex-col items-center ".concat(eR===e.id?"dark"===$?"bg-white text-[#1C1C1C] border-white shadow-lg":"bg-[#FF4500] text-white border-[#FF4500] shadow-sm":"dark"===$?"bg-[#1A1A1B] text-gray-300 hover:bg-[#272729] border-[#343536]":"bg-[#F6F7F8] text-[#1A1A1B] hover:bg-[#EDEFF1] border-[#EDEFF1]"),children:[(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:e.label}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-[10px] ".concat(eR===e.id?"opacity-70":"text-[#818384]"),children:e.desc})]},e.id))})]})]})}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"rounded-xl border-2 p-2 sm:p-3 lg:p-4 lg:overflow-y-auto order-1 lg:order-2 ".concat("dark"===$?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#
1EDEFF1] shadow-[0_4px_24px_-6px_rgba(0,0,0,0.08)]"),children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2 sm:space-y-3",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-between px-3 sm:px-4 py-2 rounded-lg ".concat("dark"===$?"bg-[#272729]":"bg-white"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2",children:[(0,s.jsx)(I.Z,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa text-xs sm:text-sm font-medium",children:"cover-letter"===aX?"Cover Letter Preview":"both"===aX?"Resume Preview":"Live Preview"})]}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa text-[10px] sm:text-xs opacity-60 hidden sm:inline",children:"Changes apply instantly"})]}),("resume"===aX||"both"===aX)&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"rounded-lg sm:rounded-xl border-2 overflow-hidden shadow-lg sm:shadow-2xl resume-preview-step3 ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]"),children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa bg-white overflow-x-auto",children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa min-w-[650px]",children:(0,s.jsx)(e0,{resume:{personalInfo:{fullName:"John Michael Anderson",email:"[email protected]",phone:"+1 (555) 123-4567",location:"San Francisco, CA",linkedin:"linkedin.com/in/johnanderson",github:"github.com/janderson",portfolio:"johnanderson.dev"},summary:"Results-driven Senior Software Engineer with 8+ years of experience building scalable web applications and leading high-performing development teams. Proven expertise in React, Node.js, and cloud architecture with a track record of delivering solutions that improve efficiency by 40% and reduce costs by $2M annually. Passionate about mentoring junior developers and implementing best practices for code quality and system reliability.",experiences:[{id:"1",company:"TechCorp Solutions",title:"Senior Software Engineer",startDate:"2021-03",endDate:"Present",location:"San Francisco, CA",bullets:["Led development of microservices architecture serving 5M+ users, reducing latency by 60% and improving system reliability to 99.99% uptime","Architected and deployed cloud-native solutions on AWS, cutting infrastructure costs by $2M annually while scaling to handle 10x traffic growth","Mentored team of 8 junior developers, implementing code review practices that reduced bugs by 45% and improved deployment frequency from weekly to daily","Spearheaded migration from monolithic to microservices architecture, enabling independent team deployments and reducing release cycles from 2 weeks to 2 days","Collaborated with product managers and designers to deliver 15+ major features, resulting in 35% increase in user engagement and 28% revenue growth"],techStack:["React","Node.js","AWS","Docker","Kubernetes"]},{id:"2",company:"Digital Innovation Labs",title:"Full Stack Developer",startDate:"2018-06",endDate:"2021-02",location:"Austin, TX",bullets:["Built responsive web applications using React and Redux, serving 100K+ daily active users with 4.8/5 user satisfaction rating","Developed RESTful APIs and GraphQL endpoints using Node.js and Express, handling 50M+ API calls monthly with <100ms average response time","Implemented comprehensive testing strategy (Jest, Cypress) achieving 90% code coverage and reducing production bugs by 60%","Optimized database queries and implemented caching strategies, improving application performance by 75% and reducing server costs by 30%"],techStack:["React","Redux","Node.js","MongoDB","PostgreSQL"]},{id:"3",company:"StartupXYZ",title:"Junior Software Developer",startDate:"2016-08",endDate:"2018-05",location:"Seattle, WA",bullets:["Developed front-end features for e-commerce platform using JavaScript, HTML5, and CSS3, contributing to 50% increase in mobile conversion rates","Collaborated with cross-functional team of 12 to deliver MVP in 4 months, attracting 10K users and $1.5M seed funding","Participated in agile ceremonies and contributed to sprint planning, maintaining 95% on-time delivery rate across 24 sprints"]}],education:[{degree:"Bachelor of Science in Computer Science",field:"Computer Science",institution:"University of California, Berkeley",location:"Berkeley, CA",startYear:2012,endYear:2016,gpa:"3.8"}],skillsSection:{technical:["JavaScript/TypeScript","React/Next.js","Node.js/Express","Python/Django","AWS/Azure","Docker/Kubernetes","PostgreSQL/MongoDB","GraphQL/REST APIs","Git/CI/CD","Jest/Cypress Testing","Microservices","System Design"],soft:["Team Leadership","Agile/Scrum","Code Review","Technical Mentoring","Cross-functional Collaboration","Problem Solving","Communication","Project Planning"]},certifications:[{id:"1",name:"AWS Certified Solutions Architect - Professional",issuer:"Amazon Web Services",year:2023,credentialId:"AWS-PSA-12345"},{id:"2",name:"Certified Kubernetes Administrator (CKA)",issuer:"Cloud Native Computing Foundation",year:2022}]},template:eq,colorSchemeId:eT,fontSchemeId:eI,fontSizeScheme:eR})})})}),("cover-letter"===aX||"both"===aX)&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"rounded-lg sm:rounded-xl border-2 overflow-hidden shadow-lg sm:shadow-2xl ".concat("dark"===$?"border-[#343536]":"border-[#
1EDEFF1]"),children:(0,s.jsx)("div",{style:{fontFamily:(null===(a=(0,F.A)(eI))||void 0===a?void 0:a.fontFamily)||"Georgia, serif",fontSize:"".concat("small"===eR?11:"large"===eR?13:12,"pt"),lineHeight:"1.6"},className:"jsx-af6cbd54a7b0fbaa bg-white p-4 sm:p-8 md:p-10",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa max-w-[7in] mx-auto",children:[(0,s.jsxs)("div",{style:{color:"#1f2937"},className:"jsx-af6cbd54a7b0fbaa text-right mb-4 sm:mb-8",children:[(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa font-semibold text-base sm:text-lg",children:"John Michael Anderson"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs sm:text-sm text-gray-600",children:"San Francisco, CA"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs sm:text-sm text-gray-600",children:"[email protected]"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs sm:text-sm text-gray-600",children:"+1 (555) 123-4567"}),(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-xs sm:text-sm text-gray-500 mt-2 sm:mt-3",children:new Date().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})})]}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa mb-4 sm:mb-6",children:(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-gray-800 text-sm sm:text-base",children:"Dear Hiring Manager,"})}),(0,s.jsx)("p",{style:{textAlign:"justify"},className:"jsx-af6cbd54a7b0fbaa text-gray-700 mb-3 sm:mb-4 text-sm sm:text-base",children:"I am writing to express my strong interest in the Senior Software Engineer position at your company. With over 8 years of experience building scalable web applications and leading high-performing teams, I am confident in my ability to make a significant contribution to your organization."}),(0,s.jsx)("p",{style:{textAlign:"justify"},className:"jsx-af6cbd54a7b0fbaa text-gray-700 mb-3 sm:mb-4 text-sm sm:text-base",children:"In my current role at TechCorp Solutions, I led the development of a microservices architecture serving 5M+ users, reducing latency by 60% while improving system reliability to 99.99% uptime. I architected cloud-native solutions on AWS that cut infrastructure costs by $2M annually while scaling to handle 10x traffic growth."}),(0,s.jsx)("p",{style:{textAlign:"justify"},className:"jsx-af6cbd54a7b0fbaa text-gray-700 mb-4 sm:mb-6 text-sm sm:text-base",children:"I am excited about the opportunity to bring my technical expertise and leadership skills to your team. I would welcome the chance to discuss how my background and skills align with your needs."}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa mt-6 sm:mt-8",children:[(0,s.jsx)("p",{className:"jsx-af6cbd54a7b0fbaa text-gray-800 mb-3 sm:mb-4 text-sm sm:text-base",children:"Sincerely,"}),(0,s.jsx)("p",{style:{color:"#1f2937"},className:"jsx-af6cbd54a7b0fbaa font-semibold text-base sm:text-lg",children:"John Michael Anderson"})]})]})})})]})})]})})},"step3"),4===eo&&(eK||a0)&&(0,s.jsx)(p.E.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.2},className:"h-full px-1 sm:px-3 py-0.5 sm:py-1",children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa h-full overflow-y-auto lg:overflow-hidden",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex flex-col lg:grid lg:grid-cols-[360px_1fr] gap-1.5 lg:gap-2 lg:h-full",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"rounded-xl border-2 p-3 sm:p-4 lg:overflow-y-auto order-2 lg:order-1 ".concat("dark"===$?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1] shadow-[0_4px_24px_-6px_rgba(0,0,0,0.08)]"),children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-3 sm:space-y-4 lg:space-y-6",children:[("both"===aX||eK&&a0)&&(0,s.jsxs)("div",{"data-testid":"cover-resume-tabs",className:"jsx-af6cbd54a7b0fbaa "+"flex rounded-lg p-1 ".concat("dark"===$?"bg-[#272729]":"bg-[#F6F7F8]"),children:[(0,s.jsxs)("button",{"data-testid":"tab-resume",onClick:()=>a2("resume"),disabled:"both"!==aX&&!eK,className:"jsx-af6cbd54a7b0fbaa "+"flex-1 flex items-center justify-center gap-1.5 sm:gap-2 px-2 sm:px-3 py-2 rounded-md text-xs sm:text-sm font-medium transition-all disabled:opacity-40 disabled:cursor-not-allowed ".concat("resume"===a3?"dark"===$?"bg-[#343536] text-white shadow-lg":"bg-[#111827] text-white shadow-md":"dark"===$?"text-[#D7DADC] hover:text-white":"text-[#374151] hover:text-[#111827]"),children:[(0,s.jsx)(ev.Z,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Resume"}),"both"===aX&&!eK&&te&&(0,s.jsx)("span",{title:"Resume generation needs attention",className:"jsx-af6cbd54a7b0fbaa ml-1 inline-flex items-center justify-center min-w-[16px] h-[16px] text-[10px] font-bold rounded-full bg-red-500 text-white px-1",children:"!"})]}),(0,s.jsxs)("button",{"data-testid":"tab-cover-letter",onClick:()=>a2("cover-letter"),disabled:!a0,className:"jsx-af6cbd54a7b0fbaa "+"flex-1 flex items-center justify-center gap-1.5 sm:gap-2 px-2 sm:px-3 py-2 rounded-md text-xs sm:text-sm font-medium transition-all disabled:opacity-40 disabled:cursor-not-allowed ".concat("cover-letter"===a3?"dark"===$?"bg-[#343536] text-white shadow-lg":"bg-[#111827] text-white shadow-md":"dark"===$?"text-[#D7DADC] hover:text-white":"text-[#374151] hover:text-[#111827]"),children:[(0,s.jsx)(eS.Z,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Cover Letter"})]})]}),("resume"===a3||!a0)&&eK&&null!=eY&&(()=>{var e,a,t,i,r,n,o,l,d,c,m,f,u,x,p,g,y,v,j,w,k,N,F,S,A,D,C,E,q,B,T,W,I,z,R,P,L,M;let O=(null==eK?void 0:eK.breakdown)||(null==eK?void 0:null===(e=eK._meta)||void 0===e?void 0:e.breakdown),_=(null==eK?void 0:eK.sectionScores)||(null==eK?void 0:null===(a=eK._meta)||void 0===a?void 0:a.sectionScores),Z=(null==eK?void 0:eK.atsAnalysis)||(null==eK?void 0:null===(t=eK._meta)||void 0===t?void 0:t.atsAnalysis),G=(null==ao?void 0:ao.matchRate)||(null==e9?void 0:e9.matchRate)||(null==Z?void 0:Z.matchRate)||null,U={totalScore:Math.round(null!==(W=null!==(T=null==ao?void 0:ao.totalScore)&&void 0!==T?T:eY)&&void 0!==W?W:0),matchRate:G,breakdown:(null==ao?void 0:ao.breakdown)||(null==e9?void 0:e9.v3Breakdown)||(null==e9?void 0:e9.breakdown)||O||(null==Z?void 0:Z.breakdown)||{hardSkillMatch:0,jobTitleMatch:0,measurableResults:0,keywordPlacement:0,searchability:0,skillDiversity:0}
1,penalties:(null==ao?void 0:ao.penalties)||(null==e9?void 0:e9.v3Penalties)||(null==e9?void 0:e9.penalties)||(null==Z?void 0:Z.penalties)||{missingCriticalSkills:0,keywordStuffing:0,genericContent:0,missingMetrics:0},details:{skillsFound:(null==ao?void 0:null===(i=ao.details)||void 0===i?void 0:i.skillsFound)||(null==e9?void 0:null===(r=e9.details)||void 0===r?void 0:r.skillsFound)||(null==Z?void 0:null===(n=Z.details)||void 0===n?void 0:n.skillsFound)||[],skillsMissing:(null==ao?void 0:null===(o=ao.details)||void 0===o?void 0:o.skillsMissing)||(null==e9?void 0:null===(l=e9.details)||void 0===l?void 0:l.skillsMissing)||(null==Z?void 0:null===(d=Z.details)||void 0===d?void 0:d.skillsMissing)||[],criticalSkillsFound:(null==ao?void 0:null===(c=ao.details)||void 0===c?void 0:c.criticalSkillsFound)||(null==e9?void 0:null===(m=e9.details)||void 0===m?void 0:m.criticalSkillsFound)||(null==Z?void 0:null===(f=Z.details)||void 0===f?void 0:f.criticalSkillsFound)||[],criticalSkillsMissing:(null==ao?void 0:null===(u=ao.details)||void 0===u?void 0:u.critical
1SkillsMissing)||(null==e9?void 0:null===(x=e9.details)||void 0===x?void 0:x.criticalSkillsMissing)||(null==Z?void 0:null===(p=Z.details)||void 0===p?void 0:p.criticalSkillsMissing)||[],jobTitleMatch:(null==ao?void 0:null===(g=ao.details)||void 0===g?void 0:g.jobTitleMatch)||(null==e9?void 0:null===(y=e9.details)||void 0===y?void 0:y.jobTitleMatch)||(null==Z?void 0:null===(v=Z.details)||void 0===v?void 0:v.jobTitleMatch)||{found:!1,variant:null,location:null},metricsCount:null!==(R=null!==(z=null!==(I=null==ao?void 0:null===(j=ao.details)||void 0===j?void 0:j.metricsCount)&&void 0!==I?I:null==e9?void 0:null===(w=e9.details)||void 0===w?void 0:w.metricsCount)&&void 0!==z?z:null==Z?void 0:null===(k=Z.details)||void 0===k?void 0:k.metricsCount)&&void 0!==R?R:0,keywordDensity:null!==(M=null!==(L=null!==(P=null==ao?void 0:null===(N=ao.details)||void 0===N?void 0:N.keywordDensity)&&void 0!==P?P:null==e9?void 0:null===(F=e9.details)||void 0===F?void 0:F.keywordDensity)&&void 0!==L?L:null==Z?void 0:null===(S=Z.details)||void 0===S?void 0:S.keywordDensity)&&void 0!==M?M:0,sectionScores:(null==ao?void 0:null===(A=ao.details)||void 0===A?void 0:A.sectionScores)||(null==e9?void 0:null===(D=e9.details)||void 0===D?void 0:D.sectionScores)||_||(null==Z?void 0:null===(C=Z.details)||void 0===C?void 0:C.sectionScores)||{summary:0,experience:0,skills:0}},recommendations:(null==ao?void 0:null===(E=ao.recommendations)||void 0===E?void 0:E.length)>0?ao.recommendations:(null==e9?void 0:null===(q=e9.recommendations)||void 0===q?void 0:q.length)>0?e9.recommendations:(null==Z?void 0:null===(B=Z.recommendations)||void 0===B?void 0:B.length)>0?Z.recommendations:(null==eX?void 0:eX.filter(e=>e&&"string"==typeof e&&(e.startsWith("Missing")||e.startsWith("Add")||e.startsWith("Consider")||e.startsWith("Replace")||e.startsWith("\uD83C\uDFAF")||e.startsWith("\uD83D\uDCDD")||e.startsWith("\uD83D\uDCBC")||e.startsWith("\uD83D\uDD27")||e.startsWith("\uD83D\uDCCA")||e.startsWith("â ï¸")||e.startsWith("â¨")||e.startsWith("\uD83D\uDCA1")||e.startsWith("\uD83C\uDFC6")||e.startsWith("â")||e.startsWith("\uD83D\uDC4D")||e.startsWith("\uD83D\uDCC8")||e.startsWith("\uD83D\uDE80")||e.startsWith("Include"))))||[]},H="ats-".concat(U.totalScore,"-").concat(U.breakdown.hardSkillMatch,"-").concat(U.breakdown.measurableResults,"-").concat(U.details.sectionScores.summary);return(0,s.jsx)(e5,{totalScore:U.totalScore,matchRate:U.matchRate,breakdown:U.breakdown,penalties:U.penalties,details:U.details,recommendations:U.recommendations,actionableTips:ad,aiGeneratedBannerText:am,theme:$,isRefreshing:ap||ay,usedCachedJD:aq,isRefreshEnabled:tP,hasIncompleteResult:!!t5,onRefresh:()=>t3({persist:!1,overwrite:!1}),onForceApply:()=>{t5&&confirm("Partial rescore result appears incomplete. Force apply partial results?")&&t3({persist:!1,overwrite:!0,force:!0})},onKeywordClick:e=>{(0,h.default)("Keyword: ".concat(e),{duration:2e3,icon:(0,b.q)("search")})}},H)})(),("cover-letter"===a3||!eK&&a0)&&a0&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"p-4 rounded-xl border-2 text-center ".concat("dark"===$?"border-[#343536] bg-[#1A1A1B]":"border-[#EDEFF1] bg-white"),children:[am&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"mb-3 p-2 rounded text-xs font-medium ".concat("dark"===$?"bg-[#272729] text-[#D7DADC]":"bg-[#F6F7F8] text-[#1C1C1C]"),children:am}),(0,s.jsx)(eS.Z,{className:"w-10 h-10 text-green-500 mx-auto mb-2"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xl font-bold ".concat("dark"===$?"text-white":"text-[#1C1C1C]"),children:"Ready!"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs ".concat("dark"===$?"text-gray-400":"text-gray-500"),children:"Cover Letter Generated"})]}),("resume"===a3||!a0)&&eK&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa lg:hidden",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex gap-2 overflow-x-auto scrollbar-hide pb-2",children:[(0,s.jsxs)("button",{onClick:()=>{ai((0,ey.sortGeneratedResume)(eK)),at(!0),(0,h.default)("Edit mode activated",{duration:2e3,icon:(0,b.q)("edit")})},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium whitespace-nowrap transition-all active:scale-95 border-2 ".concat(aa?"dark"===$?"bg-[#FF4500]/20 border-[#FF4500] text-[#FF4500]":"bg-[#FF4500]/15 border-[#FF4500] text-[#FF4500]":"dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729]":"border-[#
1EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ew.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Editing":"Edit"})]}),(0,s.jsxs)("button",{onClick:t1,disabled:aa,title:aa?"Apply your edits first to download":"Download as PDF",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium whitespace-nowrap transition-all active:scale-95 ".concat(aa?"opacity-50 cursor-not-allowed bg-gray-100 text-gray-400":"bg-[#FF4500] text-white"),children:[(0,s.jsx)(eA.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"PDF"})]}),(0,s.jsxs)("button",{onClick:t2,disabled:aa||!(0,j.g)(eq),title:aa?"Apply your edits first to download":(0,j.g)(eq)?"Download as Word":"This template is not compatible for Word download. Only Professional and Executive templates support Word export.",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium whitespace-nowrap transition-all active:scale-95 border-2 ".concat(aa||!(0,j.g)(eq)?"cursor-not-allowed border-[#EDEFF1] text-gray-400 bg-gray-100":"dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729]":"border-[#EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ev.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Word"})]})]})}),("cover-letter"===a3||!eK&&a0)&&a0&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa lg:hidden",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex gap-2 overflow-x-auto scrollbar-hide pb-2",children:[(0,s.jsxs)("button",{onClick:()=>{a9(!a7),a7||(0,h.default)("Edit mode activated",{duration:2e3,icon:(0,b.q)("edit")})},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium whitespace-nowrap transition-all active:scale-95 border-2 ".concat(a7?"dark"===$?"bg-[#FF4500]/20 border-[#FF4500] text-[#FF4500]":"bg-[#FF4500]/15 border-[#FF4500] text-[#FF4500]":"dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729]":"border-[#EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ew.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:a7?"Done":"Edit"})]}),(0,s.jsxs)("button",{onClick:t8,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium whitespace-nowrap transition-all active:scale-95 ".concat("bg-[#FF4500] text-white"),children:[(0,s.jsx)(eA.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"PDF"})]}),(0,s.jsxs)("button",{onClick:t7,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium whitespace-nowrap transition-all active:scale-95 border-2 ".concat("dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729]":"border-[#EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ev.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Text"})]})]})}),("resume"===a3||!a0)&&eK&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa hidden lg:block space-y-2",children:[(0,s.jsxs)("button",{onClick:t1,disabled:aa,title:aa?"Apply your edits first to download":"Download as PDF",className:"jsx-af6cbd54a7b0fbaa "+"w-full flex items-center justify-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold transition-all active:scale-95 ".concat(aa?"opacity-50 cursor-not-allowed bg-gray-100 text-gray-400":"bg-[#FF4500] text-white hover:bg-[#E03D00]"),children:[(0,s.jsx)(eA.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Apply edits first":"Download PDF"})]}),(0,s.jsxs)("button",{onClick:t2,disabled:aa||!(0,j.g)(eq),title:aa?"Apply your edits first to download":(0,j.g)(eq)?"Download as Word":"This template is not compatible for Word download. Only Professional and Executive templates support Word export.",className:"jsx-af6cbd54a7b0fbaa "+"w-full flex items-center justify-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold transition-all active:scale-95 border-2 ".concat(aa||!(0,j.g)(eq)?"cursor-not-allowed border-[#
1EDEFF1] text-gray-400 bg-gray-100":"dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729] hover:text-white":"border-[#EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ev.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Apply edits first":"Download Word"})]})]}),("cover-letter"===a3||!eK&&a0)&&a0&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa hidden lg:block space-y-2",children:[(0,s.jsxs)("button",{onClick:()=>{a9(!a7),a7||(0,h.default)("Edit mode activated",{duration:2e3,icon:(0,b.q)("edit")})},className:"jsx-af6cbd54a7b0fbaa "+"w-full flex items-center justify-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold transition-all active:scale-95 border-2 ".concat(a7?"bg-[#FF4500] border-[#FF4500] text-white":"dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729] hover:text-white":"border-[#EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ew.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:a7?"Close Editor":"Edit Content"})]}),(0,s.jsxs)("button",{onClick:t8,className:"jsx-af6cbd54a7b0fbaa "+"w-full flex items-center justify-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold transition-all active:scale-95 ".concat("bg-[#FF4500] text-white hover:bg-[#E03D00]"),children:[(0,s.jsx)(eA.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Download PDF"})]}),(0,s.jsxs)("button",{onClick:t7,className:"jsx-af6cbd54a7b0fbaa "+"w-full flex items-center justify-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold transition-all active:scale-95 border-2 ".concat("dark"===$?"border-[#343536] text-[#D7DADC] hover:bg-[#272729] hover:text-white":"border-[#
1EDEFF1] text-[#1A1A1B] hover:bg-gray-100"),children:[(0,s.jsx)(ev.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Download Text"})]})]}),("cover-letter"===a3||!eK&&a0)&&a0&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"p-4 rounded-xl border-2 space-y-3 ".concat("dark"===$?"border-green-900/50 bg-green-950/20":"border-emerald-800/35 bg-emerald-50"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2",children:[(0,s.jsx)(U.Z,{className:"w-4 h-4 ".concat("dark"===$?"text-green-400":"text-emerald-700")}),(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-sm font-bold ".concat("dark"===$?"text-green-400":"text-emerald-800"),children:"Cover Letter Tips"})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs leading-relaxed ".concat("dark"===$?"text-green-100":"text-gray-900"),children:"â
Personalize with the hiring manager's name if known"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs leading-relaxed ".concat("dark"===$?"text-green-100":"text-gray-900"),children:"â
Review for company-specific details"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs leading-relaxed ".concat("dark"===$?"text-green-100":"text-gray-900"),children:"â
Keep it under one page"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs leading-relaxed ".concat("dark"===$?"text-green-100":"text-gray-900"),children:"â
Match font with your resume"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs leading-relaxed ".concat("dark"===$?"text-green-200/90":"text-gray-800"),children:"AI Generated: This cover letter was created using AI. Please review and adjust the content to ensure accuracy before submitting."})]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"p-4 rounded-xl border-2 space-y-4 ".concat("dark"===$?"border-[#343536] bg-[#1A1A1B]":"border-[#EDEFF1] bg-white"),children:[(0,s.jsx)("h3",{className:"jsx-af6cbd54a7b0fbaa "+"text-sm font-semibold uppercase tracking-wider ".concat("dark"===$?"text-[#818384]":"text-gray-500"),children:"Customize"}),("resume"===a3||!a0)&&eK&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-medium ".concat("dark"===$?"text-gray-400":"text-gray-500"),children:"Template"}),(0,s.jsxs)("select",{value:eq,onChange:e=>eB(e.target.value),className:"jsx-af6cbd54a7b0fbaa "+"w-full px-2 py-1.5 sm:px-3 sm:py-2 rounded-lg text-xs sm:text-sm border-2 transition-all ".concat("dark"===$?"bg-[#272729] text-white border-[#343536] hover:border-[#343536]":"bg-white text-[#1A1A1B] border-[#EDEFF1] hover:border-[#D7DADC]"),children:[(0,s.jsx)("option",{value:"ats-professional",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Professional â
"}),(0,s.jsx)("option",{value:"ats-executive",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Executive â
"}),(0,s.jsx)("option",{value:"ats-principal-architect",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Principal / Architect (Senior+)"}),(0,s.jsx)("option",{value:"ats-staff-engineer",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Staff Engineer (Senior+)"}),(0,s.jsx)("option",{value:"ats-modern",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Modern"}),(0,s.jsx)("option",{value:"ats-technical",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Technical"}),(0,s.jsx)("option",{value:"ats-modern-accent",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Accent (Popular)"}),(0,s.jsx)("option",{value:"ats-elegant-simple",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Elegant (Popular)"}),(0,s.jsx)("option",{value:"ats-timeline",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Timeline"}),(0,s.jsx)("option",{value:"ats-classic-traditional",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Classic"}),(0,s.jsx)("option",{value:"ats-executive-bold",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Bold"}),(0,s.jsx)("option",{value:"ats-sidebar",className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:"Sidebar"})]})]}),("resume"===a3||!a0)&&eK&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-medium ".concat("dark"===$?"text-gray-400":"text-gray-500"),children:"Color"}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-4 gap-2",children:[(0,s.jsx)("button",{onClick:()=>eW("none"),title:"Default Black",className:"jsx-af6cbd54a7b0fbaa "+"aspect-square rounded-lg transition-all hover:scale-110 border-2 flex items-center justify-center text-[10px] font-bold ".concat("none"===eT?"ring-2 ring-offset-2 "+("dark"===$?"ring-white ring-offset-[#030303] bg-[#1A1A1B] text-white":"ring-[#343536] ring-offset-white bg-white text-black"):"dark"===$?"border-[#343536] bg-[#272729] text-gray-400":"border-[#
1EDEFF1] bg-white text-gray-500"),children:"None"}),N.R.slice(0,7).map(e=>(0,s.jsx)("button",{onClick:()=>eW(e.id),style:{backgroundColor:e.colors.primary},title:e.name,className:"jsx-af6cbd54a7b0fbaa "+"aspect-square rounded-lg transition-all hover:scale-110 border-2 ".concat(eT===e.id?"ring-2 ring-offset-2 "+("dark"===$?"ring-white ring-offset-[#030303]":"ring-[#343536] ring-offset-white"):"dark"===$?"border-[#343536]":"border-[#EDEFF1]")},e.id))]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-medium ".concat("dark"===$?"text-gray-400":"text-gray-500"),children:"Font"}),(0,s.jsx)("select",{value:eI,onChange:e=>ez(e.target.value),className:"jsx-af6cbd54a7b0fbaa "+"w-full px-2 py-1.5 sm:px-3 sm:py-2 rounded-lg text-xs sm:text-sm border-2 transition-all ".concat("dark"===$?"bg-[#272729] text-white border-[#343536] hover:border-[#343536]":"bg-white text-[#1A1A1B] border-[#EDEFF1] hover:border-[#D7DADC]"),children:F.R.map(e=>(0,s.jsx)("option",{value:e.id,style:{fontFamily:e.fontFamily},className:"jsx-af6cbd54a7b0fbaa "+(("dark"===$?"bg-[#272729] text-white":"bg-white text-[#1A1A1B]")||""),children:e.name},e.id))})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa space-y-2",children:[(0,s.jsx)("label",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-medium ".concat("dark"===$?"text-gray-400":"text-gray-500"),children:"Font Size"}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa grid grid-cols-3 gap-2",children:[{id:"small",label:"Small"},{id:"medium",label:"Medium"},{id:"large",label:"Large"}].map(e=>(0,s.jsx)("button",{onClick:()=>eP(e.id),className:"jsx-af6cbd54a7b0fbaa "+"py-1.5 px-2 rounded-lg text-xs font-medium transition-all ".concat(eR===e.id?"dark"===$?"bg-white text-[#1C1C1C]":"bg-[#FF4500] text-white shadow-sm":"dark"===$?"bg-[#272729] text-gray-300 hover:bg-[#343536]":"bg-white text-[#1A1A1B] hover:bg-gray-100"),children:e.label},e.id))})]})]})]})}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"rounded-xl border-2 overflow-hidden shadow-xl transition-all duration-300 lg:overflow-y-auto order-1 lg:order-2 ".concat("cover-letter"===a3||!eK&&a0?"bg-white border-[#EDEFF1]":"dark"===$?"bg-[#1A1A1B] border-[#343536]":"bg-white border-[#EDEFF1]"),children:["resume"===a3&&!eK&&"both"===aX&&(0,s.jsxs)("div",{"data-testid":"resume-retry-placeholder",style:{backgroundColor:"#ffffff"},className:"jsx-af6cbd54a7b0fbaa flex flex-col items-center justify-center min-h-[480px] p-8 text-center",children:[(0,s.jsx)("div",{style:{backgroundColor:"#FEF2F2",color:"#B91C1C"},className:"jsx-af6cbd54a7b0fbaa w-16 h-16 rounded-full flex items-center justify-center mb-5",children:(0,s.jsx)(ev.Z,{className:"w-8 h-8"})}),(0,s.jsx)("h3",{style:{color:"#111827"},className:"jsx-af6cbd54a7b0fbaa text-lg font-bold mb-2",children:"Resume generation didn't complete"}),(0,s.jsx)("p",{style:{color:"#4B5563"},className:"jsx-af6cbd54a7b0fbaa text-sm mb-1 max-w-md",children:te||"We hit a temporary issue while generating your resume. Your cover letter is ready in the Cover Letter tab."}),(0,s.jsx)("p",{style:{color:"#6B7280"},className:"jsx-af6cbd54a7b0fbaa text-xs mb-6 max-w-md",children:"Click below to retry â this will not use an additional generation credit if the previous attempt did not complete."}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex flex-wrap gap-3 justify-center",children:[(0,s.jsx)("button",{"data-testid":"retry-resume-btn",onClick:t$,disabled:tt||eL,style:{backgroundColor:"#FF4500",color:"#ffffff"},className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2 px-5 py-2.5 rounded-lg font-semibold text-sm transition-all active:scale-95 disabled:opacity-60 disabled:cursor-not-allowed",children:tt?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:"jsx-af6cbd54a7b0fbaa animate-spin w-4 h-4",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"jsx-af6cbd54a7b0fbaa opacity-25"}),(0,s.jsx)("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z",className:"jsx-af6cbd54a7b0fbaa opacity-75"})]}),"Retrying..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(V.Z,{className:"w-4 h-4"}),"Retry Resume Generation"]})}),a0&&(0,s.jsxs)("button",{onClick:()=>a2("cover-letter"),style:{backgroundColor:"#F3F4F6",color:"#111827",border:"1px solid #E5E7EB"},className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2 px-5 py-2.5 rounded-lg font-medium text-sm transition-all active:scale-95",children:[(0,s.jsx)(eS.Z,{className:"w-4 h-4"}),"View Cover Letter"]})]}),ti>
10&&(0,s.jsxs)("p",{style:{color:"#9CA3AF"},className:"jsx-af6cbd54a7b0fbaa text-xs mt-4",children:["Retry attempts: ",ti]})]}),("resume"===a3||!a0)&&eK&&(0,s.jsx)(s.Fragment,{children:aa?(0,s.jsx)(e1,{generatedResume:eK,editedResume:as,setEditedResume:ai,profileCertifications:ax,onApply:async(e,a)=>{if(!e){at(!1);return}if(eQ((0,ey.sortGeneratedResume)(e)),tI(e=>e+1),h.default.success("Changes applied! Click Refresh Score to update your score.",{duration:4e3,icon:(0,b.q)("sparkle"),style:{maxWidth:"400px"}}),a){var t,s,i;let a=null==Y?void 0:null===(t=Y.user)||void 0===t?void 0:t.email,r=(null===(s=e.personalInfo)||void 0===s?void 0:s.fullName)||(null==Y?void 0:null===(i=Y.user)||void 0===i?void 0:i.name)||"";if(a){if(r)try{let t={userId:a,personal:{fullName:r,email:a},experiences:(e.experiences||[]).map((e,a)=>({id:e.id||"exp-".concat(a),company:e.company||"",title:e.title||e.projectName||"",startDate:e.startDate||"",endDate:e.endDate||"",location:e.location||"",bullets:e.bullets||[]})),education:(e.education||[]).map((e,a)=>({id:e.id||"edu-".concat(a),degree:e.degree||"",field:e.field||"",institution:e.institution||"",location:e.location||"",startDate:e.startDate||(e.startYear?String(e.startYear):""),endDate:e.endDate||(e.endYear?String(e.endYear):"")})),saveMask:{experiences:["dates"],education:["dates"]}},s=await fetch("/api/profile/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),i=await s.json().catch(()=>({}));if(!s.ok)throw Error(i.message||"Failed to save profile");h.default.success("Experience dates saved",{duration:3e3,icon:(0,b.q)("check"),style:{maxWidth:"400px"}})}catch(e){console.error("Failed to save profile experiences:",e),h.default.error("Save failed. Please try again.",{duration:4e3,style:{maxWidth:"400px"}})}else(0,h.default)("Cannot save â please ensure your profile has a name",{icon:(0,b.q)("warn")})}else h.default.error("Sign in required to save changes",{duration:4e3,style:{maxWidth:"400px"}})}ai(null),at(!1)},onCancel:()=>{at(!1),ai(null),(0,h.default)("Edit cancelled",{icon:(0,b.q)("wave")})},theme:$}):(0,s.jsx)("div",{id:"resume-preview",className:"jsx-af6cbd54a7b0fbaa bg-white overflow-x-auto resume-preview-step4",children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa min-w-[650px]",children:(0,s.jsx)(e0,{resume:as||eK,template:eq,colorSchemeId:eT,fontSchemeId:eI,fontSizeScheme:eR,highlightKeywords:(null==e9?void 0:e9.matchedKeywords)||(null==e9?void 0:null===(i=e9.details)||void 0===i?void 0:i.matchedKeywords)||(null==ao?void 0:null===(f=ao.details)||void 0===f?void 0:null===(d=f.skillsFound)||void 0===d?void 0:d.map(e=>e.skill))||(null==eK?void 0:null===(k=eK._meta)||void 0===k?void 0:null===(w=k.atsAnalysis)||void 0===w?void 0:w.matchedKeywords)||(null==eK?void 0:null===(R=eK._meta)||void 0===R?void 0:null===(W=R.atsAnalysis)||void 0===W?void 0:null===(T=W.details)||void 0===T?void 0:T.matchedKeywords)||(null==eK?void 0:null===(P=eK.atsAnalysis)||void 0===P?void 0:P.matchedKeywords)||(null==eK?void 0:null===(Z=eK.atsAnalysis)||void 0===Z?void 0:null===(_=Z.details)||void 0===_?void 0:_.matchedKeywords)||[]})})})}),("cover-letter"===a3||!eK&&a0)&&a0&&(0,s.jsx)("div",{style:{backgroundColor:"#ffffff"},className:"jsx-af6cbd54a7b0fbaa h-full flex flex-col",children:a7?(0,s.jsxs)("div",{style:{backgroundColor:"#f9fafb"},className:"jsx-af6cbd54a7b0fbaa flex-1 p-2 sm:p-4 flex flex-col h-full",children:[(0,s.jsxs)("div",{style:{backgroundColor:"#eff6ff",color:"#1d4ed8"},className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2 mb-2 sm:mb-3 px-2 sm:px-3 py-1.5 sm:py-2 rounded-lg",children:[(0,s.jsx)(ew.Z,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 flex-shrink-0"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa text-xs sm:text-sm font-medium",children:"Editing - Click Apply to save"})]}),(0,s.jsx)("textarea",{value:a6||"",onChange:e=>a8(e.target.value),style:{fontFamily:(null===(H=(0,F.A)(eI))||void 0===H?void 0:H.fontFamily)||"Georgia, serif",fontSize:"inherit",lineHeight:"1.6",backgroundColor:"#ffffff",color:"#1f2937",borderColor:"#e5e7eb"},placeholder:"Edit your cover letter here...",className:"jsx-af6cbd54a7b0fbaa flex-1 w-full min-h-[400px] sm:min-h-[600px] p-4 sm:p-8 rounded-lg sm:rounded-xl border-2 text-sm sm:text-base leading-relaxed resize-none focus:outline-none focus:ring-2 focus:ring-[#FF4500]"})]}):(0,s.jsx)("div",{id:"cover-letter-preview",style:{fontFamily:(null===(J=(0,F.A)(eI))||void 0===J?void 0:J.fontFamily)||"Georgia, serif",backgroundColor:"#ffffff",color:"#1f2937"},className:"jsx-af6cbd54a7b0fbaa min-h-[500px] sm:min-h-[700px]",children:(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa max-w-[8.5in] mx-auto px-4 py-6 sm:p-8 md:py-10 md:px-12",children:(0,s.jsx)("div",{style:{fontSize:"".concat("small"===eR?11:"large"===eR?13:12,"pt"),lineHeight:"1.6",color:"#1f2937"},className:"jsx-af6cbd54a7b0fbaa whitespace-pre-wrap",children:a6||a0||""})})})})]})]})})},"step4")]})}),(0,s.jsxs)(p.E.div,{initial:{y:20,opacity:0}
1,animate:{y:0,opacity:1},transition:{delay:.2},className:"fixed bottom-0 left-0 right-0 z-50 border-t safe-bottom",style:{borderColor:"dark"===$?"rgba(51, 65, 85, 0.3)":"rgba(255, 255, 255, 0.1)",backgroundColor:"dark"===$?"rgba(15, 23, 42, 0.95)":"rgba(15, 23, 42, 0.75)",paddingBottom:"env(safe-area-inset-bottom)"},children:[1===eo&&!Y&&(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa "+"border-b ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]"),children:(0,s.jsx)(eZ,{className:"w-full",forceDark:!0})}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa px-4 sm:px-6 py-3 sm:py-4",children:[eo<4&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-2",children:[(0,s.jsxs)("button",{onClick:()=>{el(1),ef(""),eQ(null),eV(null),e6([]),e7(null),ae(null),at(!1),ai(null),eO(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),h.default.success("Started fresh!",{duration:2e3,icon:(0,b.q)("sparkle"),style:{maxWidth:"400px"}})},disabled:eL,title:"Reset to Step 1 with empty job description",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 px-2 py-1.5 sm:px-3 sm:py-2 rounded-lg text-xs sm:text-sm font-medium transition-all active:scale-95 ".concat(eL?"opacity-50 cursor-not-allowed":"dark"===$?"text-[#818384] hover:text-white hover:bg-[#272729] border border-[#343536]":"text-gray-500 hover:text-[#1A1A1B] hover:bg-[#EDEFF1] border border-[#EDEFF1]"),children:[(0,s.jsx)(z.Z,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa hidden sm:inline",children:"Start Over"})]}),eo>1&&eo<4&&!eL&&(0,s.jsxs)("button",{onClick:()=>tG(()=>el(Math.max(1,eo-1))),className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 px-2 py-1.5 sm:px-4 sm:py-2 rounded-lg text-xs sm:text-sm font-medium transition-all active:scale-95 ".concat("dark"===$?"text-[#818384] hover:text-white hover:bg-[#272729]":"text-gray-500 hover:text-[#1A1A1B] hover:bg-[#EDEFF1]"),children:[(0,s.jsx)(eD.Z,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa hidden sm:inline",children:"Back"})]})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex-1 flex items-center justify-center",children:[1===eo&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-3",children:[(0,s.jsxs)("span",{className:"jsx-af6cbd54a7b0fbaa "+"text-sm font-medium ".concat("text-[#818384]"),children:[ed.length.toLocaleString()," chars"]}),(0,s.jsx)("a",{href:"/help/privacy",className:"jsx-af6cbd54a7b0fbaa "+"text-xs underline ".concat("dark"===$?"text-[#818384] hover:text-[#D7DADC]":"text-[#818384] hover:text-gray-500"," transition-colors"),children:"Privacy Policy"}),ed.length>=100&&(0,s.jsxs)(p.E.div,{initial:{scale:0},animate:{scale:1},className:"flex items-center gap-1.5 text-sm font-semibold",children:[(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa w-2 h-2 rounded-full bg-green-500 animate-pulse"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa text-green-400",children:"Ready"})]})]}),eo>1&&(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+"text-xs font-semibold uppercase tracking-wider ".concat("text-[#818384]"),children:["Step ",eo," of 4"]})]}),(0,s.jsx)("button",{onClick:()=>{tU()&&(3===eo?t0():el(eo+1))},disabled:!tU()||eL,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 px-4 sm:px-8 py-2.5 sm:py-3 rounded-xl text-xs sm:text-sm font-semibold transition-all active:scale-95 min-w-[100px] min-h-[44px] ".concat(!tU()||eL?"opacity-40 cursor-not-allowed":"dark"===$?"bg-white text-[#1C1C1C] hover:bg-[#EDEFF1] breathing-glow":"bg-[#FF4500] text-white hover:bg-[#E03D00] hover:shadow-md hover:-translate-y-0.5 breathing-glow "),children:eL?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eN.Z,{className:"w-4 h-4 animate-spin"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"both"===aX?"Generating...":"Generating"})]}):3===eo?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"resume"===aX?"Generate Resume":"cover-letter"===aX?"Generate Letter":"Generate Both"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Continue"}),(0,s.jsx)(eC.Z,{className:"w-4 h-4"})]})})]}),4===eo&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa hidden sm:flex items-center justify-between gap-3 px-4",children:[(0,s.jsxs)("button",{onClick:()=>{(eK||a0)&&!tw?(tq(()=>()=>el(3)),tC(!0)):el(3)},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat("dark"===$?"text-[#818384] hover:text-white hover:bg-[#272729]":"text-gray-500 hover:text-[#1A1A1B] hover:bg-[#
1EDEFF1]"),children:[(0,s.jsx)(eD.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Back"})]}),(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa flex items-center gap-3",children:[("resume"===a3||!a0)&&eK&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:()=>{aa?(as&&(eQ((0,ey.sortGeneratedResume)(as)),h.default.success("⨠Changes applied!")),ai(null),at(!1)):(ai((0,ey.sortGeneratedResume)(eK)),at(!0))},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat(aa?"bg-emerald-600 text-white hover:bg-emerald-700":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-white text-[#1A1A1B] hover:bg-white border border-[#EDEFF1]"),children:[aa?(0,s.jsx)(U.Z,{className:"w-4 h-4"}):(0,s.jsx)(ew.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Apply":"Edit"})]}),(0,s.jsxs)("button",{onClick:t1,disabled:aa,title:aa?"Apply your edits first to download":"Download as PDF",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat(aa?"opacity-50 cursor-not-allowed bg-gray-100 text-gray-400":"bg-[#FF4500] text-white hover:bg-[#E03D00]"),children:[(0,s.jsx)(eA.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"PDF"})]}),(0,s.jsxs)("button",{onClick:t2,disabled:aa||!(0,j.g)(eq),title:aa?"Apply your edits first to download":(0,j.g)(eq)?"Download as Word":"This template is not compatible for Word download. Only Professional and Executive templates support Word export.",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat(aa||!(0,j.g)(eq)?"cursor-not-allowed bg-gray-100 text-gray-400 border border-[#EDEFF1]":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-white text-[#1A1A1B] hover:bg-white border border-[#EDEFF1]"),children:[(0,s.jsx)(ev.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Word"})]})]}),("cover-letter"===a3||!eK&&a0)&&a0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:()=>{a7?(a6&&(a1(a6),h.default.success("⨠Changes applied!")),a9(!1)):a9(!0)},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat(a7?"bg-emerald-600 text-white hover:bg-emerald-700":"dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-white text-[#1A1A1B] hover:bg-white border border-[#EDEFF1]"),children:[a7?(0,s.jsx)(U.Z,{className:"w-4 h-4"}):(0,s.jsx)(ew.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:a7?"Apply":"Edit"})]}),(0,s.jsxs)("button",{onClick:t8,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat("bg-[#FF4500] text-white hover:bg-[#E03D00]"),children:[(0,s.jsx)(eA.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"PDF"})]}),(0,s.jsxs)("button",{onClick:t7,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat("dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-white text-[#1A1A1B] hover:bg-white border border-[#EDEFF1]"),children:[(0,s.jsx)(ev.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Text"})]})]}),(0,s.jsxs)("button",{onClick:()=>{(eK||a0)&&!tw?(tq(()=>()=>{el(1),ef(""),eQ(null),eV(null),at(!1),tk(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),t6(),h.default.success("Ready for a new resume!")}),tC(!0)):(el(1),ef(""),eQ(null),eV(null),at(!1),tk(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),t6(),h.default.success("Ready for a new resume!"))},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat("bg-[#FF4500] text-white hover:bg-[#
1E03D00]"),children:[(0,s.jsx)(z.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"New"})]}),eK&&(0,s.jsxs)("button",{onClick:()=>tT(!0),title:"View Job Description",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ".concat("dark"===$?"bg-[#272729] text-[#D7DADC] hover:bg-[#343536] border border-[#343536]":"bg-white text-[#1A1A1B] hover:bg-white border border-[#EDEFF1]"),children:[(0,s.jsx)(G.Z,{className:"w-4 h-4"}),(0,s.jsx)(eE.Z,{className:"w-3 h-3"})]})]})]}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa sm:hidden fixed bottom-0 left-0 right-0 z-[60]",children:(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa "+" border-t ".concat("dark"===$?"bg-[#1A1A1B]/98 border-[#343536]":"bg-white border-[#EDEFF1]"),children:[(0,s.jsxs)("div",{className:"jsx-af6cbd54a7b0fbaa px-3 pt-2 grid grid-cols-2 gap-2",children:[(0,s.jsxs)("button",{onClick:()=>{(eK||a0)&&!tw?(tq(()=>()=>{el(1),ef(""),eQ(null),eV(null),at(!1),tk(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),t6(),h.default.success("Ready!",{duration:2e3,icon:(0,b.q)("check")})}),tC(!0)):(el(1),ef(""),eQ(null),eV(null),at(!1),tk(!1),a1(null),a8(null),a9(!1),a$("resume"),a2("resume"),ah(!1),t6(),h.default.success("Ready!",{duration:2e3,icon:(0,b.q)("check")}))},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-1.5 px-2 rounded-lg text-xs font-medium transition-all active:scale-95 ".concat("dark"===$?"bg-[#272729] text-[#D7DADC] border border-[#343536] hover:bg-[#343536]":"bg-white text-[#1A1A1B] border border-[#EDEFF1] hover:bg-gray-100"),children:[(0,s.jsx)(z.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Start Over"})]}),("resume"===a3||!a0)&&eK?(0,s.jsxs)("button",{onClick:()=>{aa?(as&&(eQ((0,ey.sortGeneratedResume)(as)),h.default.success("Applied!")),ai(null),at(!1)):(ai((0,ey.sortGeneratedResume)(eK)),at(!0))},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-1.5 px-2 rounded-lg text-xs font-medium transition-all active:scale-95 ".concat(aa?"bg-emerald-600 text-white hover:bg-emerald-700":"dark"===$?"bg-[#272729] text-[#D7DADC] border border-[#343536] hover:bg-[#343536]":"bg-white text-[#1A1A1B] border border-[#EDEFF1] hover:bg-gray-100"),children:[aa?(0,s.jsx)(U.Z,{className:"w-3.5 h-3.5"}):(0,s.jsx)(ew.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Apply":"Edit"})]}):("cover-letter"===a3||!eK&&a0)&&a0?(0,s.jsxs)("button",{onClick:()=>{a7?(a6&&(a1(a6),h.default.success("Applied!")),a9(!1)):a9(!0)},className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-1.5 px-2 rounded-lg text-xs font-medium transition-all active:scale-95 ".concat(a7?"bg-emerald-600 text-white hover:bg-emerald-700":"dark"===$?"bg-[#272729] text-[#D7DADC] border border-[#343536] hover:bg-[#343536]":"bg-white text-[#1A1A1B] border border-[#EDEFF1] hover:bg-gray-100"),children:[a7?(0,s.jsx)(U.Z,{className:"w-3.5 h-3.5"}):(0,s.jsx)(ew.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:a7?"Apply":"Edit"})]}):null]}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa px-3 pb-2 pt-2 grid grid-cols-2 gap-2",children:("resume"===a3||!a0)&&eK?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:t1,disabled:aa,title:aa?"Apply your edits first":"Download as PDF",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-2 rounded-lg font-semibold text-xs transition-all active:scale-95 ".concat(aa?"opacity-50 cursor-not-allowed bg-gray-100 text-gray-400":"bg-[#FF4500] text-white"),children:[(0,s.jsx)(eA.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Apply first":"PDF"})]}),(0,s.jsxs)("button",{onClick:t2,disabled:aa||!(0,j.g)(eq),title:aa?"Apply your edits first":(0,j.g)(eq)?"Download as Word":"This template is not compatible for Word download. Only Professional and Executive templates support Word export.",className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-2 rounded-lg font-semibold text-xs transition-all active:scale-95 ".concat(aa||!(0,j.g)(eq)?"cursor-not-allowed bg-gray-100 text-gray-400":"dark"===$?"bg-white text-[#1C1C1C]":"bg-white text-[#1A1A1B] border border-[#
1EDEFF1] hover:bg-gray-100"),children:[(0,s.jsx)(ev.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:aa?"Apply first":"Word"})]})]}):("cover-letter"===a3||!eK&&a0)&&a0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{onClick:t8,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-2 rounded-lg font-semibold text-xs transition-all active:scale-95 ".concat("bg-[#FF4500] text-white"),children:[(0,s.jsx)(eA.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"PDF"})]}),(0,s.jsxs)("button",{onClick:t7,className:"jsx-af6cbd54a7b0fbaa "+"flex items-center justify-center gap-1.5 py-2 rounded-lg font-semibold text-xs transition-all active:scale-95 ".concat("dark"===$?"bg-white text-[#1C1C1C]":"bg-white text-[#1A1A1B] border border-[#EDEFF1] hover:bg-gray-100"),children:[(0,s.jsx)(ev.Z,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"Text"})]})]}):null}),eK&&(0,s.jsx)("div",{style:{paddingBottom:"max(env(safe-area-inset-bottom), 0.5rem)"},className:"jsx-af6cbd54a7b0fbaa px-3 pb-2",children:(0,s.jsxs)("button",{onClick:()=>tT(!0),className:"jsx-af6cbd54a7b0fbaa "+"w-full flex items-center justify-center gap-2 py-2 rounded-lg text-xs font-medium transition-all active:scale-[0.98] ".concat("dark"===$?"bg-[#272729] text-[#818384] border border-[#343536] hover:bg-[#343536]/60":"bg-gray-50 text-gray-500 border border-[#EDEFF1] hover:bg-gray-100 hover:text-[#1A1A1B]"),children:[(0,s.jsx)(G.Z,{className:"w-3.5 h-3.5"}),(0,s.jsx)("span",{className:"jsx-af6cbd54a7b0fbaa",children:"View Job Description"}),(0,s.jsx)(eE.Z,{className:"w-3 h-3"})]})})]})}),(0,s.jsx)("div",{className:"jsx-af6cbd54a7b0fbaa sm:hidden h-24"})]})]})]})]})]}),"loading"===X&&(0,s.jsxs)("div",{className:"fixed top-4 right-4 z-50 flex items-center gap-2 px-3 py-2 rounded-lg shadow-md border bg-white dark:bg-[#1A1A1B]",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full animate-pulse bg-[#FF4500]"}),(0,s.jsx)("div",{className:"text-xs text-[#576F76] dark:text-[#D7DADC]",children:"Checking authenticationâ¦"})]}),(0,s.jsx)(em.Z,{isOpen:tn,onClose:()=>{to(!1),td("")},initialCouponCode:tl,currentPlan:tb,resumesUsed:tf,resumesLimit:th}),(0,s.jsx)(ex.Z,{isOpen:tc,onClose:()=>tm(!1),cancelAt:(null==tv?void 0:null===(Q=tv.subscription)||void 0===Q?void 0:Q.currentPeriodEnd)||null}),(0,s.jsx)(ep,{isOpen:tD,onClose:()=>{tC(!1),tq(null)},onConfirmLeave:tZ,onDownload:t1,title:"Resume Not Downloaded",message:"You haven't downloaded your resume yet. If you leave this page, your generated resume will be lost and you'll need to generate it again.",downloadLabel:"Download PDF",leaveLabel:"Leave Without Downloading",cancelLabel:"Stay on Page"}),(0,s.jsx)(g.M,{children:tB&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 bg-black/50 z-[9998]",onClick:()=>tT(!1)}),(0,s.jsxs)(p.E.div,{initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"100%",opacity:0},transition:{type:"spring",damping:25,stiffness:300},className:"fixed bottom-0 left-0 right-0 z-[9999] rounded-t-3xl shadow-2xl max-h-[80vh] overflow-hidden ".concat("dark"===$?"bg-[#1A1A1B] border-t border-[#343536]":"bg-white border-t border-[#EDEFF1]"),children:[(0,s.jsx)("div",{className:"flex justify-center pt-3 pb-2",children:(0,s.jsx)("div",{className:"w-12 h-1.5 rounded-full ".concat("dark"===$?"bg-[#343536]":"bg-white")})}),(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-6 pb-3 border-b ".concat("dark"===$?"border-[#343536]":"border-[#EDEFF1]"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg ".concat("dark"===$?"bg-[#FF4500]/15":"bg-[#FFF5F2]"),children:(0,s.jsx)(G.Z,{className:"w-5 h-5 ".concat("text-[#FF4500]")})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-base ".concat("text-white"),children:"Job Description"}),(0,s.jsx)("p",{className:"text-xs ".concat("text-[#818384]"),children:"Resume optimized for this position"})]})]}),(0,s.jsx)("button",{onClick:()=>tT(!1),className:"p-2 rounded-lg transition-colors ".concat("dark"===$?"text-[#818384] hover:text-white hover:bg-[#272729]":"text-[#818384] hover:text-gray-500 hover:bg-gray-100"),children:(0,s.jsx)(K.Z,{className:"w-5 h-5"})})]}),(0,s.jsx)("div",{className:"px-4 sm:px-6 py-4 overflow-y-auto max-h-[calc(80vh-120px)]",style:{paddingBottom:"max(env(safe-area-inset-bottom), 1rem)"},children:(()=>{var e;let a=ed&&ed.trim()?ed:aj||(null==eK?void 0:null===(e=eK._meta)||void 0===e?void 0:e.originalJD)||(null==eK?void 0:eK.originalJD)||"";return a&&a.trim()?(0,s.jsx)("div",{className:"prose prose-sm max-w-none ".concat("dark"===$?"prose-invert":""),children:(0,s.jsx)("pre",{className:"whitespace-pre-wrap font-sans text-sm leading-relaxed p-4 rounded-xl ".concat("dark"===$?"bg-[#272729] text-[#D7DADC] border border-[#343536]":"bg-white/5 text-[#1A1A1B] border border-[#EDEFF1]"),children:a.trim()})}):(0,s.jsxs)("div",{className:"text-center py-8 ".concat("text-[#818384]"),children:[(0,s.jsx)(G.Z,{className:"w-12 h-12 mx-auto mb-3 opacity-40"}),(0,s.jsx)("p",{className:"text-sm font-medium",children:"No job description available"}),(0,s.jsx)("p",{className:"text-xs mt-1",children:"The JD used to generate this resume is not stored."})]})})()}),(0,s.jsx)("div",{className:"px-4 sm:px-6 py-3 border-t ".concat("dark"===$?"border-[#343536] bg-[#1A1A1B]":"border-[#EDEFF1] bg-white"),style:{paddingBottom:"max(env(safe-area-inset-bottom), 0.75rem)"},children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("p",{className:"text-xs flex items-center gap-1.5 ".concat("text-[#818384]"),children:aq?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.ZP,{variant:"briefcase",size:22})," Retrieved from cache"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.ZP,{variant:"sparkle",size:22})," Used for resume optimization"]})}),(0,s.jsxs)("button",{onClick:()=>{tT(!1),t3({persist:!1,overwrite:!1})},disabled:ap||!tP,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ".concat(ap||!tP?"dark"===$?"bg-[#343536] text-[#818384] cursor-not-allowed":"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-[#FF4500] text-white hover:bg-[#E03D00]"),title:tP?"Recalculate ATS score":"Edit the resume first to enable refresh",children:[(0,s.jsx)(V.Z,{className:"w-4 h-4 ".concat(ap?"animate-spin":"")}),(0,s.jsx)("span",{children:ap?"Refreshing...":"Refresh Score"})]})]})})]})]})})]})}}},function(e){e.O(0,[5443,7847,6432,4968,1296,8993,6650,2331,5412,7117,2148,2888,9774,179],function(){return e(e.s=5778)}),_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.