1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8739],{982:(e,a,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/profile",function(){return l(877)}])},6578:(e,a,l)=>{"use strict";l.d(a,{Ay:()=>u,YB:()=>c,ZB:()=>d,hF:()=>i,l6:()=>h});var s=l(4848),t=l(2491),n=l(5729),r=l(3816),o=l(5418);let i=function(e,a){var l,s,t;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=Object.assign({},a),d=null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value;return(null==e?void 0:null===(s=e.target)||void 0===s?void 0:s.type)=="checkbox"&&(d=null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.checked),o?(i[r][o]=d,n(i)):r?(i[r]=d,n(i)):a(d),!1},d=i,c=e=>{let{label:a,value:l,onChange:n}=e;return(0,s.jsx)(t.A,{className:"mt-12 smallinput",fullWidth:!0,label:a,variant:"filled",value:l,onChange:e=>n(e)})},u=e=>{let{label:a,value:l,onChange:n}=e;return(0,s.jsx)(t.A,{className:"mt-12 milliinput",label:a,variant:"filled",value:l,onChange:e=>n(e)})};function h(e){let{options:a,value:l,onChange:t}=e;return(0,s.jsx)(n.A,{value:l,onChange:e=>t(e),children:a.map(e=>(0,s.jsx)(r.A,{value:e.value,control:(0,s.jsx)(o.A,{}),label:e.label}))})}},8874:(e,a,l)=>{"use strict";l.d(a,{$W:()=>i,Bq:()=>m,DT:()=>g,F4:()=>u,QV:()=>C,Sk:()=>b,WJ:()=>v,bg:()=>h,ej:()=>y,ki:()=>j,n4:()=>x,nW:()=>d,rX:()=>c,w4:()=>f,wx:()=>p});var s=l(6540),t=l(4335),n=l(8465),r=l.n(n),o=l(8122);let i={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},d=e=>{(0,s.useEffect)(()=>{let a=document.createElement("script");return a.src=e,a.async=!0,document.body.appendChild(a),()=>{document.body.removeChild(a)}},[e])},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[a,l]=(0,s.useState)("");return(0,s.useEffect)(()=>
1{l(localStorage[e]||"")},[]),a},u=e=>{e&&(e.preventDefault(),e.stopPropagation())},h=()=>{"admin"!=localStorage.type&&(window.location.href="/")},m=e=>e.replace(/(^[,\s]+)|([,\s]+$)/g,""),g=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase()),x=e=>{let a=e.slice(0,12).replace(/\D/g,""),l=a.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return l&&(a="".concat(l[1]).concat(l[2]?" ":"").concat(l[2]).concat(l[3]?"-":"").concat(l[3])),a},v=e=>{var a=document.createElement("textarea");a.value=e,a.style.top="0",a.style.left="0",a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(a)},j=e=>{t.A.post("/api/mail",e)},p=e=>e;function b(e){return new Promise((a,l)=>{let s=new FileReader;s.onloadend=()=>a(s.result),s.readAsDataURL(e)})}async function f(e){try{return await (0,o.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let y=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,C=(e,a)=>{r().fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, delete it!"}).then(a=>{a.isConfirmed&&(e(),r().fire("Deleted!","Successfully deleted.","success"))})}},3172:(e,a,l)=>{"use strict";l.d(a,{A:()=>c});var s=l(8168),t=l(45),n=l(6540),r=l(53),o=l(138);let i=(0,l(8014).A)(n.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var d=n.forwardRef(function(e,a){var l,o,d,c,u,h,m=e.alt,g=e.children,x=e.classes,v=e.className,j=e.component,p=e.imgProps,b=e.sizes,f=e.src,y=e.srcSet,C=e.variant,S=(0,t.A)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),A=null,N=(o=(l={src:f,srcSet:y}).src,d=l.srcSet,u=(c=n.useState(!1))[0],h=c[1],n.useEffect(function(){if(o||d){h(!1);var e=!0,a=new Image;return a.src=o,a.srcSet=d,a.onload=function(){e&&h("loaded")},a.onerror=function(){e&&h("error")},function(){e=!1}}},[o,d]),u),w=f||y,F=w&&"error"!==N;return A=F?n.createElement("img",(0,s.A)({alt:m,src:f,srcSet:y,sizes:b,className:x.img},p)):null!=g?g:w&&m?m[0]:n.createElement(i,{className:x.fallback}),n.createElement(void 0===j?"div":j,(0,s.A)({className:(0,r.A)(x.root,x.system,x[void 0===C?"circular":C],v,!F&&x.colorDefault),ref:a},S),A)});let c=(0,o.A)(function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}},{name:"MuiAvatar"})(d)},7828:(e,a,l)=>{"use strict";var s=l(4994),t=l(6305);a.A=void 0;var n=t(l(6540)),r=(0,s(l(1383)).default)(n.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");a.A=r},3261:(e,a,l)=>{"use strict";l.d(a,{A:()=>v});var s=l(4848),t=l(6540),n=l(5556),r=l.n(n),o=l(6715),i=l(6752),d=l(4968),c=l(9998),u=l(3422),h=l(4335),m=l(8874);function g(){let e=(0,o.useRouter)(),[a,l]=(0,t.useState)(0),[n,r]=(0,t.useState)(null),[g,x]=(0,t.useState)(null),v=(0,m.rX)("userImage"),j=(0,m.rX)("type")||"user",p=(0,m.rX)("lastPage");return(0,t.useEffect)(()=>{localStorage.org&&r(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,m.bg)(),(async()=>{h.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var a;l(null===(a=e.data)||void 0===a?void 0:a.length)}})})())},[]),(0,s.jsxs)("header",{children:[(0,s.jsxs)("div",{className:"nav thin",children:[(0,s.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,s.jsx)("div",{className:"nav-header",children:(0,s.jsx)("div",{className:"nav-title",children:(0,s.jsx)("a",{href:"/user/home",children:(0,s.jsx)("img",{className:"logo",alt:"",src:(0,m.wx)(n)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,s.jsx)("div",{className:"nav-btn",children:(0,s.jsxs)("label",{htmlFor:"nav-check",children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})}),(0,s.jsxs)("div",{className:"nav-links",children:[(0,s.jsx)("a",{href:"/user/home",children:"Home"}),(0,s.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==j||"admin"==j)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,s.jsx)("a",{href:"/user/import",children:"Import"}),(0,s.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==j&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,s.jsx)("a",{href:"/admin/notification",children:(0,s.jsx)(i.A,{badgeContent:a,color:"primary",children:(0,s.jsx)(u.A,{})})})]}),"user"==j&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("a",{href:"/page/donate?id="+p,children:"GIVE"})}),(0,s.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>x(e.currentTarget),children:(0,s.jsx)("img",{alt:"User",src:(0,m.wx)(v)||"/img/user.jpg",onError:e=>{"/img/user.jpg"!=e.target.src&&(e.target.src="/img/user.jpg")},className:"img-fluid img-fit border-circle nav-avatar"})})]})]}),(0,s.jsxs)(d.A,{id:"headerMenu",anchorEl:g,open:!!g,onClose:()=>x(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,s.jsx)(c.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,s.jsx)(c.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function x(){let e=(0,m.rX)("type");return(0,s.jsxs)("footer",{className:"thin",children:[(0,s.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,s.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,s.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,s.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,s.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,s.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}function v(e){let{header:a,footer:l,children:n,className:r,background:i,Component:d,pageProps:c}=e,u=(0,o.useRouter)();return(0,t.useEffect)(()=>{let e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e)},[]),(0,t.useEffect)(()=>{u&&u.pathname&&(-1!=u.pathname.indexOf("user")||-1!=u.pathname.indexOf("admin"))&&!localStorage.userid&&u.push("/")},[u]),(0,s.jsxs)("main",{className:"loggedinLayout "+r,children:[a&&(0,s.jsx)(g,{}),(0,s.jsx)(d,{...c}),n&&(0,s.jsx)("section",{children:n}),l&&(0,s.jsx)(x,{}),(0,s.jsx)("style",{children:i?"\n main{\n background:#3D652A url('".concat(i,"') no-repeat center center;\n background-size:cover;\n }\n "):a?"main{background:#F9F9FB;}":""})]})}
1v.propTypes={Component:r().func.isRequired}},877:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>f});var s=l(4848),t=l(6540),n=l(6715),r=l(3261),o=l(8874),i=l(6578),d=l(4505),c=l(2491),u=l(5026),h=l(7828),m=l(6752),g=l(3172),x=l(1339),v=l(1896),j=l(9976);let p=l(6425);function b(){var e,a,l,r,b,f,S,A,N,w,F,B,k,E,P,z,Y,D;let[L,R]=(0,t.useState)(!1),I=(0,o.rX)("userid"),[Z,O]=(0,t.useState)(""),[U,_]=(0,t.useState)(""),[M,T]=(0,t.useState)(""),[G,W]=(0,t.useState)(""),[X,$]=(0,t.useState)(""),[q,V]=(0,t.useState)(""),[H,J]=(0,t.useState)(""),[Q,K]=(0,t.useState)({short:"",preferred:"home",home:{line1:"",line2:"",city:"",state:"",zipcode:"",country:""},business:{line1:"",line2:"",city:"",state:"",zipcode:"",country:""},seasonal:{line1:"",line2:"",city:"",state:"",zipcode:"",country:""}}),[ee,ea]=(0,t.useState)(""),[el,es]=(0,t.useState)(""),[et,en]=(0,t.useState)(""),[er,eo]=(0,t.useState)(""),[ei,ed]=(0,t.useState)(""),[ec,eu]=(0,t.useState)({undergrad:{title:"",year:""},postgrad:{title:"",year:""},doctorate:{title:"",year:""}}),[eh,em]=(0,t.useState)(null),[eg,ex]=(0,t.useState)(null),[ev,ej]=(0,t.useState)(!1),[ep,eb]=(0,t.useState)(!1),[ef,ey]=(0,t.useState)(0),[eC,eS]=(0,t.useState)(0),[eA,eN]=(0,t.useState)(0),[ew,eF]=(0,t.useState)("N/A"),[eB,ek]=(0,t.useState)(0),[eE,eP]=(0,t.useState)(0),ez=(0,n.useRouter)();(0,t.useEffect)(()=>{let e=(e=>{let{line1:a,line2:l,city:s,state:t,country:n}=e;return(0,o.Bq)(a+", "+l+", "+s+", "+t+", "+n)})(Q[Q.preferred||"home"]||{});localStorage.address=e;let a=Object.assign({},Q);a.short=e,e&&e!=Q.short&&K(a)},[Q]),(0,t.useEffect)(()=>{O(localStorage.name),ed(localStorage.type),$(localStorage.email),V(localStorage.businessemail),J(localStorage.phone),localStorage.address&&(0,i.hF)(localStorage.address,Q,K,"short"),em(localStorage.userImage),p.post("/api/User",{action:"userDetail",userid:localStorage.userid}).then(e=>{O(e.data.name||""),T(e.data.firstname||""),W(e.data.lastname||""),J(e.data.phone||""),$(e.data.email||""),V(e.data.businessemail||""),e.data.address&&K(e.data.address),e.data.education&&eu(e.data.education),es(e.data.position||""),ea(e.data.employer||""),en(e.data.linkedInURL||""),eo(e.data.relationships||"")}),p.post("/api/Donation",{action:"list",userId:localStorage.userid,type:localStorage.type}).then(e=>{if(e&&e.data){var a,l,s,t,n,r,o,i,d,c;ey((null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.totalDonationsVar)||0),eN((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(s=t[0])||void 0===s?void 0:s.totalDonationAmountVar)||0),eP(null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:n.largestDonation),eS((null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(o=i[0])||void 0===o?void 0:o.totalPledgesVar)||0),ek((null===(d=e.data[e.data.length-1])||void 0===d?void 0:d.amount)||0),eF((null===(c=e.data[e.data.length-1])||void 0===c?void 0:c.creationDate)||"N/A")}})},[]);let eY=async()=>{await p.post("/api/User",{action:"editProfile",userid:I,name:M+" "+G,firstname:M,lastname:G,phone:H,email:X,businessemail:q,address:Q,education:ec,position:el,employer:ee,linkedInURL:et,relationships:er})&&(localStorage.name=M+" "+G,localStorage.firstname=M,localStorage.phone=H,localStorage.email=X,R(!1),d.Ay.success("Profile Saved !")),await p.post("/api/Donation",{totalDonations:ef,totalDonationAmount:eA})&&(localStorage.totalDonations=ef,localStorage.totalDonationAmount=eA)},eD=async e=>{if("clear"==e)em(null);else if(!eg)return;let a=new FormData,l={action:"userImage",userid:I,userImage:"clear"==e?null:eh};if(eg){let e=await (0,o.w4)(eg),a=await (0,o.Sk)(e);l.userImage=a}a.append("data",JSON.stringify(l)),p.post("/api/Image",a,{headers:{"content-type":"multipart/form-data"}}).then(e=>{em(e.data),localStorage.userImage=e.data,ex(null)})},eL=(0,o.Bq)(ec.undergrad.title+" "+ec.undergrad.year+", "+ec.postgrad.title+" "+ec.postgrad.year+", "+ec.doctorate.title+" "+ec.doctorate.year);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"boxing flex flex-row gap-50",children:[(0,s.jsx)("div",{className:"text-center mt-36 flex-col1",children:(0,s.jsx)("h1",{children:"My Profile"})}),(0,s.jsxs)("div",{className:"card2 card-profile flex-col5",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(m.A,{overlap:"circle",color:"primary",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:(0,s.jsx)(h.A,{style:{width:13}}),className:"clickable",onClick:()=>{ej(!0)},children:(0,s.jsx)(g.A,{alt:Z,src:eg?URL.createObjectURL(eg):eh?(0,o.wx)(eh):"/img/user.jpg",className:"img-fluid img-fit border-circle",style:{width:200,height:200}})})}),(0,s.jsxs)(x.A,{open:ev,onClose:()=>{ej(!1)},"aria-labelledby":"form-dialog-title",children:[(0,s.jsx)(v.A,{id:"form-dialog-title",children:"Edit Image"}),(0,s.jsxs)(j.A,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("input",{type:"file",onChange:e=>{ex(e.target.files[0])}}),(eh||eg)&&(0,s.jsx)(u.A,{variant:"contained",size:"small",className:"btn-danger",onClick:()=>{em(null),ex(null)},children:"Clear"})]}),eg&&(0,s.jsx)(u.A,{variant:"contained",size:"small",color:"primary",onClick:()=>{eD()},children:"Upload Image"}),eh&&(0,s.jsx)(u.A,{variant:"contained",size:"small",className:"btn-danger",onClick:()=>{eD("clear"),ej(!1)},children:"Remove Image"})]})]}),(0,s.jsxs)(x.A,{open:ep,onClose:()=>eb(!1),children:[(0,s.jsx)(v.A,{children:"Change Password"}),(0,s.jsxs)(j.A,{className:"block",children:[(0,s.jsx)(c.A,{label:"Enter New Password",value:U,onChange:e=>_(e.target.value)})," ",(0,s.jsx)("br",{})," ",(0,s.jsx)("br",{}),(0,s.jsx)(u.A,{onClick:()=>eb(!1),children:"Cancel"}),(0,s.jsx)(u.A,{variant:"contained",onClick:()=>{p.post("/api/User",{action:"changePassword",userid:localStorage.userid,newPassword:U}).then(()=>{d.Ay.success("Password changed !"),eb(!1)})},children:"Confirm Changes"})]})]}),(0,s.jsxs)("div",{className:"text-center namefont mt-24",children:[Z," "]}),(0,s.jsx)("div",{className:"milli text-center mt-8",children:(0,s.jsx)("b",{children:eL})})," ",(0,s.jsx)("br",{}),(0,s.jsxs)("div",{style:{padding:"10px 40px"},children:[(0,s.jsxs)("small",{children:["Total Donations: ",ef]}),(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Total Pledges: ",eC]}),(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Total Amount Donated: $",(0,o.ej)(eA)]}),(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Largest Gift: $",(0,o.ej)(eE)]}),(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Last Gift Amount: $",(0,o.ej)(eB)]}),(0,s.jsx)("br",{}),(0,s.jsxs)("small",{children:["Last Gift Date: ",ew]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"text-center",children:["org"==ei&&(0,s.jsx)("button",{className:"button-01",href:"/user/orgprofile",onClick:()=>{ez.push("/user/orgprofile")},children:"Company"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("button",{className:"button-grey mb-10",href:"/",onClick:()=>{eb(!0)},children:"Change Password"}),(0,s.jsx)(C,{})]})]})]}),(0,s.jsx)("div",{className:"card2 card-profileedit flex-col2",children:L?(0,s.jsxs)("div",{id:"editProfileForm",children:[(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"About"}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"First Name",value:M,onChange:e=>(0,i.ZB)(e,T)}),(0,s.jsx)(i.YB,{label:"Last Name",value:G,onChange:e=>(0,i.ZB)(e,W)})]}),(0,s.jsx)("div",{className:"flexcontainer spacebtw",children:(0,s.jsx)(i.YB,{label:"Phone Number",value:H,onChange:e=>(0,i.ZB)(e,J)})})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Email Address"}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Personal Email",value:X,onChange:e=>(0,i.ZB)(e,$)}),(0,s.jsx)(i.YB,{label:"Business Email",value:q,onChange:e=>(0,i.ZB)(e,V)})]})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Preferred Address"}),(0,s.jsx)("div",{className:"flexcontainer spacebtw",children:(0,s.jsx)(i.l6,{value:Q.preferred,onChange:e=>(0,i.hF)(e,Q,K,"preferred"),options:[{label:"Home Address",value:"home"},{label:"Seasonal Address",value:"seasonal"},{label:"Business Address",value:"business"}]})})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Home Address"}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Address Line 1",value:null==Q?void 0:null===(e=Q.home)||void 0===e?void 0:e.line1,onChange:e=>(0,i.hF)(e,Q,K,"home","line1")}
1),(0,s.jsx)(i.YB,{label:"Address Line 2",value:null==Q?void 0:null===(a=Q.home)||void 0===a?void 0:a.line2,onChange:e=>(0,i.hF)(e,Q,K,"home","line2")})]}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.Ay,{label:"City",value:null==Q?void 0:null===(l=Q.home)||void 0===l?void 0:l.city,onChange:e=>(0,i.hF)(e,Q,K,"home","city")}),(0,s.jsx)(i.Ay,{label:"State",value:null==Q?void 0:null===(r=Q.home)||void 0===r?void 0:r.state,onChange:e=>(0,i.hF)(e,Q,K,"home","state")}),(0,s.jsx)(i.Ay,{label:"Country",value:null==Q?void 0:null===(b=Q.home)||void 0===b?void 0:b.country,onChange:e=>(0,i.hF)(e,Q,K,"home","country")}),(0,s.jsx)(i.Ay,{label:"Zipcode",value:null==Q?void 0:null===(f=Q.home)||void 0===f?void 0:f.zipcode,onChange:e=>(0,i.hF)(e,Q,K,"home","zipcode")})]})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Seasonal Address"}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Address Line 1",value:null==Q?void 0:null===(S=Q.seasonal)||void 0===S?void 0:S.line1,onChange:e=>(0,i.hF)(e,Q,K,"seasonal","line1")}
1),(0,s.jsx)(i.YB,{label:"Address Line 2",value:null==Q?void 0:null===(A=Q.seasonal)||void 0===A?void 0:A.line2,onChange:e=>(0,i.hF)(e,Q,K,"seasonal","line2")})]}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.Ay,{label:"City",value:null==Q?void 0:null===(N=Q.seasonal)||void 0===N?void 0:N.city,onChange:e=>(0,i.hF)(e,Q,K,"seasonal","city")}),(0,s.jsx)(i.Ay,{label:"State",value:null==Q?void 0:null===(w=Q.seasonal)||void 0===w?void 0:w.state,onChange:e=>(0,i.hF)(e,Q,K,"seasonal","state")}),(0,s.jsx)(i.Ay,{label:"Country",value:null==Q?void 0:null===(F=Q.seasonal)||void 0===F?void 0:F.country,onChange:e=>(0,i.hF)(e,Q,K,"seasonal","country")}),(0,s.jsx)(i.Ay,{label:"Zipcode",value:null==Q?void 0:null===(B=Q.seasonal)||void 0===B?void 0:B.zipcode,onChange:e=>(0,i.hF)(e,Q,K,"seasonal","zipcode")})]})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Business Address"}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Address Line 1",value:null==Q?void 0:null===(k=Q.business)||void 0===k?void 0:k.line1,onChange:e=>(0,i.hF)(e,Q,K,"business","line1")}),(0,s.jsx)(i.YB,{label:"Address Line 2",value:null==Q?void 0:null===(E=Q.business)||void 0===E?void 0:E.line2,onChange:e=>(0,i.hF)(e,Q,K,"business","line2")})]}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.Ay,{label:"City",value:null==Q?void 0:null===(P=Q.business)||void 0===P?void 0:P.city,onChange:e=>(0,i.hF)(e,Q,K,"business","city")}),(0,s.jsx)(i.Ay,{label:"State",value:null==Q?void 0:null===(z=Q.business)||void 0===z?void 0:z.state,onChange:e=>(0,i.hF)(e,Q,K,"business","state")}),(0,s.jsx)(i.Ay,{label:"Country",value:null==Q?void 0:null===(Y=Q.business)||void 0===Y?void 0:Y.country,onChange:e=>(0,i.hF)(e,Q,K,"business","country")}),(0,s.jsx)(i.Ay,{label:"Zipcode",value:null==Q?void 0:null===(D=Q.business)||void 0===D?void 0:D.zipcode,onChange:e=>(0,i.hF)(e,Q,K,"business","zipcode")})]}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Employer",value:ee,onChange:e=>(0,i.ZB)(e,ea)}),(0,s.jsx)(i.YB,{label:"Position",value:el,onChange:e=>(0,i.ZB)(e,es)})]})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Education Details"}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Under Graduate",value:null==ec?void 0:ec.undergrad.title,onChange:e=>(0,i.hF)(e,ec,eu,"undergrad","title")}),(0,s.jsx)(i.YB,{label:"UG Completion Year",value:null==ec?void 0:ec.undergrad.year,onChange:e=>(0,i.hF)(e,ec,eu,"undergrad","year")})]}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Post Graduate",value:null==ec?void 0:ec.postgrad.title,onChange:e=>(0,i.hF)(e,ec,eu,"postgrad","title")}),(0,s.jsx)(i.YB,{label:"PG Completion Year",value:null==ec?void 0:ec.postgrad.year,onChange:e=>(0,i.hF)(e,ec,eu,"postgrad","year")})]}),(0,s.jsxs)("div",{className:"flexcontainer spacebtw",children:[(0,s.jsx)(i.YB,{label:"Doctorate",value:null==ec?void 0:ec.doctorate.title,onChange:e=>(0,i.hF)(e,ec,eu,"doctorate","title")}),(0,s.jsx)(i.YB,{label:"PhD Completion Year",value:null==ec?void 0:ec.doctorate.year,onChange:e=>(0,i.hF)(e,ec,eu,"doctorate","year")})]})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Connection"}),(0,s.jsx)("div",{className:"flexcontainer spacebtw",children:(0,s.jsx)(i.YB,{label:"LinkedIn URL",value:et,onChange:e=>(0,i.ZB)(e,en)})})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{children:"Personal Details"}),(0,s.jsx)("div",{className:"flexcontainer spacebtw",children:(0,s.jsx)(i.YB,{label:"Relationships",value:er,onChange:e=>(0,i.ZB)(e,eo)})})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"text-center ",children:[(0,s.jsx)("button",{className:"button-grey",onClick:()=>R(!1),children:"Cancel"})," ",(0,s.jsx)("button",{className:"button-01 ml-10",onClick:eY,children:"Save"})]}),(0,s.jsx)("br",{})]}):(0,s.jsxs)("div",{id:"showProfile",children:["Name: ",M," ",G," ",(0,s.jsx)("br",{}),Q.preferred," Address: ",Q.short,(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("button",{className:"button-grey mr-10",onClick:()=>R(!0),children:"Edit Profile"}),(0,s.jsx)(C,{})]})})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})}let f=()=>(0,s.jsx)(r.A,{Component:b,header:!0,footer:!0}),y=e=>{let{children:a}=e;return(0,s.jsx)("div",{className:"mt-24",style:{fontWeight:"500"},children:a})};function C(){let e=(0,n.useRouter)();return(0,s.jsx)("button",{className:"button-red",href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})}}},e=>{var a=a=>e(e.s=a);e.O(0,[3478,9906,8037,9736,6425,1021,1679,9830,1637,636,6593,8792],()=>a(982)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.