PageSourceSearch

https://enhancv.com/_next/static/chunks/6231-b421678c0a73fbb9.js

js enhancv.com collected 2026-10-01 11:51:15 UTC 24,331 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6231],{29932:function(e){e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,o=Array(a);++n<a;)o[n]=t(e[n],n,e);return o}},10611:function(e,t,n){var a=n(34865),o=n(71811),r=n(65776),s=n(13218),l=n(40327);e.exports=function(e,t,n,i){if(!s(e))return e;t=o(t,e);for(var c=-1,u=t.length,d=u-1,p=e;null!=p&&++c<u;){var m=l(t[c]),x=n;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(c!=d){var y=p[m];void 0===(x=i?i(y,m,p):void 0)&&(x=s(y)?y:r(t[c+1])?[]:{})}a(p,m,x),p=p[m]}return e}},80531:function(e,t,n){var a=n(62705),o=n(29932),r=n(1469),s=n(33448),l=1/0,i=a?a.prototype:void 0,c=i?i.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return o(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},71811:function(e,t,n){var a=n(1469),o=n(15403),r=n(55514),s=n(79833);e.exports=function(e,t){return a(e)?e:o(e,t)?[e]:r(s(e))}},15403:function(e,t,n){var a=n(1469),o=n(33448),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||o(e))||s.test(e)||!r.test(e)||null!=t&&e in Object(t)}},24523:function(e,t,n){var a=n(88306);e.exports=function(e){var t=a(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},55514:function(e,t,n){var a=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,s=a(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,a,o){t.push(a?o.replace(r,"$1"):n||e)}),t});e.exports=s},40327:function(e,t,n){var a=n(33448),o=1/0;e.exports=function(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},33448:function(e,t,n){var a=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==a(e)}},88306:function(e,t,n){var a=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],r=n.cache;if(r.has(o))return r.get(o);var s=e.apply(this,a);return n.cache=r.set(o,s)||r,s};return n.cache=new(o.Cache||a),n}o.Cache=a,e.exports=o},36968:function(e,t,n){var a=n(10611);e.exports=function(e,t,n){return null==e?e:a(e,t,n)}},79833:function(e,t,n){var a=n(80531);e.exports=function(e){return null==e?"":a(e)}},86231:function(e,t,n){"use strict";n.d(t,{Z:function(){return et}});var a,o,r,s,l=n(85893),i=n(49705),c=n(49693),u=n(25930),d=n(82595),p=n(6154),m=n(48764),x=n(36968),y=n.n(x),f=n(67294),v=n(60801),g=n(65250),h=n.n(g);function _(e){let{isLoading:t,filename:n,onClickRemoveFile:a,onClickBack:o,onClickGenerate:r,isGenerateDisabled:s,isBackDisabled:i}=e;return(0,l.jsxs)("div",{className:"flex flex-direction-column-xsm flex-justify-space-between flex-align-center",children:[(0,l.jsxs)("div",{className:"flex flex-justify-space-between flex-align-center flex-nowrap gap-8 m-bottom-24-xsm text-label",children:[(0,l.jsx)(v.Icon,{icon:"resume-icon-fa-file-alt"}),(0,l.jsx)("div",{className:h().resumeName,children:n}),(0,l.jsx)("div",{title:"Delete",className:t?"":"cursor-pointer",onClick:a,children:(0,l.jsx)(v.Icon,{icon:"icon-fi-close"})})]}),(0,l.jsxs)("div",{className:"flex gap-16-xs gap-24",children:[(0,l.jsx)(v.Button,{onClick:o,leftIcon:"icon-fi-arrow-left",size:"large",primary:!1,color:"grey",disabled:i,children:"Back"}),(0,l.jsx)(v.Button,{onClick:r,size:"large",disabled:s,children:"Generate"})]})]})}function k(e){let{handleShowHideDownloadModal:t,onClickCopy:n,isLoading:a,coverLetter:o}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"".concat(h().coverLetter," relative p-block-16-mxl p-inline-24-mxl m-bottom-24-xsm m-bottom-32"),children:[a&&(0,l.jsx)("div",{className:"p-top-24 p-bottom-16",children:(0,l.jsx)(v.Loader,{size:"large"})}),!a&&o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"".concat(h().coverLetterActions," flex flex-align-center gap-8 p-8-xs p-top-16 p-right-24 p-top-0-xsm"),children:[(0,l.jsx)(v.Button,{className:h().downloadButton,size:"small",color:"purple",preserveCasing:!0,onClick:()=>t(!0),children:"Edit & Download"}),(0,l.jsx)(v.CopyButton,{className:h().copyIcon,copyContent:o.sections[0].items[0].text,onClick:n})]}),(0,l.jsxs)("div",{className:"".concat(h().coverLetterContent," italic text-left p-top-64-xsm"),children:[(0,l.jsxs)("div",{className:"m-bottom-16 text-label",children:[(0,l.jsx)("span",{className:"font-weight-700",children:o.header.n
1ame||"[First and last name]"}),(0,l.jsx)("br",{}),o.header.title||"[Position info]",(0,l.jsx)("br",{}),o.header.location||"[Address info]",(0,l.jsx)("br",{}),o.header.phone||"[Phone number]",(0,l.jsx)("br",{}),o.header.email||"[Email address]"]}),o.sections[0].items[0].text]})]})]})})}var b=n(94184),j=n.n(b),N=n(59235);function S(e){let{title:t,step:n,isDynamicComponent:a,stepOneText:o,stepTwoText:r,stepThreeText:s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-justify-center flex-align-center gap-8 text-center",children:[(0,l.jsx)("div",{className:j()(h().step,"flex flex-justify-center flex-align-center font-weight-600",{[h().stepActive]:n>0}),children:n>1?(0,l.jsx)(v.Icon,{icon:"icon-fa-check"}):"1"}),(0,l.jsx)("div",{className:j()("".concat(h().stepSeparator," bg-accent"),{col:a,[h().stepSeparatorSmall]:a})}),(0,l.jsx)("div",{className:j()(h().step,"flex flex-justify-center flex-align-center font-weight-600",{[h().stepActive]:n>1}),children:n>2?(0,l.jsx)(v.Icon,{icon:"icon-fa-check"}):"2"}),(0,l.jsx)("div",{className:j()("".concat(h().stepSeparator," bg-accent"),{col:a,[h().stepSeparatorSmall]:a})}),(0,l.jsx)("div",{className:j()(h().step,"flex flex-justify-center flex-align-center font-weight-600",{[h().stepActive]:n>2}),children:"3"})]}),a?(0,l.jsx)("div",{className:"h5",children:t}):(0,l.jsx)("h1",{className:"h3 m-top-24 m-bottom-40",children:t}),1===n&&(0,l.jsx)("p",{className:"m-bottom-24 text-left",children:(0,l.jsx)(N.Z,{html:o||"First, <b>upload your resume</b> in order to fully customize your cover letter."})}),2===n&&(0,l.jsx)("p",{className:"m-bottom-24 text-left",children:(0,l.jsx)(N.Z,{html:r||"Now, paste the <b>job description</b> or the entire job ad for the job you are applying for."})}),3===n&&s&&(0,l.jsx)("p",{className:"m-bottom-24 text-left",children:(0,l.jsx)(N.Z,{html:s})})]})}function C(e){let{jobAd:t,onChangeJobAd:n,isLoading:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.Textarea,{className:j()(h().textarea,"p-0 m-0",{[h().textareaExtended]:t.length>150}),name:"job-ad",placeholder:"Paste here...",value:t,onChange:n,required:!0}),(0,l.jsx)("hr",{className:h().hr})]})}var w=n(68350),L=n(45337);function E(e){let{afterUpload:t,buttonText:n}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(w.ZP,{beforeUpload:()=>(0,i.pt)("cover letter generator - resume uploaded"),afterUpload:e=>{let{resume:n,file:a,error:o}=e;return t({resume:n,file:a,error:o})},isUploadStep:!0,children:(0,l.jsx)(L.Z,{contentText:{buttonText:n}})})})}function I(e){let{showSettings:t,onClickShowSettings:n,promptSettings:a,setPromptSettings:o,isLoading:s,children:i}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"".concat(h().whiteBox," relative p-inline-16 m-bottom-24"),children:[i,(0,l.jsx)("div",{className:"flex p-inline-16",children:(0,l.jsxs)("span",{className:j()("flex flex-align-center gap-16",{"cursor-pointer":!s}),onClick:()=>n(!0),children:[(0,l.jsx)(v.Icon,{icon:"icon-fi-settings"}),(0,l.jsx)("span",{className:"h7 text-transform-uppercase m-0",children:"Settings"})]})}),t&&(0,l.jsxs)("div",{className:"".concat(h().settingsContent," p-inline-16"),children:[(0,l.jsx)("div",{className:"flex p-inline-8-xsm p-inline-16 m-top-8 m-bottom-16 cursor-pointer",children:(0,l.jsxs)("span",{className:"flex flex-justify-space-between flex-align-center full-width",onClick:()=>n(!1),children:[(0,l.jsxs)("span",{className:"flex flex-align-center gap-16",children:[(0,l.jsx)(v.Icon,{icon:"icon-fi-settings"}),(0,l.jsx)("span",{className:"h7 text-transform-uppercase m-0",children:"Settings"})]}),(0,l.jsx)(v.Icon,{icon:"icon-fi-minimize-2"})]})}),(0,l.jsx)("div",{className:"flex flex-direction-column flex-align-start gap-16 p-inline-8-xsm p-inline-16",children:(0,l.jsxs)("div",{className:"flex flex-align-center gap-16",children:[(0,l.jsx)("p",{className:"".concat(h().dropdownTitle," m-0 text-left font-weight-500"),children:"Tone:"}),(0,l.jsx)(v.SelectDropdown,{fullWidth:!0,className:"".concat(h().dropdownMenu," text-left"),onChange:e=>o({...a,tone:Object.values(r)[e]}),options:Object.values(r).map((e,t)=>({text:e,value:t})),value:Object.values(r).indexOf(a.tone)})]})})]})]})})}(a=r||(r={})).PROFESSIONAL="Professional",a.NARRATIVE="Narrative",a.SOLUTION="Solution-focused",a.SKILLS="Skills-focused",a.BEST_CANDIDATE="Best candidate for the job",(o=s||(s={}
1)).CONDENSED="condensed",o.NEW_CONDENSED="newcondensed",o.MINIMAL="minimal",o.SINGLE="single",o.TIMELINE="timeline",o.MULTICOLUMN="multicolumn",o.HIGH_PERFORMER="high_performer",o.CLASSIC="classic",o.IVYLEAGUE="ivyleague";var M=n(68122),O=n(47749),A=n.n(O),H=n(81946),T=n.n(H),B=n(26277),D=n.n(B),R=n(65822),F=n.n(R),U=n(35717),P=n.n(U),G=n(79425),z=n.n(G),Z=n(28832),W=n.n(Z),V=n(92618),Y=n.n(V),K=n(71984),q=n.n(K);let J={[s.IVYLEAGUE]:{key:s.IVYLEAGUE,name:"Ivy League",image:z(),settings:[{key:["header","photoStyle"],value:"round"},{key:["header","uppercaseName"],value:!0},{key:["style","layout"],value:s.IVYLEAGUE},{key:["style","colors"],value:["#000000","#6F7878"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:3},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:2},{key:["style","fontBody"],value:"ptsans"},{key:["style","fontHeading"],value:"volkhov"}]},[s.NEW_CONDENSED]:{key:s.NEW_CONDENSED,name:"Modern",image:P(),settings:[{key:["header","uppercaseName"],value:!0},{key:["style","layout"],value:s.NEW_CONDENSED},{key:["style","colors"],value:["#343334","#00B6CB"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:3},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:2},{key:["style","fontSize"],value:2}]},[s.TIMELINE]:{key:s.TIMELINE,name:"Timeline",image:q(),settings:[{key:["header","uppercaseName"],value:!0},{key:["style","layout"],value:s.TIMELINE},{key:["style","colors"],value:["#002B7F","#F96B07"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:1},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:1},{key:["style","fontBody"],value:"opensans"},{key:["style","fontHeading"],value:"montserratlocked"}]},[s.SINGLE]:{key:s.SINGLE,name:"Single column",image:Y(),settings:[{key:["header","uppercaseName"],value:!1},{key:["style","layout"],value:s.SINGLE},{key:["style","colors"],value:["#19273C","#3C6DF0"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:3},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:2}]},[s.CONDENSED]:{key:s.CONDENSED,name:"Compact",image:F(),settings:[{key:["header","uppercaseName"],value:!1},{key:["style","layout"],value:s.CONDENSED},{key:["style","colors"],value:["#002B7F","#56ACF2"]},{key:["style","background"],value:"b22Colored"},{key:["style","pageMarginOption"],value:1},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:2}]},[s.MULTICOLUMN]:{key:s.MULTICOLUMN,name:"Multicolumn",image:W(),settings:[{key:["header","uppercaseName"],value:!0},{key:["style","layout"],value:s.MULTICOLUMN},{key:["style","colors"],value:["#000000","#1E90FF"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:1},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:1},{key:["style","fontBody"],value:"interui"},{key:["style","fontHeading"],value:"rubik"}]},[s.CLASSIC]:{key:s.CLASSIC,name:"Classic",image:T(),settings:[{key:["header","uppercaseName"],value:!1},{key:["style","layout"],value:s.CLASSIC},{key:["style","colors"],value:["#000000","#1E90FF"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:3},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:2},{key:["style","fontBody"],value:"interui"},{key:["style","fontHeading"],value:"rubik"}]},[s.HIGH_PERFORMER]:{key:s.HIGH_PERFORMER,name:"High Performer",image:D(),settings:[{key:["header","uppercaseName"],value:!0},{key:["style","layout"],value:s.HIGH_PERFORMER},{key:["style","colors"],value:["#343334","#00B6CB"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:3},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:1},{key:["style","fontSize"],value:1},{key:["style","fontBody"],value:"opensans"},{key:["style","fontHeading"],value:"raleway"}]},[s.MINIMAL]:{key:s.MINIMAL,name:"Minimal",image:P(),settings:[{key:["header","uppercaseName"],value:!0},{key:["style","layout"],value:s.MINIMAL},{key:["style","colors"],value:["#124F44","#3CB371"]},{key:["style","background"],value:"b00"},{key:["style","pageMarginOption"],value:1},{key:["style","lineHeightOption"],value:0},{key:["style","marginOption"],value:3},{key:["style","fontSize"],value:1}]}};function X(e){let{templateName:t,setTemplateName:n,handleShowHideDownloadModal:a,onClickGoToApp:o,isLoading:r}=e,[s,i]=(0,f.useState)(0),c=2;c=(0,v.isInBreakpoint)(["xsm"])?2:4;let u=Object.keys(J).length,d=Math.ceil(u/c),p=100/d;return(0,l.jsxs)(v.Modal,{className:"p-40 text-center",size:"lg",onClose:()=>a(!1),children:[(0,l.jsx)("h4",{className:"m-top-0 m-bottom-8",children:"Edit & Download AI Cover Letter"}),(0,l.jsx)("p",{className:"m-bottom-32",children:"Choose your favorite layout."}),(0,l.jsxs)("div",{className:"relative flex flex-direction-column p-block-16 m-bottom-32 bg-page-alt overflow-hidden",children:[(0,l.jsx)("div",{className:j()("".concat(A().arrowRight," p-8 cursor-pointer animation-opacity-on-hover"),{[A().disabledArrow]:s+c>u}),onClick:function(){s+c<u&&i(e=>e+c)},children:(0,l.jsx)(v.Icon,{icon:"icon-fi-chevron-right"})}),(0,l.jsx)("div",{className:j()("".concat(A().arrowLeft," p-8 cursor-pointer animation-opacity-on-hover"),{[A().disabledArrow]:0===s}),onClick:function(){s-c>=0&&i(e=>e-c)},children:(0,l.jsx)(v.Icon,{icon:"icon-fi-chevron-left"})}),(0,l.jsx)("div",{className:"flex flex-direction-row flex-justify-center flex-nowrap full-width",children:Object.values(J).slice(s,s+c).map(e=>(0,l.jsx)("div",{className:"".concat(A().resumeContainer," p-inline-8"),onClick:()=>n(e.key),children:(0,l.jsxs)("div",{className:j()("".concat(A().resume," p-8 border-rounded-1 cursor-pointer animation-sli
1de-fade-in-right"),{[A().resumeActive]:t===e.key}),children:[(0,l.jsx)(M.Z,{className:A().resumeImage,width:300,height:400,alt:e.name,src:e.image,style:{width:"100%",height:"auto"}}),(0,l.jsx)("p",{className:"".concat(A().resumeTitle," m-top-16 m-bottom-0 text-sm text-center"),children:e.name})]})},e.key))}),(0,l.jsx)("div",{className:"".concat(A().sliderLineContainer," p-bottom-8 p-top-32 p-inline-64 p-inline-16-xsm"),children:(0,l.jsx)("div",{className:"".concat(A().sliderLineTrack," bg-subtext"),children:(0,l.jsx)("div",{className:"".concat(A().sliderLineBar," bg-label relative"),style:{width:"".concat(p,"%"),left:"".concat(Math.ceil(s/c)*p,"%")}})})})]}),(0,l.jsx)("div",{className:"flex flex-justify-center",children:(0,l.jsx)(v.Button,{size:"large",onClick:o,disabled:r,children:"Edit & Download"})})]})}let $=["IN","MY","ID","EG","NG","PK","BD"],Q="6LerrLAqAAAAAK08YjFwfPOxEpSNhgKpWzbiUKdm",ee={tone:r.PROFESSIONAL};function et(e){let{title:t,className:n="",isDynamicComponent:a,stepOneText:o,stepTwoText:r,stepThreeText:x,buttonText:v}=e,g=(0,f.useRef)(null),[b,N]=(0,f.useState)(1),[w,L]=(0,f.useState)(!1),[M,O]=(0,f.useState)(!1),[A,H]=(0,f.useState)(!1),[T,B]=(0,f.useState)(!1),[D,R]=(0,f.useState)(!1),[F,U]=(0,f.useState)(!1),[P,G]=(0,f.useState)(ee),[z,Z]=(0,f.useState)(),[W,V]=(0,f.useState)(""),[Y,K]=(0,f.useState)(),[q,et]=(0,f.useState)(s.CLASSIC),[en,ea]=(0,f.useState)();(0,f.useEffect)(function(){let e=new AbortController;return async function(){let t=await (0,c.G)({signal:e.signal});$.includes(t)&&L(!0)}(),()=>e.abort()},[]),(0,f.useEffect)(function(){let e=document.createElement("script");e.setAttribute("src","https://www.google.com/recaptcha/api.js?render=".concat(Q)),e.setAttribute("type","text/javascript"),e.setAttribute("async","async"),document.body.appendChild(e)},[]);let eo=e=>{K(void 0),V(e.target.value),U(!1),(0,i.pt)("cover letter generator - job description changed")},er=()=>{M||(K(void 0),B(!1),V(""),Z(void 0),N(1),U(!1),(0,i.pt)("cover letter generator - resume deleted"))},es=e=>{!M&&(B(e),e&&(0,i.pt)("cover letter generator - open settings",{step:2===b?"job description":3===b?"cover letter":""}))},el=()=>{g.current&&g.current.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},ei=()=>{B(!1),N(b-1),U(!1),el()},ec=async()=>{if(!z){U(!0);return}B(!1),O(!0),U(!1),N(3),el();try{let e=await window.grecaptcha.execute(String(Q),{action:"submit"}),t=await p.Z.post((0,d.k)("/resumeParsing/parse"),{key:en.key,importLocation:"ai cover letter generator",options:{parseWithAI:w},captchaToken:e}),n=await p.Z.post((0,d.k)("/aiCoverLetter/generateCoverLetter"),{resume:t.data.resume,file:z,jobAd:W,promptSettings:P});K(n.data.coverLetter),H(!0),(0,i.pt)("cover letter generator - ".concat(A?"regenerate":"generate"),{tone:P.tone,job_description:W.substring(0,100)})}catch(e){U(!0),N(2)}finally{O(!1)}},eu=e=>{!M&&(R(e),e&&(0,i.pt)("virtual_pageview",{virtual_page:"cover_letter_generator_download_screen"}))},ed=()=>{let e=em(),t=m.lW.from(JSON.stringify(e)).toString("base64");(0,i.pt)("cover letter generator - opened in app"),(0,u.T8)("https://app.enhancv.com/coverletter/new?generatedCoverLetter=".concat(t))},ep=()=>{(0,i.pt)("cover letter generator - copy cover letter")},em=()=>(J[q].settings.forEach(e=>{y()(Y,e.key,e.value)}),K(Y),Y);return(0,l.jsx)("div",{ref:g,className:n,children:(0,l.jsxs)("div",{className:"p-24 p-left-0-xsm p-right-0-xsm",children:[(0,l.jsx)(S,{title:t,step:b,isDynamicComponent:a,stepOneText:o,stepTwoText:r,stepThreeText:x}),F&&(0,l.jsxs)("p",{className:j()(h().generatorErrorMessage,"p-16 border-rounded-0 m-bottom-16 text-center bg-danger-10 text-danger border-danger"),children:["We're having trouble generating your cover letter right now. ",(0,l.jsx)("br",{}),"Please try again in a few moments."]}),1===b&&(0,l.jsx)(E,{afterUpload:function(e){let{resume:t,file:n,error:a}=e;K(void 0),V(""),ea(t),Z(n),N(b+1),U(Boolean(a)),(0,i.pt)("cover letter generator - resume uploaded")},buttonText:v}),2===b&&(0,l.jsx)(I,{showSettings:T,onClickShowSettings:es,promptSettings:P,setPromptSettings:G,isLoading:M,children:(0,l.jsx)(C,{jobAd:W,onChangeJobAd:eo,isLoading:M})}),3===b&&(0,l.jsx)(I,{showSettings:T,onClickShowSettings:es,promptSettings:P,setPromptSettings:G,isLoading:M,children:(0,l.jsx)(k,{handleShowHideDownloadModal:eu,onClickCopy:ep,isLoading:M,coverLetter:Y})}),[2,3].includes(b)&&(0,l.jsx)(_,{isLoading:M,filename:null==z?void 0:z.name,onClickRemoveFile:er,onClickBack:ei,onClickGenerate:ec,isGenerateDisabled:M||!W,
1isBackDisabled:M}),D&&(0,l.jsx)(X,{templateName:q,setTemplateName:et,handleShowHideDownloadModal:eu,onClickGoToApp:ed,isLoading:M})]})})}},49693:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var a=n(2982),o=n(83454);let r=o.env.GEOLOCATION_URL||"https://api.enhancv.com/api/users/geo";async function s(){let{signal:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(a.Z.getItem("countryCode"))return a.Z.getItem("countryCode");let t=await (await fetch(r,{signal:e})).json();return a.Z.setItem("countryCode",t.country_code),t.country_code}},45337:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(85893),o=n(94184),r=n.n(o),s=n(60801);n(67294);var l=n(65937),i=n.n(l);function c(e){let{onLinkClick:t,error:n,isWithDarkTheme:o,contentText:l}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:r()(i().border,"p-top-24 p-bottom-24 p-left-40 p-right-40 p-left-16-xsm p-right-16-xsm",{[i().border]:!o,[i().borderDark]:o}),children:[(0,a.jsx)("p",{className:r()("m-top-0 text-center m-bottom-16 text-sm",{"text-white":o}),children:(null==l?void 0:l.title)||(0,a.jsxs)(a.Fragment,{children:["Drop your resume here or choose a file. ",(0,a.jsx)("br",{className:"hidden-xsm"})," ","PDF & DOCX only. Max 2MB file size."]})}),(0,a.jsx)(s.Button,{onClick:t,className:r()(i().uploadBtn,"m-auto"),children:(null==l?void 0:l.buttonText)||"Upload Your Resume"}),n&&(0,a.jsx)("div",{className:"text-danger m-top-16 text-center",children:n}),(0,a.jsxs)("div",{className:"flex flex-justify-center flex-nowrap m-top-16",children:[(0,a.jsx)(s.Icon,{icon:"icon-fa-lock",className:r()("m-right-4 text-rg text-label",{"text-white":o})}),(0,a.jsx)("span",{className:r()("text-xs text-label font-weight-700",{"text-white":o}),children:(null==l?void 0:l.privacyText)||"We never share your data with 3rd parties or use it for AI model training."})]})]})})}},65250:function(e){e.exports={background:"HeroSection_background__nsYlw",content:"HeroSection_content__2t1rs",introText:"HeroSection_introText__cce3E",generatorContainer:"HeroSection_generatorContainer__ChUQ_",generator:"HeroSection_generator__98S_f",step:"HeroSection_step__u1Ho0",stepActive:"HeroSection_stepActive__eNPk1",stepSeparator:"HeroSection_stepSeparator__8U3_s",stepSeparatorSmall:"HeroSection_stepSeparatorSmall__fvsX8",whiteBox:"HeroSection_whiteBox__roZpd",settingsContent:"HeroSection_settingsContent__PVwx2",dropzone:"HeroSection_dropzone__P2LRC",resumeName:"HeroSection_resumeName__2fBoJ",textarea:"HeroSection_textarea__SoR9s",textareaExtended:"HeroSection_textareaExtended___d_yl",hr:"HeroSection_hr__U3R6B",dropdownTitle:"HeroSection_dropdownTitle__1ldNI",dropdownMenu:"HeroSection_dropdownMenu___makW",coverLetter:"HeroSection_coverLetter__XRG9q",coverLetterContent:"HeroSection_coverLetterContent__0Ydxm",coverLetterActions:"HeroSection_coverLetterActions__RFMVL",downloadButton:"HeroSection_downloadButton___jSp5",copyIcon:"HeroSection_copyIcon__IV43k",generatorErrorMessage:"HeroSection_generatorErrorMessage__aUvM9"}},47749:function(e){e.exports={resumeContainer:"TemplatesModal_resumeContainer__KQ1OE",resume:"TemplatesModal_resume__5scl4",resumeActive:"TemplatesModal_resumeActive__53vZI",resumeImage:"TemplatesModal_resumeImage__uIyB4",resumeTitle:"TemplatesModal_resumeTitle__BKwyM",arrowRight:"TemplatesModal_arrowRight__HIaoD",arrowLeft:"TemplatesModal_arrowLeft__7NJKY",disabledArrow:"TemplatesModal_disabledArrow__P7v_1",sliderLineContainer:"TemplatesModal_sliderLineContainer__stcbX",sliderLineTrack:"TemplatesModal_sliderLineTrack__M3m1t",sliderLineBar:"TemplatesModal_sliderLineBar___qZHc"}},65937:function(e){e.exports={uploadResumeCta:"UploadResume_uploadResumeCta__DPnMD",uploadResumeCtaFold:"UploadResume_uploadResumeCtaFold__BwOnH",icon:"UploadResume_icon__5PMXJ",border:"UploadResume_border__muPDK",uploadBtn:"UploadResume_uploadBtn__qE6pI",borderDark:"UploadResume_borderDark__VFa9G"}},81946:function(e){e.exports="/_next/static/images/CLClassicLayout-ea6351b08fbacb11b29e926d999e6499.webp"},26277:function(e){e.exports="/_next/static/images/CLHighPerformer-a6bda9538ef3a34e4a35bec985c78e0d.webp"},65822:function(e){e.exports="/_next/static/images/[email protected]"},35717:function(e){e.exports="/_next/static/images/[email protected]"},79425:function(e){e.exports="/_next/static/images/ivyleagueCoverLetter-14122b546044df001b9ad2132bf09fc1.webp"},28832:function(e){e.exports="/_next/static/images/[email protected]"},92618:function(e){e.exports="/_next/static/images/[email protected]"},71984:function(e){e.exports="/_next/static/images/[email protected]"}}]);

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.