PageSourceSearch

https://enhancv-cms.herokuapp.com/_next/static/chunks/pages/cover-letter-generator-dd4f0ccdd90133ba.js

js enhancv-cms.herokuapp.com collected 2026-10-03 14:49:01 UTC 16,769 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4662],{69841:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cover-letter-generator",function(){return n(16562)}])},15577:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(85893);n(67294);var r=n(68122),i=n(79148);function o(e){let{features:t}=e;return(0,a.jsx)("section",{className:"p-top-64",children:(0,a.jsx)("div",{className:"container flex flex-justify-center",children:t.map(e=>(0,a.jsxs)("div",{className:"flex flex-align-center full-width p-block-64 p-top-0-xsm",children:[(0,a.jsx)("div",{className:"col-6-lg col-6-xl",children:(0,a.jsx)(i.Z,{title:e.title||"",description:e.text,buttonLink:e.buttonLink,buttonText:e.buttonText})}),(0,a.jsx)("div",{className:"col-6-lg col-6-xl text-center ".concat(e.imageRight?"order-last-lg order-last-xl":"order-first-lg order-first-xl"),children:(0,a.jsx)(r.Z,{src:e.image.url,alt:e.image.alternativeText||"",width:e.image.width,height:e.image.height,style:{maxWidth:"100%",height:"auto"}})})]},e.title))})})}},79148:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(85893),r=n(60801);n(67294);var i=n(8991),o=n.n(i);function s(e){let{title:t,description:n,checkList:i,buttonLink:s,buttonText:c,animation:l="animation-slide-fade-in-up",children:d}=e;return(0,a.jsx)("div",{className:"p-inline-40-mxl",children:(0,a.jsxs)(r.OnScrollAnimationWrapper,{animation:l,triggerOnce:!1,classNameInitialState:"opacity-0 ".concat(o().contentAnimation),children:[(0,a.jsx)("h3",{className:"h3 font-weight-500 text-center-xsm",children:t}),n&&(0,a.jsx)("p",{className:"m-bottom-16 text-center-xsm",children:n}),null==i?void 0:i.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-align-top m-bottom-8 flex-nowrap",children:[(0,a.jsx)(r.Icon,{className:"text-primary m-right-8",icon:"icon-fi-check-circle",style:{fontSize:"21px",paddingTop:"2px"}}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})]},t)),s&&c&&(0,a.jsx)("div",{className:"flex flex-justify-center-xsm",children:(0,a.jsx)(r.Button,{href:s,children:c})}),d]})})}},59235:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(85893);function r(e){let{html:t}=e;return(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})}},68350:function(e,t,n){"use strict";n.d(t,{q7:function(){return w},Pl:function(){return r},ZP:function(){return N},gB:function(){return _}});var a,r,i=n(85893),o=n(82595),s=n(25930),c=n(94184),l=n.n(c),d=n(67294),m=n(60801),u=n(90502),p=n(39896),h=n.n(p);function f(e){let{onClose:t,error:n}=e,[a,r]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4e3,[t,n]=(0,d.useState)(0),[a,r]=(0,d.useState)(!1),i=()=>{r(!0)},o=()=>{n(0)};return(0,d.useEffect)(()=>{if(!a)return;let t=e=>{let t=e+10;return t>=100&&(clearInterval(i),r(!1)),t},i=setInterval(()=>{n(t)},e/10);return()=>{clearInterval(i)}},[a,e]),[t,{start:i,restart:o}]}(w);return(0,d.useEffect)(()=>{r.start()},[]),(0,i.jsx)(u.Z,{children:(0,i.jsx)(m.PopupModal,{size:"md",onClose:t||(()=>null),children:(0,i.jsx)("div",{className:"flex flex-justify-center",children:n?(0,i.jsx)("div",{children:n}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"col-9 text-paragraph font-heading",children:"Uploading resume..."}),(0,i.jsxs)("div",{className:"col-3 text-caption font-heading",children:["(",a,"% complete)"]}),(0,i.jsx)("div",{className:"col-12 bg-accent m-top-24",children:(0,i.jsx)("div",{className:h().progressDone,style:{width:"".concat(a,"%"),height:"4px"}})})]})})})})}var x=n(6154);let g=e=>{let t=new URLSearchParams({key:e,importFrom:"resume checker",...(0,s.f8)()});return"".concat("https://app.enhancv.com","/resume-checker/results?").concat(t.toString())},v=e=>"".concat("https://api.enhancv.com","/api").concat(e);async function j(e){if(!e||!e.name.match(/(doc|docx|pdf|txt)$/i))throw Error("Invalid file format. Please provide docx or pdf file.");if(e.size>2097152)throw Error("The file is larger than the allowed size.");let t=await x.Z.post(v("/uploadFile/resume"),{resumeChecker:"1",ext:e.name.split(".").pop()||"unknown",originalFilename:e.name}),n=t.data.params;if(!n)throw Error("Something went wrong.");let a=new FormData;
1Object.keys(n).forEach(e=>{a.append(e,n[e])}),a.append("file",e);let r=await x.Z.post(t.data.endpoint_url,a,{headers:{"Content-Type":"multipart/form-data"}});if(![200,201].includes(r.status))throw Error("Something went wrong.");return{resumeGradeUrl:g(n.key),key:n.key}}let w=3e3;(a=r||(r={})).DEFAULT="DEFAULT",a.LOADING="LOADING",a.UPLOADED="UPLOADED";let _=(e,t)=>{if(t){(0,s.YQ)(e);return}(0,s.T8)(e)};function N(e){let{className:t,isResumeChecker:n,onSelected:a,beforeUpload:s,afterUpload:c,isDragAndDrop:m=!0,hasCustomLoading:u,isUploadStep:p,children:h}=e,[x,g]=(0,d.useState)(r.DEFAULT),[v,_]=(0,d.useState)(""),N=(0,d.useRef)(null),b=()=>{var e;null===(e=N.current)||void 0===e||e.click()},y=e=>{var t;(null===(t=e.currentTarget)||void 0===t?void 0:t.files)&&e.currentTarget.files[0]&&(a&&a(),u||g(r.LOADING),S(e.currentTarget.files[0]))},S=e=>{let t=[];s&&s(),t.push(new Promise(e=>{setTimeout(()=>{e(!0)},w)})),n?t.push(j(e)):t.push((0,o.Z)(e)),Promise.all(t).then(t=>{null==c||c({resume:t[1],file:e}),g(r.UPLOADED)}).catch(e=>{_(e.message),null==c||c({error:e.message})})};function T(e){e.preventDefault()}return(0,i.jsxs)(i.Fragment,{children:[p&&(0,i.jsx)("input",{ref:N,type:"file",style:{display:"none"},onInput:y,accept:".doc,.docx,.pdf"},Date.now()),(0,i.jsx)("div",{onClick:p?b:void 0,className:l()(t,{"cursor-pointer":p,"pointer-events-none":!p}),onDrop:m&&p?function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.files&&e.dataTransfer.files[0]&&S(e.dataTransfer.files[0])}:void 0,onDragEnter:T,onDragOver:T,onDragLeave:T,children:h}),(()=>{switch(x){case r.LOADING:return(0,i.jsx)(f,{onClose:()=>g(r.DEFAULT),error:v});case r.DEFAULT:case r.UPLOADED:return null}})()]})}},82595:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},k:function(){return r}});var a=n(6154);let r=e=>"".concat("https://api.enhancv.com","/api").concat(e);async function i(e){if(!e||!e.name.match(/(doc|docx|pdf)$/i))throw Error("Invalid file format. Please provide docx or pdf file.");if(e.size>2097152)throw Error("The file is larger than the allowed size.");let t=await a.Z.post(r("/uploadFile/resume"),{ext:e.name.split(".").pop()||"unknown",originalFilename:e.name}),n=t.data.params;if(!n)throw Error("Something went wrong.");let i=new FormData;Object.keys(n).forEach(e=>{i.append(e,n[e])}),i.append("file",e);let o=await a.Z.post(t.data.endpoint_url,i,{headers:{"Content-Type":"multipart/form-data"}});if(![200,201].includes(o.status))throw Error("Something went wrong.");return n}},42024:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var a=n(85893),r=n(80276);let i=e=>{let t=new DOMParser().parseFromString(e,"text/html");return t.body.textContent||""};var o=n(94184),s=n.n(o),c=n(60801),l=n(9008),d=n.n(l),m=n(67294),u=n(88332),p=n.n(u);function h(e){let{paths:t,location:n,className:o,isSchemaHidden:l,isWithBackground:u}=e,h=[{name:"Home",url:"/",isHome:!0},...t].map(e=>{let{name:t,url:n,isHome:a=!1}=e;return{name:(0,r.Z)(i(t),30),url:n,isHome:Boolean(a)}}),x={"data-amplitude-event":"breadcrumb clicked","data-amplitude-prop-button_location":n};if(t.length>1){let e=t[t.length-1].url.split("/").filter(Boolean);x["data-amplitude-prop-id"]=e[e.length-1]}return(0,a.jsxs)(m.Fragment,{children:[!l&&(0,a.jsx)(d(),{children:(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(f(h))}})}),(0,a.jsx)("div",{className:s()(u&&p().withBackground),children:(0,a.jsx)(c.Breadcrumb,{paths:h,className:o,eventParams:x})})]})}let f=e=>{let t=e.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@id":"https://enhancv.com".concat(e.url),name:e.name}}));return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t}}},90502:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893);n(67294);var r=n(73935);function i(e){let{children:t,className:n=""}=e;return r.createPortal((0,a.jsx)("div",{tabIndex:-1,className:"modal ".concat(n),style:{display:"block"},children:t}),document.querySelector(".modal-portal"))}},35869:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(85893),r=n(9008),i=n.n(r);n(67294);var o=n(28597);function s(e){let{schema:t=o.Z}=e;return(0,a.jsx)(i(),{children:(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})}},63828:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(85893),r=n(25930),i=n(78252),o=n(26931),s=n(58662),c=n(96020),l=n.n(c);function d(e){var t,n;let{post:c,author:d,className:m="bg-page",categoryLinked:u=!0}=e;if(!c)return null;let p=(0,s.W)(c.category.color).border;return(0,a.jsxs)("div",{"data-test-id":"post-card",className:"".concat(m," ").concat(l().articleBox," bg-surface p-inline-16 p-bottom-48 p-bottom-64-md p-bottom-72-sm relative cursor-pointer"),style:{borderTop:"4px solid ".concat(p)},onClick:()=>(0,r.T8)("/blog/".concat(c.url,"/")),children:[(0,a.jsx)("div",{className:"text-right m-top-8",children:u?(0,a.jsx)(i.Z,{href:"/blog/tag/".concat(null===(t=c.category)||void 0===t?void 0:t.url,"/"),className:"font-heading text-sm font-weight-500 text-label","data-test-id":"
1category-title",children:c.category.name.toUpperCase()}):(0,a.jsx)("span",{className:"font-heading text-sm font-weight-500 text-label","data-test-id":"category-title",children:c.category.name.toUpperCase()})}),(0,a.jsx)(i.Z,{href:"/blog/".concat(c.url,"/"),children:(0,a.jsx)("h6",{"data-test-id":"post-title",className:"h6 ".concat(l().title," m-top-16-md"),children:(null===(n=c.header)||void 0===n?void 0:n.title)||c.category.title})}),(0,a.jsx)("div",{className:l().postInfo,children:(0,a.jsx)(o.Z,{type:"row",post:c,...d,isDateShown:!1})})]})}},28597:function(e,t){"use strict";t.Z={"@context":"https://schema.org/","@type":"Organization",name:"Enhancv Resume Builder",url:"https://enhancv.com/",image:"https://cdn.enhancv.com/cv_builder_1286b02adf.jpg",logo:{"@type":"ImageObject","@id":"https://enhancv.com/#logo",inLanguage:"en-US",url:"https://d1011j0lbv5k1u.cloudfront.net/assets/store-494111/494111-logo-1553769801.jpg",width:"800",height:"584",caption:"Enhancv Logo"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.5",reviewCount:"2862 "},sameAs:["https://www.facebook.com/enhancv","https://twitter.com/enhancv","https://www.linkedin.com/company/enhancv","https://www.pinterest.com/enhancv/","https://www.instagram.com/enhancv/"],description:"Enhancv is an online resume builder platform that helps people build resumes and get hired at top companies.",founder:"Volen Vulkov"}},71868:function(e,t,n){"use strict";n.r(t),n.d(t,{FAQElement:function(){return l},default:function(){return c}});var a=n(85893),r=n(94184),i=n.n(r),o=n(46288),s=n.n(o);function c(e){let{title:t,data:n,className:r}=e;return(0,a.jsxs)("div",{className:r||"container",children:[(0,a.jsx)("h4",{className:i()("text-center-xs m-top-56 m-bottom-0 p-bottom-0 m-top-32-xs",s().faqHeader),dangerouslySetInnerHTML:{__html:t}}),n.map((e,t)=>(0,a.jsx)(l,{el:e,isElementOpen:0===t},e.title))]})}function l(e){let{el:t,isElementOpen:n=!1}=e;return(0,a.jsxs)("details",{className:"".concat(s().faqElement," p-top-24"),open:n||void 0,children:[(0,a.jsxs)("summary",{className:s().faqSummary,children:[(0,a.jsxs)("span",{className:i()(s().icon,"flex flex-align-center flex-justify-center"),"aria-hidden":"true",children:[(0,a.jsx)("span",{className:i()(s().iconPlus,"icon-fi-plus")}),(0,a.jsx)("span",{className:s().iconDot})]}),(0,a.jsx)("h6",{className:i()("h6 h5-xs m-0 p-bottom-16",s().faqTitle),children:t.title})]}),(0,a.jsx)("div",{className:"".concat(s().faqText," m-bottom-16"),dangerouslySetInnerHTML:{__html:t.text}})]})}},16562:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return _},default:function(){return N}});var a=n(85893);n(67294);var r=n(15577),i=n(65250),o=n.n(i),s=n(42024),c=n(86231);function l(e){let{data:t}=e;return(0,a.jsx)("div",{className:"".concat(o().background," relative p-top-48 p-bottom-64"),children:(0,a.jsxs)("div",{className:"".concat(o().content," relative container flex flex-direction-column flex-align-center text-center"),children:[(0,a.jsx)("p",{className:"".concat(o().introText," text-xs text-transform-uppercase font-weight-500 m-0"),children:"Generate as many cover letters as you need"}),(0,a.jsx)("div",{className:"m-bottom-40",children:(0,a.jsx)(s.Z,{paths:[{name:"Cover Letter Generator",url:"/cover-letter-generator/"}],location:"cover letter generator - main page",isSchemaHidden:!1})}),(0,a.jsx)("div",{className:"".concat(o().generatorContainer," col-7-xl full-width"),children:(0,a.jsx)("div",{className:o().generator,children:(0,a.jsx)(c.Z,{title:t.title})})})]})})}var d=n(63828);function m(e){let{relatedPosts:t}=e;return(0,a.jsx)("section",{className:"bg-accent",id:"continue-reading",children:(0,a.jsxs)("div",{className:"container p-top-96 p-bottom-72",children:[(0,a.jsxs)("div",{className:"flex text-center",children:[(0,a.jsx)("h3",{className:"col-12 h3 font-weight-500 p-0 m-bottom-16 m-top-0",children:"Learn how to write a cover letter like a professional"}),(0,a.jsx)("p",{className:"col-lg-6 col-lg-offset-3 m-bottom-8 text-md",children:"Want to take it a step further? Our cover letter writing resources come from over a decade of experience."})]}),(0,a.jsx)("div",{className:"flex",children:t.map(e=>(0,a.jsx)("div",{className:"col-4 col-6-sm col-12-xs p-24 p-bottom-16 p-inline-8-xsm",children:(0,a.jsx)(d.Z,{className:"bg-surface",post:e,categoryLinked:!1,author:{isFullInfoShown:!1,isAvatarShown:!1,isSocialShown:!1}})},e.id))})]})})}var u=n(68122),p=n(84793),h=n.n(p);function f(e){let{stepsTitle:t,stepsDescription:n,steps:r}=e;return(0,a.jsx)("section",{className:"".concat(h().outerContainer," m-bottom-72"),children:(0,a.jsx)("div",{className:"".concat(h().innerContainer," relative"),children:(0,a.jsx)("div",{className:"container flex flex-justify-center flex-align-stretch gap-32-xsm gap-32-md",children:(0,a.jsxs)("div",{className:"flex flex-justify-center text-center m-block-64",children:[(0,a.jsxs)("div",{className:"col-10-mxl",children:[(0,a.jsx)("h3",{children:t}),(0,a.jsx)("p",{className:"m-bottom-72",children:n})]}),(0,a.jsx)("div",{className:"flex text-left",children:r.map(e=>(0,a.jsx)("div",{className:"col-4 col-12-xsm col-12-md",children:(0,a.jsx)("div",{className:"full-height p-block-16-xsm p-block-16-md p-inline-24",children:(0,a.jsxs)("div",{className:"".concat(h().box," full-height p-24 p-bottom-48"),children:[(0,a.jsx)(u.Z,{src:e.icon.url,alt:e.icon.alternativeText||"",width:e.icon.width,height:e.icon.height,style:{maxWidth:"100%",height:"auto"}}),(0,a.jsx)("h6",{children:e.title}),(0,a.jsx)("p",{children:e.description})]})})}
1,e.title))})]})})})})}var x=n(61633),g=n(35869),v=n(82466),j=n(71868);function w(e){var t;let{data:n,hreflangs:i,reviewsStats:o}=e;return(0,a.jsxs)(a.Fragment,{children:[!n.seo.structuredData&&(0,a.jsx)(g.Z,{}),(0,a.jsx)(v.Z,{metaTitle:n.seo.metaTitle,metaDescription:n.seo.metaDescription,metaImageSrc:n.seo.metaImageSrc,structuredData:n.seo.structuredData,canonical:"https://enhancv.com/cover-letter-generator/",preventIndexing:n.seo.preventIndexing}),(0,a.jsxs)(x.Z,{className:"relative",hreflangs:i,compactNavigation:null===(t=n.compactNavigation)||void 0===t?void 0:t.compactNavigation,reviewsStats:o,children:[(0,a.jsx)(l,{data:n.fold}),(0,a.jsx)(f,{stepsTitle:n.stepsTitle,stepsDescription:n.stepsDescription,steps:n.steps}),(0,a.jsx)(r.Z,{features:n.features}),(0,a.jsx)(m,{relatedPosts:n.related_articles.map(e=>{let{post:t}=e;return t})}),(0,a.jsx)("div",{className:"p-top-40-mxl p-bottom-32-xsm p-bottom-64-mxl p-inline-8-xsm bg-page-alt overflow-hidden",children:(0,a.jsx)(j.default,{title:n.faq.title,data:n.faq.data})})]})]})}var _=!0;function N(e){return(0,a.jsx)(w,{...e})}},8991:function(e){e.exports={contentAnimation:"FeatureDescription_contentAnimation__XoH2W"}},84793:function(e){e.exports={outerContainer:"StepsSection_outerContainer__k_ORW",innerContainer:"StepsSection_innerContainer__fOnSm",box:"StepsSection_box__h61IA"}},39896:function(e){e.exports={progressDone:"LoadingModal_progressDone__JE2jB"}},88332:function(e){e.exports={withBackground:"Breadcrumb_withBackground__2kyLv",home:"Breadcrumb_home__IwK6o"}},46288:function(e){e.exports={faqTitle:"FAQ_faqTitle__XFamV",faqText:"FAQ_faqText__VRM2F",disabled:"FAQ_disabled__mzJiG",faqElement:"FAQ_faqElement__GIz5L",icon:"FAQ_icon__noZ0d",iconPlus:"FAQ_iconPlus__m8SVf",iconDot:"FAQ_iconDot__1Wjej",faqSummary:"FAQ_faqSummary__i7rJO"}}},function(e){e.O(0,[1393,6154,9280,1633,5720,6231,9774,2888,179],function(){return e(e.s=69841)}),_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.