1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8764],{8764:function(e,s,r){r.r(s),r.d(s,{SidebarUserProfile:function(){return h}});var l=r(52322),t=r(12910),i=r(2784),a=r(90047),o=r(10495),n=r(57675),c=r(95207),d=r(57647),u=r.n(d),x=r(55934),m=r(75883);function h(e){var s,r,d,h,p,f,j,v,N;let[g,b]=(0,i.useState)({}),[y,w]=(0,i.useState)(!1),[C,k]=(0,i.useState)({personalInfo:e.isExpanded||!1,companyInfo:e.isExpanded||!1,source:e.isExpanded||!1}),I=e=>(s,r)=>{k({...C,[e]:r})},B=(null===(s=e.user)||void 0===s?void 0:s.userLinks)&&(0,c.Pb)(e.user.userLinks)?JSON.parse(e.user.userLinks):[];function S(){let s="";return e.user.city&&(s=e.user.city),e.user.state&&(""===s?s=e.user.state:s+=", "+e.user.state),e.user.country&&(""===s?s=e.user.country:s+=", "+e.user.country),s}return(0,i.useEffect)(()=>{if(!y){let s=new(u())(".btn");w(!0),s.on("success",()=>{}),s.on("error",()=>{let s="";if(s=""!==e.user.profileAlias?"".concat((0,x.$2)(),"/cp/")+e.user.profileAlias:"".concat((0,x.$2)(),"/cp/")+e.user.firstName+"."+e.user.lastName,navigator.clipboard&&navigator.clipboard.writeText(s).then(function(){a.Am.dismiss()}),!navigator.clipboard){let e=document.createElement("textarea");e.value=s,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),a.Am.dismiss()}catch(e){localStorage.setItem("error","Fallback: Oops, unable to copy")}document.body.removeChild(e);return}})}},[e.user.firstName,e.user.lastName,e.user.profileAlias,y]),(0,i.useEffect)(()=>{if(e.user&&e.user.userId)try{c.zk.get(t.R8+"/company/user?skip=0&limit=20&userId="+e.user.userId).then(function(e){let s=e.data.data.results[0];s?(s.logo&&""!==s.logo&&(s.logo=t.r$+s.companyId+"/logo/"+s.logo),b(s)):b({})})}catch(e){}},[e.user]),(0,l.jsxs)(o.xu,{position:"relative",className:"publicprofile-border-hide",children:[(0,l.jsx)("p",{className:"text-darkBlue text-lg font-medium leading-6 mb-3 connected-user sidebar-connected-user",children:"You + ".concat(e.connectedUser.firstName)}),(0,l.jsxs)("div",{children:[(0,l.jsxs)(o.xu,{mr:1.5,className:"flex mb-3 items-center",children:[(0,l.jsx)(n.S_,{userName:"".concat(e.user.firstName," ").concat(e.user.lastName),initials:(0,c.Ux)("".concat(null!==(j=e.user.firstName)&&void 0!==j?j:""," ").concat(null!==(v=e.user.lastName)&&void 0!==v?v:"")),avatarUrl:e.user.avatar?(0,c.ov)(e.user.userId,e.user.avatar):void 0}),(0,l.jsxs)(o.xu,{className:"ml-3",children:[(0,l.jsx)(o.ZT,{children:(0,c.Ed)(null==e?void 0:null===(r=e.user)||void 0===r?void 0:r.firstName,null==e?void 0:null===(d=e.user)||void 0===d?void 0:d.lastName,null==e?void 0:null===(h=e.user)||void 0===h?void 0:h.email)}),(0,l.jsx)(o.xu,{color:"grey.50",children:(0,l.jsx)(o.ZT,{title:e.user.headline,variant:"body2",gutterBottom:!0,color:"inherit",children:e.user.headline})})]})]}),(0,l.jsx)(o.xu,{className:"border-mui",borderColor:"primary.lightBorderColor",pb:2.5}),(0,l.jsxs)(o.xu,{className:"about-content",children:[(0,l.jsx)(o.xu,{color:"grey.1100",mb:.7,children:(0,l.jsxs)(o.ZT,{variant:"subtitle2",gutterBottom:!0,color:"inherit",children:["About ",e.user.firstName]})}),(0,l.jsx)(o.xu,{color:"grey.800",children:(0,l.jsx)(o.ZT,{variant:"body2",gutterBottom:!0,color:"inherit",children:null!==(N=e.user.bio)&&void 0!==N?N:(0,l.jsx)("span",{className:"text-gray50",children:"Not Added"})})})]}),e.user.profileAlias&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.xu,{className:"border-mui",borderColor:"primary.lightBorderColor",mt:2,pb:2.5}),(0,l.jsxs)(o.xu,{className:"about-content",children:[(0,l.jsx)(o.xu,{color:"grey.1100",mb:.7,children:(0,l.jsx)(o.ZT,{variant:"subtitle2",gutterBottom:!0,color:"inherit",className:"flex flex-row items-end gap-1",children:"Share ".concat("".concat(e.user.firstName,"'s")," profile link")})}),(0,l.jsxs)("div",{className:"mt-1 text-avatarPrimary flex flex-row align-bottom",children:[(0,l.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,l.jsx)("p",{className:"text-avatarPrimary underline overflow-hidden text-ellipsis",children:"".concat((0,x.$2)(),"/cp/")+e.user.profileAlias})}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"btn","data-clipboard-text":"".concat((0,x.$2)(),"/cp/")+e.user.profileAlias,onClick:()=>{a.Am.success("Copied to clipboard! Share this link with others so they can chat, schedule, meet, share content, sign etc. in a secure relationship workspace with ".concat(e.user.firstName,"."),{toastId:"profileLink",autoClose:5e3})},children:(0,l.jsx)("span",{style:{fontSize:20},className:"text-xs material-icons hover:bg-primaryLightBg p-1 rounded-full",children:"content_copy"})})})]})]})]}),B.map((e,s)=>(0,l.jsxs)(o.xu,{className:"about-content",mt:2,children:[(0,l.jsx)(o.xu,{color:"grey.1100",mb:.7,children:(0,l.jsx)(o.ZT,{variant:"subtitle2",gutterBottom:!0,color:"inherit",className:"flex flex-row items-end gap-1",children:e.title})}),(0,l.jsxs)("div",{className:"mt-1 text-avatarPrimary flex flex-row align-bottom",children:[(0,l.jsx)("div",{className:"flex-1 w-full overflow-hidden",children:(0,l.jsx)("p",{className:"text-avatarPrimary overflow-hidden truncate text-ellipsis",children:(0,l.jsx)("span",{onClick:()=>{window&&window.location&&e.url&&window.open(/^(http|https):/.test(e.url)?e.url:"http://"+e.url,"_blank")},className:"underline cursor-pointer",children:e.url})})}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"btn","data-clipboard-text":e.url,onClick:()=>{(0,c.vQ)(e.url||"",e.title+" link copied to clipboard.")},children:(0,l.jsx)("span",{style:{fontSize:20},className:"text-xs material-icons hover:bg-primaryLightBg p-1 rounded-full",children:"content_copy"})})})]})]},s)),(0,l.jsx)(o.xu,{className:"border-mui",borderColor:"primary.lightBorderColor",mt:2}),(0,l.jsxs)(o.UQ,{className:"cutsom-accordion",expanded:C.personalInfo,onChange:I("personalInfo"),children:[(0,l.jsx)(o._O,{expandIcon:(0,l.jsx)(o.hW,{color:"disabled",style:{fontSize:30},className:"hover:bg-primaryLightBg rounded-full"}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,l.jsx)(o.ZT,{children:"Personal Info"})}
1),(0,l.jsx)(o.rN,{className:"personal-info-public-profile",children:(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"grid grid-cols-12 items-center gap-1",children:[(0,l.jsx)("div",{className:"xl:col-span-4 col-span-5",children:(0,l.jsxs)(o.xu,{className:"inline-flex items-center",children:[(0,l.jsx)(o.xu,{className:"text-gray50 text-[18px] inline-block mr-[8px]",component:"span",children:(0,l.jsx)(m.Z,{})}),(0,l.jsx)("p",{className:"overflow-hidden text-ellipsis text-gray-800 font-medium",children:"Location:"})]})}),(0,l.jsxs)("div",{className:"xl:col-span-8 col-span-7",children:[""===S()&&(0,l.jsx)("p",{className:"text-gray50",children:"Not Added"}),""!==S()&&(0,l.jsx)("p",{className:"overflow-hidden text-ellipsis",children:S()})]})]})})})]}),g.companyId&&(0,l.jsxs)(o.xu,{children:[(0,l.jsx)(o.xu,{className:"border-mui",borderColor:"primary.lightBorderColor"}),(0,l.jsxs)(o.UQ,{className:"cutsom-accordion",expanded:C.companyInfo,onChange:I("companyInfo"),children:[(0,l.jsx)(o._O,{expandIcon:(0,l.jsx)(o.hW,{color:"disabled",style:{fontSize:30},className:"hover:bg-primaryLightBg rounded-full"}),"aria-controls":"panel2a-content",id:"panel2a-header",children:(0,l.jsx)(o.ZT,{children:"Company Info"})}),(0,l.jsx)(o.rN,{children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex flex-row gap-5",children:[g.logo&&void 0!==g.logo&&""!==g.logo&&(0,l.jsx)("div",{style:{width:"50px"},className:"relative",children:(0,l.jsx)("img",{src:g.logo,alt:"img"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-gray800 font-medium",children:g.name||""}),g.title&&(0,l.jsx)("div",{className:"mt-1 mb-1",children:(0,l.jsx)("p",{className:"text-gray50",children:g.title||""})})]})]}),g.description&&(null===(p=g.description)||void 0===p?void 0:p.length)!==0&&(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsxs)("p",{className:"font-medium text-sm",children:["About ",g.name]}),(0,l.jsx)("div",{className:"mt-1",children:(0,l.jsx)("p",{className:"text-xs font-small text-ellipsis overflow-hidden",children:g.description})})]}),g.website&&(null===(f=g.website)||void 0===f?void 0:f.length)!==0&&(0,l.jsxs)("div",{className:"grid grid-cols-12 mt-4",children:[(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsx)("span",{className:"material-icons-outlined text-gray50",style:{fontSize:21},children:"language"})}),(0,l.jsx)("div",{className:"col-span-3",children:(0,l.jsx)("p",{children:"Website:"})}),(0,l.jsx)("div",{className:"col-span-6",children:(0,l.jsx)("p",{onClick:e=>{g.website&&window.open(/^(http|https):/.test(g.website)?g.website:"http://"+g.website,"_blank")},className:"text-avatarPrimary underline text-ellipsis overflow-hidden cursor-pointer",children:g.website})})]})]})})]})]}),(0,l.jsx)(o.xu,{borderTop:"1px solid",className:"border-light",height:"1px",borderColor:"primary.lightBorderColor"}),e.user.userId!==localStorage.getItem("userId")&&(0,l.jsx)(o.xu,{className:"connnect-button-container",display:"flex",alignItems:"center",position:"absolute",top:"15px",right:"70px"})]})]})}s.default=h}}]);
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.