react-profile-component
Version:
Profile Components library
722 lines (695 loc) • 88.3 kB
JavaScript
import{__awaiter as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import o from"react-modal";import r from"styled-components";import a,{forwardRef as l,useMemo as s,useEffect as c,useContext as d,useState as p,memo as m,useCallback as h,useRef as f}from"react";import g from"classnames";import{Transition as u}from"react-transition-group";import x from"@emailjs/browser";import{isMobile as b}from"react-device-detect";import w,{isPossiblePhoneNumber as v}from"react-phone-number-input";import y from"crypto-js";const C={labels:{github:"GitHub",npm:"NPM",skills:"Skills"},header:{shortDesc:"Hi, I'm",name:"John",currentJobRole:"Lead UI Engineer"},sections:{aboutMe:{title:"About Me",ref:"homeRef",info:"I'm an enthusiastic <b>Lead UI Engineer</b> aspiring to be <b>UI Architect</b> with 11+ years of technology experience who wants to be an integral part of a competitive work environment, which would help me to update my knowledge and skills, both on the intellectual and personal front while contributing to the growth and success of the organisation.",icon:"images/demo-display-pic.avif"},details:{title:"Details",info:[{id:"location",label:"Lives in",info:"Bengaluru, India"},{id:"mobile",label:"Mobile",info:"+91-984723477",canCopy:!0},{id:"email",label:"E-mail",info:"myemail@email.com",canCopy:!0}]},education:{title:"Education",ref:"educationRef",info:"<strong>B.E (Electronics and Communication)</strong>, Anna University, Coimbatore"},experiences:{title:"Experiences",ref:"experienceRef",info:[{designation:"Senior Lead Engineer, XT",name:"Your organization",from:"Jan 2015",type:"Current",responsibilities:"<ul><li>Design and development of web UI</li><li>Unit test and integration tests</li><li>Code review with fellow colleagues</li><li>Educating team towards better coding standards</li><li>Independent development contribution of features</li><li>Development of reusable UI components</li></ul>",projects:[{title:"My project",shortTitle:"My project",client:"XyZ",duration:"Jun 2023 - till date",role:"Lead developer/ Individual contributor",softwareTech:"React, Typescript, CSS, HTML5, Jest, React Testing library",description:"My project description, this is a sample description with HTML support <ul><li><b>My Profile:</b> View or update your personal information.</li> <li><strong>Additional Rewards</strong>: View other services offered.</li><li><strong>Redeem Your Retail Card</strong>: Redeem subscriptions purchased through the retail store.</li><li><strong>Common FAQs</strong>: Get answers to commonly asked questions.</li></ul>",links:["https://myproject.com"]}]}]},skills:{title:"Skills",ref:"skillsRef",info:[{label:"HTML 5",star:3}]},openSourceProjects:{title:"Open source projects",ref:"openSourceRef",info:[{id:"my-component",title:"My Component",npm:"https://www.npmjs.com/package/my-component",github:"https://github.com/my-profile/my-component",skillsUsed:"React, TypeScript, HTML, CSS",description:"This is the description for My component"}]},links:{title:"Links",info:[{label:"github",link:"https://github.com/myaccount/"},{label:"linkedIn",link:"https://www.linkedin.com/mycountry/myprofile/"},{label:"whatsApp",link:"https://wa.me/mynumber?text=Hi MyName"},{label:"facebook",link:"https://www.facebook.com/myprofile/",display:!1},{label:"twitter",link:"https://twitter.com/myprofile",display:!1}]}},download:{type:"static",staticFileUrl:"files/myResume.pdf",download:{disabled:!1,message:"for my Resume",icon:"images/download.gif"},downloading:{message:"Downloading",icon:"images/downloading.gif"},downloaded:{message:"Downloaded!",icon:"images/downloaded.gif"}},forms:{contactForm:{name:"contact-form",header:"Contact Me",actionButtonLabel:"Contact Me",label:{submit:"Send",submitting:"Sending...",reviewEdit:"Review & edit",close:"Close"},key:"asecretkey",defaultMaxLength:20,statusMessages:{form_fill:"",sending:"Almost there! your request is in progress...",success:"Request sent successfully! You will be contacted soon.",error:"<span>Something went wrong. </span> <span> Please try sending again.</span>",review:"<span> Your request is about to be sent. </span> <span> You can <i style='color: #b21807'><b>review and edit</b></i> or <i style='color: #3fc935'><b>send</b></i> the request now.</span>",offline:"<span>You seem to be offline.</span> <span> Please check your network connection and try again.</span>"},messages:{retry:"Try again",mandatoryError:"* This field is required"},transformFields:[{id:"userSocialMessengers",transform:"boolToYesNo"}],fields:[{id:"userName",name:"userName",label:"Name",placeholder:"Enter your name",required:!0,type:"text",maxLength:25,regex:""},{id:"userMobile",name:"userMobile",label:"Mobile",placeholder:"Enter your mobile number",required:!0,type:"mobile",maxLength:15,childFields:["userSocialMessengers"],regex:"",messages:{regexError:"Oops, that doesn't seem right. Please enter numbers.",fieldError:"Oops, that doesn't seem right. The phone number doesn't match the selected country"}},{id:"userSocialMessengers",name:"userSocialMessengers",label:"",placeholder:"",type:"checkbox",parentField:"userMobile",values:[{label:"WhatsApp",value:"whatsapp"}]},{id:"userEmail",name:"userEmail",label:"E-mail",placeholder:"Enter your E-mail",required:!0,subType:"email",type:"text",maxLength:50,regex:"[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}",messages:{fieldError:"",regexError:"Oops, that doesn't seem right. Please try with valid email"}},{id:"message",name:"message",label:"Message",placeholder:"Enter your message",required:!0,type:"textarea",maxLength:200,regex:""}]}}},k=o,E=r.button`
border: none;
background-color: transparent;
cursor: pointer;
outline: none;
`,N=r.div`
display: flex;
flex-direction: ${e=>e.direction||"row"};
justify-content: ${e=>e.justifyContent||"normal"};
align-items: ${e=>e.alignItems||"normal"};
flex-wrap: ${e=>e.flexWrap||"nowrap"};
flex-basis: ${e=>e.flexBasis||"auto"};
`,O=r.section`
display: flex;
flex-direction: ${e=>e.direction||"row"};
justify-content: ${e=>e.justifyContent||"normal"};
align-items: ${e=>e.alignItems||"normal"};
flex-wrap: ${e=>e.flexWrap||"nowrap"};
flex-basis: ${e=>e.flexBasis||"auto"};
&.short-info {
padding-left: 10px;
}
`,M=r.div`
display: grid;
grid-template-columns: ${e=>e.gridTemplateColumns||"1fr"};
grid-template-rows: ${e=>e.gridTemplateRows||"1fr"};
align-items: ${e=>e.alignItems||"normal"};
justify-items: ${e=>e.justifyItems||"normal"};
`,S=r.header`
font-size: 40px;
font-weight: 600;
margin-bottom: 20px;
color: #22a39f;
text-align: center;
&.export {
text-align: unset;
margin-bottom: 0;
font-size: 30px;
}
&.about-me-title {
text-align: left;
@media screen and (max-width: 767px) {
margin-bottom: 10px;
}
}
@media screen and (max-width: 767px) {
text-align: left;
font-size: 28px;
}
`,L=r.p`
margin: 0;
padding-right: 15%;
&.about {
padding-left: 0;
padding-top: 10px;
}
&.education {
text-align: center;
padding-right: 0;
@media screen and (max-width: 767px) {
text-align: left;
padding: 0 5px;
}
}
&.export {
text-align: left;
}
strong {
color: #3e3e3e;
}
@media screen and (max-width: 767px) {
padding-right: 0;
&.about {
padding-top: 20px;
}
}
`,I=r.section`
display: flex;
flex-direction: column;
justify-content: space-evenly;
height: 100%;
margin-top: 40px;
padding-bottom: 40px;
&.export {
padding-left: 10%;
margin-top: 0;
}
&.hamburger-menu {
padding-left: 0;
padding-bottom: 0;
height: unset;
padding: 0 10px;
.profile-section {
&.links {
@media screen and (max-width: 767px) {
display: flex;
}
}
}
}
.profile-section {
margin-bottom: 20px;
padding-bottom: 20px;
> header {
@media screen and (max-width: 767px) {
margin-bottom: 10px;
}
}
&.links {
padding: 15px 0 5px;
background-color: #222222;
position: fixed;
bottom: 0;
width: 100%;
margin-bottom: 0;
z-index: 2;
&.export {
position: static;
background-color: transparent;
@media screen and (max-width: 767px) {
display: flex;
position: static;
padding: 20px 0;
background-color: transparent;
}
.link {
padding-right: 15px;
}
}
.link {
@media screen and (max-width: 767px) {
margin-bottom: 0;
}
a {
padding: 10px 15px;
text-decoration: none;
border-radius: 20px;
background-color: #0c77b9;
&:hover {
background-color: #3f9c35;
}
}
img {
height: 25px;
&.Github {
@media screen and (max-width: 767px) {
height: 28px;
}
}
}
a,
span {
color: #f0f0f0;
}
.link-separator {
&:last-child {
display: none;
}
}
}
}
&.experience {
&.export {
background-color: transparent;
padding-top: 0px;
}
${S} {
@media screen and (max-width: 767px) {
margin-bottom: 10px;
}
}
@media screen and (max-width: 767px) {
background: none;
}
}
&.about {
padding-top: 20px;
@media screen and (max-width: 767px) {
flex-direction: column;
justify-content: normal;
&.export {
flex-direction: row;
}
}
}
.image-details-wrap {
margin-right: 10px;
align-self: flex-end;
@media screen and (max-width: 767px) {
margin-top: 15px;
align-items: normal;
align-self: normal;
}
}
.about-me {
flex-basis: 25%;
padding-right: 10px;
&.export {
flex-basis: 33%;
}
}
.image {
.image-wrap {
margin-right: 50px;
@media screen and (max-width: 767px) {
margin-right: 20px;
}
}
.profile-image {
width: ${e=>e.isMobile&&!e.isExport?"125px":"200px"};
height: ${e=>e.isMobile&&!e.isExport?"125px":"200px"};
border-radius: 50%;
border: 2px solid #dddbca;
}
}
.details {
min-width: 55%;
.detail {
padding-bottom: 5px;
}
.detail-info {
line-height: 2;
span {
/* flex-basis: 75%; */
}
}
}
}
@media screen and (max-width: 767px) {
margin-top: 0;
.profile-section {
padding-left: 20px;
padding-right: 10px;
}
}
`,R=r.div`
font-family: Open Sans, sans-serif !important;
text-align: center;
font-style: italic;
letter-spacing: 0.5px;
color: #3f9c35;
`,j=r(N)`
position: fixed;
z-index: 20;
${({top:e})=>e&&`\n top: ${e};\n `}
${({bottom:e})=>e&&`\n bottom: ${e};\n `}
background: #8f00ff;
width: 100%;
padding: 25px 0;
/* animation: ease-in-h 1s ease 1;
@keyframes ease-in-h {
from {
height: 0;
}
to {
height: auto;
}
} */
p {
color: #fff;
font-weight: 600;
font-size: 1.1em;
}
button {
color: #fff;
border: none;
background: none;
flex-basis: 15%;
cursor: pointer;
font-size: 1.2em;
font-weight: bold;
&.install {
background: #fff;
margin-right: 15px;
color: #8f00ff;
padding: 10px 0;
border-radius: 25px;
font-size: 1.2em;
a {
text-decoration: none;
}
}
&.not-now {
color: rgb(170, 187, 187, 0.8);
}
}
&.hide {
display: none;
}
@media only screen and (max-width: 767px) {
padding: 10px 0;
p {
font-size: 14px;
}
button {
font-size: 15px !important;
&.install {
padding: 5px 10px;
}
}
}
`,T=r(j)`
z-index: 5;
p {
font-size: 14px;
padding: 0 10px;
}
button {
flex-basis: auto !important;
font-size: 15px !important;
padding: 10px !important;
}
`,F=r.img`
width: ${e=>e.isMobile?"75px":"100px"};
position: absolute;
top: 40%;
left: ${e=>e.isMobile?"40%":"45%"};
animation: loader-spin infinite 1s linear;
@keyframes loader-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
`,A=r.div`
position: fixed;
${e=>e.top&&`top: ${e.top}px`};
${e=>e.bottom&&`bottom: ${e.bottom}px`};
height: ${e=>e.height||0}px;
background: ${e=>e.background||"#fff"};
width: 100%;
opacity: ${e=>e.opacity};
`,z=r.div`
height: 5px;
background: #3fc935;
position: fixed;
width: 100%;
&.header {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
&.footer {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
bottom: 0;
}
`,P=r(N)`
background: #f0f0f0;
position: relative;
border-radius: 5px;
&.contact-modal {
.close {
margin-bottom: 0;
}
}
.close {
align-self: self-end;
margin-right: 20px;
margin-bottom: 20px;
padding: 7px 15px;
background: #3498db;
border-radius: 20px;
color: #f0f0f0;
&:hover {
background: #ee4b2b;
}
@media only screen and (max-width: 992px) {
align-self: center;
margin-right: 0;
}
}
@media only screen and (max-width: 374px) and (orientation: portrait) {
max-height: 99vh;
overflow-y: scroll;
}
@media only screen and (min-width: 375px) and (max-width: 992px) and (orientation: portrait) {
max-height: 90vh;
overflow-y: scroll;
}
@media only screen and (max-width: 992px) and (orientation: landscape) {
max-height: 80vh;
overflow-y: scroll;
}
`,D=r.a`
color: #f0f0f0;
margin-top: 10px;
text-decoration: none;
font-weight: 600;
font-size: 16px;
background: rgb(52, 152, 219);
opacity: 0.7;
padding: 5px 10px;
border-radius: 20px;
width: fit-content;
margin: 0 auto;
margin-bottom: 60px;
&:hover {
opacity: 1;
}
`,_=r(O)`
padding-left: 20px;
padding-right: 15%;
margin-left: 25%;
.project-titles-wrap {
max-width: 70%;
margin-top: 15px;
}
&.export {
margin-left: 0;
padding-left: 0px;
}
.org-name {
font-size: 22px;
margin-block: 5px;
&.current {
color: #3f9c35;
}
&.previous {
color: #8a8982;
}
}
.duration {
font-size: 13px;
text-transform: uppercase;
font-weight: bold;
}
.projects-label,
.clients-label {
span {
margin-left: 5px;
}
}
.projects-label,
.clients-label,
.responsibilities {
display: flex;
margin-block-start: 10px;
margin-block-end: 0;
label {
text-transform: uppercase;
margin-right: 10px;
}
span {
font-weight: 600;
}
div {
font-weight: normal;
}
}
.responsibilities {
flex-direction: column;
}
.org-projects {
padding-left: 10px;
}
.responsibilities {
ul {
padding-inline-start: 5px;
list-style-type: none;
margin-block: 5px;
li {
display: flex;
padding-bottom: 7px;
align-items: center;
&::before {
content: "✓";
color: #3fc935;
font-size: 20px;
font-weight: bold;
margin-right: 10px;
}
}
}
}
@media screen and (max-width: 767px) {
padding: 0;
margin-left: 0;
ul {
margin: 0;
padding-left: 25px;
}
.org-name {
font-size: 20px;
}
.project-titles-wrap {
max-width: unset;
}
.open-source-project-name {
font-size: 18px;
}
}
`,V=r(E)`
padding: 10px 15px;
border-radius: 20px;
background: #3498db;
color: #f0f0f0;
margin-bottom: 15px;
margin-right: 20px;
&:hover {
background: #3f9c35;
}
`,B=r(k)`
.open-source-content-wrap {
.os-project {
margin: 20px 10px 10px;
.os-project-name {
font-size: 20px;
margin: 0 0 10px 0;
text-decoration: underline;
}
.os-project-desc {
padding-bottom: 5px;
text-indent: 1em;
}
.os-project-links {
margin-top: 15px;
}
.os-project-skills {
font-size: 16px;
.label {
font-weight: 700;
}
.info {
font-weight: 600;
}
}
}
}
&.version-modal {
background: #f0f0f0;
padding: 25px;
border-radius: 50px;
width: fit-content;
margin: 0 auto;
font-size: 18px;
font-weight: 600;
color: #3e3e3e;
span {
font-style: italic;
font-weight: bold;
}
}
&.contact-form-status-modal-content {
margin: 0 30%;
display: flex;
justify-content: center;
}
&.contact-modal-content {
margin: 0 30%;
}
@media only screen and (max-width: 992px) {
&.ReactModal__Content {
margin: 0 15px;
}
::-webkit-scrollbar {
width: 7px;
}
&.version-modal {
font-size: 15px;
margin: 0 auto;
letter-spacing: 0.5px;
}
}
`;var U=Object.freeze({__proto__:null,ActionBtn:E,AutoCloseToastMessage:R,CloseButton:e=>n("i",{className:"material-icons",onClick:e.onClose,children:n("img",{src:e.icon,alt:"Close icon",width:e.width})}),CustomModalComponent:B,Desc:L,FlexBox:N,FlexBoxSection:O,Grid:M,LoaderImg:F,MobilePWAWrapper:T,ModalBanner:z,ModalContentWrap:P,Overlay:A,PWAWrapper:j,ProjectLink:V,SecHeader:S,SectionWrapper:_,SectionsWrapper:I,Version:D});const H="cors",$=["client","duration","role","softwareTech"],W=["description"],X={NPM_PROFILE_COMPONENT:"https://www.npmjs.com/package/react-profile-component"},G={data:{labels:{},header:{shortDesc:"",name:"",currentJobRole:""},forms:{contactForm:{header:"",transformFields:[],key:"",defaultMaxLength:20,actionButtonLabel:"",label:{},statusMessages:{success:"",error:"",form_fill:"",sending:"",offline:"",review:""},messages:{retry:"",mandatoryError:""},name:"",fields:[]}},sections:{aboutMe:{title:"",info:""},details:{title:"",info:[]},skills:{title:"",info:[]},experiences:{title:"",info:[]},education:{title:"",info:""},links:{title:"",info:[]},openSourceProjects:{title:"",info:[]}},download:{type:"",staticFileUrl:"",download:{message:"",icon:""},downloading:{message:"",icon:""},downloaded:{message:"",icon:""}}},pwaOffset:0,isDarkMode:!1,showComponentLibUrl:!0,refs:{homeRef:a.createRef(),skillsRef:a.createRef(),experienceRef:a.createRef(),educationRef:a.createRef(),contactRef:a.createRef(),openSourceRef:a.createRef()},deviceConfig:{browserName:"",osName:"",os:[],browsers:[]},appVersion:"",environment:"development",preloadedAssets:[],preloadedFiles:[],preloadSrcList:[],currentSection:"about",isExport:!1,isDownloading:!1,isMobile:!1,isInstallBannerOpen:!1,hasDownloadedProfile:!1,isContactFormOpen:!1,isModalOpen:!1,setIsModalOpen:()=>{},setIsContactFormOpen:()=>{},serverConfig:{webServerConfig:{devWebUrl:"",prodWebUrl:""},cmsServerConfig:{devCMSUrl:"",prodCMSUrl:""}},emailJsConfig:{serviceId:"",templateId:"",publicKey:""}},J={client:"Client",duration:"Duration",description:"Description",responsibilities:"Responsibilities",softwareTech:"Software/Technologies",role:"Role",retry:"Retry",close:"Close",developedUsing:"Developed using <a href='{0}' target='_blank'> react-profile-component </a>"},q={COMBINED:"profile-sections",HEADER:"header",ABOUT_ME:"aboutMe",DETAILS:"details",EDUCATION:"education",ORGANIZATIONS:"organizations",SKILLS:"skills",EXPERIENCE:"experiences",LINKS:"links",DOWNLOAD:"download",RESUME_EXPERIENCES:"resume-experiences",OPEN_SOURCE_PROJECTS:"openSourceProjects"},Y={ABOUTME:{order:1},EDUCATION:{order:4},ORGANIZATIONS:{order:3,display:!1},SKILLS:{order:2},EXPERIENCES:{order:6},CONTACT:{order:7},OPENSOURCEPROJECTS:{order:5}},Z={PROJECTS:"Projects",CLIENTS:"Clients",RESPONSIBILITIES:"Responsibilities",CLIENT:"Client"},K={CURRENT:"Current",PREVIOUS:"Previous"},Q={TEXT:"text",MOBILE:"mobile",CHECKBOX:"checkbox",TEXTAREA:"textarea"},ee={profileSections:{header:G.data.header,aboutMe:G.data.sections.aboutMe,education:G.data.sections.education,details:G.data.sections.details,experiences:G.data.sections.experiences,openSourceProjects:G.data.sections.openSourceProjects},links:G.data.sections.links,download:G.data.download,skills:G.data.sections.skills,contactForm:G.data.forms.contactForm,profileLabels:G.data.labels},ne="/files";var te=Object.freeze({__proto__:null,CONFIG_REF_INFO:{ref:"config.json",name:"config"},CONFIG_TYPES:{APPCONFIG:"appConfig",PROFILECONFIG:"profileConfig"},CORS_MODE:H,DEFAULT_PROFILE_CONFIG_DATA:ee,DEFAULT_PROFILE_CONTEXT:G,DEFAULT_PWA:{messages:{install:"",yes:"",no:"",open:"",relatedApp:""},bannerExpiryTime:0},EXPANDABLE_INFOS:W,EXPERIENCE_TYPES:K,FIELD_SUB_TYPES:{EMAIL:"email"},FIELD_TYPES:Q,FORMS:{CONTACT_FORM:"contact-form"},LABELS:Z,LABEL_TEXT:J,LINKS:X,MESSAGES:{genericError:"Something went wrong!"},NO:"No",SECTIONS:q,SECTION_ORDER_DISPLAY:Y,SERVER_FILES_LOC:ne,SHORT_INFOS:$,TOAST_POSITION:"top-center",YES:"Yes"});const ie=e=>e.toLowerCase().replace(/ /g,""),oe=e=>e.toUpperCase().replace(/ /g,""),re=(e,n)=>{switch(e){case"mobile":return`tel:${n}`;case"e-mail":return`mailto:${n}`}return""},ae=(e,n)=>localStorage.setItem(e,JSON.stringify({value:n})),le=e=>{const n=localStorage.getItem(e);if(!n)return null;return JSON.parse(n).value},se=e=>{if(e>0){return(new Date).getTime()<e||localStorage.removeItem("pwaBannerHideTime"),(new Date).getTime()<e}return!1},ce=()=>navigator.onLine,de=n=>e(void 0,void 0,void 0,(function*(){let e=!1,t="";try{if(n){const e=yield fetch(n,{mode:H}),i=yield e.blob();t=URL.createObjectURL(i)}else e=!0}catch(n){e=!0}return{objectUrl:t,hasError:e}})),pe=n=>e(void 0,void 0,void 0,(function*(){return de(n)})),me=e=>0===Object.keys(e).length,he=e=>"boolean"==typeof e[Object.keys(e)[0]]||"object"==typeof e&&0===Object.keys(e).length,fe=e=>"string"==typeof e,ge=e=>e.filter((e=>!1!==(null==e?void 0:e.display))),ue=(e,n)=>n-e.length,xe=(e,n,t,i)=>{const o=e.indexOf(t)>-1;return n.indexOf(i)>-1&&o},be=(e,n)=>"development"===e?n.devWebUrl:n.prodWebUrl,we=(e,n)=>"development"===e?n.devCMSUrl:n.prodCMSUrl,ve=(e,n,t)=>`${we(n,t)}/${e}`,ye=(e,n,t)=>`${we(e,t)}${ne}/${n}`,Ce=(e,n)=>{var t;return(null===(t=e.find((e=>e.id===n)))||void 0===t?void 0:t.image)||""},ke=(n,t,i,o)=>e(void 0,void 0,void 0,(function*(){const e=we(n,i);let r=!1;o=o||{};try{const n=`${e}/${t}`,i=yield fetch(n,{mode:H});o=yield i.json()}catch(e){r=!0}return{data:o,hasError:r}})),Ee=(e="",n="_blank")=>window.open(e,n);var Ne=Object.freeze({__proto__:null,clearLocalStorage:e=>{e?localStorage.removeItem(e):localStorage.clear()},getFilteredLinks:ge,getHref:re,getIconUrl:ve,getJsonResponse:ke,getLocalStorage:le,getObjectKeyValuesByIndex:(e,n)=>[Object.keys(e)[n],Object.values(e)[n]],getPdfBlob:pe,getPdfFile:de,getPdfUrl:ye,getPreloadedAsset:Ce,getProfileJsonResponse:(n,t,i,o)=>e(void 0,void 0,void 0,(function*(){return ke(n,t,i,o)})),getRemainingCharacters:ue,getServerBaseUrl:we,getWebUrl:be,goToLink:Ee,isBannerHidden:se,isEmptyObject:me,isNetworkOnline:ce,isObject:e=>"object"==typeof e,isString:fe,isStringBooleanRecord:he,isSupportedBrowserAndOS:xe,lowercase:ie,replaceWith:(e,n,t)=>e.replace(n,t),setLocalStorage:ae,toDataURL:(n,t)=>e(void 0,void 0,void 0,(function*(){const e=yield fetch(n),i=yield e.blob();return yield new Promise(((e,n)=>{const o=new FileReader;o.onloadend=()=>e({id:t,image:o.result}),o.onerror=n,o.readAsDataURL(i)}))})),uppercase:oe});const Oe=e=>{const{width:i=24,height:o=24,circleFillColor:r="#2222",gStrokeColor:a="#FFF"}=e,l={width:i,height:o};return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg"},l,{viewBox:"0 0 24 24",children:t("g",{fill:"none",fillRule:"evenodd",children:[n("circle",{cx:"12",cy:"12",r:"12",fill:r,fillRule:"nonzero"}),t("g",{stroke:a,strokeLinecap:"round",strokeWidth:"2",children:[n("path",{d:"M0 0l3.85 3.937c.083.084.217.084.3 0L8 0",transform:"translate(8 8)"}),n("path",{d:"M.267 8L3.86 4.063c.077-.084.203-.084.28 0L7.733 8",transform:"translate(8 8)"})]})]})}))},Me=e=>{const{height:t=15,width:i=15}=e,o={height:t,width:i};return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88"},o,{children:n("g",{children:n("path",{d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z",id:"mainIconPathAttribute"})})}))},Se=e=>{const{fillColor:i="#0080f7",width:o=24,height:r=24}=e,a={width:o,height:r};return t("svg",Object.assign({role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},a,{children:[n("title",{children:"Facebook icon"}),n("path",{fill:i,d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})]}))},Le=e=>{const{width:t=24,height:i=24}=e,o={width:t,height:i};return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},o,{children:n("path",{fill:"#FFF",d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})}))},Ie=e=>{const{width:i=24,height:o=14,fillColor:r="#3E3E3E"}=e,a={width:i,height:o};return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg"},a,{viewBox:"0 0 24 14",children:t("g",{fill:r,fillRule:"nonzero",children:[n("rect",{width:"24",height:"2",rx:"1"}),n("rect",{width:"24",height:"2",y:"6",rx:"1"}),n("rect",{width:"24",height:"2",y:"12",rx:"1"})]})}))},Re=e=>{const{width:i=24,height:o=24,fillColor:r="#005ec9"}=e,a={width:i,height:o};return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},a,{children:[n("title",{children:"LinkedIn"}),n("g",{children:n("path",{d:"M34,2.5v29A2.5,2.5,0,0,1,31.5,34H2.5A2.5,2.5,0,0,1,0,31.5V2.5A2.5,2.5,0,0,1,2.5,0h29A2.5,2.5,0,0,1,34,2.5ZM10,13H5V29h5Zm.45-5.5A2.88,2.88,0,0,0,7.59,4.6H7.5a2.9,2.9,0,0,0,0,5.8h0a2.88,2.88,0,0,0,2.95-2.81ZM29,19.28c0-4.81-3.06-6.68-6.1-6.68a5.7,5.7,0,0,0-5.06,2.58H17.7V13H13V29h5V20.49a3.32,3.32,0,0,1,3-3.58h.19c1.59,0,2.77,1,2.77,3.52V29h5Z",fill:r})})]}))},je=e=>{const{width:t=14,height:i=24}=e,o={width:t,height:i};return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 71.58 122.88"},o,{children:n("g",{children:n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.72,0h46.13c3.5,0,6.71,1.44,9,3.73c2.32,2.32,3.72,5.49,3.72,9v97.43c0,3.5-1.44,6.71-3.72,9 c-2.32,2.32-5.49,3.73-9,3.73H12.72c-3.5,0-6.71-1.44-9-3.73c-2.32-2.32-3.72-5.49-3.72-9l0-97.43c0-3.5,1.44-6.71,3.73-9 C6.05,1.4,9.22,0,12.72,0L12.72,0z M42.91,75.58h0.17c1.29,0,2.36,1.07,2.36,2.36v15.15h1.53v-6.35c0-1.2,0.99-2.19,2.19-2.19h0.17 c1.29,0,2.36,1.07,2.36,2.36v6.34l0.08-0.03h1.65v-4.82c0-1.2,0.99-2.19,2.19-2.19h0.16c1.29,0,2.36,1.07,2.36,2.36v4.41h0.01 l1.64-0.02v-3.12c0-1.2,0.99-2.19,2.19-2.19h0.17c1.29,0,2.36,1.07,2.36,2.36v6.61c0,0.07,0,0.16-0.02,0.24l0.08,0.06 c0.07,1.9,0.04,4.17-0.31,6.36h3.7V19.73H3.61v83.53h35.46L31.33,91c-0.48-1.13-0.42-1.89,0.06-2.39c2.07-1.35,5.47,1.52,9.22,5.57 l0.14-0.03V77.74c0-1.2,0.99-2.19,2.19-2.19L42.91,75.58L42.91,75.58z M44.33,69.25c0,0.65-0.53,1.16-1.16,1.16 c-0.65,0-1.16-0.53-1.16-1.16v-4.67c0-0.65,0.53-1.16,1.16-1.16c0.65,0,1.16,0.53,1.16,1.16V69.25L44.33,69.25L44.33,69.25z M33.79,78.82c0.65,0,1.16,0.53,1.16,1.16c0,0.65-0.53,1.16-1.16,1.16h-4.67c-0.65,0-1.16-0.53-1.16-1.16 c0-0.65,0.53-1.16,1.16-1.16H33.79L33.79,78.82z M37.1,71.9c0.45,0.45,0.45,1.19,0,1.64c-0.45,0.45-1.19,0.45-1.64,0l-3.29-3.3 c-0.45-0.45-0.45-1.19,0-1.64c0.45-0.45,1.19-0.45,1.64,0L37.1,71.9L37.1,71.9z M52.32,81.13c-0.65,0-1.16-0.53-1.16-1.16 c0-0.65,0.53-1.16,1.16-1.16h4.67c0.65,0,1.16,0.53,1.16,1.16c0,0.65-0.53,1.16-1.16,1.16H52.32L52.32,81.13z M50.66,73.28 c-0.45,0.45-1.19,0.45-1.64,0c-0.45-0.45-0.45-1.19,0-1.64l3.29-3.3c0.45-0.45,1.19-0.45,1.64,0c0.45,0.45,0.45,1.19,0,1.64 L50.66,73.28L50.66,73.28z M11.72,65.51h7.13c1.79,0,3.25,1.46,3.25,3.25v7.13c0,1.79-1.46,3.25-3.25,3.25h-7.13 c-1.79,0-3.25-1.46-3.25-3.25v-7.13C8.46,66.98,9.93,65.51,11.72,65.51L11.72,65.51z M52.73,45.12h7.13c1.79,0,3.25,1.46,3.25,3.25 v7.13c0,1.79-1.46,3.25-3.25,3.25h-7.13c-1.79,0-3.25-1.46-3.25-3.25v-7.13C49.48,46.58,50.95,45.12,52.73,45.12L52.73,45.12z M32.22,45.12h7.13c1.79,0,3.25,1.46,3.25,3.25v7.13c0,1.79-1.46,3.25-3.25,3.25h-7.13c-1.79,0-3.25-1.46-3.25-3.25v-7.13 C28.97,46.58,30.44,45.12,32.22,45.12L32.22,45.12z M11.72,45.12h7.13c1.79,0,3.25,1.46,3.25,3.25v7.13c0,1.79-1.46,3.25-3.25,3.25 h-7.13c-1.79,0-3.25-1.46-3.25-3.25v-7.13C8.46,46.58,9.93,45.12,11.72,45.12L11.72,45.12z M52.73,24.73h7.13 c1.79,0,3.25,1.46,3.25,3.25v7.13c0,1.79-1.46,3.25-3.25,3.25h-7.13c-1.79,0-3.25-1.46-3.25-3.25v-7.13 C49.48,26.19,50.95,24.73,52.73,24.73L52.73,24.73z M32.22,24.73h7.13c1.79,0,3.25,1.46,3.25,3.25v7.13c0,1.79-1.46,3.25-3.25,3.25 h-7.13c-1.79,0-3.25-1.46-3.25-3.25v-7.13C28.97,26.19,30.44,24.73,32.22,24.73L32.22,24.73z M11.72,24.73h7.13 c1.79,0,3.25,1.46,3.25,3.25v7.13c0,1.79-1.46,3.25-3.25,3.25h-7.13c-1.79,0-3.25-1.46-3.25-3.25v-7.13 C8.46,26.19,9.93,24.73,11.72,24.73L11.72,24.73z M35.77,107.24c2.88,0,5.24,2.32,5.24,5.24c0,2.88-2.32,5.24-5.24,5.24 c-2.88,0-5.24-2.32-5.24-5.24C30.54,109.6,32.86,107.24,35.77,107.24L35.77,107.24z"})})}))},Te=e=>{const{width:i=16,height:o=16,offset0StopColor:r="#fcd635",offset1StopColor:a="#f7a928"}=e,l={width:i,height:o};return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg"},l,{children:[t("defs",{children:[n("linearGradient",{id:"b",x1:"-1483.396",x2:"-1155.767",y1:"1056.787",y2:"1056.787",gradientUnits:"userSpaceOnUse"}),t("linearGradient",{id:"a",children:[n("stop",{offset:"0",stopColor:r}),n("stop",{offset:"1",stopColor:a})]})]}),n("path",{fill:a,d:"M-1220 1212.362c-11.656 8.326-86.446-44.452-100.77-44.568-14.324-.115-89.956 51.449-101.476 42.936-11.52-8.513 15.563-95.952 11.247-109.61-4.316-13.658-76.729-69.655-72.193-83.242 4.537-13.587 96.065-14.849 107.721-23.175 11.656-8.325 42.535-94.497 56.86-94.382 14.323.116 43.807 86.775 55.327 95.288 11.52 8.512 103.017 11.252 107.334 24.91 4.316 13.658-68.99 68.479-73.527 82.066-4.536 13.587 21.133 101.451 9.477 109.777z",color:"#000",overflow:"visible",transform:"matrix(.04574 0 0 .04561 68.85 -40.34)"})]}))},Fe=e=>{const{width:i=16,height:o=16,fillColor:r="#f7a928"}=e,a={width:i,height:o};return t("svg",Object.assign({},a,{xmlns:"http://www.w3.org/2000/svg",version:"1.1",children:[n("defs",{}),n("g",{children:n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24"},a,{children:n("path",{d:"M21.9189453,10.1265259c0.0802612-0.546814-0.2979736-1.0551147-0.8447266-1.135376L15.4228516,8.164978l-2.5253906-5.1464844c-0.0909424-0.1569824-0.2214355-0.2873535-0.37854-0.3781128c-0.4960327-0.2866821-1.1306152-0.1170044-1.4173584,0.3790894L8.5771484,8.164978L2.9257812,8.9912109C2.7097168,9.0228882,2.5100098,9.1244507,2.3569946,9.2802734c-0.387146,0.3943481-0.3812256,1.0278931,0.0131226,1.4150391l4.0927734,4.0126953l-0.9658203,5.6640625c-0.0091553,0.0541992-0.013855,0.1090698-0.0139771,0.1641235c-0.0015259,0.5534058,0.4458618,1.0032959,0.9993286,1.0048218c0.163147-0.0002441,0.3237915-0.0404663,0.4677734-0.1171875L12,18.7539062l5.0488281,2.6689453c0.1951294,0.1035767,0.4190063,0.1396484,0.6367798,0.1025391c0.5441895-0.0928345,0.9100952-0.6091309,0.8173218-1.1533203l-0.9658203-5.6640625l4.09375-4.0137329C21.7861328,10.5414429,21.8872681,10.3421021,21.9189453,10.1265259z M16.6503906,14.1766968c-0.1170654,0.1148682-0.1706543,0.2796631-0.1435547,0.4414062l1.0097656,5.9208984l-5.2832031-2.7930298c-0.1463013-0.0761719-0.3204956-0.0761719-0.4667969,0L6.4833984,20.539978l1.0097046-5.921814c0.0271606-0.1617432-0.0264282-0.3265381-0.1435547-0.4414062L3.0702515,9.9814453l5.9121094-0.8642578C9.1456299,9.0927734,9.286499,8.9898682,9.359375,8.8417969L12,3.460022l2.640564,5.3817139c0.072876,0.1480713,0.2138062,0.2509766,0.3770142,0.2753906l5.9130859,0.8632812L16.6503906,14.1766968z",fill:r})}))})]}))},Ae=e=>{const{height:i=15,width:o=15,fillColor:r="#fff",strokeWidth:a}=e,l={height:i,width:o};return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0,0,256,256"},l,{fillRule:"nonzero",children:[n("g",{fillOpacity:"0",fill:"#000000",fillRule:"nonzero",stroke:"none",strokeWidth:"1",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"10",strokeDasharray:"",strokeDashoffset:"0",fontFamily:"none",fontWeight:"none",fontSize:"none",textAnchor:"none",children:n("path",{d:"M0,256v-256h256v256z",id:"bgRectangle"})}),n("g",{fill:r,fillRule:"nonzero",stroke:a?r:"none",strokeWidth:a||"1",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"10",strokeDasharray:"",strokeDashoffset:"0",fontFamily:"none",fontWeight:"none",fontSize:"none",textAnchor:"none",children:n("g",{transform:"scale(5.33333,5.33333)",children:n("path",{d:"M40.6,12.1l-23.6,23.6l-9.6,-9.6l-2.8,2.9l12.4,12.3l26.4,-26.4z"})})})]}))},ze=e=>{const{width:t=24,height:i=24,fillColor:o="#55acee"}=e,r={width:t,height:i};return n("svg",Object.assign({viewBox:"0 0 256 209"},r,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n("g",{children:n("path",{d:"M256,25.4500259 C246.580841,29.6272672 236.458451,32.4504868 225.834156,33.7202333 C236.678503,27.2198053 245.00583,16.9269929 248.927437,4.66307685 C238.779765,10.6812633 227.539325,15.0523376 215.57599,17.408298 C205.994835,7.2006971 192.34506,0.822 177.239197,0.822 C148.232605,0.822 124.716076,24.3375931 124.716076,53.3423116 C124.716076,57.4586875 125.181462,61.4673784 126.076652,65.3112644 C82.4258385,63.1210453 43.7257252,42.211429 17.821398,10.4359288 C13.3005011,18.1929938 10.710443,27.2151234 10.710443,36.8402889 C10.710443,55.061526 19.9835254,71.1374907 34.0762135,80.5557137 C25.4660961,80.2832239 17.3681846,77.9207088 10.2862577,73.9869292 C10.2825122,74.2060448 10.2825122,74.4260967 10.2825122,74.647085 C10.2825122,100.094453 28.3867003,121.322443 52.413563,126.14673 C48.0059695,127.347184 43.3661509,127.988612 38.5755734,127.988612 C35.1914554,127.988612 31.9009766,127.659938 28.694773,127.046602 C35.3777973,147.913145 54.7742053,163.097665 77.7569918,163.52185 C59.7820257,177.607983 37.1354036,186.004604 12.5289147,186.004604 C8.28987161,186.004604 4.10888474,185.75646 0,185.271409 C23.2431033,200.173139 50.8507261,208.867532 80.5109185,208.867532 C177.116529,208.867532 229.943977,128.836982 229.943977,59.4326002 C229.943977,57.1552968 229.893412,54.8901664 229.792282,52.6381454 C240.053257,45.2331635 248.958338,35.9825545 256,25.4500259",fill:o})})}))},Pe=e=>{const{width:i=24,height:o=24,fillColor:r="#25d366"}=e,a={width:i,height:o};return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 256 256"},a,{children:[n("defs",{}),n("g",{stroke:"none",strokeWidth:"0",strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"none",fillRule:"nonzero",opacity:1,transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:n("path",{d:"M 76.735 13.079 C 68.315 4.649 57.117 0.005 45.187 0 C 20.605 0 0.599 20.005 0.589 44.594 c -0.003 7.86 2.05 15.532 5.953 22.296 L 0.215 90 l 23.642 -6.202 c 6.514 3.553 13.848 5.426 21.312 5.428 h 0.018 c 0.001 0 -0.001 0 0 0 c 24.579 0 44.587 -20.007 44.597 -44.597 C 89.789 32.713 85.155 21.509 76.735 13.079 z M 27.076 46.217 c -0.557 -0.744 -4.55 -6.042 -4.55 -11.527 c 0 -5.485 2.879 -8.181 3.9 -9.296 c 1.021 -1.115 2.229 -1.394 2.972 -1.394 s 1.487 0.007 2.136 0.039 c 0.684 0.035 1.603 -0.26 2.507 1.913 c 0.929 2.231 3.157 7.717 3.436 8.274 c 0.279 0.558 0.464 1.208 0.093 1.952 c -0.371 0.743 -0.557 1.208 -1.114 1.859 c -0.557 0.651 -1.17 1.453 -1.672 1.952 c -0.558 0.556 -1.139 1.159 -0.489 2.274 c 0.65 1.116 2.886 4.765 6.199 7.72 c 4.256 3.797 7.847 4.973 8.961 5.531 c 1.114 0.558 1.764 0.465 2.414 -0.279 c 0.65 -0.744 2.786 -3.254 3.529 -4.369 c 0.743 -1.115 1.486 -0.929 2.507 -0.558 c 1.022 0.372 6.5 3.068 7.614 3.625 c 1.114 0.558 1.857 0.837 2.136 1.302 c 0.279 0.465 0.279 2.696 -0.65 5.299 c -0.929 2.603 -5.381 4.979 -7.522 5.298 c -1.92 0.287 -4.349 0.407 -7.019 -0.442 c -1.618 -0.513 -3.694 -1.199 -6.353 -2.347 C 34.934 58.216 27.634 46.961 27.076 46.217 z",stroke:"none",strokeWidth:"1",strokeDasharray:"none",strokeLinecap:"round",strokeLinejoin:"miter",strokeMiterlimit:10,fill:r,fillRule:"evenodd",opacity:1,transform:" matrix(1 0 0 1 0 0) "})})]}))},De=e=>{const{width:i=20,height:o=20}=e,r={width:i,height:o};return t("svg",Object.assign({version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 395.71 395.71",color:"blue"},r,{children:[n("g",{children:n("path",{d:"M197.849,0C122.131,0,60.531,61.609,60.531,137.329c0,72.887,124.591,243.177,129.896,250.388l4.951,6.738\n\t\tc0.579,0.792,1.501,1.255,2.471,1.255c0.985,0,1.901-0.463,2.486-1.255l4.948-6.738c5.308-7.211,129.896-177.501,129.896-250.388\n\t\tC335.179,61.609,273.569,0,197.849,0z M197.849,88.138c27.13,0,49.191,22.062,49.191,49.191c0,27.115-22.062,49.191-49.191,49.191\n\t\tc-27.114,0-49.191-22.076-49.191-49.191C148.658,110.2,170.734,88.138,197.849,88.138z"})}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{})]}))},_e=e=>{const{height:i=20,width:o=20}=e,r={width:o,height:i};return t("svg",Object.assign({version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 474 474"},r,{children:[n("g",{children:n("path",{d:"M437.5,59.3h-401C16.4,59.3,0,75.7,0,95.8v282.4c0,20.1,16.4,36.5,36.5,36.5h401c20.1,0,36.5-16.4,36.5-36.5V95.8\n C474,75.7,457.6,59.3,437.5,59.3z M432.2,86.3L239.5,251.1L46.8,86.3H432.2z M447,378.2c0,5.2-4.3,9.5-9.5,9.5h-401\n c-5.2,0-9.5-4.3-9.5-9.5V104.9l203.7,174.2c0.1,0.1,0.3,0.2,0.4,0.3c0.1,0.1,0.3,0.2,0.4,0.3c0.3,0.2,0.5,0.4,0.8,0.5\n c0.1,0.1,0.2,0.1,0.3,0.2c0.4,0.2,0.8,0.4,1.2,0.6c0.1,0,0.2,0.1,0.3,0.1c0.3,0.1,0.6,0.3,1,0.4c0.1,0,0.3,0.1,0.4,0.1\n c0.3,0.1,0.6,0.2,0.9,0.2c0.1,0,0.3,0.1,0.4,0.1c0.3,0.1,0.7,0.1,1,0.2c0.1,0,0.2,0,0.3,0c0.4,0,0.9,0.1,1.3,0.1l0,0l0,0\n c0.4,0,0.9,0,1.3-0.1c0.1,0,0.2,0,0.3,0c0.3,0,0.7-0.1,1-0.2c0.1,0,0.3-0.1,0.4-0.1c0.3-0.1,0.6-0.2,0.9-0.2c0.1,0,0.3-0.1,0.4-0.1\n c0.3-0.1,0.6-0.2,1-0.4c0.1,0,0.2-0.1,0.3-0.1c0.4-0.2,0.8-0.4,1.2-0.6c0.1-0.1,0.2-0.1,0.3-0.2c0.3-0.2,0.5-0.3,0.8-0.5\n c0.1-0.1,0.3-0.2,0.4-0.3c0.1-0.1,0.3-0.2,0.4-0.3L447,109.2V378.2z"})}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{}),n("g",{})]}))},Ve=e=>{const{height:i=20,width:o=20}=e,r={width:o,height:i};return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 84.33 122.88"},r,{children:[n("defs",{}),n("title",{children:"hand-holding-mobile-phone"}),n("path",{fillRule:"evenodd",d:"M75.59,28.93c3.65-.37,6.1,1.18,6.54,3.57.65,3.52-2.77,6.1-5.23,8-.43.33-.87.65-1.31.95V28.93Zm-58-16.51h0c5.84-.28,7.37,5.84,6.86,10.71-.3,2.87-1.06,3.92-2.32,6.44-1.48,2.39-3,4.72-4.4,7.17V90.21a12.1,12.1,0,0,0,.93,4.65,12.28,12.28,0,0,0,2.63,3.93A12.06,12.06,0,0,0,25,101.36l.15.07a12.1,12.1,0,0,0,4.65.93H61.22C55.09,108.11,48.48,112,41,112.22l-7.77,9.44c-1.68,1.54-3.63,1.71-6,0L4.7,106.58C2.36,105,.05,103.43,0,100.23,0,98,1.34,95.72,3.36,93.48a14.08,14.08,0,0,0,2-7.18C5.53,81.13,3,76.61,2.63,71c-.43-6.3,0-14.79,1-24.54l.46-13.17A7.45,7.45,0,0,1,5.26,30L16.84,12.51l.71-.09Zm57.31,42.7V51.65a12.13,12.13,0,0,1,8,3.87c3,3.61,1,8.77-2.24,11.25a4.91,4.91,0,0,1-2.31.91l.31.06c3.15,2.65,4.69,5.62,4.09,8.5-.87,4.24-7.66,8.62-11.74,8.92a4.65,4.65,0,0,1-4.51-2.22c-2.32-3.6,1.19-7.45,3.61-9.84a15.89,15.89,0,0,1,4.72-3.28V67.17a5,5,0,0,1-3.07-3.35c-.7-3.18,1.34-6.26,3.14-8.7Zm-.35,31.15.27-1.4c3.29-.26,5.71.86,6.94,3.85.53,3,.22,6-2.55,7.7C76.6,98,71,99,68.3,97.22c-2.88-1.9-2.51-5.17-.33-7.49a12.06,12.06,0,0,1,6.54-3.46ZM29.83,0H63.45A9.54,9.54,0,0,1,73,9.54V51.31a1.87,1.87,0,0,0,0,.34v2.86a21.88,21.88,0,0,0-2.34,3.91,11.27,11.27,0,0,0-.78,2.45V10.4H23.44v2a6.85,6.85,0,0,0-3.14-1.8v-1A9.51,9.51,0,0,1,29.83,0Zm16.8,89.49a3.93,3.93,0,1,1-3.92,3.92,3.91,3.91,0,0,1,3.92-3.92Zm23.2-25.38,0,.12a6,6,0,0,0,1.49,2.82,7.19,7.19,0,0,0,1.53,1.26v.33a18,18,0,0,0-1.64,1c-.49.33-.95.7-1.41,1.08V64.11ZM67.71,86.5h0a6.09,6.09,0,0,0,.75.28,12.08,12.08,0,0,0-1.89,1.64,8.66,8.66,0,0,0-1,1.22,7.2,7.2,0,0,0-1.27,4.19A5.91,5.91,0,0,0,66.26,98a7.1,7.1,0,0,0,1,.78l.14.09a9.45,9.45,0,0,1-3.94.85H29.83a9.53,9.53,0,0,1-9.53-9.54V36.44l.14-.26,3-4.85V86.5H67.71Z"})]}))},Be=e=>{const{height:i=15,width:o=15,strokeColor:r="#000000"}=e,a={height:i,width:o};return n("svg",Object.assign({},a,{viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg",children:t("g",{fill:"none",fillRule:"evenodd",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",transform:"matrix(0 1 1 0 2.5 2.5)",children:[n("path",{d:"m3.98652376 1.07807068c-2.38377179 1.38514556-3.98652376 3.96636605-3.98652376 6.92192932 0 4.418278 3.581722 8 8 8s8-3.581722 8-8-3.581722-8-8-8"}),n("path",{d:"m4 1v4h-4",transform:"matrix(1 0 0 -1 0 6)"})]})}))},Ue=l((function(o,r){const{isMobile:a,hasPWAInstalled:l,onClickInstall:d,isInstallPromptSupported:p,isInstallBannerOpen:m,setIsInstallBannerOpen:h,isStandalone:f,environment:u,isWebWithPWA:x,pwa:{messages:b,bannerExpiryTime:w},config:{osName:v,browserName:y,browsers:C,os:k},webServerConfig:E}=o,N=n("button",{className:"not-now",onClick:()=>{const e=(new Date).getTime()+1e3*w;h(!1),ae("isInstallBannerOpen",!1),ae("pwaBannerHideTime",e)},children:a?n(Oe,{}):n(i,{children:b.no})}),O=n("p",{children:x?b.relatedApp:b.install}),M=n("button",{className:"install",onClick:()=>e(this,void 0,void 0,(function*(){x||(yield d())})),children:x?n("a",{href:be(u,E),target:"_blank",rel:"noreferrer",children:b.open}):b.yes}),S=s((()=>xe(C,k,y,v)),[C,k,y,v]);return c((()=>{const e=null===le("isInstallBannerOpen")?p:p&&m&&!l||!se(le("pwaBannerHideTime")||0);ae("isInstallBannerOpen",e),h(e)}),[l,m,p,h]),!f&&p&&m?t(j,{ref:r,top:"0",alignItems:"center",justifyContent:"space-between",className:g({hide:!!a&&!S}),children:[N,O,M]}):null})),He=a.createContext(G),{Provider:$e,Consumer:We}=He,Xe=(e,n=80,t=600)=>{const i=window.pageYOffset,o=(e=>{const n=document.querySelector(e);return n?window.pageYOffset+n.getBoundingClientRect().top:0})(e),r=(document.body.scrollHeight-o<window.innerHeight?document.body.scrollHeight-window.innerHeight:o)-i-n;let a;r&&window.requestAnimationFrame((function e(n){a||(a=n);const o=n-a;let l=Math.min(o/t,1);l=(e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1)(l),window.scrollTo(0,i+r*l),o<t&&window.requestAnimationFrame(e)}))},Ge=e=>{const{refs:t,data:i,currentSection:o,isInstallBannerOpen:r,pwaOffset:l,isMobile:d}=a.useContext(He),{onMenuChange:p}=e,m=s((()=>d?100:30),[d]);let h;const f=Object.keys(i.sections).reduce(((e,n)=>{if(i.sections[n].ref){const{title:t,ref:o=""}=i.sections[n],{order:r,display:a}=Y[oe(n)];!1!==a&&e.push({section:n,title:t,ref:o,order:r})}return e}),[]).sort(((e,n)=>e.order-n.order)),u=()=>{const e=f.reduce(((e,n,i)=>{const{ref:o,section:a}=n,s=t[o];if(s.current){let n=s.current.getBoundingClientRect().top;if(n=Math.round(r?n-l-m:n-30),0===i||n<=0&&n>e.pos)return{section:a,pos:n}}return e}),{section:"aboutMe",pos:r?l:0});p&&p(e.section)};return c((()=>(u(),window.addEventListener("scroll",(()=>{var e,n;e=u,n=100,clearTimeout(h),h=setTimeout((function(){e()}),n)})),()=>window.removeEventListener("scroll",u))),[l,m]),n(Je,{className:g("wrapper",{mobile:e.isMobileMenu}),children:n(O,{direction:"column",children:f.map((t=>n(qe,{onClick:()=>{var n;n=t.section,Xe(`#${n}`,r?l+m:20+m),e.closeHamburgerMenu&&e.closeHamburgerMenu()},className:g({"is-active":o===t.section}),children:t.title},t.section)))})})},Je=r.nav`
overflow: hidden;
position: fixed;
top: 15%;
right: 25px;
width: 100%;
z-index: 10;
background-color: #222222;
max-width: fit-content;
border-radius: 5px;
&.mobile {
padding-top: 0;
position: static;
max-width: unset;
height: 100%;
}
&.wrapper {
.is-active {
background-color: #3f9c35;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
li {
text-align: center;
padding: 20px 5px;
}
a {
font-weight: bold;
padding: 20px 5px;
text-decoration: none;
color: #fff;
&:hover {
color: #434242;
}
}
}
&:not(.mobile) {
@media screen and (max-width: 767px) {
display: none;
right: 0;
}
}
`,qe=r.button`
background-color: transparent;
border: none;
cursor: pointer;
outline: none;
color: #fff;
font-weight: bold;
padding: 20px;
&:hover {
color: #00b2e2;
}
`,Ye=e=>{const{appVersion:i}=d(He);return n(B,{isOpen:e.displayVersionModal,shouldCloseOnOverlayClick:!0,onRequestClose:()=>{e.setDisplayVersionModal(!1)},className:"version-modal",children:n(N,{justifyContent:"center",children:t("p",{children:["App version: ",t("span",{children:["v",i]})]})})})},Ze=u,Ke=e=>{const{isOpen:o,hasPWAInstalled:r,setIsOpen:l,onMenuChange:m,onInstallPWA:h}=e,f=a.useRef(null),{appVersion:u,deviceConfig:{browserName:x,browsers:b,os:w,osName:v}}=d(He),y=s((()=>xe(b,w,x,v)),[b,w,x,v]),[C,k]=p(!1),[O,M]=p(!1),S=window.innerWidth-document.documentElement.clientWidth;return c((()=>{o&&f.current&&(f.current.scrollTop=0),setTimeout((()=>{document.getElementsByTagName("body")[0].style.overflow=o?"hidden":"",document.getElementsByTagName("body")[0].style.paddingRight=o?`${S}px`:""}),100)}),[o]),t(i,{children:[n(Ye,{displayVersionModal:O,setDisplayVersionModal:M}),n(Qe,{onTouchMove:()=>l(!0),children:n(E,{onClick:()=>{l(!0),k(!0)},className:g("hamburger-icon",{clicked:C}),children:n(Ie,{})})}),n(Ze,{in:o,duration:0,addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!0)},children:e=>t(en,{className:e,children:[t(nn,{direction:"column",justifyContent:"space-around",children:[n(N,{justifyContent:"flex-end",children:n(E,{className:"close-button",onClick:()=>l(!1),children:n(Oe,{})})}),n(Ge,{isMobileMenu:!0,closeHamburgerMenu:()=>l(!1),onMenuChange:e=>m(e)}),y&&!r&&n(N,{justifyContent:"center",children:n(E,{className:"install-app-button",onClick:h,children:t(N,{alignItems:"center",children:[n(E,{className:"mobile-application-icon",children:n(je,{})}),n("span",{className:"install-app-text",children:"Install app"})]})})}),t(D,{href:"",onClick:e=>{e.preventDefault(),l(!1),M(!0)},children:["v",u]})]}),n(tn,{onClick:()=>l(!1)})]})})]})},Qe=r.div`
display: flex;
justify-content: flex-end;
position: fixed;
width: 100%;
z-index: 20;
background-color: #f0f0f0;
padding: 20px 0;
.hamburger-icon {
margin-right: 10px;
cursor: pointer;
padding: 10px;
animation: blinker 5s linear infinite;
box-shadow: rgb(0 0 0 / 20%) 0 -1px 0px 1px, inset #304701 0 -1px 0px,
#3f9c35 0 2px 12px;
&.clicked {
animation: none;
box-shadow: none;
@keyframes blinker {
50% {
opacity: 0.5;
box-shadow: none;
}
}
}
}
@media screen and (min-width: 768px) {
display: none;
}
`,en=r.div`
display: flex;
position: fixed;
flex-direction: row-reverse;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 100011;
transition: all 200ms;
&.exited {
visibility: hidden;
}
&.entered {
background-color: rgba(0, 0, 0, 0.75);
}
`,nn=r(O)`
background-color: #222222;
flex-basis: 50%;
.find-me {
align-self: center;
color: #f0f0f0;
padding-bottom: 5px;
padding-left: 15px;
font-style: italic;
font-weight: bold;
}
.close-button {
cursor: pointer;
margin: 10px;
height: 30px;
}
.install-app-button {
margin-bottom: 25px;
background-color: #f0f0f0;
border-radius: 30px;
padding: 5px 20px;
max-width: fit-content;
}
.mobile-application-icon {
cursor: pointer;
height: 25px;
padding: 0;
}
.install-app-text {