(this.webpackJsonpportfolio=this.webpackJsonpportfolio||[]).push([[0],{110:function(e,t,n){},128:function(e,t){},129:function(e,t){},130:function(e,t){},131:function(e,t){},132:function(e,t){},161:function(e,t,n){},180:function(e,t,n){"use strict";n.r(t);var a=n(1),c=n.n(a),r=n(22),i=n.n(r),s=(n(110),n(30)),o=n.n(s),l=n(40),d=n(18),j=(n(111),n(42)),b=n(96),u=n(11),x=n(185),h=n(188),O=n(187),f=n(192),p=n(190),m=n(183),g=n(24),v=n.p+"static/media/pp.6bd3c450.jpg",y=n(189),k=n(44),w=n(2);var N=function(e){var t=e.showResumeModal,n=e.closeModal,c=e.resumeLink,r=Object(a.useState)(null),i=Object(d.a)(r,2),s=(i[0],i[1]),o=Object(a.useState)(1),l=Object(d.a)(o,2),j=l[0];return l[1],Object(a.useEffect)((function(){k.c.GlobalWorkerOptions.workerSrc="proxy.php?url=https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fpdf.js%2F".concat(k.c.version,"/pdf.worker.min.js")}),[]),Object(w.jsxs)(y.a,{size:"lg",show:t,onHide:n,"aria-labelledby":"example-modal-sizes-title-lg",children:[Object(w.jsx)(y.a.Header,{closeButton:!0,children:Object(w.jsx)(y.a.Title,{id:"example-modal-sizes-title-lg",children:"Resume"})}),Object(w.jsx)(y.a.Body,{children:Object(w.jsx)(k.a,{file:{url:c},onLoadSuccess:function(e){var t=e.numPages;console.log("Document Loaded!"),s(t)},onLoadError:function(e){return console.log("Could not load pdf",e)},children:Object(w.jsx)(k.b,{pageNumber:j})})})]})},S="https://adittyaportfolioserver.herokuapp.com";var C=function(){var e=Object(a.useState)(!1),t=Object(d.a)(e,2),n=t[0],c=t[1];return Object(w.jsxs)(w.Fragment,{children:[Object(w.jsxs)(f.a,{variant:"dark",expand:"lg",fixed:"top",className:"nvabar-custon",style:{paddingLeft:"2%",paddingRight:"2%"},children:[Object(w.jsxs)("a",{href:"/",className:"navbar_logo_container",style:{textDecoration:"none"},children:[Object(w.jsx)("img",{src:v,className:"navbar_logo",style:{borderRadius:"50%"}}),Object(w.jsx)("span",{children:"Adittya Dey"})]}),Object(w.jsx)(f.a.Toggle,{"aria-controls":"basic-navbar-nav"}),Object(w.jsxs)(f.a.Collapse,{id:"basic-navbar-nav",children:[Object(w.jsx)(p.a,{className:"mr-auto"}),Object(w.jsxs)(p.a,{className:"navbar-right",children:[Object(w.jsxs)(p.a.Link,{children:[Object(w.jsx)(m.a,{variant:"light",style:{borderRadius:"4px 0 0 4px",borderRight:"1px solid rgba(0,0,0,0.5)"},onClick:function(){c(!0)},children:"Curriculum Vitae (CV)"}),Object(w.jsx)(m.a,{variant:"light",href:"".concat(S,"/downloadResume"),style:{borderRadius:"0 4px 4px 0"},children:Object(w.jsx)(g.a,{fill:"rgba(0,0,0,0.5)"})})]}),Object(w.jsx)(p.a.Link,{href:"https://github.com/adiXcodr",target:"_blank",children:Object(w.jsx)(g.c,{color:"rgba(255,255,255,0.8)",size:"1.5em"})}),Object(w.jsx)(p.a.Link,{href:"https://www.linkedin.com/in/adittyadey/",target:"_blank",children:Object(w.jsx)(g.e,{color:"rgba(255,255,255,0.8)",size:"1.5em"})})]})]})]}),Object(w.jsx)(N,{resumeLink:"".concat(S,"/downloadResume"),showResumeModal:n,closeModal:function(){c(!n)}})]})},z=n(66),_=n(92),R=n(93),E=n(94),L=n(184);var T,M,D,H,F=function(e){var t=e.ProjectListVal;return Object(w.jsx)("div",{children:t&&t.map((function(e,t){return Object(w.jsx)("span",{className:"project_list_item_link",onClick:function(){window.open(e.projectRoute,"_blank").focus()},children:Object(w.jsxs)("div",{style:{background:"linear-gradient(120deg,"+e.initialColor+","+e.finalColor+")"},className:"project_list_item",children:[Object.keys(e.badgeTitle).map((function(t,n){return Object(w.jsx)(L.a,{pill:!0,variant:"primary",className:"chip",children:e.badgeTitle[t]})})),Object(w.jsx)(L.a,{pill:!0,variant:"secondary",className:"chip",children:e.language}),Object(w.jsx)("p",{style:{marginTop:10,fontSize:20,fontWeight:"bold"},children:e.title}),Object(w.jsx)("p",{children:e.description})]})},"project-list-item-".concat(t))}))})},W=n(13),I=n(14),V=I.a.div(T||(T=Object(W.a)(["\n color: #1d1d1d;\n"]))),A=I.a.table(M||(M=Object(W.a)(["\n width: 100%;\n background-color: #1d1d1d;\n color: #fff;\n border-radius: 11px;\n overflow: hidden;\n"]))),B=I.a.tr(D||(D=Object(W.a)(["\n display: flex;\n background-color: ",";\n"])),(function(e){return e.index%2?"#1d1d1d":"#1d3557"})),P=I.a.td(H||(H=Object(W.a)(["\n flex: 1;\n padding: 20px;\n"])));var G,U,J,X,$,q=function(e){var t=e.CodeListVal;return Object(w.jsx)(V,{children:Object(w.jsx)(A,{children:t.map((function(e,t){return Object(w.jsx)("div",{children:Object(w.jsxs)(B,{index:t,children:[Object(w.jsx)(P,{children:e.title}),Object(w.jsx)(P,{children:e.level})]})})}))})})},K=n(63);var Q=I.a.div(G||(G=Object(W.a)(["\n color: #1d1d1d;\n"]))),Y=I.a.table(U||(U=Object(W.a)(["\n width: 100%;\n background-color: #1d1d1d;\n color: #fff;\n border-radius: 11px;\n overflow: hidden;\n"]))),Z=I.a.tr(J||(J=Object(W.a)(["\n display: flex;\n align-items: center;\n background-color: ",";\n"])),(function(e){return e.index%2?"#1d1d1d":"#1d3557"})),ee=I.a.td(X||(X=Object(W.a)(["\n flex: 1;\n padding: 20px;\n"]))),te=I.a.div($||($=Object(W.a)(["\n margin-left: 10px;\n"])));var ne=function(e){var t=e.HobbyListVal;return Object(w.jsx)(Q,{children:Object(w.jsx)(Y,{children:t.map((function(e,t){return Object(w.jsxs)(Z,{index:t,children:[Object(w.jsx)(te,{className:"hobbyIcon",children:(n=e.hobbyIcon,a="30px","FaPuzzlePiece"===n?Object(w.jsx)(g.g,{color:"#fff",size:a}):"MdComputer"===n?Object(w.jsx)(K.b,{color:"#fff",size:a}):"FaDumbbell"===n?Object(w.jsx)(g.b,{color:"#fff",size:a}):"MdCardTravel"===n?Object(w.jsx)(K.a,{color:"#fff",size:a}):"FaNetworkWired"===n?Object(w.jsx)(g.f,{color:"#fff",size:a}):"FaGuitar"===n?Object(w.jsx)(g.d,{color:"#fff",size:a}):void 0)}),Object(w.jsx)(ee,{children:e.title})]});var n,a}))})})},ae=n(64),ce=(n(141),n(91));var re,ie,se,oe,le,de=function(e){var t=e.EducationObj;return Object(w.jsx)(ae.VerticalTimeline,{className:"VerticalTimeline",children:t.map((function(e,t){return Object(w.jsxs)(ae.VerticalTimelineElement,{className:"vertical-timeline-element--work",contentStyle:{background:e.color,color:e.text},contentArrowStyle:{borderRight:"7px solid "+e.color},date:e.duration,iconStyle:{background:"rgb(33, 150, 243)",color:"#fff"},icon:Object(w.jsx)(ce.a,{}),children:[Object(w.jsx)("h2",{className:"vertical-timeline-element-title",children:e.title}),Object(w.jsx)("h5",{className:"vertical-timeline-element-subtitle",children:e.location_city}),Object(w.jsx)("h6",{className:"vertical-timeline-element-subtitle",children:e.location_state}),Object(w.jsx)("h6",{className:"vertical-timeline-element-subtitle",children:e.location_country}),Object(w.jsx)("p",{children:e.description}),Object(w.jsx)("p",{children:e.sec_details})]})}))})},je=n(65),be=n(186),ue=n(193),xe=I.a.div(re||(re=Object(W.a)(["\n display: flex;\n flex-direction: column;\n min-height: 50vh;\n padding: 5px;\n"]))),he=I.a.div(ie||(ie=Object(W.a)(["\n display: flex;\n width: 100%;\n"]))),Oe=I.a.a(se||(se=Object(W.a)(["\n display: block;\n color: inherit;\n text-decoration: none;\n &:hover {\n color: inherit;\n text-decoration: none;\n }\n"]))),fe=I.a.div(oe||(oe=Object(W.a)(["\n flex: 1;\n text-align: center;\n margin-bottom: 20px;\n padding: 20px;\n background-color: #ebf2fa;\n border-radius: 11px;\n cursor: pointer;\n vertical-align: middle;\n background: #d6249f;\n ","\n box-shadow: 0px 3px 10px rgba(0,0,0,.25);\n color: #fff;\n & svg {\n flex: 1;\n height: 50px;\n }\n"])),(function(e){return"instagram"===e.label?"background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);":"github"===e.label?"background: linear-gradient(to top, #7dbbe6 0%,#00acee 100%); margin-right: 20px;":"linkedin"===e.label?"background: linear-gradient(to top, #0e76a8 0%,#00acee 100%);":void 0})),pe=I.a.div(le||(le=Object(W.a)(["\n margin-top: 15px;\n"])));var me=function(e){return e.SocialModalObj,Object(w.jsx)(xe,{children:Object(w.jsxs)(x.a,{children:[Object(w.jsxs)(he,{children:[Object(w.jsxs)(fe,{label:"github",children:[Object(w.jsx)(je.a,{size:35}),Object(w.jsx)(Oe,{href:"https://github.com/adiXcodr",target:"_blank",children:"@adiXcodr"})]}),Object(w.jsxs)(fe,{label:"linkedin",children:[Object(w.jsx)(je.b,{size:35}),Object(w.jsx)(Oe,{href:"https://www.linkedin.com/in/adittyadey/",target:"_blank",children:"@adittyadey"})]})]}),Object(w.jsx)(be.a,{className:"mb-3",children:Object(w.jsx)(ue.a,{placeholder:"Full name","aria-label":"Name","aria-describedby":"basic-addon1"})}),Object(w.jsx)(be.a,{className:"mb-3",children:Object(w.jsx)(ue.a,{placeholder:"Email address","aria-label":"Email","aria-describedby":"basic-addon1"})}),Object(w.jsx)(be.a,{children:Object(w.jsx)(ue.a,{as:"textarea","aria-label":"With textarea",placeholder:"Write some description",style:{resize:"none",height:100}})}),Object(w.jsx)(pe,{children:Object(w.jsx)(m.a,{variant:"outline-secondary",className:"float-right",children:"Submit"})})]})})};var ge=function(e){var t=e.WorkExpObj;return Object(w.jsx)("div",{children:t.map((function(e,t){return Object(w.jsx)("span",{className:"project_list_item_link",children:Object(w.jsxs)("div",{style:{background:"linear-gradient(120deg,#11998e,#38ef7d)"},className:"project_list_item",children:[Object.keys(e.stack).map((function(t,n){return Object(w.jsx)(L.a,{pill:!0,variant:"primary",className:"chip",children:e.stack[t]})})),Object(w.jsx)("p",{style:{marginTop:10,fontSize:20,fontWeight:"bold"},children:e.title}),Object(w.jsx)("p",{children:e.description}),Object(w.jsx)("p",{children:"".concat(e.duration," - ").concat(e.location)})]})},"project-list-item-".concat(t))}))})};var ve=function(e){var t,n,a=e.lgShow,c=e.setLgShow,r=e.HomeCards;return Object(w.jsxs)(y.a,{size:"lg",show:a,onHide:function(){return c(!1)},"aria-labelledby":"example-modal-sizes-title-lg",children:[Object(w.jsx)(y.a.Header,{closeButton:!0,children:Object(w.jsx)(y.a.Title,{id:"example-modal-sizes-title-lg",children:r.title})}),Object(w.jsx)(y.a.Body,{children:(t=r.title,n=r.value,"Projects"===t?Object(w.jsx)(F,{ProjectListVal:n}):"Coding"===t?Object(w.jsx)(q,{CodeListVal:n}):"Hobbies & Interest"===t?Object(w.jsx)(ne,{HobbyListVal:n}):"Education"===t?Object(w.jsx)(de,{EducationObj:n}):"Contact"===t?Object(w.jsx)(me,{SocialModalObj:n}):"Work Experience"===t?Object(w.jsx)(ge,{WorkExpObj:n}):void 0)})]})};var ye=function(e){var t,n,c=e.HomeCards,r=Object(a.useState)(!1),i=Object(d.a)(r,2),s=i[0],o=i[1];return Object(w.jsxs)(w.Fragment,{children:[Object(w.jsx)(O.a,{className:"ColStyle",xs:6,md:4,style:{zIndex:1e3},children:Object(w.jsx)("div",{className:"innerCol",children:Object(w.jsx)("span",{onClick:function(){return o(!0)},className:"projectLink",children:Object(w.jsxs)("div",{style:{background:"linear-gradient(120deg,"+c.initialColor+","+c.finalColor+")"},className:"innerColImg",children:[Object(w.jsx)("p",{className:"projectTitle",children:c.title}),Object(w.jsx)("div",{className:"iconHolder",children:(t=c.icon,n="50px","FaGuitar"===t?Object(w.jsx)(g.d,{color:"#fff",size:n}):"GiBookshelf"===t?Object(w.jsx)(z.a,{color:"#fff",size:n}):"GiThorHammer"===t?Object(w.jsx)(z.b,{color:"#fff",size:n}):"DiJavascript1"===t?Object(w.jsx)(_.a,{color:"#fff",size:n}):"GoRepo"===t?Object(w.jsx)(R.a,{color:"#fff",size:n}):"TiSocialAtCircular"===t?Object(w.jsx)(E.a,{color:"#fff",size:n}):void 0)})]})})})}),Object(w.jsx)(ve,{lgShow:s,setLgShow:o,HomeCards:c})]})},ke=n(95),we=n.n(ke);var Ne=function(){return Object(w.jsx)("div",{className:"leftText",children:Object(w.jsxs)("div",{className:"flex-fix",children:[Object(w.jsx)("h2",{children:"Hi, "}),Object(w.jsx)("span",{className:"preTitle",children:"I am "}),Object(w.jsx)("h1",{className:"name_big",children:"Adittya Dey"}),Object(w.jsx)("p",{className:"animated_text",children:Object(w.jsx)(we.a,{strings:["Developer.","CSE Undergrad.","Leader.","Musician."],typeSpeed:40,backSpeed:50,loop:!0})})]})})},Se=n(50),Ce=Object(Se.a)((function(){return n.e(2).then(n.t.bind(null,485,7))}));var ze=function(){return Object(w.jsxs)(O.a,{md:!0,className:"LeftSec",children:[Object(w.jsx)(Ce,{className:"particlejs",params:{particles:{number:{value:50},size:{value:2}},interactivity:{events:{onhover:{enable:!0,mode:"grab"}}}}}),Object(w.jsx)(Ne,{})]})},_e=n(35),Re=Object(Se.a)((function(){return n.e(4).then(n.bind(null,484))}));var Ee=[{path:"/",component:function(e){e.name;var t=Object(_e.c)((function(e){return e.users.userData}));return Object(w.jsxs)("div",{children:[Object(w.jsx)(C,{}),Object(w.jsx)(x.a,{className:"innerContainer",fluid:!0,children:Object(w.jsxs)(h.a,{className:"mainRow",children:[Object(w.jsx)(ze,{}),Object(w.jsx)(O.a,{lg:!0,className:"cols",children:Object(w.jsxs)(h.a,{className:"RightSec",children:[Object(w.jsx)(h.a,{className:"RightUpperSec",children:Object(w.jsxs)(O.a,{className:"RightUpperSecContent",children:[Object(w.jsx)("h2",{children:"About Me"}),Object(w.jsx)(Re,{})]})}),Object(w.jsx)(h.a,{className:"RightLowerSec",children:t.map((function(e,t){return Object(w.jsx)(ye,{HomeCards:e},t)}))})]})})]})})]})},exact:!0},{path:"/projects",component:F},{path:"/projects/:project_id",component:function(e){var t=Object(_e.c)((function(e){return e.users.userData})),n=e.match.params.project_id,a=t.find((function(e){return"Projects"===e.title})),r=(null===a||void 0===a?void 0:a.value)?a.value.find((function(e){return e.id===n})):{};return Object(w.jsxs)(w.Fragment,{children:[Object(w.jsx)(C,{}),Object(w.jsx)(x.a,{className:"innerContainer",fluid:!0,children:Object(w.jsx)(h.a,{style:{marginTop:30},children:Object(w.jsx)(O.a,{children:Object.entries(r).map((function(e,t){var n=Object(d.a)(e,2),a=n[0],r=n[1];return Object(w.jsxs)(c.a.Fragment,{children:[Object(w.jsx)("h4",{children:a}),r]},"project-info-element-".concat(t))}))})})})]})}}];function Le(){return Object(w.jsx)(b.a,{children:Object(w.jsx)(u.c,{children:Ee.map((function(e,t){return Object(w.jsx)(u.a,Object(j.a)({},e),t)}))})})}var Te=n(97),Me=n(43),De=n(51),He=n.n(De),Fe=(n(160),n(191)),We=(n(161),function(){var e="undefined"!==typeof window.orientation,t=Object(a.useState)(Object(Fe.a)()),n=Object(d.a)(t,2),c=n[0];n[1];Object(a.useEffect)((function(){if(Object(Me.addResponseMessage)("Welcome to Adittya's Portfolio, feel free to reach out to his personal number"),Object(Me.addResponseMessage)("How may I help you?"),e){var t=document.getElementsByClassName("rcw-launcher");if(t&&t.length>0){var n,a=Object(Te.a)(t);try{for(a.s();!(n=a.n()).done;){n.value.addEventListener("click",(function(){return window.scrollTo({top:0,left:0,behavior:"smooth"})}))}}catch(c){a.e(c)}finally{a.f()}}}}),[]);var r=function(){var e=Object(l.a)(o.a.mark((function e(t){var n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=String(c),e.next=4,He.a.get("".concat(S,"/chatbot/getResponse"),{params:{message:t,sessionID:n}});case 4:return a=e.sent,console.log("Response is",a.data),e.abrupt("return",a.data);case 9:return e.prev=9,e.t0=e.catch(0),console.log("AI Response Error",e.t0),e.abrupt("return","Sorry, could not understand you");case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),i=function(){var e=Object(l.a)(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New message incoming! ".concat(t)),e.next=3,r(t);case 3:n=e.sent,Object(Me.addResponseMessage)(n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(w.jsx)("div",{id:"widgetMain",children:Object(w.jsx)(Me.Widget,{handleNewUserMessage:i,profileAvatar:v,title:"Adittya Dey",subtitle:"(+91) 7896186169"})})}),Ie=n(98),Ve=n.n(Ie),Ae=function(){var e=Object(_e.b)(),t=Object(a.useState)(!1),n=Object(d.a)(t,2),c=n[0],r=n[1],i=function(){var t=Object(l.a)(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,He.a.get("".concat(S,"/userData"));case 3:if(200!=(n=t.sent).status){t.next=8;break}return t.next=7,e({type:"SET_USER",payload:n.data});case 7:r(!0);case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.log("Could Not Load Server");case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(){return t.apply(this,arguments)}}();return Object(a.useEffect)((function(){i()}),[]),c?Object(w.jsxs)("div",{children:[Object(w.jsx)(Le,{}),Object(w.jsx)(We,{})]}):Object(w.jsx)("div",{style:{display:"flex",alignContent:"center",justifyContent:"center",alignItems:"center",marginTop:200},children:Object(w.jsx)(Ve.a,{type:"TailSpin",color:"#00BFFF",height:100,width:100})})};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Be=n(69),Pe={userData:null};var Ge=Object(Be.a)({users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"GET_USER":return e.userData;case"SET_USER":return Object(j.a)(Object(j.a)({},e),{},{userData:t.payload});default:return e}}}),Ue=Object(Be.b)(Ge);i.a.render(Object(w.jsx)(c.a.StrictMode,{children:Object(w.jsx)(_e.a,{store:Ue,children:Object(w.jsx)(Ae,{})})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))},76:function(e,t){}},[[180,1,3]]]); //# sourceMappingURL=main.b720294b.chunk.js.map