PageSourceSearch

https://cvmachine.com/_next/static/chunks/5812-e829a2602fe8156d.js

js cvmachine.com collected 2026-09-25 08:12:49 UTC 44,664 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5812],{29064:function(e,t,i){i.d(t,{Bc:function(){return d},Me:function(){return s},NQ:function(){return l},TY:function(){return c},Yd:function(){return u},_H:function(){return p}});var o=i(24363),n=i(48798),r=i(75950),a=i(12736).Buffer;let s=async(e,t,i,r)=>{let a={headers:{Authorization:"Bearer ".concat(t),Accept:"application/json","Content-Type":"application/json"}};i&&(a.headers["x-user-id"]=i);let s=(0,n.b6)(r)?o.Z.COVER_LETTERS_ENDPOINT:o.Z.BASE_API,d="resignationLetter"==r?"resignation-letter":(0,n.b6)(r)?"cover-letters":"resume",l="".concat(s,"/").concat(d,"/").concat(e),c=await fetch(l,a);if(200!==c.status)throw Error(await c.text());return c.json()},d=async(e,t,i,o)=>{"true"===t&&(e.onePage=t);let n={method:"POST",headers:{Authorization:"Bearer ".concat(o),Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)},a=(0,r.nk)(i)?"/builder/en/api/export-html":"/en/api/export-html",s=await fetch(a,n),d=await s.text();if(200!==s.status)throw Error(d);return d},l=async e=>{let{html:t,token:i,options:n,email:r,template:a,color:s,gender:d,isCoverLetter:l,isRTL:c,userId:p,resumeId:u}=e,h={method:"POST",headers:{Authorization:"Bearer ".concat(i),Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({fileType:"pdf",html:t,sendEmail:!0,email:r,options:n,template:a,color:s,gender:d,isCoverLetter:l,isRTL:c,userId:p,resumeId:u})};return await fetch("".concat(o.Z.BASE_API,"/resume/export-pdf"),h)},c=async e=>{let{fileType:t="pdf",html:i,token:n,options:r,userId:s,template:d,color:l,gender:c,isCoverLetter:p,isSwapable:u,resumeId:h,isPublicRoute:g,isResignationLetter:f}=e,m={...g?{}:{Authorization:"Bearer ".concat(n)},Accept:"application/json","Content-Type":"application/json"};s&&(m["x-user-id"]=s);let x={fileType:t,html:i,options:r,template:d,color:l,gender:c,isCoverLetter:p,isRTL:!!u&&u,isGenderColorSame:!0,userId:p?null:s,resumeId:p?null:h};g||(x.isResignationLetter=f);let C={method:"POST",headers:m,body:JSON.stringify(x)},w=g?"".concat(o.Z.BASE_API,"/resume/public-export-pdf"):"".concat(o.Z.BASE_API,"/resume/export-pdf"),k=await fetch(w,C);if(200!==k.status)throw Error(await k.text());let v=await k.arrayBuffer();return a.from(v)},p=async e=>{let{token:t,isCoverLetter:i,fileType:n,resumeId:r,isEmail:s,email:d}=e,l={method:"POST",headers:{Authorization:"Bearer ".concat(t),Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({fileType:n,isCoverLetter:i,coverLetterId:i?r:null,resumeId:i?null:r,sendEmail:s,email:d})},c=await fetch("".concat(o.Z.BASE_API,"/resume/export-txt"),l);if(!c.ok)throw Error(await c.text());let p=await c.arrayBuffer();return a.from(p)},u=async e=>{let{token:t,link:i}=e,o=await fetch(i,{method:"GET",headers:{Authorization:"Bearer ".concat(t),Accept:"application/json","Content-Type":"application/json"}});if(200!==o.status)throw Error(await o.text());return o.blob()}},7379:function(e,t,i){i.d(t,{o:function(){return r},y:function(){return n}});var o=i(65434);let n=/^[a-zA-Z0-9_%+-]+(\.[a-zA-Z0-9_%+-]+)*@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,r=e=>e?!!n.test(e)||o.RZ.email:o.RZ.required},51766:function(e,t,i){var o=i(52676);i(75271),t.Z=e=>{let{stroke:t="black"}=e;return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,o.jsx)("path",{d:"M14 10V12.6667C14 13.0203 13.8595 13.3594 13.6095 13.6095C13.3594 13.8595 13.0203 14 12.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V10",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M4.66602 6.66602L7.99935 9.99935L11.3327 6.66602",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M8 10V2",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}},76184:function(e,t,i){i.d(t,{Ek:function(){return a},Hd:function(){return r},Ol:function(){return d},bq:function(){return n},k2:function(){return l},nZ:function(){return s},pd:function(){return c},uB:function(){return p}});var o=i(52676);let n=()=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,o.jsx)("path",{d:"M16.6667 2.5H3.33333C2.8731 2.5 2.5 2.8731 2.5 3.33333V7.5C2.5 7.96024 2.8731 8.33333 3.33333 8.33333H16.6667C17.1269 8.33333 17.5 7.96024 17.5 7.5V3.33333C17.5 2.8731 17.1269 2.5 16.6667 2.5Z",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M9.16667 11.668H3.33333C2.8731 11.668 2.5 12.0411 2.5 12.5013V16.668C2.5 17.1282 2.8731 17.5013 3.33333 17.5013H9.16667C9.6269 17.5013 10 17.1282 10 16.668V12.5013C10 12.0411 9.6269 11.668 9.16667 11.668Z",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M16.6667 11.668H14.1667C13.7065 11.668 13.3334 12.0411 13.3334 12.5013V16.668C13.3334 17.1282 13.7065 17.5013 14.1667 17.5013H16.6667C17.1269 17.5013 17.5 17.1282 17.5 16.668V12.5013C17.5 12.0411 17.1269 11.668 16.6667 11.668Z",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}
1),r=()=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,o.jsx)("path",{d:"M3.33337 5.83203V3.33203H16.6667V5.83203",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M7.5 16.668H12.5",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M10 3.33203V16.6654",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a=()=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,o.jsx)("path",{d:"M11.25 5.83333C11.4802 5.83333 11.6667 5.64679 11.6667 5.41667C11.6667 5.18655 11.4802 5 11.25 5C11.0199 5 10.8334 5.18655 10.8334 5.41667C10.8334 5.64679 11.0199 5.83333 11.25 5.83333Z",fill:"#14141F",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M14.5833 9.16536C14.8134 9.16536 15 8.97882 15 8.7487C15 8.51858 14.8134 8.33203 14.5833 8.33203C14.3532 8.33203 14.1666 8.51858 14.1666 8.7487C14.1666 8.97882 14.3532 9.16536 14.5833 9.16536Z",fill:"#14141F",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M7.08329 6.66536C7.31341 6.66536 7.49996 6.47882 7.49996 6.2487C7.49996 6.01858 7.31341 5.83203 7.08329 5.83203C6.85317 5.83203 6.66663 6.01858 6.66663 6.2487C6.66663 6.47882 6.85317 6.66536 7.08329 6.66536Z",fill:"#14141F",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M5.41667 10.8333C5.64679 10.8333 5.83333 10.6468 5.83333 10.4167C5.83333 10.1865 5.64679 10 5.41667 10C5.18655 10 5 10.1865 5 10.4167C5 10.6468 5.18655 10.8333 5.41667 10.8333Z",fill:"#14141F",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M9.99996 1.66797C5.41663 1.66797 1.66663 5.41797 1.66663 10.0013C1.66663 14.5846 5.41663 18.3346 9.99996 18.3346C10.7716 18.3346 11.3733 17.713 11.3733 16.928C11.3733 16.5638 11.2233 16.2321 11.0091 15.9905C10.7675 15.7496 10.6441 15.4471 10.6441 15.053C10.641 14.8696 10.6748 14.6874 10.7435 14.5173C10.8122 14.3473 10.9145 14.1928 11.0442 14.0631C11.1739 13.9333 11.3284 13.8311 11.4985 13.7623C11.6686 13.6936 11.8507 13.6598 12.0341 13.663H13.6975C16.24 13.663 18.3266 11.5771 18.3266 9.03464C18.3041 5.0113 14.5508 1.66797 9.99996 1.66797Z",stroke:"#14141F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),s=()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,o.jsx)("path",{d:"M8.23814 7.00015L13.7435 1.49459C14.0855 1.15283 14.0855 0.598303 13.7435 0.256541C13.4014 -0.0855136 12.8475 -0.0855136 12.5055 0.256541L7.00015 5.7621L1.49453 0.256541C1.15249 -0.0855136 0.59857 -0.0855136 0.25653 0.256541C-0.08551 0.598303 -0.08551 1.15283 0.25653 1.49459L5.76215 7.00015L0.25653 12.5057C-0.08551 12.8475 -0.08551 13.402 0.25653 13.7438C0.42755 13.9145 0.651685 14 0.875529 14C1.09937 14 1.32351 13.9145 1.49453 13.7435L7.00015 8.2379L12.5055 13.7435C12.6765 13.9145 12.9006 14 13.1245 14C13.3483 14 13.5725 13.9145 13.7435 13.7435C14.0855 13.4017 14.0855 12.8472 13.7435 12.5054L8.23814 7.00015Z",fill:"#7171A6"})}),d=()=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[(0,o.jsx)("rect",{width:"13",height:"13",rx:"6.5",fill:"white"}),(0,o.jsx)("path",{d:"M6.5 0C5.21442 0 3.95772 0.381218 2.8888 1.09545C1.81988 1.80968 0.986756 2.82484 0.494786 4.01256C0.00281635 5.20028 -0.125905 6.50721 0.124899 7.76809C0.375703 9.02896 0.994767 10.1872 1.90381 11.0962C2.81285 12.0052 3.97104 12.6243 5.23192 12.8751C6.49279 13.1259 7.79973 12.9972 8.98744 12.5052C10.1752 12.0132 11.1903 11.1801 11.9046 10.1112C12.6188 9.04229 13 7.78558 13 6.5C12.9982 4.77665 12.3128 3.12441 11.0942 1.90582C9.8756 0.687224 8.22335 0.00181989 6.5 0ZM9.35375 5.35375L5.85375 8.85375C5.80732 8.90024 5.75217 8.93712 5.69147 8.96228C5.63077 8.98744 5.56571 9.00039 5.5 9.00039C5.4343 9.00039 5.36923 8.98744 5.30853 8.96228C5.24783 8.93712 5.19269 8.90024 5.14625 8.85375L3.64625 7.35375C3.55243 7.25993 3.49972 7.13268 3.49972 7C3.49972 6.86732 3.55243 6.74007 3.64625 6.64625C3.74007 6.55243 3.86732 6.49972 4 6.49972C4.13268 6.49972 4.25993 6.55243 4.35375 6.64625L5.5 7.79313L8.64625 4.64625C8.69271 4.59979 8.74786 4.56294 8.80855 4.5378C8.86925 4.51266 8.93431 4.49972 9 4.49972C9.0657 4.49972 9.13075 4.51266 9.19145 4.5378C9.25215 4.56294 9.3073 4.59979 9.35375 4.64625C9.40021 4.6927 9.43706 4.74786 9.4622 4.80855C9.48734 4.86925 9.50028 4.9343 9.50028 5C9.50028 5.0657 9.48734 5.13075 9.4622 5.19145C9.43706 5.25214 9.40021 5.3073 9.35375 5.35375Z",fill:"#1688FE"}
1),(0,o.jsx)("path",{d:"M6.5 0C5.21442 0 3.95772 0.381218 2.8888 1.09545C1.81988 1.80968 0.986756 2.82484 0.494786 4.01256C0.00281635 5.20028 -0.125905 6.50721 0.124899 7.76809C0.375703 9.02896 0.994767 10.1872 1.90381 11.0962C2.81285 12.0052 3.97104 12.6243 5.23192 12.8751C6.49279 13.1259 7.79973 12.9972 8.98744 12.5052C10.1752 12.0132 11.1903 11.1801 11.9046 10.1112C12.6188 9.04229 13 7.78558 13 6.5C12.9982 4.77665 12.3128 3.12441 11.0942 1.90582C9.8756 0.687224 8.22335 0.00181989 6.5 0ZM9.35375 5.35375L5.85375 8.85375C5.80732 8.90024 5.75217 8.93712 5.69147 8.96228C5.63077 8.98744 5.56571 9.00039 5.5 9.00039C5.4343 9.00039 5.36923 8.98744 5.30853 8.96228C5.24783 8.93712 5.19269 8.90024 5.14625 8.85375L3.64625 7.35375C3.55243 7.25993 3.49972 7.13268 3.49972 7C3.49972 6.86732 3.55243 6.74007 3.64625 6.64625C3.74007 6.55243 3.86732 6.49972 4 6.49972C4.13268 6.49972 4.25993 6.55243 4.35375 6.64625L5.5 7.79313L8.64625 4.64625C8.69271 4.59979 8.74786 4.56294 8.80855 4.5378C8.86925 4.51266 8.93431 4.49972 9 4.49972C9.0657 4.49972 9.13075 4.51266 9.19145 4.5378C9.25215 4.56294 9.3073 4.59979 9.35375 4.64625C9.40021 4.6927 9.43706 4.74786 9.4622 4.80855C9.48734 4.86925 9.50028 4.9343 9.50028 5C9.50028 5.0657 9.48734 5.13075 9.4622 5.19145C9.43706 5.25214 9.40021 5.3073 9.35375 5.35375Z",fill:"white",fillOpacity:"0.2"})]}),l=()=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",children:[(0,o.jsx)("path",{d:"M8.33333 5.33333H1.66667C1.02233 5.33333 0.5 5.85567 0.5 6.5V10.5C0.5 11.1443 1.02233 11.6667 1.66667 11.6667H8.33333C8.97767 11.6667 9.5 11.1443 9.5 10.5V6.5C9.5 5.85567 8.97767 5.33333 8.33333 5.33333Z",stroke:"#8a94a8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M2.83333 5.33333V3.16667C2.83333 2.50363 3.09673 1.86774 3.56557 1.3989C4.03441 0.930059 4.67029 0.666672 5.33333 0.666672C5.99638 0.666672 6.63226 0.930059 7.1011 1.3989C7.56994 1.86774 7.83333 2.50363 7.83333 3.16667V5.33333",stroke:"#8a94a8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}),c=()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:(0,o.jsx)("path",{d:"M1.91278 7.04761L5.73828 10.8731L13.5906 2.71875",stroke:"white",strokeWidth:"2.01342",strokeLinecap:"round",strokeLinejoin:"round"})}),p=()=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,o.jsx)("path",{d:"M17.5 12.5V15.8333C17.5 16.2754 17.3244 16.6993 17.0118 17.0118C16.6993 17.3244 16.2754 17.5 15.8333 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V12.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M5.83325 8.33594L9.99992 12.5026L14.1666 8.33594",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M10 12.5V2.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},72954:function(e,t,i){i.d(t,{Z:function(){return eW}});var o=i(15767),n=i(52676),r=i(46005),a=i(14126),s=i.n(a),d=i(84454),l=i(31227),c=i(40507),p=i.n(c),u=i(15944),h=i.n(u),g=i(75271),f=i(15130),m=i(20562),x=i(90151),C=i(55141),w=i(54145),k=i(90254),v=i(97978),b=i(74494),j=i(5494),y=i(91250),L=i(4e3),_=i(40669),S=e=>{let{stroke:t="currentColor"}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("path",{d:"M9.33333 1.33337H4C3.64638 1.33337 3.30724 1.47385 3.05719 1.7239C2.80714 1.97395 2.66667 2.31309 2.66667 2.66671V13.3334C2.66667 13.687 2.80714 14.0261 3.05719 14.2762C3.30724 14.5262 3.64638 14.6667 4 14.6667H12C12.3536 14.6667 12.6928 14.5262 12.9428 14.2762C13.1929 14.0261 13.3333 13.687 13.3333 13.3334V5.33337L9.33333 1.33337Z",stroke:t,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M9.33333 1.33337V5.33337H13.3333",stroke:t,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M5.33333 8H8",stroke:t,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M5.33333 10.6667H10.6667",stroke:t,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M9.33333 8L10.6667 9.33333L9.33333 10.6667",stroke:t,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]})},M=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("path",{d:"M14 3.334H7.81333L7.6 2.66733C7.4617 2.27615 7.20516 1.93767 6.86593 1.69877C6.5267 1.45988 6.12157 1.3324 5.70667 1.334H2C1.46957 1.334 0.960859 1.54471 0.585786 1.91979C0.210714 2.29486 0 2.80357 0 3.334L0 12.6673C0 13.1978 0.210714 13.7065 0.585786 14.0815C0.960859 14.4566 1.46957 14.6673 2 14.6673H14C14.5304 14.6673 15.0391 14.4566 15.4142 14.0815C15.7893 13.7065 16 13.1978 16 12.6673V5.334C16 4.80357 15.7893 4.29486 15.4142 3.91979C15.0391 3.54471 14.5304 3.334 14 3.334ZM14.6667 12.6673C14.6667 12.8441 14.5964 13.0137 14.4714 13.1387C14.3464 13.2638 14.1768 13.334 14 13.334H2C1.82319 13.334 1.65362 13.2638 1.5286 13.1387C1.40357 13.0137 1.33333 12.8441 1.33333 12.6673V3.334C1.33333 3.15719 1.40357 2.98762 1.5286 2.86259C1.65362 2.73757 1.82319 2.66733 2 2.66733H5.70667C5.84643 2.66697 5.98277 2.71055 6.09642 2.79189C6.21007 2.87324 6.29528 2.98825 6.34 3.12067L6.85333 4.66733H14C14.1768 4.66733 14.3464 4.73757 14.4714 4.86259C14.5964 4.98762 14.6667 5.15719 14.6667 5.334V12.6673Z",fill:"black"}),(0,n.jsx)("path",{d:"M8.47281 6.19392C8.4094 6.13322 8.33464 6.08564 8.25281 6.05392C8.0905 5.98724 7.90845 5.98724 7.74614 6.05392C7.6643 6.08564 7.58954 6.13322 7.52614 6.19392L5.52614 8.19392C5.4006 8.31945 5.33008 8.48971 5.33008 8.66725C5.33008 8.84478 5.4006 9.01505 5.52614 9.14058C5.65168 9.26612 5.82194 9.33664 5.99947 9.33664C6.17701 9.33664 6.34727 9.26612 6.47281 9.14058L7.33281 8.27392V12.0006C7.33281 12.1774 7.40304 12.347 7.52807 12.472C7.65309 12.597 7.82266 12.6672 7.99947 12.6672C8.17628 12.6672 8.34585 12.597 8.47088 12.472C8.5959 12.347 8.66614 12.1774 8.66614 12.0006V8.27392L9.52614 9.14058C9.58811 9.20307 9.66185 9.25266 9.74309 9.28651C9.82433 9.32036 9.91146 9.33778 9.99947 9.33778C10.0875 9.33778 10.1746 9.32036 10.2559 9.28651C10.3371 9.25266 10.4108 9.20307 10.4728 9.14058C10.5353 9.07861 10.5849 9.00487 10.6187 8.92363C10.6526 8.84239 10.67 8.75526 10.67 8.66725C10.67 8.57924 10.6526 8.4921 10.6187 8.41086C10.5849 8.32962 10.5353 8.25589 10.4728 8.19392L8.47281 6.19392Z",fill:"black"})]}),N=i(51766),D=i(36651),B=i(38958),H=i(32124),I=i(32638),E=i(45716),T=i(69235),Z=i(9865),A=i(76184),W=i(10999),V=i(62362);let z={modalContainer:{display:"flex",backgroundColor:"rgba(52, 60, 73, 0.5)"},modalBackdrop:{backgroundColor:"transparent"},modalBody:{maxWidth:"660px",background:"#fff",margin:"auto",width:"100%",height:"auto",position:"relative",overflow:"hidden",borderRadius:"4px",flexGrow:"0"}};function F(e){let{toggleModal:t,onClickDownload:i,open:o,loading:r}=e,{t:a}=(0,k.ZP)();return(0,n.jsxs)(V.Z,{onClose:t,styles:z,openStateBase:!0,open:o,animation:"empty",children:[(0,n.jsx)(Q,{children:(0,n.jsx)("button",{onClick:t,children:(0,n.jsx)(W.lY,{})})}),(0,n.jsxs)(U,{children:[(0,n.jsxs)(G,{children:[(0,n.jsx)(W.lM,{}),a("header.model_docx_t1")]}),(0,n.jsx)(O,{children:a("header.model_docx_t2")}),(0,n.jsx)(O,{children:a("header.model_docx_t3")}),(0,n.jsx)(R,{children:(0,n.jsx)(P,{disabled:r,onClick:i,"data-value":"docx",passHref:!0,children:a("header.model_docx_download")})})]})]})}F.propTypes={toggleModal:p().func,onClickDownload:p().func,open:p().bool,link:p().string};let P=f.default.a.withConfig({displayName:"DownloadLink",componentId:"sc-c2b9281c-0"})(["margin:0 auto;padding:14px 30px 13px;border-radius:3px;background-color:#1688fe;font-family:",";font-size:16px;font-weight:bold;color:var(--light-values-white);cursor:pointer;text-decoration:none;",""],e=>{let{theme:t}=e;return t.font.family.websiteMedium},e=>{let{disabled:t}=e;return t&&(0,f.css)(["border-color:",";background-color:",";"],e=>e.theme.colors.gray.light,e=>e.theme.colors.gray.light)}),R=f.default.div.withConfig({displayName:"FooterWrapper",componentId:"sc-c2b9281c-1"})(["display:flex;margin-top:28px;"]),O=f.default.div.withConfig({displayName:"DetailWrapper",componentId:"sc-c2b9281c-2"})(["font-family:",";font-size:16px;font-weight:500;line-height:1.5;color:#747baa;margin-top:12px;"],e=>{let{theme:t}=e;return t.font.family.websiteMedium}),G=f.default.div.withConfig({displayName:"Header",componentId:"sc-c2b9281c-3"})(["display:flex;flex-direction:row;font-family:",";color:#424467;font-weight:600;font-size:24px;svg{margin:3px 12px 0 0;","}"],e=>{let{theme:t}=e;return t.font.family.websiteMedium},e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["margin:3px 0 0 12px;"])}),U=f.default.div.withConfig({displayName:"ContentWrapper",componentId:"sc-c2b9281c-4"})(["padding:42px 56px 48px;",""],e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["direction:rtl;"])}),Q=f.default.div.withConfig({displayName:"CloseWrapper",componentId:"sc-c2b9281c-5"})(["border-radius:100%;position:absolute;width:40px;height:40px;button{background:transparent;border:none;cursor:pointer;position:relative;top:6px;}padding:10px 10px 0 0;background-color:transparent;float:right;position:static;transform:none;",""],e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["float:left;padding:10px 0 0 10px;"])});var $=i(35134),Y=i(63295),J=i(82235),X=i(7379);let q={modalBackdrop:{backgroundColor:"rgba(40, 43, 50, 0.1)"}};function K(e){let{toggleModal:t,sendEmail:i,open:o,email:r,isRTL:a,txtSendEmail:s}=e,{control:d,handleSubmit:l,formState:{errors:c,isValid:p},getFieldState:u}=(0,$.cI)({mode:"all",defaultValues:{email:r}}),{t:h}=(0,k.ZP)(),[f,m]=(0,g.useState)("true"),x=e=>m(e.target.dataset.value),C=async e=>{p&&("txt"===f?await s(e.email,!0):await i(e.email,f,a))};return(0,n.jsx)(eo,{onClose:t,styles:q,openStateBase:!0,open:o,animation:"fromBottom",children:(0,n.jsx)(es,{children:(0,n.jsxs)($.l0,{onSubmit:l(C),control:d,children:[(0,n.jsx)(ea,{children:h("header.export.confirm_email")}),(0,n.jsxs)(ei,{children:[(0,n.jsx)(Y.default,{label:h("generator.heading.email"),background:"#fff"}),(0,n.jsx)($.Qr,{name:"email",control:d,defaultValue:"",rules:{validate:X.o},render:e=>{var t;let{field:i}=e;return(0,n.jsx)(J.default,{id:"email",field:i,isValid:u("email").invalid,placeholder:"[email protected]",errorMessageCustomCss:h(null==c?void 0:null===(t=c.email)||void 0===t?void 0:t.message),customErrorStyle:ed})}}),(0,n.jsxs)(ee,{children:[(0,n.jsx)(et,{active:"true"===f,"data-value":"true",onClick:x,children:h("dashboard.export_1_page_pdf")}
1),(0,n.jsx)(et,{active:"false"===f,"data-value":"false",onClick:x,children:h("dashboard.export_a4_pdf")}),(0,n.jsx)(et,{active:"txt"===f,"data-value":"txt",onClick:x,children:h("dashboard.export_txt")})]})]}),(0,n.jsx)(er,{children:(0,n.jsx)(en,{type:"submit",children:"txt"===f?h("header.send_txt"):h("header.send_pdf")})})]})})})}K.propTypes={toggleModal:p().func,open:p().bool,sendEmail:p().func,email:p().string};let ee=f.default.div.withConfig({displayName:"ExportWrapper",componentId:"sc-634fec84-0"})(["display:flex;flex-direction:column;margin-top:25px;"]),et=f.default.div.withConfig({displayName:"ExportType",componentId:"sc-634fec84-1"})(["padding:15px;",""],e=>{let{active:t}=e;return t&&(0,f.css)(["border:1px solid;padding:14px;"])}),ei=f.default.div.withConfig({displayName:"FieldWrapper",componentId:"sc-634fec84-2"})(["position:relative;"]),eo=(0,f.default)(V.Z).withConfig({displayName:"StyledModal",componentId:"sc-634fec84-3"})(["top:auto;border-top-left-radius:20px;border-top-right-radius:20px;"]),en=(0,f.default)(j.default).withConfig({displayName:"DownloadLink",componentId:"sc-634fec84-4"})(["padding:13px;border-radius:3px;background-color:#1688fe;font-family:",";font-size:16px;font-weight:bold;color:var(--light-values-white);width:100%;text-align:center;"],e=>{let{theme:t}=e;return t.font.family.websiteMedium}),er=f.default.div.withConfig({displayName:"FooterWrapper",componentId:"sc-634fec84-5"})(["display:flex;margin-top:26px;"]),ea=f.default.div.withConfig({displayName:"Header",componentId:"sc-634fec84-6"})(["display:flex;flex-direction:row;font-family:",";color:#282b32;font-weight:bold;font-size:16px;margin-bottom:31px;"],e=>{let{theme:t}=e;return t.font.family.websiteMedium}),es=f.default.div.withConfig({displayName:"ContentWrapper",componentId:"sc-634fec84-7"})(["padding:32px 20px 24px;background-color:#fff;"]),ed=(0,f.css)(["color:#ff2d2d;position:static;span{font-size:11px;}"]),el={modalContainer:{backgroundColor:"rgba(0, 0, 0, 0.2)"},modalBackdrop:{backgroundColor:"transparent"},modalBody:{margin:"auto",flexGrow:"0",width:"92%",backgroundColor:"#ffffff",borderRadius:"5px"}};function ec(e){let{toggleModal:t,open:i,notification:o}=e,{t:r}=(0,k.ZP)();return(0,n.jsx)(V.Z,{onClose:t,styles:el,openStateBase:!0,open:i,animation:"empty",children:(0,n.jsxs)(ex,{children:["success"===o&&(0,n.jsx)(ep,{children:(0,n.jsx)(eg,{children:(0,n.jsx)(Z.gC,{})})}),(0,n.jsx)(eu,{children:r("success"===o?"header.export.success":"loading"===o?"header.export.loading":"header.export.fail")}),"success"===o&&(0,n.jsx)(eh,{children:r("header.export.success_message")}),(0,n.jsx)(em,{children:(0,n.jsx)(ef,{onClick:t,disabled:"loading"===o,children:r("header.export.back_to_preview")})})]})})}ec.propTypes={toggleModal:p().func,open:p().bool,notification:p().string};let ep=f.default.div.withConfig({displayName:"IconWrapper",componentId:"sc-d15249e-0"})(["display:flex;"]),eu=f.default.div.withConfig({displayName:"Header",componentId:"sc-d15249e-1"})(["font-family:",";font-size:30px;text-align:center;color:#1688fe;margin-top:8px;"],e=>{let{theme:t}=e;return t.font.family.websiteExtraBold}),eh=f.default.div.withConfig({displayName:"Text",componentId:"sc-d15249e-2"})(["font-family:",";font-size:16px;font-weight:500;line-height:1.38;letter-spacing:0.2px;text-align:center;color:#7171a6;margin-top:11px;"],e=>{let{theme:t}=e;return t.font.family.websiteMedium}),eg=f.default.div.withConfig({displayName:"IconBackground",componentId:"sc-d15249e-3"})(["height:50px;width:50px;border-radius:50%;background-color:rgba(22,136,254,0.2);margin:auto;display:flex;svg{margin:auto;}"]),ef=(0,f.default)(j.default).withConfig({displayName:"DownloadLink",componentId:"sc-d15249e-4"})(["padding:13px;border-radius:3px;background-color:#1688fe;font-family:",";font-size:16px;font-weight:bold;color:var(--light-values-white);width:100%;text-align:center;"],e=>{let{theme:t}=e;return t.font.family.websiteMedium}),em=f.default.div.withConfig({displayName:"FooterWrapper",componentId:"sc-d15249e-5"})(["display:flex;margin-top:30px;"]),ex=f.default.div.withConfig({displayName:"ContentWrapper",componentId:"sc-d15249e-6"})(["padding:50px 24px;"]);var eC=i(27406),ew=i(40089),ek=i(29064),ev=i(75950),eb=i(20996);let ej={budapest:!0,riga:!0,chicago:!0,perth:!0,shanghai:!0,vladivostok:!0,prague:!0,sydney:!0,montecarlo:!0,kiev:!0,sf:!0,rotterdam:!0,atsresume:!0,brunei:!0};class ey extends g.PureComponent{get allowsDocxExport(){let{isCoverLetter:e,source:{settings:t={}}={}}=this.props,{template:i,templateVersion:o}=t,n=ej[i];return("budapest"!=i||2!=o&&3!=o)&&!e&&!!n}get allowCreateWebsite(){let{isCoverLetter:e,source:{currentStep:t,
1slug:i}={}}=this.props,{variant:o}=this.state;return"website"===o&&!e&&"finish"===t&&!i}componentDidMount(){this.setState({origin:window.location.origin}),window.addEventListener("click",this.handleWindowClick)}componentDidUpdate(e,t){let{expanded:i}=this.state,{expanded:o}=t,{source:n,onToggle:r}=this.props,{source:a}=e;if(o!==i&&r&&r(i),i&&o!==i){let e=document.getElementById("template-page");if(!e)return;let{offsetHeight:t}=e;return this.setState({documentHeight:t})}n&&a&&n.settings.template!==a.settings.template&&this.setState({documentHeight:null}),this.state.emailModal&&t.emailModal!==this.state.emailModal&&"brunei"===n.settings.template&&n.details.userPic&&this.handleSetResumeSource()}componentWillUnmount(){window.removeEventListener("click",this.handleWindowClick),this.hoverTimeout&&clearTimeout(this.hoverTimeout)}getDocxExportLink(){let{source:e={},docxEndpoint:t,currentUser:i}=this.props,o=(null==i?void 0:i.gender)==="female"&&"female";return"".concat(t,"/resumes/").concat(e.id,"/").concat(o)}render(){var e;let{expanded:t,origin:i,documentHeight:o,model:r,emailModal:a,emailNotifiedModal:s,notification:d,docxButtonLoading:l,resumeSource:c}=this.state,{source:{id:p,settings:{language:u}={}}={},source:f,isHorizontal:m,containerCustomCss:C,dropdownMenuCustomCss:w,small:k,isCoverLetter:v,isNewDesign:b,locale:j,t:y,isRightSide:_,isMobile:W,router:{pathname:V},currentUser:z,host:P,preview:R,redirectToCheckout:O,isPreviewNewDesign:G}=this.props,U=(0,x.rZ)(),{source:{settings:{template:Q}}}=this.props,$="brunei"===Q&&!!(null==f?void 0:null===(e=f.details)||void 0===e?void 0:e.userPic),Y={type:"pdf",isDesignWithSocialLink:(0,T.Gj)(z),isBudapestDesignActive:(0,I.eg)(z),...(0,I.fA)(f,z),userId:z&&(null==z?void 0:z.id),...$&&{bruneiHeaderTitleLines:(0,H.UF)(f),bruneiHeaderNameLines:(0,H.GA)(f)},..."atsresume"==Q&&{isATSNewDesign:!0},isNewSkillSection:!0,socialLinksIconsVariant:(0,eC.V2)(f),hideGenderId:(0,eC.VA)(),...!v&&{isTextHighlightActive:(0,E.n)()}};o&&(Y.documentHeight=o),Y.locale=j||(0,ev.Mb)(P),Y.redneg=(null==z?void 0:z.gender)||"male";let J="".concat(i).concat((0,ev.Bv)("/export/".concat(v?"cover-letter":"resume","/").concat(p,"?"),j,!1,P,(0,ev.nk)(P))),X=B.Dc.includes(u),q="".concat(J).concat(h().stringify({...Y,cvFormat:"pdf/A4"})).concat(v?X&&"budapest"!==Q?"&isSwapable=true":"":X?"&isSwapable=true":"");Y.onePage=!0;let ee="".concat(J).concat(h().stringify({...Y,cvFormat:"pdf"})).concat(v?X&&"budapest"!==Q?"&isSwapable=true":"":X?"&isSwapable=true":""),et=m?b?eN:eM:eS,ei=ev.gP.includes(U);return(0,n.jsxs)(g.Fragment,{children:[c&&(0,n.jsx)(eT,{children:(0,n.jsx)(eZ,{children:(0,n.jsx)(ew.default,{source:c,width:928,updateCount:c.updatesCount,resumeSource:c,handleSetBruneiLines:(e,t)=>this.handleSetBruneiLines(e,t)})})}),(0,n.jsxs)(e_,{containerCustomCss:C,"data-testid":"download-option",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,expanded:t,isNewDesign:b,$isPreviewNewDesign:G,children:[(0,n.jsxs)(et,{onClick:this.toggleExpanded,$isPreviewNewDesign:G,children:[G?(0,n.jsx)(A.uB,{}):(0,n.jsx)(L.Z.More,{width:"19px",height:"6px",viewBox:"0 0 16.8 4"}),m&&(0,n.jsx)(D.$t,{isNewDesign:b,children:y("more")})]}),(0,n.jsx)(eD,{expanded:t,onClick:e=>e.stopPropagation(),dropdownMenuCustomCss:w,isNewDesign:b,isRightSide:_,$isPreviewNewDesign:G,children:(0,n.jsxs)(eB,{isNewDesign:b,children:[this.allowsDocxExport&&(0,n.jsxs)(eH,{onClick:this.handleCheckoutRedirect(this.toggleModal),isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:b?(0,n.jsx)(N.Z,{}):(0,n.jsx)(Z.ti,{})}),(0,n.jsx)(eL,{children:y("header.download_docx")})]}),b?(0,n.jsxs)(n.Fragment,{children:[ei&&(0,n.jsxs)(eH,{target:"_blank",onClick:this.handleCheckoutRedirect(this.textDownLoad),isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(N.Z,{})}),y("download_txt")]}),R||v||!$?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eH,{href:O?void 0:ee,target:"_blank",onClick:this.handleCheckoutRedirect(this.onClick("pdf")),passHref:!0,isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(M,{})}),y("dashboard.export_1_page_pdf")]}),(0,n.jsxs)(eH,{href:O?void 0:q,target:"_blank",onClick:this.handleCheckoutRedirect(this.onClick("pdf/A4")),passHref:!0,isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(M,{})}),y("dashboard.export_a4_pdf")]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eI,{onClick:this.handleCheckoutRedirect(()=>this.clickHandler(ee,"pdf")),children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(M,{})}),y("dashboard.export_1_page_pdf")]}),(0,n.jsxs)(eI,{onClick:this.handleCheckoutRedirect(()=>this.clickHandler(q,"pdf/A4")),children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(M,{})}),y("dashboard.export_a4_pdf")]})]}),!v&&(0,n.jsx)(eA,{children:(0,n.jsxs)(eH,{onClick:this.createAndGoToCoverLetter,isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(S,{stroke:"#1688fe"})}),y("dashboard.cv_coverletter_button")]})})]}):(0,n.jsxs)(g.Fragment,{children:[(0,n.jsxs)(eI,{onClick:this.handleCheckoutRedirect(()=>this.clickHandler(ee,"pdf")),children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(Z.p5,{viewBox:k?"0 0 15 25":"0 0 18 23"})}),y("dashboard.export_1_page_pdf")]}),(0,n.jsxs)(eI,{onClick:this.handleCheckoutRedirect(()=>this.clickHandler(q,"pdf/A4")),children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(Z.p5,{viewBox:k?"0 0 15 25":"0 0 18 23"})}),y("dashboard.export_a4_pdf")]})]}),W&&"/dashboard"!==V&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eH,{onClick:this.toggleEmailModal,isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(Z.bV,{})}),y("header.export_email")]}),ei&&(0,n.jsxs)(eH,{onClick:this.toggleEmailModal,isNewDesign:b,children:[(0,n.jsx)(eE,{isNewDesign:b,children:(0,n.jsx)(Z.bV,{})}),y("header.export_txt_email")]})]})]})}),(0,n.jsx)(F,{toggleModal:this.toggleModal,onClickDownload:this.onClickDownload,open:r,link:this.getDocxExportLink(),loading:l}),(0,n.jsx)(K,{toggleModal:this.toggleEmailModal,sendEmail:this.sendEmail,email:z?z.email:"",open:a,source:f,isRTL:v?!!X&&"budapest"!==Q:!!X,txtSendEmail:this.textDownLoad}),(0,n.jsx)(ec,{toggleModal:this.toggleEmailNotifiedModal,open:s,notification:d})]})]})}constructor(...e){var t;super(...e),t=this,this.state={expanded:!1,origin:null,documentHeight:null,model:!1,emailModal:!1,emailNotifiedModal:!1,notification:null,variant:r.default.getActiveVariant("website_resume_experiment"),docxButtonLoading:!1,resumeSource:null,resumehref:null,bruneiTitleLines:0,bruneiNameLines:0},this.hoverTimeout=null,this.handleWindowClick=()=>{this.setState({expanded:!1})},this.handleMouseEnter=()=>{this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.setState({expanded:!0})},this.handleMouseLeave=()=>{this.hoverTimeout=setTimeout(()=>this.setState({expanded:!1}),150)},this.trackFontSpacingDownload=()=>{var e,t;let{source:i,trackEvent:o,isMobile:n}=this.props;if(n)return;let r=null==i?void 0:null===(e=i.settings)||void 0===e?void 0:e.template,a=Object.keys(l.rz.getState().values).length>0,s=Object.keys((null==i?void 0:null===(t=i.settings)||void 0===t?void 0:t.typography)||{}).length>0,d=a||s;o("font_spacing_template_customization_used",{template:r}),d&&o("font_spacing_download_after_customization",{template:r}),o("font_spacing_user_progression",{template:r,hasCustomized:d})},this.onClick=e=>()=>{let{router:{asPath:t},source:{settings:{template:i,language:o,color:n,headingFont:r,contentFont:a,templateVersion:d}},isCoverLetter:l,trackEvent:c}=this.props;return(this.setState({expanded:!1}),l)?c("cover_letter_download_cta",{template:i,format:e,cover_letter_language:o}):(this.trackFontSpacingDownload(),c("download_cta",{context:s()(t.split("/")),template:"".concat(i).c
1oncat(d>1?"-v".concat(d):""),cv_format:e,resume_language:o,color:n,resume_headingFont:r,resume_contentFont:a}))},this.toggleExpanded=e=>{e.stopPropagation(),this.setState(e=>({expanded:!e.expanded}))},this.toggleModal=()=>{this.setState(e=>({model:!e.model}))},this.toggleEmailModal=e=>{e.stopPropagation(),this.setState(e=>({emailModal:!e.emailModal,expanded:!1}))},this.toggleEmailNotifiedModal=e=>{e.stopPropagation(),"loading"!==this.state.notification&&this.setState(e=>({emailNotifiedModal:!e.emailNotifiedModal}))},this.onClickDownload=async()=>{if(this.state.docxButtonLoading)return;this.setState({docxButtonLoading:!0});let{token:e}=(0,ev.X4)(),t=new Blob([await (0,ek.Yd)({token:e,link:this.getDocxExportLink()})]),i=window.URL.createObjectURL(t),o=document.createElement("a");o.href=i,o.download="resume.docx",o.click(),this.setState(e=>({model:!e.model})),this.onClick("docx")(),this.setState({docxButtonLoading:!1})},this.handleSetResumeSource=()=>{let{source:e}=this.props;this.setState({resumeSource:e})},this.textDownLoad=async function(e){let i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{router:{asPath:n},source:r,isCoverLetter:a,currentUser:s,locale:d,host:l,source:{id:c}}=t.props,p=n.includes("resumes"),{origin:u}=window.location,{token:h}=(0,ev.X4)(),g=!!o&&o,f=e||(null==s?void 0:s.email);g&&t.setState({emailModal:!1,emailNotifiedModal:!0,notification:"loading"}),t.props.trackEvent("download_txt_button_click",{from:p?"resumes":"preview"});let m="resume",x="resume";switch(null==r?void 0:r.__typename){case"Resume":default:m="resume",x="resume.txt";break;case"CoverLetter":m="cover-letter",x="cover_letter.txt"}let C=(0,ev.Bv)("/export/".concat(m,"/").concat(c,"?type=txt&isEmail=").concat(g,"&email=").concat(f),d,!1,l,(0,ev.nk)(l));try{i=await (0,ek._H)({token:h,isCoverLetter:a,fileType:"txt",resumeId:r.id,isEmail:g,email:f})}catch(e){if(g){t.setState({notification:"error"});return}}if(i&&(t.onClick("txt")(),g)){t.setState({notification:"success"});return}let w="".concat(u).concat(C),k=document.createElement("a"),v=await fetch(w).then(e=>e.blob());k.style.display="none",k.href=URL.createObjectURL(v),k.setAttribute("download",x),document.body.appendChild(k),k.click()},this.sendEmail=async(e,t,i)=>{var o,n;let{source:r,currentUser:{gender:a,id:s},isCoverLetter:d,host:l}=this.props,{documentHeight:c,bruneiTitleLines:p,bruneiNameLines:u}=this.state;this.setState({emailModal:!1,emailNotifiedModal:!0,notification:"loading"});let{token:h}=(0,ev.X4)(),g="budapest"===r.settings.template,f=null==r?void 0:null===(o=r.settings)||void 0===o?void 0:o.templateVersion,m="brunei"===r.settings.template,x=!!(null==r?void 0:null===(n=r.details)||void 0===n?void 0:n.userPic),C=B.Dc.includes(r.settings.language),w="atsresume"==r.settings.template,k={source:r,token:h,onePage:t,redneg:a,fromBuilder:!0,isRTL:i,isSwapable:C,hideGenderId:(0,eC.VA)()};g&&!d&&(k.budapest_v2_tags_spacing=!0,k.middleContentLayout=r.saDetails.middleContentLayout,k.mainColumnSize=3==f?r.saDetails.mainColumnSize:"big",k.nameSize=3==f?r.saDetails.nameSize:"big",k.titleSize=3==f?r.saDetails.titleSize:"big",k.paragraphSpacing=3==f?r.saDetails.paragraphSpacing:"big",k.generalFontSize=3==f?r.saDetails.generalFontSize:"big",k.sideBarContentLayout=3==f?r.saDetails.sideBarContentLayout:"big",k.userId=s,k.resumeId=r.id),m&&(x&&(k.bruneiHeaderTitleLines=p),x&&(k.bruneiHeaderNameLines=u)),c&&(k.height=c.toString()),d||(k.isTextHighlightActive=(0,E.n)()),k.socialLinksIconsVariant=(0,eC.V2)(r),k.isNewSkillSection=!0,w&&(k.isATSNewDesign=!0);let v=await (0,ek.Bc)(k,t,l,h),{template:b,color:j}=r.settings;202===(await (0,ek.NQ)({html:v,token:h,options:{onePage:t},email:e,template:b,color:j,gender:a,isCoverLetter:d,isRTL:i,userId:s,resumeId:r.id})).status&&this.onClick("sent_by_mail")(),this.setState({notification:"success"})},this.clickHandler=(e,t)=>{let{source:i,router:{asPath:o},source:{settings:{template:n,language:r,color:a,headingFont:d,contentFont:l,templateVersion:c}},trackEvent:p}=this.props;this.setState({expanded:!1}),this.trackFontSpacingDownload(),p("download_cta",{context:s()(o.split("/")),template:"".concat(n).concat(c>1?"-v".concat(c):""),cv_format:t,resume_language:r,color:a,resume_headingFont:d,resume_contentFont:l}),this.setState({resumeSource:i,resumehref:e})},this.updateQueryString=(e,t,i)=>{let o=new RegExp("([?&])".concat(t,"=([^&]*)"));
1if(e.match(o))return e.replace(o,"$1".concat(t,"=").concat(i));{let o=e.includes("?")?"&":"?";return e+o+t+"="+i}},this.handleSetBruneiLines=(e,t)=>{var i,o;let{resumehref:n,emailModal:r}=this.state,{source:a}=this.props,s=(null==a?void 0:null===(i=a.settings)||void 0===i?void 0:i.template)==="brunei"&&!!(null==a?void 0:null===(o=a.details)||void 0===o?void 0:o.userPic);if(r)this.setState({bruneiTitleLines:e,bruneiNameLines:t});else{let i=n;s&&(i.includes("bruneiHeaderTitleLines")&&i.includes("bruneiHeaderNameLines")?(i=this.updateQueryString(i,"bruneiHeaderTitleLines",e),i=this.updateQueryString(i,"bruneiHeaderNameLines",t)):i=i.includes("?")?"".concat(i,"&bruneiHeaderTitleLines=").concat(e,"&bruneiHeaderNameLines=").concat(t):"".concat(i,"?bruneiHeaderTitleLines=").concat(e,"&bruneiHeaderNameLines=").concat(t)),window.open(i,"_blank")}this.setState({resumeSource:null})},this.createAndGoToCoverLetter=async()=>{let{locale:e,router:{asPath:t}}=this.props,{data:i}=await eb.apolloClient.mutate({mutation:_.Lh,context:{client:"coverLetter"},variables:{settings:{template:"budapest",color:"black",language:e}}});if(null==i?void 0:i.create){let{id:o}=i.create;(0,m.p)("/cover-letter?".concat(h().stringify({coverLetterId:o,view:"edit",from:t})),e,"/cover-letter/".concat(o,"/finish"))}},this.handleCheckoutRedirect=e=>t=>{let{redirectToCheckout:i,locale:o}=this.props;if(i){t&&(t.preventDefault(),t.stopPropagation()),(0,m.p)("/checkout",o);return}"function"==typeof e&&e(t)}}}ey.propTypes={source:p().object,isHorizontal:p().bool,containerCustomCss:p().array,dropdownMenuCustomCss:p().array,small:p().bool,isCoverLetter:p().bool,isNewDesign:p().bool,trackEvent:p().func,redirectToCheckout:p().bool,onToggle:p().func},ey.defaultProps={isCoverLetter:!1,isNewDesign:!1},ey=(0,o.gn)([b.v8,v.b,C.QZ,w.gX,d.withRouter,k.$0],ey);let eL=f.default.span.withConfig({displayName:"StyledSpan",componentId:"sc-fed3aa06-0"})(["display:inline-block;flex-grow:1;"]),e_=f.default.div.withConfig({displayName:"Container",componentId:"sc-fed3aa06-1"})(["margin-left:10px;z-index:",";position:relative;",";",""],e=>e.expanded?999999:10,e=>e.containerCustomCss,e=>{let{$isPreviewNewDesign:t,theme:{isRTL:i}}=e;return t&&!i&&(0,f.css)(["margin-left:unset;margin-right:12px;display:flex;align-items:stretch;"])}),eS=(0,f.default)(j.default).withConfig({displayName:"MoreButton",componentId:"sc-fed3aa06-2"})(["width:max-content;display:flex;align-items:center;justify-content:center;height:100%;padding:0.6em;background-color:",";transition:background-color 0.2s ease-in-out,border-color 0.2s ease-in-out;"," &:hover{background-color:",";border-color:",";}&:active{background-color:",";border-color:",";}"],e=>e.theme.colors.ctaPreview,e=>{let{$isPreviewNewDesign:t}=e;return t&&(0,f.css)(["width:44px;"])},e=>e.theme.colors.ctaPreviewHover,e=>e.theme.colors.ctaPreviewHover,e=>e.theme.colors.ctaPreviewClick,e=>e.theme.colors.ctaPreviewClick),eM=f.default.div.withConfig({displayName:"MoreButtonHorizontal",componentId:"sc-fed3aa06-3"})(["display:flex;align-items:center;justify-content:start;height:100%;cursor:pointer;&:hover{color:#0087c1;}"]),eN=(0,f.default)(y.Z).withConfig({displayName:"MoreButtonNewDashboard",componentId:"sc-fed3aa06-4"})(["align-items:center;width:100%;color:#14141f;font-family:",";font-size:16px;font-weight:400;line-height:normal;cursor:pointer;&:hover{color:#1688fe;svg > path,rect,g{fill:#1688fe !important;}}"],e=>{let{theme:t}=e;return t.font.family.websiteMedium}),eD=f.default.div.withConfig({displayName:"DropdownMenu",componentId:"sc-fed3aa06-5"})(["position:absolute;right:0;top:58px;width:220px;transform-origin:top;transform:scaleY(0);opacity:0;padding:0 !important;background-color:transparent;"," "," "," "," ",""],e=>e.expanded&&(0,f.css)(["transform:scaleY(1);opacity:1;"]),e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["direction:rtl;right:unset;left:0;"])},e=>{let{$isPreviewNewDesign:t}=e;return!t&&(0,f.css)(["@media (max-width:1300px){right:0;left:auto;}"])},e=>{let{$isPreviewNewDesign:t,theme:{isRTL:i}}=e;return t&&!i&&(0,f.css)(["direction:ltr;left:0;right:unset;"])},e=>e.dropdownMenuCustomCss),eB=f.default.div.withConfig({displayName:"DropdownMenuInner",componentId:"sc-fed3aa06-6"})(["border-radius:5px;position:relative;z-index:9999999;box-shadow:0 37px 37px 0 rgba(21,26,47,0.18);background-color:",";",""],e=>{let{theme:t}=e;return t.colors.white},e=>{let{isNewDesign:t}=e;return t&&(0,f.css)(["padding:16px 12px !important;display:flex;flex-direction:column;gap:12px;"])}),eH=f.default.a.withConfig({displayName:"StyledLink",componentId:"sc-fed3aa06-7"})(["display:flex;width:100%;margin:0;padding:15px 20px;border-radius:0;font-family:",";color:",";font-size:16px;text-align:left;transition:background-color 0.2s;text-decoration:none;cursor:pointer;align-items:center;&:hover{background-color:rgba(241,244,249,1);color:",";}"," @media (min-width:981px){&:hover{background-color:transparent !important;color:#1688fe;}}",""],e=>{let{theme:t}=e;return t.font.family.websiteRegular},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.colors.black},e=>{let{isNewDesign:t}=e;return t&&(0,f.css)(["padding:0px !important;gap:8px;"])},e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["text-align:right;"])}),eI=f.default.div.withConfig({displayName:"StyledButton",componentId:"sc-fed3aa06-8"})(["display:flex;width:100%;margin:0;padding:15px 20px;border-radius:0;font-family:",";color:",";font-size:16px;text-align:left;transition:background-color 0.2s;cursor:pointer;align-items:center;&:hover{background-color:rgba(241,244,249,1);color:",";}@media (min-width:981px){&:hover{background-color:transparent !important;color:#1688fe;}}",""],e=>{let{theme:t}=e;return t.font.family.websiteMedium},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["text-align:right;"])}),eE=f.default.span.withConfig({displayName:"SvgContainer",componentId:"sc-fed3aa06-9"})(["padding-right:15px;line-height:0;"," ",""],e=>{let{theme:{isRTL:t},$isText:i}=e;return(0,f.css)([""," ",""],t&&(0,f.css)(["padding-right:0;padding-left:15px;"]),i&&(0,f.css)(["padding-right:7px;",""],t&&(0,f.css)(["padding-right:0;padding-left:7px;"])))},e=>{let{isNewDesign:t}=e;return t&&(0,f.css)(["padding-right:0px !important;padding-left:0px !important;"])}),eT=(0,f.default)(y.Z).withConfig({displayName:"Wrappper",componentId:"sc-fed3aa06-10"})(["position:relative;"]),eZ=f.default.div.withConfig({displayName:"Hiddenblock",componentId:"sc-fed3aa06-11"})(["position:absolute;top:-999999999px;left:-999999999px;"]),eA=f.default.div.withConfig({displayName:"CvCoverLetterSection",componentId:"sc-fed3aa06-12"})(["width:calc(100% + 24px);margin-left:-12px;padding:12px 12px 0;
1border-top:1px solid #f0f0f2;box-sizing:border-box;",""],e=>{let{theme:{isRTL:t}}=e;return t&&(0,f.css)(["margin-left:0;margin-right:-12px;"])});var eW=ey}}]);
2//# sourceMappingURL=/_next/static/chunks/5812-e829a2602fe8156d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.