1import{p as h,j as e,J as L,R as k,r as m,K as V,F as M,X as $}from"./vendor-0ddf0dfa.js";import{m as C,p as E,H as F}from"./moment-dd48cb5f.js";import{B as R,u as T,a as H,s as I}from"./index-d42f2b0b.js";import{B as v}from"./Button-e62a78a5.js";import{d as P}from"./downloadCV-0201cc63.js";import{o as q,s as j,u as W,t as Y,i as z}from"./axios-89a1c8c4.js";import{S as O}from"./SectionWrapper-c0e069e2.js";const J=()=>{const o=async()=>{var s;(s=document.getElementById("contact-form"))==null||s.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},{t:a}=h();return e.jsx("div",{className:"contact-me-button",children:e.jsx(v,{onClick:o,variant:"neutral",endIcon:e.jsx(L,{}),label:a("button.contactMe")})})};const N=k.createContext({isAlertBannerVisible:!1,type:"info",message:""}),K=({children:o})=>{const[a,s]=m.useState(!1),[t,r]=m.useState("info"),[l,c]=m.useState(""),u=(p,i)=>{s(!0),r(p),c(i)},n=()=>{s(!1)};return e.jsxs(N.Provider,{value:{type:t,message:l,isAlertBannerVisible:a,showAlertBanner:u,hideAlertBanner:n},children:[e.jsx(R,{}),o]})},D=()=>m.useContext(N);const X=()=>{const{type:o,message:a,isAlertBannerVisible:s,hideAlertBanner:t}=D();return s?e.jsxs("div",{className:`default-text local-banner ${o}-banner mb-2`,role:"alertdialog","data-testid":"banner",children:[e.jsx("div",{className:"banner-text",role:"alert",children:a}),e.jsx("div",{className:"cross",onClick:t,role:"button"})]}):null},G={name:"",email:"",message:""},Q=({onDownload:o,closeDialog:a})=>{var b,y,w;const{t:s}=h(),{showAlertBanner:t}=D(),r=q({name:j().min(1,{message:s("common.validations.required",{name:s("inputs.fullName")})}),email:j().min(1,{message:s("common.validations.required",{name:s("inputs.emailAddress")})}).max(50,{message:s("common.validations.maxEmailLengthReached")}).email({message:s("common.validations.invalidEmailError")}),message:j().min(1,{message:s("common.validations.required",{name:s("inputs.message")})})}),l=W({resolver:Y(r),defaultValues:G}),{register:c,handleSubmit:u,formState:{errors:n},reset:p}=l,[i,d]=m.useState(!1),x=async g=>{const{name:B,email:S,message:A}=g;try{d(!0);const f=await z.post("/mail",{email:S,name:B,message:A,section:"Download"});f.data.msg==="success"?(t("success",s("messageSentSuccess")),await o(),p(),a()):f.data.msg==="fail"&&t("error",s("sorryCouldntSendMsg"))}catch{t("error",s("sorryCouldntSendMsg"))}finally{d(!1)}};return e.jsxs("form",{onSubmit:g=>{g.stopPropagation(),g.preventDefault(),u(x)(g)},noValidate:!0,children:[e.jsxs("div",{className:"primary-color body-text download-cv-form",children:[e.jsxs("div",{className:"input-form-control",children:[e.jsx("label",{htmlFor:"name",children:s("inputs.fullName")}),e.jsx("input",{...c("name"),placeholder:s("inputs.placeholders.fullName"),name:"name",id:"name",className:n.name?"highlight-error":"",autoFocus:!0}),n.name&&e.jsx("span",{className:"error-message-label",children:(b=n.name)==null?void 0:b.message})]}),e.jsxs("div",{className:"input-form-control",children:[e.jsx("label",{htmlFor:"email",children:s("inputs.emailAddress")}),e.jsx("input",{...c("email"),placeholder:s("inputs.placeholders.emailAddress"),name:"email",type:"email",id:"email",className:n.email?"highlight-error":""}),n.email&&e.jsx("span",{className:"error-message-label",children:(y=n.email)==null?void 0:y.message})]}),e.jsxs("div",{className:"input-form-control",children:[e.jsx("label",{htmlFor:"message",children:s("inputs.message")}),e.jsx("textarea",{...c("message"),placeholder:s("inputs.placeholders.downloadMessage"),name:"message",id:"message",className:n.message?"highlight-error":""}),n.message&&e.jsx("span",{className:"error-message-label",children:(w=n.message)==null?void 0:w.message})]}),e.jsx(X,{})]}),e.jsx("div",{className:"button-wrapper",children:e.jsx(v,{className:i?"loading":"",disabled:i,type:"submit",label:s("button.downloadCv"),endIcon:i?e.jsx(V,{}):e.jsx(M,{})})})]})};const U=({open:o,onClose:a,onDownload:s})=>{const{t}=h(),r=m.useRef(null);return m.useEffect(()=>{var l,c;o?(l=r.current)==null||l.showModal():(c=r.current)==null||c.close()},[o]),e.jsxs("dialog",{className:"dialog",ref:r,onClose:()=>{var l;(l=r.current)==null||l.close(),a()},children:[e.jsxs("header",{children:[e.jsx("h2",{className:"title",children:t("downloadDialog.title")}),e.jsx($,{className:"close-icon",color:"var(--primary-color)",cursor:"pointer",onClick:a,fontSize:"1.25rem"})]}),e.jsx("p",{className:"subsection-title body-text",children:t("downloadDialog.description")}),e.jsx(K,{children:e.jsx(Q,{onDownload:s,closeDialog:a})})]})},Z=()=>{const{t:o}=h(),[a,s]=m.useState(!1),t=()=>s(!0),r=()=>s(!1);return e.jsxs("div",{className:"download-cv-button",children:[e.jsx(v,{onClick:t,variant:"brand",endIcon:e.jsx(M,{}),label:o("button.downloadCv")}),a&&e.jsx(U,{open:a,onClose:r,onDownload:P})]})},_="/images/portfolio-app-img.webp",ee=()=>{const{profileData:o}=T(),{darkMode:a}=H(),{overview:s,experience:t}=o,{t:r}=h(),l=m.useMemo(()=>{try{const n=t.map(i=>{const d=C(i.fromDate),x=i.toDate!=="Present"?C(i.toDate):C();return C(x).diff(d,"year",!0)}).reduce((i,d)=>i+d);return`${Math.floor(n)} years`}catch{return String(C().year()-2014)}},[t]),c=s.summary.replace("{totalYearsOfExperience}",l),u=E.sanitize(c);return e.jsxs("div",{className:"summary-mobile summary-section",children:[e.jsxs("div",{className:"mainlogo-wrapper",children:[e.jsx("img",{src:_,className:"mainlogo",alt:"mi Baburao",loading:"eager"}),e.jsx("svg",{role:"img","aria-label":"ring",className:"ring ring-1",width:"328",height:"328",viewBox:"0 0 328 328",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M275.182 48.9409C277.867 51.5359 280.461 54.224 282.96 57M74.5431 31.325C71.3944 33.4522 68.3255 35.6886 65.3419 38.0286C60.9794 41.45 56.7991 45.0931 52.8179 48.9409C49.2109 52.4271 45.7674 56.0814 42.5 59.89
11C39.4475 63.4501 36.5488 67.1448 33.8139 70.9649M10.7899 117.738C9.82602 120.934 8.95946 124.173 8.19363 127.45M224.831 15.9693C220.161 14.0482 215.38 12.3416 210.5 10.8619C207.309 9.8943 204.077 9.02373 200.805 8.25358C193.23 6.47036 185.448 5.22547 177.5 4.56149C173.049 4.18966 168.547 4 164 4C157.571 4 151.231 4.37918 145 5.11639C140.277 5.67522 135.617 6.43979 131.029 7.40088C126.444 8.36134 121.931 9.51806 117.5 10.8619C112.62 12.3416 107.839 14.0482 103.169 15.9693M304.464 240.677C307.492 235.142 310.203 229.408 312.571 223.5C314.016 219.896 315.333 216.228 316.517 212.5C317.763 208.58 318.861 204.594 319.806 200.55C321.222 194.491 322.293 188.301 322.999 182C323.66 176.091 324 170.085 324 164C324 157.571 323.621 151.231 322.884 145M286.224 267.259C283.526 270.449 280.706 273.531 277.771 276.5C274.179 280.132 270.415 283.592 266.492 286.868M200.805 319.746C194.986 321.116 189.045 322.168 183 322.884C176.769 323.621 170.429 324 164 324C157.571 324 151.231 323.621 145 322.884C140.277 322.325 135.617 321.56 131.029 320.599C124.304 319.19 117.734 317.359 111.348 315.135M89.623 305.698C84.4207 302.962 79.3875 299.948 74.5431 296.675C71.3944 294.548 68.3255 292.311 65.3419 289.971M27.695 247.834C25.1036 243.63 22.7013 239.296 20.5 234.846C18.7576 231.323 17.141 227.727 15.6562 224.064C14.1223 220.279 12.729 216.422 11.4828 212.5C10.2373 208.58 9.13875 204.594 8.19363 200.55C6.77805 194.491 5.70667 188.301 5.00123 182C4.33972 176.091 4 170.085 4 164C4 159.793 4.16233 155.625 4.48108 151.5M312.571 104.5C311.073 100.762 309.437 97.0928 307.671 93.5C305.82 89.7365 303.827 86.0562 301.696 82.4665C300.295 80.1045 298.834 77.7816 297.316 75.5",stroke:"var(--grey8)",strokeWidth:"2",strokeLinecap:"round"})}),e.jsx("svg",{role:"img","aria-label":"ring",className:"ring ring-2",width:"328",height:"328",viewBox:"0 0 328 328",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M275.182 48.9409C277.867 51.5359 280.461 54.224 282.96 57M74.5431 31.325C71.3944 33.4522 68.3255 35.6886 65.3419 38.0286C60.9794 41.45 56.7991 45.0931 52.8179 48.9409C49.2109 52.4271 45.7674 56.0814 42.5 59.891C39.4475 63.4501 36.5488 67.1448 33.8139 70.9649M10.7899 117.738C9.82602 120.934 8.95946 124.173 8.19363 127.45M224.831 15.9693C220.161 14.0482 215.38 12.3416 210.5 10.8619C207.309 9.8943 204.077 9.02373 200.805 8.25358C193.23 6.47036 185.448 5.22547 177.5 4.56149C173.049 4.18966 168.547 4 164 4C157.571 4 151.231 4.37918 145 5.11639C140.277 5.67522 135.617 6.43979 131.029 7.40088C126.444 8.36134 121.931 9.51806 117.5 10.8619C112.62 12.3416 107.839 14.0482 103.169 15.9693M304.464 240.677C307.492 235.142 310.203 229.408 312.571 223.5C314.016 219.896 315.333 216.228 316.517 212.5C317.763 208.58 318.861 204.594 319.806 200.55C321.222 194.491 322.293 188.301 322.999 182C323.66 176.091 324 170.085 324 164C324 157.571 323.621 151.231 322.884 145M286.224 267.259C283.526 270.449 280.706 273.531 277.771 276.5C274.179 280.132 270.415 283.592 266.492 286.868M200.805 319.746C194.986 321.116 189.045 322.168 183 322.884C176.769 323.621 170.429 324 164 324C157.571 324 151.231 323.621 145 322.884C140.277 322.325 135.617 321.56 131.029 320.599C124.304 319.19 117.734 317.359 111.348 315.135M89.623 305.698C84.4207 302.962 79.3875 299.948 74.5431 296.675C71.3944 294.548 68.3255 292.311 65.3419 289.971M27.695 247.834C25.1036 243.63 22.7013 239.296 20.5 234.846C18.7576 231.323 17.141 227.727 15.6562 224.064C14.1223 220.279 12.729 216.422 11.4828 212.5C10.2373 208.58 9.13875 204.594 8.19363 200.55C6.77805 194.491 5.70667 188.301 5.00123 182C4.33972 176.091 4 170.085 4 164C4 159.793 4.16233 155.625 4.48108 151.5M312.571 104.5C311.073 100.762 309.437 97.0928 307.671 93.5C305.82 89.7365 303.827 86.0562 301.696 82.4665C300.295 80.1045 298.834 77.7816 297.316 75.5",stroke:"var(--grey8)",strokeWidth:"2",strokeLinecap:"round"})})]}),e.jsx("div",{className:"bold primary-color hello",children:r("hello")}),e.jsx("h1",{className:"h1 bold main-title grey-1 text-cursor",children:s.name}),e.jsx("div",{className:"body-text summary-text",children:F(u)}),e.jsxs("div",{className:"summary-buttons",children:[e.jsx(Z,{}),e.jsx(J,{})]})]})},ie=O(ee,I.summary.class);export{ie as default};
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.