1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="d43becc6-b75b-7aa5-9e23-968489285139")}catch(e){}}();import{s as e}from"./rolldown-runtime-B6ubh40S.js";import{Nn as t,Ua as n,Wt as r,fr as i,hi as a,vr as o,zi as s}from"./vendor-9Auq8rqv.js";import{Bc as c,Co as l,Ns as u,Us as d,oc as f,rc as p,tc as m,wo as h}from"./ui-CNZ0y8KL.js";import"./graphql-generated-CgB1DyC0.js";import{Dn as g,En as _,Qn as v,Tn as y,_r as b,i as x}from"./index-CZ1u9usR.js";import"./google-auth-button-ouOKrZTU.js";import"./password-schema-BZzN3Miw.js";import"./register-form-BK79ZWWp.js";import{t as S}from"./signup-dialog-DfhG_J3l.js";import{t as C}from"./referral-handling-DMpFbsQK.js";var w=e(c(),1),T=e(f(),1);function E({referralData:e,referrerName:n}){let[c,f]=(0,w.useState)(!1),{userData:p,linkedinData:m}=e,g=`${p.firstName} ${p.lastName}`,{authState:{isLoggedIn:v}}=_(),b=m?.experiences?.find(e=>e.isCurrent)??m?.experiences?.find(e=>!e.jobEndDate)??m?.experiences?.[0],x=[{icon:(0,T.jsx)(r,{className:`h-5 w-5 text-brand-500`}),title:`Suggested Actions`,description:`Who to reach out to, why now, and the relevant context.`},{icon:(0,T.jsx)(i,{className:`h-5 w-5 text-brand-500`}),title:`Unified Inbox`,description:`Manage email, LinkedIn and notes all in one place`},{icon:(0,T.jsx)(a,{className:`h-5 w-5 text-brand-500`}),title:`Smart Follow-ups`,description:`Never forget to follow up with important contacts`}],C=m?.profileImageUrl?(0,T.jsx)(`img`,{src:m.profileImageUrl,alt:g,className:`w-14 h-14 rounded-full border-2 border-gray-200 dark:border-zinc-700`}):(0,T.jsxs)(`div`,{className:`w-14 h-14 rounded-full bg-gradient-to-br from-brand-400 to-brand-600 flex items-center justify-center text-white font-semibold`,children:[p.firstName.charAt(0),p.lastName.charAt(0)]});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`div`,{className:`max-w-4xl mx-auto`,children:v?(()=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:`flex flex-col items-center`,children:[(0,T.jsx)(`img`,{src:`/images/shared-network-example.png`,alt:`Shared network`,className:`w-full max-w-2xl h-auto mb-4 -mt-20 mix-blend-darken`}),(0,T.jsxs)(`h1`,{className:`text-3xl sm:text-4xl md:text-5xl font-bold text-gray-900 dark:text-white mb-10 text-center text-balance`,children:[p.firstName,` wants to share their network with you`]})]}),(0,T.jsx)(h.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},className:`bg-white dark:bg-zinc-900 rounded-2xl p-8 mb-12 border border-brand-200/60 dark:border-zinc-800 shadow-md max-w-md mx-auto`,children:(0,T.jsxs)(`div`,{className:`text-center`,children:[(0,T.jsxs)(`div`,{className:`flex items-center justify-center gap-3 mb-6`,children:[C,(0,T.jsxs)(`div`,{className:`text-left`,children:[(0,T.jsx)(`p`,{className:`text-lg font-semibold text-gray-900 dark:text-white -mb-0.5`,children:g}),m?.headline?(0,T.jsx)(`p`,{className:`text-sm text-muted-foreground -mt-0.5 max-w-xs line-clamp-1`,children:m.headline}):(0,T.jsx)(`p`,{className:`text-sm text-muted-foreground -mt-0.5`,children:`Andsend user`})]})]}),(0,T.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-4 text-sm text-muted-foreground mb-8`,children:[b?.companyName&&(0,T.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,T.jsx)(s,{className:`h-4 w-4`}),(0,T.jsx)(`span`,{children:b.companyName})]}),m?.locationString&&(0,T.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,T.jsx)(o,{className:`h-4 w-4`}),(0,T.jsx)(`span`,{children:m.locationString})]})]}),(0,T.jsx)(d,{to:`${y.NEW.ACCOUNT_MANAGEMENT_PATHS.ROOT}/${y.NEW.ACCOUNT_MANAGEMENT_PATHS.NETWORK_SHARING}`,children:(0,T.jsxs)(l,{size:`lg`,className:`bg-brand-600 hover:bg-brand-900 text-white font-bold px-8 shadow-lg`,children:[`Share network with ${p.firstName}`,(0,T.jsx)(u,{className:`ml-2 h-5 w-5`})]})})]})}),(0,T.jsx)(`div`,{className:`grid md:grid-cols-3 gap-6 max-w-4xl mx-auto`,children:x.map((e,t)=>(0,T.jsxs)(h.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.5,delay:.3+t*.1},className:`bg-white dark:bg-zinc-900 rounded-xl p-6 border border-brand-200/60 dark:border-zinc-800`,children:[(0,T.jsx)(`div`,{className:`mb-3`,children:e.icon}),(0,T.jsx)(`h4`,{className:`font-semibold text-gray-900 dark:text-white mb-2`,children:e.title}),(0,T.jsx)(`p`,{className:`text-sm text-gray-600 dark:text-zinc-400`,children:e.description})]},t))})]}))():(()=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:`text-center mb-12`,children:[(0,T.jsxs)(`div`,{className:`flex items-center justify-center gap-3 mb-10`,children:[C,(0,T.jsxs)(`div`,{className:`text-left`,children:[(0,T.jsx)(`p`,{className:`text-lg font-semibold text-gray-900 dark:text-white -mb-0.5`,children:g}),(0,T.jsx)(`p`,{className:`text-base text-muted-foreground -mt-0.5`,children:`wants to share their network with you`})]})]}),(0,T.jsxs)(`h1`,{className:`text-3xl sm:text-4xl md:text-5xl font-bold text-gray-900 dark:text-white mb-6`,children:[`Relationship Engine`,(0,T.jsx)(`br`,{}),`for Professional Services`]}),(0,T.jsx)(`p`,{className:`text-lg text-gray-600 dark:text-zinc-300 max-w-3xl mx-auto mb-12`,children:`Andsend makes it easy to stay top of mind. It surfaces the right relationship, at the right time, with a message draft suggested in your tone, so you don't forget to follow up.`})]}),(0,T.jsx)(h.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5,delay:.2},className:`bg-white dark:bg-zinc-900 rounded-2xl p-8 mb-12 border border-brand-200/60 dark:border-zinc-800 shadow-md max-w-md mx-auto`,children:(0,T.jsxs)(`div`,{className:`text-center`,children:[(0,T.jsx)(`div`,{className:`mb-3 flex justify-center`,children:(0,T.jsx)(t,{className:`h-12 w-12 text-brand-500`})}),(0,T.jsxs)(`h3`,{className:`text-2xl font-bold text-gray-900 dark:text-white mb-2`,children:[`Explore `,p.firstName,`'s network`]}),(0,T.jsxs)(`p`,{className:`text-gray-600 dark:text-zinc-300 mb-4`,children:[`Sign up for`,` `,(0,T.jsx)(`strong`,{className:`text-brand-600 dark:text-brand-400`,children:`a free Andsend account`}),` to start sharing networks.`]}),(0,T.jsxs)(l,{onClick:()=>f(!0),size:`lg`,className:`bg-brand-600 hover:bg-brand-900 text-white text-md font-bold px-8 shadow-lg group`,children:[`Get Your Free Account`,(0,T.jsx)(u,{className:`ml-2 h-5 w-5 transition-transform group-hover:translate-x-1`})]})]})}),(0,T.jsx)(`div`,{className:`grid md:grid-cols-3 gap-6 max-w-4xl mx-auto`,children:x.map((e,t)=>(0,T.jsxs)(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3+t*.1},className:`bg-white dark:bg-zinc-900 rounded-xl p-6 border border-brand-200/60 dark:border-zinc-800`,children:[(0,T.jsx)(`div`,{className:`mb-3`,children:e.icon}),(0,T.jsx)(`h4`,{className:`font-semibold text-gray-900 dark:text-white mb-2`,children:e.title}),(0,T.jsx)(`p`,{className:`text-sm text-gray-600 dark:text-zinc-400`,children:e.description})]},t))})]}))()}),(0,T.jsx)(S,{open:c,onOpenChange:f,referringUsersName:n})]})}var D=async(e,t)=>(await fetch(`${b()}/referral-page/${e}`,{signal:t})).json();const O=()=>{let e=m(),{userHandle:t}=p(),{data:r,isLoading:i}=n({queryKey:[`referralPage`,t],queryFn:async({signal:e})=>D(t,e)});return g((t,n)=>{n?.isLoggedIn===!1&&t?.isLoggedIn===!0&&(console.log(`user logged in - navigating to home`),e(y.HOME))}),i?(0,T.jsx)(`div`,{children:`Loading...`}):(C({referralLinkId:r.referralLinkId,joinedViaReferralMethod:v.SHARE_NETWORK}),(0,T.jsxs)(`div`,{className:`min-h-screen text-gray-900 dark:text-white overflow-hidden`,style:{backgroundColor:`color-mix(in srgb, var(--brand-100) 50%, transparent)`},children:[(0,T.jsx)(`div`,{className:`flex flex-col gap-4 p-6 md:p-10 z-10`,children:(0,T.jsx)(x,{})}),(0,T.jsx)(`div`,{className:`mx-auto px-4 md:px-8 py-6 md:py-16`,children:(0,T.jsx)(`div`,{className:`flex flex-col items-center`,children:r.userData?(0,T.jsx)(E,{referralData:r,referrerName:`${r.userData.firstName} ${r.userData.lastName}`}):(0,T.jsx)(T.Fragment,{children:`Sorry, we couldn't find that business card ð¯`})})})]}))};export{O as ShareNetworkPage}; 2//# sourceMappingURL=share-network-page-DG8iOeOX.js.map 3//# chunkId=d43becc6-b75b-7aa5-9e23-968489285139
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.