1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9859],{29859:function(e,o,t){t.d(o,{Z:function(){return es}});var n,r,s=t(85893),l=t(67294),i=t(204),a=t(7754),c=t(9740),d=t(56877),p=t(73625),u=t(89076),x=t(53948),h=t(96272),v=t(71567),m=t(44416),y=t(20623),g=t(73975),j=t(79352);t(11163);var C=t(8100);t(79580);var E=t(27860);(n=r||(r={})).HUBSPOT="hubspot",n.SALESFORCE="salesforce",n.EXCEL="excel",r.SALESFORCE;var b=t(88911),f=t(89783),w=t(62207),k=t(31963),Z=t(31948),S=t(44504),F=t(55819),L=t(73793),I=t(91669),O=t(11028),X=t(47441),D=t(33229),_=t(57577),M=t(23100),P=t(295),A=t(47018),T=t(34850),z=t(96486),R=t(86893),U=t(29826),q=t(30882),J=t(73244),W=t(93162),B=t(65477);let N={company:"/system/export/company-profiles",funding:"/system/export/company-rounds",deal:"/system/export/ma-deals",investor:"/system/export/investors",contact:"/system/export/company-contacts",investorContact:"/system/export/investor-contacts",people:"/system/export/people"},K=(e,o)=>"people"===e?(0,E.v_)(N[e],{people:o}):(0,E.v_)(N[e],{ids:o.map(e=>e.id)}),H=e=>{let{exportType:o="contact",refreshUsage:t,onClose:n,rows:r=[]}=e,[s,i]=(0,l.useState)(!1),a=async()=>{try{i(!0);let e=await K(o,r),t=await e.blob(),n=(0,B.Fu)(),s="PrivCo ".concat(o," export - ").concat(n);(0,W.saveAs)(t,s)}catch(e){throw Error(e)}finally{i(!1),t(),n()}};return{exporting:s,exportData:a}},$={people:"/system/export/people-external"},G=e=>{let{refreshUsage:o,onClose:t,appType:n,rows:r}=e,[s,i]=(0,l.useState)(!1),a=(0,J.Z)(),c=e=>{let o=encodeURIComponent(window.location.href.split("?")[0]);window.location.href="".concat("https://thirdparty.privco.com","/auth/").concat(e,"/login?userId=").concat(a.details.id,"&&redirectUri=").concat(o)},d=async()=>{try{i(!0);let e=await (0,E.v_)($.people,{people:r.map(e=>({...e,type:e.type.toLowerCase()})),destination:"salesforce"});await (0,E.v_)("".concat("https://thirdparty.privco.com","/auth/").concat(n,"/contacts"),{contacts:e.map(e=>{let{firstName:o,lastName:t,businessEmail:n,directNumbers:r,mobileNumbers:s,associatedName:l}=e;return{firstName:o,lastName:t,businessEmail:n,directNumbers:r,mobileNumbers:s,companyName:l}}),userId:a.details.id})}catch(o){var e;if((null==o?void 0:null===(e=o.info)||void 0===e?void 0:e.statusCode)===403){c(n);return}}finally{i(!1),o(),t()}};return{exporting:s,exportData:d}};var Q=t(99042);let V={company:"companyXlsExport",funding:"roundXlsExport",deal:"dealXlsExport",investor:"investorXlsExport",contact:"companyContactXls",investorContact:"investorContactXls",people:"peopleXlsExport",companyContactExternal:"companyContactExternal",investorContactExternal:"investorContactExternal",peopleExternal:"peopleExternal"},Y=e=>{var o,t,n,s,l,i,a,c;let{isOpen:d,rows:p=[],appType:u}=e,{data:x,mutate:h}=(0,C.ZP)(d?"/system/user/usage":null,E.ZP),v=V[u===r.EXCEL?"contact":"companyContactExternal"],m=V[u===r.EXCEL?"investorContact":"investorContactExternal"],y=null==x?void 0:x[v],g=null==x?void 0:x[m],j=null!==(l=null==y?void 0:null===(o=y.unlocked)||void 0===o?void 0:o.length)&&void 0!==l?l:0,b=null!==(i=null==g?void 0:null===(t=g.unlocked)||void 0===t?void 0:t.length)&&void 0!==i?i:0,f=(0,Q.Oe)(null==y?void 0:y.limit),w=(0,Q.Oe)(null==g?void 0:g.limit),k=[],Z=[];if(0!==p.length)for(let e=0;e<=p.length-1;
1e+=1)"company"===p[e].type.toLowerCase()?k.push(p[e].id):Z.push(p[e].id);let S=null==k?void 0:k.filter(e=>{let o=!(null==y?void 0:y.unlocked.includes(e));return o}).length,F=null==Z?void 0:Z.filter(e=>{let o=!(null==g?void 0:g.unlocked.includes(e));return o}).length,L=S+(null!==(a=null==y?void 0:null===(n=y.unlocked)||void 0===n?void 0:n.length)&&void 0!==a?a:0),I=F+(null!==(c=null==g?void 0:null===(s=g.unlocked)||void 0===s?void 0:s.length)&&void 0!==c?c:0),O=(0,Q.xT)(null==y?void 0:y.limit),X=(0,Q.xT)(null==g?void 0:g.limit);return{canExportCompany:L<=f,canExportInvestor:I<=w,usageData:x,currentUsageCompany:j,currentUsageInvestor:b,refreshUsage:h,formattedLimitCompany:O,formattedLimitInvestor:X,newExportsCompany:S,newExportsInvestor:F,exportOverflowCompany:L-f,exportOverflowInvestor:I-w}},ee=e=>{var o,t,n,a;let{isOpen:c,onClose:p,rows:u=[],exportType:x="contact",appType:v=r.EXCEL}=e,m=(0,l.useRef)(),{canExportCompany:y,canExportInvestor:j,usageData:E,currentUsageCompany:W,currentUsageInvestor:B,refreshUsage:N,formattedLimitCompany:K,formattedLimitInvestor:$,newExportsCompany:Q,newExportsInvestor:V,exportOverflowCompany:ee,exportOverflowInvestor:eo}=Y({isOpen:c,exportType:x,rows:u,appType:v}),{exporting:et,exportData:en}=H({exportType:x,rows:u,refreshUsage:N,onClose:p}),{exporting:er,exportData:es}=G({exportType:x,rows:u,refreshUsage:N,onClose:p,appType:v}),el=er||et,ei=()=>{v===r.EXCEL?en():es()},ea=(0,J.Z)(),ec=null!==(n=null===(o=ea.details)||void 0===o?void 0:o.directAccess)&&void 0!==n&&n,ed=(null==ea?void 0:null===(t=ea.access)||void 0===t?void 0:t.group)==="free",{data:ep}=(0,C.ZP)("/system/auth/master-access"),eu=null!==(a=null==ep?void 0:ep.allowSubsidiaryUsers)&&void 0!==a&&a,ex=!ea.loading&&!!ep&&!!E,eh=(0,q.Z)(),ev=(0,l.useMemo)(()=>"Export to ".concat((0,z.capitalize)(null!=v?v:"Excel")),[v]),em=()=>ec?eu?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(b.x,{children:["This export goes over your institution's Direct Access usage limit by ",ee," row",1===ee?"":"s",", and"," ",eo," row",1===eo?"":"s",". For continued access, please sign in with your individual PrivCo account if you have created one already, or create one here. If you have any questions please contact your library or"," ",(0,s.jsx)(U.Z,{href:"mailto:[email protected]",isExternal:!0,children:"[email protected]"}),"."]}),(0,s.jsxs)(g.K,{as:f.h,colorScheme:"blue",size:"sm",mt:2,direction:"column",justifyContent:"flex-start",spacing:2,children:[(0,s.jsx)(h.z,{onClick:()=>ea.signOut(),children:"Sign In with Academic Account"}),(0,s.jsx)(h.z,{onClick:()=>ea.signOut("/academic-signup"),children:"Create Academic Account"})]})]}):(0,s.jsxs)(b.x,{children:["This export goes over your institution's usage limit by"," ",ee," row",1===ee?"":"s",", and ",eo," row",1===eo?"":"s",". If you have any questions please contact your library, or"," ",(0,s.jsx)(U.Z,{href:"mailto:[email protected]",isExternal:!0,children:"[email protected]"})," ","and your PrivCo account manager will get back to you as soon as possible."]}):ed?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(b.x,{children:["Exporting this data list requires a paid subscription. To upgrade to a single license, ",(0,s.jsx)(U.Z,{href:"/account",children:"click here"}),"."]}),(0,s.jsxs)(b.x,{children:["For group licenses or enterprise access,"," ",(0,s.jsx)(U.Z,{as:"button",onClick:eh,children:"contact a representative"}),"."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(b.x,{mb:2,children:["This export goes over your usage limit by ",ee," row",1===ee?"":"s",", and ",eo," ","row",1===eo?"":"s",". Please refine your selection and try again."]}),(0,s.jsxs)(b.x,{children:["If you believe this is an error, please contact"," ",(0,s.jsx)(U.Z,{href:"mailto:[email protected]",isExternal:!0,children:"[email protected]"})," ","and your PrivCo account manager will get back to you as soon as possible."]})]});return(0,s.jsxs)(w.u_,{isOpen:c,onClose:p,isCentered:!0,initialFocusRef:m,children:[(0,s.jsx)(k.Z,{}),(0,s.jsxs)(Z.h,{m:4,"data-cy":"export-selected-companies-modal",children:[(0,s.jsx)(S.x,{children:ev}),(0,s.jsx)(F.o,{}),(0,s.jsx)(L.f,{children:(0,s.jsx)(i.k,{justify:"center",alignItems:"center",py:4,children:ex?(0,s.jsxs)(I.g,{spacing:4,children:["investorContact"!==x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(O.k,{textAlign:"center",bg:"slate.100",rounded:"md",p:4,w:"100%",children:[(0,s.jsx)(X.d,{children:"Current Period Usage for Company Contact"}),(0,s.jsxs)(D.J,{color:"green.500",children:[W," / ",K]}),(0,s.jsxs)(_.v,{mb:0,children:[(0,T.Z)(new Date(1e3*E.startDate),"MM/dd/yy")," ","-"," ",(0,T.Z)(new Date(1e3*E.endDate),"MM/dd/yy")]})]}),y?(0,s.jsxs)(b.x,{size:"md",bg:"yellow.100",p:2,rounded:"md",children:["This export will increase your usage by"," ",Q," rows."]}):(0,s.jsx)(M.xu,{bg:"red.100",p:3,rounded:"md",children:em()})]}),"contact"!==x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(O.k,{textAlign:"center",bg:"slate.100",rounded:"md",p:4,w:"100%",children:[(0,s.jsx)(X.d,{children:"Current Period Usage for Investor Contact"}),(0,s.jsxs)(D.J,{color:"green.500",children:[B," / ",$]}),(0,s.jsxs)(_.v,{mb:0,children:[(0,T.Z)(new Date(1e3*E.startDate),"MM/dd/yy")," ","-"," ",(0,T.Z)(new Date(1e3*E.endDate),"MM/dd/yy")]})]}),j?(0,s.jsxs)(b.x,{size:"md",bg:"yellow.100",p:2,rounded:"md",children:["This export will increase your usage by"," ",V," rows."]}):(0,s.jsx)(M.xu,{bg:"red.100",p:3,rounded:"md",children:em()})]})]}):(0,s.jsx)(P.$,{color:"blue.500"})})}),(0,s.jsx)(A.m,{children:(0,s.jsx)(h.z,{colorScheme:"green",mr:2,type:"button",onClick:ei,isLoading:el,isDisabled:!y||!j,ref:m,"data-cy":"click-search-export-".concat(x,"-modal-button"),leftIcon:(0,s.jsx)(d.J,{as:R._hL}),children:el?"Exporting":"Export"})})]})]})};var eo=t(67),et=t(61818);let en=e=>{let{children:o,icon:t,iconColor:n,cy:r,isDisabled:l,logo:p,type:u,onClick:x}=e;return(0,s.jsxs)(i.k,{as:"div",align:"center",p:2,rounded:"md",fontWeight:"medium","data-cy":"app-header-link-".concat(r),outline:"none",transition:"0.2s all",onClick:x,cursor:"pointer",...l?{opacity:.5,cursor:"not-allowed",tabIndex:-1}:{_hover:{bg:"gray.100"},_active:{bg:"gray.200"},_focus:{outline:"none",shadow:"outline"}},children:[(0,s.jsx)(a.M,{mr:3,h:6,w:6,rounded:"md",bg:"".concat(n,".100"),borderWidth:1,borderColor:"".concat(n,".200"),children:p?(0,s.jsx)(c.E,{src:p,width:"18px",alt:"".concat(u," Logo"),objectFit:"contain"}):(0,s.jsx)(d.J,{as:t,color:"".concat(n,".500")})}),o]})},er=e=>{let[o,t]=(0,l.useState)(),{isOpen:n,onOpen:a,onClose:c}=(0,p.q)(),{contacts:C,exportType:E}=e,[b,f,w,k]=(0,eo.Z)(["companyContactExportXls","investorContactExportXls","peopleExportExternal","peopleExportXls"]),{isOpen:Z,onOpen:S,onClose:F}=(0,p.q)(),L=e=>{t(e),S()},I=()=>{t(void 0),F()},O=((e,o)=>{let t=[],n=(null==C?void 0:C.findIndex(e=>"company"===e.type.toLowerCase()))!==-1,r=(null==C?void 0:C.findIndex(e=>"investor"===e.type.toLowerCase()))!==-1;return n&&(t=[e]),r&&(t=[...t,o]),0!==t.filter(e=>!1===e).length})("people"===E?k:b,"people"===E?k:f),X=!w,D=O&&X;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ee,{rows:C,isOpen:Z,onClose:I,exportType:E,appType:o}),(0,s.jsxs)(u.J,{trigger:"hover",isOpen:n,children:[(0,s.jsx)(x.x,{children:(0,s.jsx)(h.z,{onMouseEnter:D?null:a,onMouseLeave:c,onFocus:D?null:a,onBlur:c,type:"button",variant:"solid",title:D?"Upgrade to PrivCo Select":null,position:"relative",disabled:D,...n&&{_after:{content:"''",position:"absolute",w:"150%",h:"8px",bottom:"-8px",left:"-33.33%"}},children:(0,s.jsx)(v.u,{isDisabled:!D,label:"Upgrade to PrivCo Select",shouldWrapChildren:!0,children:(0,s.jsxs)(i.k,{align:"center",children:["Export ",(0,s.jsx)(d.J,{ml:2,as:j.fb8})]})})})}),(0,s.jsx)(m.y,{onMouseEnter:a,onMouseLeave:c,onFocus:a,onBlur:c,w:"auto",shadow:"xl",rounded:"xl",children:(0,s.jsx)(y.b,{p:2,children:(0,s.jsxs)(g.K,{alignItems:"stretch",spacing:1,children:[(0,s.jsx)(en,{icon:j.Fkd,iconColor:et.Z.company,isDisabled:O,onClick:()=>L(r.EXCEL),children:"Excel"}),(0,s.jsx)(en,{iconColor:et.Z.investor,logo:"/images/salesforce.png",type:r.SALESFORCE,isDisabled:X,onClick:()=>L(r.SALESFORCE),children:"SalesForce"})]})})})]})]})};var es=er},30882:function(e,o,t){var n=t(85893),r=t(70385),s=t(57350),l=t(88911),i=t(29826),a=t(27860),c=t(73244);let d=()=>{let[e,o]=(0,r.k)(!1),t=(0,s.p)(),d=(0,c.Z)(),p=async()=>
1{if(!e){o.on();try{let{username:e,id:o,firstName:n,lastName:r}=d.details;await (0,a.v_)("/api/upgrade-to-enterprise",{user:{username:e,id:o,firstName:n,lastName:r}}),t({title:"Request Sent",description:"Expect a response from our team within 24 hours",status:"success",duration:3e3,isClosable:!0})}catch(e){t({title:"We ran into an issue",description:(0,n.jsxs)(l.x,{children:["Please reach out to our team at"," ",(0,n.jsx)(i.Z,{color:"blue.200",isExternal:!0,href:"mailto:[email protected]",children:"[email protected]"})]}),status:"error",duration:3e3,isClosable:!0})}}};return p};o.Z=d}}]);
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.