PageSourceSearch

https://thetool.company/_next/static/chunks/3u0s1ztj9l2w3.js

js thetool.company collected 2026-09-24 15:00:05 UTC 107,454 bytes, 53 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82173,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(618566),i=e.i(476819),o=e.i(607486),s=e.i(144988),r=e.i(539320),l=e.i(139881),d=e.i(292270),c=e.i(951445),u=e.i(991799),m=e.i(941388),p=e.i(555436),h=e.i(239616),_=e.i(897250),g=e.i(716016),f=e.i(363178),y=e.i(647163),v=e.i(617236),b=e.i(854992),w=e.i(249803),k=e.i(182439),x=e.i(620749),E=e.i(717191),S=e.i(180081),M=e.i(520433),D=e.i(802545),O=e.i(452997),P=e.i(907930),N=e.i(992427),I=e.i(362623),C=e.i(630374),T=e.i(463415),j=e.i(753751),R=e.i(561362),A=e.i(86906),L=e.i(889407),U=e.i(124314),q=e.i(69356),F=e.i(943756),$=e.i(940409),W=e.i(573399),B=e.i(841733),Z=e.i(691995),H=e.i(492429),G=e.i(378116),z=e.i(987992),Y=e.i(855671),K=e.i(845516),V=e.i(817903),X=e.i(934827),J=e.i(891835),Q=e.i(119437),ee=e.i(112229),et=e.i(458904),ea=e.i(18185),en=e.i(727575),ei=e.i(130976),eo=e.i(614479),es=e.i(865967),er=e.i(630251),el=e.i(150532),ed=e.i(113546),ec=e.i(739037),eu=e.i(972823),em=e.i(160985),ep=e.i(684467),eh=e.i(329551),e_=e.i(760382),eg=e.i(785405),ef=e.i(546445),ey=e.i(390900),ev=e.i(136484),eb=e.i(502072),ew=e.i(884728),ek=e.i(780790);let ex={"/overview":U.DemoHomePage,"/inbox":q.DemoInboxPage,"/goals":F.DemoGoalsPage,"/contracts":$.DemoContractsPage,"/deals":W.DemoDealsPage,"/skills":B.DemoSkillsPage,"/products":Z.DemoProductsPage,"/tasks":H.DemoTasksPage,"/people":G.DemoPeoplePage,"/companies":z.DemoCompaniesPage,"/templates":Y.DemoTemplatesPage,"/plans":K.DemoPlansPage,"/calendar":V.DemoCalendarPage,"/sequences":X.DemoSequencesPage,"/sequences/seq_campaign":el.DemoSequenceDetailPage,"/videos":J.DemoVideosPage,"/calls":Q.DemoCallsPage,"/customers":ee.DemoCustomersPage,"/targeting":et.DemoTargetingPage,"/reports":ea.DemoReportsPage,"/docs":en.DemoDocsPage,"/forms":ei.DemoFormsPage,"/tickets":eo.DemoTicketsPage,"/jobs":es.DemoJobsPage,"/prospect":er.DemoProspectPage,"/social":ed.DemoSocialPage,"/website-visitors":ec.DemoWebsiteVisitorsPage,"/finance":eu.DemoFinancePage,"/workflows":eh.DemoWorkflowsPage,"/home":e_.DemoBriefPage,"/workflows/wf_demo":eg.DemoWorkflowBuilderPage,[`/people/${ey.DEMO_PROFILE_PERSON.id}`]:em.DemoPersonProfilePage,[`/companies/${ey.DEMO_PROFILE_COMPANY.id}`]:ep.DemoCompanyProfilePage},eE=`/people/${ey.DEMO_PROFILE_PERSON.id}`,eS=new Set([eE,`/companies/${ey.DEMO_PROFILE_COMPANY.id}`,"/inbox"]),eM=["/overview","/inbox","/calendar","/tasks","/people","/companies","/deals","/social"].map(e=>R.NAV_ITEMS_MAP[e]).filter(Boolean),eD={light:{"--sidebar-fg":"#171717","--sidebar-fg-muted":"#5a5a5a","--sidebar-active-bg":"rgba(20, 20, 20, 0.10)","--sidebar-hover-bg":"rgba(20, 20, 20, 0.06)","--sidebar-border-tone":"rgba(20, 20, 20, 0.12)","--sidebar-border-soft":"rgba(20, 20, 20, 0.06)"},dark:{"--sidebar-fg":"#f5f5f5","--sidebar-fg-muted":"#9a9a9a","--sidebar-active-bg":"rgba(255, 255, 255, 0.18)","--sidebar-hover-bg":"rgba(255, 255, 255, 0.10)","--sidebar-border-tone":"rgba(255, 255, 255, 0.16)","--sidebar-border-soft":"rgba(255, 255, 255, 0.08)"}},eO=[{id:"deals",name:"Deals",icon:null,tabs:[{href:eE,label:ey.DEMO_PROFILE_PERSON.name,imageUrl:ey.DEMO_PROFILE_PERSON.image_url},{href:"/deals",label:"Pipeline"},{href:"/contracts",label:"Contracts"}],folder:{name:"Key deals",icon:s.Dog,tabs:[{href:"/deals",label:"Multi-year renewal"},{href:"/deals",label:"Security review + close"}]}},{id:"prospecting",name:"Prospecting",icon:l.Bird,tabs:[{href:"/prospect",label:"Prospect"},{href:"/targeting",label:"Target accounts"},{href:"/social",label:"Social selling"}],folder:{name:"Sequences",icon:r.Beer,tabs:[{href:"/sequences",label:"Founder outbound"},{href:"/sequences",label:"Reply nurture"}]}},{id:"ops",name:"Ops",icon:r.Beer,tabs:[{href:"/reports",label:"Reports"},{href:"/tickets",label:"Tickets"},{href:"/workflows",label:"Workflows"},{href:"/finance",label:"Finance"}]}],eP="cubic-bezier(0.4, 0, 0.2, 1)",eN=`150ms ${eP}`;function eI(e,t){return e===t||"/home"!==t&&"/overview"!==t&&e.startsWith(`${t}/`)}function eC({active:e,onNavigate:a,onOpenSearch:n,activeSpaceId:o,onSelectSpace:s,openFolders:r,onToggleFolder:l}){let d=eO.find(e=>e.id===o)??eO[0];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eq,{onClick:n}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-3 pt-1 pb-2",children:[(0,t.jsx)("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(auto-fit, minmax(${(0,i.designPx)(46)}, 1fr))`},children:eM.map(n=>(0,t.jsx)(w.AppCardHoverPopover,{href:n.href,label:n.label,icon:n.icon,active:eI(e,n.href),children:(0,t.jsxs)("span",{className:"relative block","data-demo-app":n.href,children:[(0,t.jsx)(v.SquircleIcon,{icon:n.icon,label:n.label,active:eI(e,n.href),onClick:()=>a(n.href),stretch:!0}),"/inbox"===n.href&&(0,t.jsx)("span",{className:"pointer-events-none absolute right-0 top-0 h-2.5 w-2.5 rounded-full bg-red-500",style:{boxShadow:"0 0 0 2px var(--sidebar)"}})]})},n.href))}),(0,t.jsx)(eR,{space:d,active:e,onNavigate:a,onOpenSearch:n,openFolders:r,onToggleFolder:l})]}),(0,t.jsx)(E.SidebarSpotifyPlayer,{}),(0,t.jsx)(eA,{activeSpaceId:o,onSelectSpace:s})]})}function eT({tab:e,active:a,nested:n,onClick:i}){let o=R.NAV_ITEMS_MAP[e.href]?.icon;return(0,t.jsxs)("button",{"data-demo-tab":"",type:"button",onClick:i,className:(0,y.cn)("group/tab flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left transition-colors",n&&"ml-3",a?"shadow-[0_1px_2px_rgba(0,0,0,0.05)]":"hover:bg-foreground
1/[0.05]"),style:a?{background:"var(--sq-fill-active)"}:void 0,children:[e.imageUrl?(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center squircle avatar-border bg-muted overflow-hidden",children:(0,t.jsx)("img",{src:e.imageUrl,alt:"",className:"h-full w-full object-cover",referrerPolicy:"no-referrer"})}):o?(0,t.jsx)(o,{className:(0,y.cn)("h-4 w-4 shrink-0",a?"text-foreground/70":"text-foreground/45"),strokeWidth:1.8}):(0,t.jsx)("span",{className:"block h-1.5 w-1.5 shrink-0 rounded-full bg-foreground/35"}),(0,t.jsx)("span",{className:(0,y.cn)("min-w-0 flex-1 truncate text-[13px] font-medium",a?"text-foreground/85":"text-foreground/60 group-hover/tab:text-foreground/85"),children:e.label})]})}function ej({folder:e,open:a,onToggle:n,onNavigate:i}){let o=e.icon;return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("button",{"data-demo-folder":"",type:"button",onClick:n,className:"group/folder flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left transition-colors hover:bg-foreground
1/[0.05]",children:[(0,t.jsxs)("div",{className:"relative flex h-6 w-6 shrink-0 items-center justify-center text-foreground/70",children:[(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"absolute inset-0 h-6 w-6",style:{transformOrigin:"50% 87.5%",transition:"transform 200ms ease-out",transform:a?"skewX(10deg)":"none"},fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 5 a2 2 0 0 1 2-2 h6 l2 2 h7 a2 2 0 0 1 2 2 v12 a2 2 0 0 1-2 2 H5 a2 2 0 0 1-2-2 z",fill:"currentColor",fillOpacity:.18,stroke:"currentColor"})}),(0,t.jsxs)("div",{className:"absolute inset-0 h-6 w-6",style:{transformOrigin:"50% 87.5%",transition:"transform 200ms ease-out",transform:a?"skewX(-12deg)":"none"},children:[(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"absolute inset-0 h-6 w-6",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M3 11 q0 -3 3 -3 h13 q3 0 3 3 V19 a2 2 0 0 1 -2 2 H5 a2 2 0 0 1 -2 -2 z",style:{fill:"var(--sidebar)"}})}),(0,t.jsx)(o,{className:"absolute h-3 w-3 pointer-events-none",style:{top:"60%",left:"50%",transform:"translate(-50%, -50%)"},strokeWidth:2,"aria-hidden":!0})]})]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-semibold text-foreground/70",children:e.name}),(0,t.jsx)(eb.AnimatedChevron,{open:a,className:"h-3.5 w-3.5 shrink-0 text-foreground/40",strokeWidth:2.2})]}),a&&(0,t.jsx)("div",{className:"mt-0.5 flex flex-col gap-0.5",children:e.tabs.map((e,a)=>(0,t.jsx)(eT,{tab:e,nested:!0,active:!1,onClick:()=>i(e.href)},a))})]})}function eR({space:e,active:n,onNavigate:i,onOpenSearch:o,openFolders:s,onToggleFolder:r}){let[l,d]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"group flex h-8 w-full items-center gap-1.5 px-1.5 text-left",children:[(0,t.jsx)(eb.AnimatedChevron,{open:!l,className:"h-3.5 w-3.5 text-foreground/40",strokeWidth:2.4}),(0,t.jsx)("span",{className:"text-[13px] font-bold text-foreground/55",children:e.name})]}),!l&&(0,t.jsxs)("div",{className:"mt-0.5 flex flex-col gap-0.5",children:[e.tabs.map((e,a)=>(0,t.jsx)(eT,{tab:e,active:n===e.href,onClick:()=>i(e.href)},a)),e.folder&&(0,t.jsx)(ej,{folder:e.folder,open:!!s[`${e.id}:${e.folder.name}`],onToggle:()=>r(`${e.id}:${e.folder.name}`),onNavigate:i}
1),(0,t.jsx)("div",{className:"mx-2.5 my-1.5 h-px bg-foreground/10"}),(0,t.jsxs)("button",{type:"button",onClick:o,className:"group/new flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-foreground/45 transition-colors hover:bg-foreground/[0.05] hover:text-foreground/70",children:[(0,t.jsx)(m.Plus,{className:"h-4 w-4 shrink-0",strokeWidth:2}),(0,t.jsx)("span",{className:"text-[13px] font-medium",children:"New Tab"})]})]})]})}function eA({activeSpaceId:e,onSelectSpace:a}){return(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5 px-3 pb-3 pt-2",children:[(0,t.jsx)(eL,{}),(0,t.jsx)("div",{className:"ml-0.5 flex min-h-7 min-w-0 flex-1 items-center gap-px overflow-hidden py-0.5 pl-1 pr-px",children:eO.map(n=>{let i=n.id===e,o=n.icon;return(0,t.jsx)("button",{type:"button",onClick:()=>a(n.id),title:n.name,"data-demo-space":n.id,className:"group relative flex h-6 w-6 shrink-0 items-center justify-center rounded-full transition-transform duration-150 ease-out active:scale-90",children:(0,t.jsx)("span",{className:(0,y.cn)("relative inline-flex origin-center items-center justify-center transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",i?"scale-105":"scale-[0.72] group-hover:scale-105"),children:o?(0,t.jsx)(o,{className:(0,y.cn)("h-3.5 w-3.5 transition-colors duration-200",i?"text-foreground":"text-foreground/38 group-hover:text-foreground/72"),strokeWidth:2.25}):(0,t.jsx)("span",{className:(0,y.cn)("block h-1.5 w-1.5 rounded-full transition-colors duration-200",i?"bg-foreground":"bg-foreground
1/28 group-hover:bg-foreground/55")})})},n.id)})}),(0,t.jsxs)("div",{className:"ml-1 flex shrink-0 items-center gap-1",children:[(0,t.jsx)(S.SpotifyLaunchButton,{}),(0,t.jsx)("button",{type:"button",title:"Add space",className:"sidebar-chrome-btn flex h-8 w-8 shrink-0 items-center justify-center transition-all active:scale-95",children:(0,t.jsx)(m.Plus,{className:"h-5 w-5",strokeWidth:2.5})})]})]})}function eL(){let e=ev.DEMO_USER.full_name.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2);return(0,t.jsxs)(T.DropdownMenu,{children:[(0,t.jsx)(T.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Open profile",className:"flex h-7 w-7 shrink-0 items-center justify-center squircle avatar-border bg-muted hover:opacity-80 active:opacity-70 transition-opacity text-[10px] font-medium overflow-hidden",children:ev.DEMO_USER.avatar_url?(0,t.jsx)("img",{src:ev.DEMO_USER.avatar_url,alt:"",className:"h-full w-full object-cover",referrerPolicy:"no-referrer"}):(0,t.jsx)("span",{className:"text-foreground/60",children:e})})}),(0,t.jsxs)(T.DropdownMenuContent,{side:"top",align:"start",sideOffset:12,alignOffset:8,className:"w-60",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 p-2",children:[(0,t.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center squircle avatar-border bg-muted text-xs font-medium",children:(0,t.jsx)("span",{className:"text-muted-foreground",children:e})}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-medium truncate",children:ev.DEMO_USER.full_name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:ev.DEMO_USER.email})]})]}),(0,t.jsx)(T.DropdownMenuSeparator,{}),(0,t.jsxs)(T.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(o.Building2,{className:"mr-1.5 h-4 w-4"}),"everything workspace"]}),(0,t.jsxs)(T.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(h.Settings,{className:"mr-1.5 h-4 w-4"}),"Settings (preview)"]}),(0,t.jsx)(T.DropdownMenuSeparator,{}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 pr-2",children:[(0,t.jsxs)("button",{type:"button",className:"flex items-center gap-2 whitespace-nowrap rounded-md px-2 py-1.5 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground",disabled:!0,children:[(0,t.jsx)(d.LogOut,{className:"mr-1.5 h-4 w-4"}),"Sign out"]}),(0,t.jsx)(eU,{})]})]})]})}function eU(){let{theme:e,setTheme:a}=(0,f.useTheme)(),n="light"===e||"dark"===e||"system"===e?e:"system",i=[{value:"light",icon:_.Sun,label:"Light"},{value:"system",icon:c.Monitor,label:"System"},{value:"dark",icon:u.Moon,label:"Dark"}];return(0,t.jsx)("div",{className:"inline-flex items-center gap-0.5 rounded-full bg-[var(--color-lighter-oat)] dark:bg-white/10 p-0.5 shrink-0",children:i.map(({value:e,icon:i,label:o})=>(0,t.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},className:(0,y.cn)("inline-flex h-7 w-9 items-center justify-center rounded-full transition-colors",n===e?"bg-white text-foreground dark:bg-white/15 dark:text-white":"text-foreground/60 hover:text-foreground dark:text-white/55 dark:hover:text-white"),"aria-pressed":n===e,"aria-label":o,title:o,children:(0,t.jsx)(i,{className:"h-3 w-3"})},e))})}function eq({onClick:e}){return(0,t.jsx)("div",{className:"px-3 pt-1 pb-1",children:(0,t.jsxs)("button",{type:"button",onClick:e,className:"sidebar-search-btn flex w-full items-center gap-2 rounded-lg h-9 px-2.5 text-xs",style:{backgroundColor:"var(--sq-fill)"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="var(--sq-fill-hover)",onMouseLeave:e=>e.currentTarget.style.backgroundColor="var(--sq-fill)","aria-label":"Search",children:[(0,t.jsx)(p.Search,{className:"h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("span",{className:"flex-1 text-left text-[13px] font-medium",children:"Search..."}),(0,t.jsx)("kbd",{className:"pointer-events-none hidden h-5 select-none items-center rounded bg-transparent px-1.5 font-mono text-[10px] font-medium sm:flex",
1style:{borderWidth:"1px",borderStyle:"solid",borderColor:"color-mix(in oklab, var(--sidebar-fg) 25%, transparent)"},children:"/"})]})})}function eF({open:e,onOpenChange:n,onNavigate:i}){let[o,s]=(0,a.useState)("");(0,a.useEffect)(()=>{e||s("")},[e]);let r=(0,a.useMemo)(()=>{if(!o.trim())return R.NAV_ITEMS.slice(0,8);let e=o.toLowerCase();return R.NAV_ITEMS.filter(t=>t.label.toLowerCase().includes(e))},[o]),l=(0,a.useMemo)(()=>{if(!o.trim())return[];let e=o.toLowerCase();return ev.DEMO_CONTACTS.filter(t=>t.name?.toLowerCase().includes(e)||(t.email??"").toLowerCase().includes(e)).slice(0,5)},[o]),d=(0,a.useMemo)(()=>{if(!o.trim())return[];let e=o.toLowerCase();return ev.DEMO_COMPANIES.filter(t=>t.name.toLowerCase().includes(e)).slice(0,5)},[o]),c=(0,a.useMemo)(()=>{if(!o.trim())return[];let e=o.toLowerCase();return ev.DEMO_DEALS.filter(t=>t.name.toLowerCase().includes(e)).slice(0,5)},[o]),u=(0,a.useMemo)(()=>{if(!o.trim())return[];let e=o.toLowerCase();return ev.DEMO_DOCS.filter(t=>t.title.toLowerCase().includes(e)).slice(0,5)},[o]);return(0,t.jsx)(C.Dialog,{open:e,onOpenChange:n,children:(0,t.jsxs)(C.DialogContent,{className:"overflow-hidden p-0 max-w-2xl",children:[(0,t.jsxs)(C.DialogHeader,{className:"sr-only",children:[(0,t.jsx)(C.DialogTitle,{children:"Search"}),(0,t.jsx)(C.DialogDescription,{children:"Jump to a section, contact, company, deal, or contract."})]}),(0,t.jsxs)(j.Command,{shouldFilter:!1,children:[(0,t.jsx)(j.CommandInput,{placeholder:"Search anything...",value:o,onValueChange:s,autoFocus:!0}),(0,t.jsxs)(j.CommandList,{className:"max-h-[420px]",children:[(0,t.jsx)(j.CommandEmpty,{children:"No matches."}),r.length>0&&(0,t.jsx)(j.CommandGroup,{heading:"Go to",children:r.map(e=>(0,t.jsxs)(j.CommandItem,{value:`${e.label}:${e.href}`,onSelect:()=>i(e.href),children:[(0,t.jsx)(e.icon,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:e.label})]},e.href))}),l.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.CommandSeparator,{}),(0,t.jsx)(j.CommandGroup,{heading:"People",children:l.map(e=>(0,t.jsxs)(j.CommandItem,{value:`person:${e.id}:${e.name}`,onSelect:()=>i("/people"),children:[(0,t.jsx)("span",{children:e.name}),e.email&&(0,t.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:e.email})]},e.id))})]}),d.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.CommandSeparator,{}),(0,t.jsx)(j.CommandGroup,{heading:"Companies",children:d.map(e=>(0,t.jsx)(j.CommandItem,{value:`company:${e.id}:${e.name}`,onSelect:()=>i("/companies"),children:(0,t.jsx)("span",{children:e.name})},e.id))})]}),c.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.CommandSeparator,{}),(0,t.jsx)(j.CommandGroup,{heading:"Deals",children:c.map(e=>(0,t.jsx)(j.CommandItem,{value:`deal:${e.id}:${e.name}`,onSelect:()=>i("/deals"),children:(0,t.jsx)("span",{children:e.name})},e.id))})]}),u.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.CommandSeparator,{}),(0,t.jsx)(j.CommandGroup,{heading:"Contracts",children:u.map(e=>(0,t.jsx)(j.CommandItem,{value:`contract:${e.id}:${e.title}`,onSelect:()=>i("/contracts"),children:(0,t.jsx)("span",{children:e.title})},e.id))})]})]})]})]})})}function e$({navItem:e}){let a=e?.icon,n=e?.label??"Section";return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-center py-16 sm:py-24",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-muted",children:a?(0,t.jsx)(a,{className:"h-7 w-7 text-muted-foreground"}):null}),(0,t.jsx)("h1",{className:"mt-5 text-2xl sm:text-3xl font-bold tracking-tight",children:n}),(0,t.jsxs)("p",{className:"mt-2 max-w-sm text-sm text-muted-foreground",children:["This view is part of the full everything app. Try the Brief, Inbox, Contracts, Deals, or Goals tabs to see live demo data - or sign up to use ",n," on your own data."]})]})}let eW="sidebar-chrome-btn flex h-8 w-8 items-center justify-center transition-all overflow-hidden active:scale-95";function eB({onToggle:e}){let a=(0,n.useRouter)(),o=(0,O.useAssistantPanelOptional)(),s=(0,ew.useIsMac)();return(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 pt-3 pb-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:()=>a.back(),className:eW,title:"Go back",children:(0,t.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:(0,i.designPx)(14),height:(0,i.designPx)(11)},children:(0,t.jsx)("path",{d:"M17 7H1M1 7L7 13M1 7L7 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("button",{onClick:()=>a.forward(),className:eW,title:"Go forward",children:(0,t.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:(0,i.designPx)(14),height:(0,i.designPx)(11)},children:(0,t.jsx)("path",{d:"M1 7H17M17 7L11 13M17 7L11 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("button",{className:eW,title:"Refresh",type:"button",children:(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",overflow:"visible",style:{width:(0,i.designPx)(1
15),height:(0,i.designPx)(15),rotate:"-60deg"},children:(0,t.jsx)("path",{d:"M14.5191 18.5C10.019 20.5 0.518991 19 1.01899 10C1.01899 5.02944 5.04843 1 10.019 1C12.5054 1 14.7563 2.00827 16.3852 3.63824C18.014 5.26822 20.019 8 20.019 8M20.019 8V2M20.019 8H14.019",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[o&&(0,t.jsx)("button",{onClick:o.toggle,className:eW,title:`Claude (${(0,ek.assistantChordLabel)(s)})`,children:(0,t.jsx)(D.ClaudeWordmarkIcon,{className:"h-[11px] w-auto"})}),(0,t.jsx)("button",{onClick:e,className:eW,title:"Toggle sidebar",children:(0,t.jsx)(x.SidebarToggleIcon,{})})]})]})}e.s(["DemoApp",0,function({onReady:e,initialHref:n=eE,virtualWidth:o=1512,virtualHeight:s=945,mobileChrome:r=!1,assistantOpen:l,claudeChatId:d,initialSearchOpen:c=!1}={}){let{width:u,startResize:m,isResizing:p}=(0,b.useSidebarResize)(),{resolvedTheme:h}=(0,f.useTheme)(),_="dark"===h?"dark":"light",v=(0,a.useMemo)(()=>{let e;return{main:{"--app-chrome-bg":e="dark"===_?"oklch(0.165 0.008 70)":"#f1eee5","--sidebar-raw":e,"--app-noise":.53,"--noise-image":"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.425' numOctaves='3' stitchTiles='stitch' seed='5'/%3E%3CfeColorMatrix values='1.2 0 0 0 -0.1  1.2 0 0 0 -0.1  1.2 0 0 0 -0.1  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")","--noise-size":"240px 240px"}}},[_]),[w,E]=(0,a.useState)(n),S=(0,a.useRef)(n);(0,a.useEffect)(()=>{S.current!==n&&(S.current=n,E(n))},[n]);let[D,C]=(0,a.useState)("deals"),[T,j]=(0,a.useState)({"deals:Key deals":!0}),[U,q]=(0,a.useState)(!1),[F,$]=(0,a.useState)(!1),[W,B]=(0,a.useState)(!1),[Z,H]=(0,a.useState)(c),[G,z]=(0,a.useState)(!1),Y=(0,a.useRef)(void 0),K=(0,I.useUiScale)(),[V,X]=(0,a.useState)(null),[J,Q]=(0,a.useState)(null),[ee,et]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(!V)return;let e=()=>{let e=V.clientWidth;e>0&&Q(e/o)};e();let t=new ResizeObserver(e);return t.observe(V),()=>t.disconnect()},[V,o]);let ea=(0,a.useRef)(!1);(0,a.useEffect)(()=>{null===J||ea.current||(ea.current=!0,e?.())},[J,e]);let en=ex[w],ei=R.NAV_ITEMS_MAP[w],eo=U&&F,es=U&&!F;(0,a.useEffect)(()=>{if(!eo)return;let e=requestAnimationFrame(()=>B(!0)),t=setTimeout(()=>B(!1),140);return()=>{cancelAnimationFrame(e),clearTimeout(t),B(!1)}},[eo]);let er=eo?`transform 110ms ${eP}`:es?"transform 110ms cubic-bezier(0.25, 0, 0.6, 1)":`transform ${eN}`;function el(e){C(e);let t=eO.find(t=>t.id===e),a=t?.tabs[0];a&&E(a.href)}(0,a.useEffect)(()=>{function e(e){if("/"!==e.key)return;let t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable||(e.preventDefault(),H(!0))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let ed={active:w,onNavigate:function(e){E(e)},onOpenSearch:()=>H(!0),activeSpaceId:D,onSelectSpace:el,openFolders:T,onToggleFolder:function(e){j(t=>({...t,[e]:!t[e]}))}};return(0,t.jsx)(L.DemoProvider,{claudeChatId:d,children:(0,t.jsx)("div",{ref:X,style:{width:"100%",aspectRatio:`${o} / ${s}`,overflow:"clip",position:"relative",visibility:null===J?"hidden":"visible"},children:(0,t.jsxs)("div",{className:"demo-virtual-frame",style:{position:"absolute",top:0,left:0,width:o*K,height:s*K,zoom:1/K,transform:`scale(${J??1})`,transformOrigin:"top left"},children:[(0,t.jsx)("div",{ref:et}),(0,t.jsx)(A.PaneRootProvider,{container:ee,children:(0,t.jsx)(A.PaneContainerProvider,{container:ee,children:(0,t.jsx)(A.ContainOverlaysProvider,{contain:!0,children:(0,t.jsx)(N.IsMobileProvider,{value:r,children:(0,t.jsx)(O.AssistantPanelProvider,{defaultOpen:l,children:(0,t.jsxs)(k.SidebarPreloadProvider,{children:[(0,t.jsx)("div",{className:(0,y.cn)("app-chrome relative w-full h-full overflow-hidden bg-sidebar",r?"flex flex-col":"flex flex-row"),"data-theme-scope":!0,"data-sidebar-tone":_,"data-demo-chrome":!0,style:{background:"var(--app-chrome-bg, var(--sidebar))",...eD[_],...v[D]??{}},children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"shrink-0",style:{height:(0,i.designPx)(60)}}),(0,t.jsxs)("header",{"data-app-sidebar":!0,className:"flex items-center justify-between px-4 shrink-0 h-14",children:[(0,t.jsx)("button",{type:"button",onClick:()=>z(!0),className:"sidebar-chrome-btn flex items-center justify-center w-8 h-8 transition-colors overflow-hidden","aria-label":"Open menu",children:(0,t.jsx)(x.SidebarToggleIcon,{})}),(0,t.jsx)("span",{className:"flex items-center text-foreground",children:(0,t.jsx)(g.EverythingLogo,{size:"xs"})}),(0,t.jsx)("div",{className:"w-8"})]}),(0,t.jsx)("main",{className:"flex flex-1 min-h-0 px-2 pb-2",children:(0,t.jsx)("div",{className:"white-surface bg-card flex flex-col flex-1 min-w-0 rounded-[10px] @container overflow-y-auto overflow-x-hidden",style:{containerType:"inline-size"},children:(0,t.jsx)("div",{className:"p-4",children:en?(0,t.jsx)(ef.DemoErrorBoundary,{fallback:(0,t.jsx)(e$,{navItem:ei}),children:(0,t.jsx)(en,{})}):(0,t.jsx)(e$,{navItem:ei})},w)})}),(0,t.jsx)(P.AssistantPanel,{initialChatId:d}),G&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-0 right-0 bottom-0 z-[50] bg-black/50 animate-in fade-in-0 duration-200",style:{to
1p:(0,i.designPx)(60)},onClick:()=>z(!1),"aria-hidden":!0}),(0,t.jsxs)("aside",{"data-app-sidebar":!0,className:"absolute left-0 bottom-0 z-[51] flex flex-col w-[260px] bg-sidebar animate-in slide-in-from-left duration-200",style:{top:(0,i.designPx)(60),background:"var(--app-chrome-bg, var(--sidebar))"},children:[(0,t.jsx)(eB,{onToggle:()=>z(!1)}),(0,t.jsx)(eC,{...ed,onNavigate:e=>{E(e),z(!1)},onOpenSearch:()=>{z(!1),H(!0)},onSelectSpace:e=>{el(e),z(!1)}})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[U&&!F&&(0,t.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-10 z-[43]",onMouseEnter:()=>{clearTimeout(Y.current),Y.current=setTimeout(()=>$(!0),40)},onMouseLeave:()=>clearTimeout(Y.current)}),(0,t.jsx)("div",{className:"shrink-0",style:{width:U?0:u,transition:p?"none":`width ${eN}`}}),(0,t.jsxs)("aside",{"data-app-sidebar":!0,className:(0,y.cn)("absolute overflow-hidden flex flex-col",eo?"top-2 bottom-2 left-2 z-[44] rounded-[10px]":"top-0 bottom-0 left-0 z-40"),style:{width:u,transform:es?"translateX(-100%)":W?"translateX(4px)":"translateX(0)",transition:er,...eo?{background:"var(--app-chrome-bg, var(--sidebar))",border:"1px solid rgba(255,255,255,0.25)",boxShadow:"0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08)"}:void 0},onMouseLeave:()=>{clearTimeout(Y.current),U&&$(!1)},children:[(0,t.jsx)(eB,{onToggle:function(){$(!1),q(e=>!e)}}),(0,t.jsx)(eC,{...ed}),!U&&(0,t.jsx)("div",{className:"absolute top-0 right-0 bottom-0 w-1 cursor-col-resize z-50 transition-colors hover:bg-foreground
1/8 active:bg-foreground/12",onMouseDown:m})]}),(0,t.jsxs)("main",{className:(0,y.cn)("flex flex-1 min-w-0 min-h-0 flex-row pt-3 pr-3 pb-3",U?"pl-3":"pl-0"),style:{transition:`padding ${eN}`},children:[(0,t.jsx)("div",{className:"white-surface bg-card flex flex-col flex-1 min-w-0 rounded-[10px] @container",style:{containerType:"inline-size"},children:(0,t.jsxs)("div",{className:"flex-1 min-h-0 min-w-0 flex flex-row",children:[(0,t.jsx)("div",{"data-scroll-root":!0,className:"flex-1 min-h-0 min-w-0 flex flex-col overflow-y-auto",children:(0,t.jsx)("div",{className:(0,y.cn)(eS.has(w)?"flex flex-1 flex-col min-h-0 p-4 sm:p-6":"p-4 sm:p-12"),children:en?(0,t.jsx)(ef.DemoErrorBoundary,{fallback:(0,t.jsx)(e$,{navItem:ei}),children:(0,t.jsx)(en,{})}):(0,t.jsx)(e$,{navItem:ei})},w)}),(0,t.jsx)(M.RecordDockSlot,{})]})}),(0,t.jsx)("div",{id:"right-sidebar-portal",className:"shrink-0 flex h-full"})]}),(0,t.jsx)(P.AssistantPanel,{initialChatId:d})]})}),(0,t.jsx)(eF,{open:Z,onOpenChange:H,onNavigate:e=>{H(!1),E(e)}})]})})})})})})]})})})}])},546445,e=>{"use strict";var t=e.i(271645);class a extends t.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.warn("[demo] page crashed, falling back to placeholder",e,t?.componentStack)}componentDidUpdate(e){e.children!==this.props.children&&this.state.hasError&&this.setState({hasError:!1})}render(){return this.state.hasError?this.props.fallback:this.props.children}}e.s(["DemoErrorBoundary",0,a])},760382,785405,e=>{"use strict";var t=e.i(843476),a=e.i(325821),n=e.i(136484);e.s(["DemoBriefPage",0,function(){return(0,t.jsx)(a.DailyHome,{userId:n.DEMO_USER.id,userName:n.DEMO_USER.first_name,workspaceId:n.DEMO_USER.workspace_id,accountEmail:n.DEMO_USER.email,workspaceName:n.DEMO_WORKSPACE.name,workspaceLogoUrl:null})}],760382);var i=e.i(972811);let o={id:"wf_demo",owner_id:n.DEMO_USER.id,workspace_id:n.DEMO_USER.workspace_id,name:"Reply received → pause the sequence",description:"Any inbound reply pauses the sequence, notifies the owner, and logs the interaction on the record.",status:"active",trigger_type:"message_reply_received",trigger_config:{entities:["contacts"]},settings:{run_once_per_record:!1,cooldown_minutes:1,max_runs_per_hour:200},last_run_at:"2026-06-18T08:41:00Z",run_count:211,deleted_at:null,created_at:"2026-04-02T09:00:00Z",updated_at:"2026-06-18T09:00:00Z"},s=(e,t,a,n,i,s,r,l=null,d=null)=>({id:e,workflow_id:o.id,node_type:t,action_type:a,position:n,config:{label:i},parent_node_id:l,branch_key:d,rr_cursor:0,node_x:s,node_y:r,created_at:o.created_at,updated_at:o.updated_at}),r=[s("n_cond","condition",null,0,"Is the reply from a person in an active sequence?",0,160),s("n_pause","action","remove_from_sequences",1,"Pause their sequence",-220,340,"n_cond","met"),s("n_notify","action","notify_team",2,"Tell the owner in Slack",-220,500,"n_pause"),s("n_log","action","log_activity",3,"Log the reply on the record",220,340,"n_cond","not_met")],l=n.DEMO_WORKSPACE_MEMBERS.map(e=>({id:e.userId,full_name:e.fullName,email:e.email??null,avatar_url:e.avatarUrl??null}));e.s(["DemoWorkflowBuilderPage",0,function(){return(0,t.jsx)("div",{className:"flex h-[640px] flex-col",children:(0,t.jsx)(i.WorkflowBuilder,{workflow:o,nodes:r,members:l})})}],785405)},889407,900160,934462,570354,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(204125),i=e.i(247167),o=e.i(136484),s=e.i(82004);let r=[{id:"tst_new",value:"new",label:"New",color:"blue",sort_order:0,is_terminal:!1},{id:"tst_open",value:"open",label:"Open",color:"yellow",sort_order:1,is_terminal:!1},{id:"tst_pending",value:"pending",label:"Pending",color:"orange",sort_order:2,is_terminal:!1},{id:"tst_resolved",value:"resolved",label:"Resolved",color:"green",sort_order:3,is_terminal:!0},{id:"tst_closed",value:"closed",label:"Closed",color:"gray",sort_order:4,is_terminal:!0}],l=[{id:"tcat_general",name:"General",color:"blue",sla_hours:48,sort_order:0},{id:"tcat_billing",name:"Billing",color:"violet",sla_hours:24,sort_order:1},{id:"tcat_technical",name:"Technical",color:"red",sla_hours:8,sort_order:2},{id:"tcat_onboarding",name:"Onboarding",color:"teal",sla_hours:72,sort_order:3}],d=e=>
1{let t=o.DEMO_CONTACTS.find(t=>t.id===e);return t?{id:t.id,name:t.name??null,image_url:t.image_url??null,email:t.email??null}:null},c=e=>{let t=o.DEMO_COMPANIES.find(t=>t.id===e);return t?{id:t.id,name:t.name??null,logo_url:t.logo_url??null,domain:t.domain??null}:null},u=[{id:"tkt_1",ticket_number:1042,subject:"Cannot export contracts to PDF",stage:"new",priority:"urgent",source:"email",category_id:"tcat_technical",assignee_user_id:"u_lana",sla_due_at:"2026-05-08T17:00:00Z",last_activity_at:"2026-05-08T09:12:00Z",created_at:"2026-05-08T08:40:00Z",requester:d("p_lana"),company:c("co_stark")},{id:"tkt_2",ticket_number:1041,subject:"Double-charged on the Team plan this month",stage:"open",priority:"high",source:"chat",category_id:"tcat_billing",assignee_user_id:"u_pat",sla_due_at:"2026-05-09T12:00:00Z",last_activity_at:"2026-05-08T07:55:00Z",created_at:"2026-05-07T16:20:00Z",requester:d("p_pat"),company:c("co_globex")},{id:"tkt_3",ticket_number:1040,subject:"How do I invite my whole team at once?",stage:"open",priority:"medium",source:"chat",category_id:"tcat_onboarding",assignee_user_id:"demo-user",sla_due_at:"2026-05-10T18:00:00Z",last_activity_at:"2026-05-07T14:30:00Z",created_at:"2026-05-07T11:05:00Z",requester:d("p_marisol"),company:c("co_acme")},{id:"tkt_4",ticket_number:1039,subject:"Calendar sync stopped pulling new events",stage:"pending",priority:"high",source:"email",category_id:"tcat_technical",assignee_user_id:"u_marisol",sla_due_at:"2026-05-07T20:00:00Z",last_activity_at:"2026-05-07T10:10:00Z",created_at:"2026-05-06T13:45:00Z",requester:d("p_ravi"),company:c("co_stark")},{id:"tkt_5",ticket_number:1038,subject:"Request: add Slack notifications for new deals",stage:"open",priority:"low",source:"manual",category_id:"tcat_general",assignee_user_id:null,sla_due_at:"2026-05-12T17:00:00Z",last_activity_at:"2026-05-06T09:00:00Z",created_at:"2026-05-06T08:30:00Z",requester:d("p_jordan"),company:c("co_north")},{id:"tkt_6",ticket_number:1037,subject:"Need an invoice copy for accounting",stage:"pending",priority:"medium",source:"email",category_id:"tcat_billing",assignee_user_id:"u_pat",sla_due_at:"2026-05-08T11:00:00Z",last_activity_at:"2026-05-06T15:20:00Z",created_at:"2026-05-05T17:40:00Z",requester:d("p_lana"),company:c("co_stark")},{id:"tkt_7",ticket_number:1036,subject:"Walkthrough of the sequences builder",stage:"new",priority:"medium",source:"chat",category_id:"tcat_onboarding",assignee_user_id:"demo-user",sla_due_at:"2026-05-09T16:00:00Z",last_activity_at:"2026-05-08T08:05:00Z",created_at:"2026-05-08T07:50:00Z",requester:d("p_pat"),company:c("co_globex")},{id:"tkt_8",ticket_number:1035,subject:"Email tracking pixel flagged by our firewall",stage:"pending",priority:"high",source:"email",category_id:"tcat_technical",assignee_user_id:"u_lana",sla_due_at:"2026-05-06T18:00:00Z",last_activity_at:"2026-05-05T12:30:00Z",created_at:"2026-05-04T10:15:00Z",requester:d("p_ravi"),company:c("co_stark")},{id:"tkt_9",ticket_number:1034,subject:"Upgraded to Business, thank you!",stage:"resolved",priority:"low",source:"chat",category_id:"tcat_general",assignee_user_id:"u_pat",sla_due_at:null,last_activity_at:"2026-05-03T09:40:00Z",created_at:"2026-05-02T14:00:00Z",requester:d("p_marisol"),company:c("co_acme")},{id:"tkt_10",ticket_number:1033,subject:"Password reset email never arrived",stage:"resolved",priority:"medium",source:"email",category_id:"tcat_technical",assignee_user_id:"u_marisol",sla_due_at:null,last_activity_at:"2026-05-02T11:25:00Z",created_at:"2026-05-01T16:50:00Z",requester:d("p_jordan"),company:c("co_north")}];function m(e){return`https://i.pravatar.cc/200?u=${encodeURIComponent(e)}`}function p(e){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=128`}let h=[{source:"external",kind:"person",id:"urn:li:activity:7190000000000000001",ugc_post_urn:"urn:li:ugcPost:7190000000000000001",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000001",content:"Reps who block 30 minutes a day to comment on their buyers' posts are booking 2-3x more meetings than the ones who only send cold DMs. Attention is earned in the feed before it's earned in the inbox.",posted_at:"2026-05-08T13:20:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000001",media:null,metrics:{views:28400,likes:642,comments:81,reposts:37},engagement:760,is_target_account:!1,author:{id:"urn:li:fsd_profile:ext-amelia-stone",name:"Amelia Stone",avatar_url:m("amelia-stone-saas"),headline:"VP of Sales at Ramp · ex-Stripe · writing about modern GTM",vanity:"ameliastone"}},{source:"external",kind:"person",id:"urn:li:activity:7190000000000000002",ugc_post_urn:"urn:li:ugcPost:7190000000000000002",social_detail_urn:"urn:li:fs_socialDetail
1:urn:li:activity:7190000000000000002",content:"Unpopular opinion: most 'AI SDR' tools just let you send bad emails faster. The teams winning with AI are using it to research deeper, not to spam wider. Personalization at scale only works if the personalization is actually good.",posted_at:"2026-05-08T09:05:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000002",media:null,metrics:{views:41200,likes:938,comments:154,reposts:62},engagement:1154,is_target_account:!0,author:{id:"urn:li:fsd_profile:ext-david-okafor",name:"David Okafor",avatar_url:m("david-okafor-revops"),headline:"Founder & CEO at Linear · building the tool for high-velocity teams",vanity:"davidokafor"}},{source:"external",kind:"company",id:"urn:li:activity:7190000000000000003",ugc_post_urn:"urn:li:ugcPost:7190000000000000003",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000003",content:"New benchmark report: B2B teams that reply to an inbound lead within 5 minutes are 9x more likely to convert it. We pulled the data from 12M+ sales interactions. The speed-to-lead gap is the cheapest win still left on the table.",posted_at:"2026-05-07T17:40:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000003",media:null,metrics:{views:53800,likes:421,comments:38,reposts:96},engagement:555,is_target_account:!0,author:{id:"urn:li:fsd_company:ext-stripe",name:"Stripe",avatar_url:p("stripe.com"),headline:"Financial infrastructure for the internet",vanity:"stripe"}},{source:"external",kind:"person",id:"urn:li:activity:7190000000000000004",ugc_post_urn:"urn:li:ugcPost:7190000000000000004",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000004",content:"Discovery tip nobody talks about: stop asking 'what's your budget?' and start asking 'what does this cost you every month you don't fix it?' One question makes you a vendor. The other makes you a partner.",posted_at:"2026-05-07T12:10:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000004",media:null,metrics:{views:19600,likes:503,comments:67,reposts:22},engagement:592,is_target_account:!1,author:{id:"urn:li:fsd_profile:ext-priya-nair",name:"Priya Nair",avatar_url:m("priya-nair-sales-coac
1h"),headline:"Sales coach to Series A–C founders · 3x VP Sales · MEDDICC nerd",vanity:"priyanair"}},{source:"external",kind:"person",id:"urn:li:activity:7190000000000000005",ugc_post_urn:"urn:li:ugcPost:7190000000000000005",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000005",content:"We killed our 11-stage pipeline and replaced it with 4. Forecast accuracy went UP. Turns out the stages were theater. Reps were guessing which box to drag the deal into. Fewer stages, clearer exit criteria, better data.",posted_at:"2026-05-06T15:25:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000005",media:null,metrics:{views:33100,likes:712,comments:94,reposts:48},engagement:854,is_target_account:!1,author:{id:"urn:li:fsd_profile:ext-marcus-bell",name:"Marcus Bell",avatar_url:m("marcus-bell-cro"),headline:"CRO at Notion · obsessed with pipeline hygiene and rep enablement",vanity:"marcusbell"}},{source:"external",kind:"company",id:"urn:li:activity:7190000000000000006",ugc_post_urn:"urn:li:ugcPost:7190000000000000006",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000006",content:"Hiring is the strongest buying signal you're not tracking. When a company opens 5+ sales roles in a quarter, they're scaling their GTM motion, and they need tools. We just shipped job-change + hiring alerts inside the workspace.",posted_at:"2026-05-06T10:00:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000006",media:null,metrics:{views:17850,likes:289,comments:24,reposts:31},engagement:344,is_target_account:!1,author:{id:"urn:li:fsd_company:ext-linear",name:"Linear",avatar_url:p("linear.app"),headline:"The issue tracking tool you’ll enjoy using",vanity:"linear"}},{source:"external",kind:"person",id:"urn:li:activity:7190000000000000007",ugc_post_urn:"urn:li:ugcPost:7190000000000000007",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000007",content:"The follow-up that closed our biggest deal of the quarter wasn't a follow-up at all. It was a screenshot of their CFO liking a competitor's post, with one line: 'Saw this, want to make sure we're the easy choice when this comes up internally.' Relevance > cadence.",posted_at:"2026-05-05T18:45:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000007",media:null,metrics:{views:24700,likes:588,comments:71,reposts:26},engagement:685,is_target_account:!1,author:{id:"urn:li:fsd_profile:ext-sofia-ramos",name:"Sofia Ramos",avatar_url:m("sofia-ramos-ae"),headline:"Enterprise AE at Figma · President’s Club ’24 · I post my actual playbook",vanity:"sofiaramos"}},{source:"external",kind:"person",id:"urn:li:activity:7190000000000000008",ugc_post_urn:"urn:li:ugcPost:7190000000000000008",social_detail_urn:"urn:li:fs_socialDetail:urn:li:activity:7190000000000000008",content:"RevOps reality check: your reps don't hate the CRM. They hate that updating it gives them nothing back. The second the system started surfacing 'who to call next' instead of just 'log your calls,' adoption went from 40% to 95% in two weeks.",posted_at:"2026-05-05T08:30:00Z",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:activity:7190000000000000008",media:null,metrics:{views:15300,likes:397,comments:52,reposts:19},engagement:468,is_target_account:!1,author:{id:"urn:li:fsd_profile:ext-tom-vasquez",name:"Tom Vasquez",avatar_url:m("tom-vasquez-revops"),headline:"Head of RevOps at Loom · I make sales data people actually use",vanity:"tomvasquez"}}],_=[{id:"sp_pub_1",content:"We stopped tracking 'activities' and started tracking conversations that move deals forward. Pipeline coverage went from 2.1x to 3.4x in a quarter. Here's the exact change we made to our weekly review →",published_at:"2026-05-07T14:30:00Z",linkedin_post_urn:"urn:li:share:7000000000000000001",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:share:7000000000000000001",author:{id:o.DEMO_USER.id,name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url}},{id:"sp_pub_2",content:"Cold outreach isn't dead. Lazy outreach is. I reviewed 50 of our top-replied messages last week and every single one referenced something specific the prospect had posted or shipped. Relevance is the whole game.",published_at:"2026-05-04T16:15:00Z",linkedin_post_urn:"urn:li:share:7000000000000000002",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:share:7000000000000000002",author:{id:o.DEMO_USER.id,name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url}},{id:"sp_pub_3",content:"The best discovery question I've ever used: 'What happens if you do nothing?' It surfaces the real cost of the status quo faster than any feature pitch ever could.",published_at:"2026-04-30T11:00:00Z",linkedin_post_urn:"urn:li:share:7000000000000000003",linkedin_post_url:"https://www.linkedin.com/feed/update/urn:li:share:7000000000000000003",author:{id:o.DEMO_USER.id,name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url}}],g={posts:h,upcoming:[{id:"sp_sched_1",content:"Three things every founder-led sales motion gets wrong in the first year (and how to fix each one before it costs you a quarter of pipeline) 🧵",scheduled_at:"2026-05-09T15:00:00Z",author:{id:o.DEMO_USER.id,name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url}},{id:"sp_sched_2",content:"Just wrapped our Q2 pipeline review. Sharing the one dashboard view that finally got my whole team to stop sandbagging their forecasts. Screenshot inside.",scheduled_at:"2026-05-12T13:30:00Z",author:{id:o.DEMO_USER.id,name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url}},{id:"sp_sched_3",content:"How we multi-thread an enterprise deal: who we map, the order we reach out, and the exact intro-ask that gets a champion to loop in their VP.",scheduled_at:"2026-05-14T16:00:00Z",author:{id:o.DEMO_USER.id,name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url}}],recentPublished:_},f="gmail_demo",y={name:o.DEMO_USER.full_name,email:o.DEMO_USER.email},v={name:"Lana Carter",email:`lana@${o.DEMO_COMPANY_DOMAIN.co_stark}`},b={name:"Ravi Iyer",email:`ravi@${o.DEMO_COMPANY_DOMAIN.co_stark}`},w={name:"Jordan Yu",email:`jordan@${o.DEMO_COMPANY_DOMAIN.co_north}`},k={thr_stark_msa:{subject:"Re: Multi-year proposal",contactId:"p_lana",companyId:"co_stark",lastMessageAt:"2026-05-05T11:48:00Z",messages:[{from:v,body:`Hi ${o.DEMO_USER.first_name},
2
3We walked the team through the proposal this morning. The three-year term works, and finance is comfortable with the ramp as written.
4
5Two things before we sign: procurement wants the SLA credits spelled out, and we need legal to look at the data-processing addendum.
6
7Can we get both on paper this week?
8
9Lana`}
9,{from:y,isSent:!0,body:`Lana,
10
11That's great news. Both are easy:
12
13• SLA credits - 99.9% uptime, 10% monthly credit per 0.1% below, capped at 50%. Already in Schedule B, I'll pull it to the front of the doc so procurement isn't hunting for it.
14• DPA - sending our standard one over today. It's the same one ${o.DEMO_COMPANY_NAME.co_north} signed, so your counsel may have seen it already.
15
16I'll have both in your inbox by end of day. Friday for signature?`},{from:v,body:`Perfect. Friday works on our side.
17
18One more - can you loop in whoever handles onboarding? I'd like the kickoff scheduled before the quarter closes so the team isn't waiting on us.`},{from:v,body:"Sounds good - let's push for Friday and loop in legal."}]},thr_north_security:{subject:"Security overview before our call",contactId:"p_jordan",companyId:"co_north",lastMessageAt:"2026-05-05T11:00:00Z",messages:[{from:y,isSent:!0,body:`Hi Jordan,
19
20Looking forward to Thursday. I've attached the deck we'll walk through - mostly architecture and the rollout plan.
21
22Anything specific you want covered?`},{from:w,body:`Thanks - this is helpful.
23
24Our security review happens in parallel with the pilot, so it would save a round trip if you could share the security overview before our call: SOC 2 report, where data is stored, and how access is scoped per workspace.
25
26Could you share the security overview before our call?`}]},thr_stark_redline:{subject:"Redlines on the MSA",contactId:"p_ravi",companyId:"co_stark",lastMessageAt:"2026-05-05T09:20:00Z",messages:[{from:y,isSent:!0,body:"Ravi - attaching the MSA for your team's review. Lana has already signed off on commercial terms, so this should just be the legal pass."},{from:b,body:`Went through it with counsel this morning.
27
28Redlines attached - most edits are around the SLA section. Nothing structural: we tightened the notice period on termination for convenience, and asked for the credits to be automatic rather than request-based.
29
30If those two land, we're done.`}]}},x=o.DEMO_PERSON_IMG;function E(e){let t=new Map;for(let a of e.messages)t.set(a.from.email,a.from);return t.set(y.email,y),[...t.values()]}var S=e.i(390900);let M="demo-claude-chat",D=o.DEMO_USER.workspace_id,O=o.DEMO_USER.id,P="2026-05-08T09:12:00.000Z",N="2026-05-08T09:12:41.000Z",I="2026-05-08T09:14:02.000Z",C="2026-05-08T09:15:10.000Z",T="demo-claude-campaign",j=[{id:T,workspace_id:D,user_id:O,title:"Q3 outbound campaign",agent:"anthropic",cli_session_id:"demo-session-campaign",archived_at:null,created_at:"2026-05-08T09:18:00.000Z",updated_at:"2026-05-08T09:33:00.000Z"},{id:M,workspace_id:D,user_id:O,title:`${S.DEMO_PROFILE_PERSON.company.name} renewal prep`,agent:"anthropic",cli_session_id:"demo-session",archived_at:null,created_at:P,updated_at:C},{id:"demo-claude-chat-2",workspace_id:D,user_id:O,title:"Which deals slipped this quarter?",agent:"anthropic",cli_session_id:"demo-session-2",archived_at:null,created_at:"2026-05-06T16:40:00.000Z",updated_at:"2026-05-06T16:44:00.000Z"}];function R(e,t,a,n){return{id:e,chat_id:M,workspace_id:D,user_id:O,prompt:t,agent:"anthropic",status:"succeeded",error:null,error_code:null,partial_text:null,partial_thinking:null,event_count:3,attachment_paths:null,mentions:null,context:null,model:"opus",effort:"medium",expires_at:null,claimed_at:a,heartbeat_at:n,started_at:a,finished_at:n,duration_ms:41e3,cost_usd:null,created_at:a,edited_at:null}}function A(e,t,a,n){return{run_id:e,chat_id:M,user_id:O,seq:t,type:"assistant",payload:{message:{content:a}},created_at:n}}let L=e=>`mcp__everything__${e}`,U=S.DEMO_PROFILE_PERSON,q=[R("demo-run-1",`What should I know before my call with ${U.first_name} today?`,P,N),R("demo-run-2","Draft the follow-up and put the renewal date on my calendar.",I,C)],F=[{run_id:"demo-run-1",chat_id:M,user_id:O,seq:1,type:"thinking_text",payload:{text:"The call is in an hour, so what matters is what changed since they last spoke - the thread, the open deal, and anything on the account that would embarrass them to have missed. Pulling the record first, then the conversations across every channel."},created_at:P},A("demo-run-1",2,[{type:"tool_use",name:L("get_record"),input:{type:"person",name:U.name}},{type:"tool_use",name:L("find_conversations_for_person"),input:{name:U.name}},{type:"tool_use",name:L("search_records"),input:{type:"deal",company:U.company.name}}],P),A("demo-run-1",3,[{type:"text",text:`**${U.name}** - ${U.job_title} at ${U.company.name}, your champion since March.
31
32- **Open deal:** ${U.company.name}
32 renewal, $148k, in Negotiation. Close date slipped a week to May 22.
33- **Last touch:** she replied on LinkedIn 2 days ago - "sending this to procurement Monday". Procurement hasn't been in touch.
34- **Watch out for:** their security review is still open. Priya on your side owes them the SOC 2 bridge letter, and it's 6 days old.
35
36Lead with the bridge letter. It's the only thing standing between her and a signature, and she'll have been asked about it internally.`}],N),A("demo-run-2",1,[{type:"tool_use",name:L("draft_email"),input:{to:U.email}},{type:"tool_use",name:L("create_calendar_event"),input:{title:`${U.company.name} renewal`}}],I),A("demo-run-2",2,[{type:"text",text:`Done - both are waiting on you:
37
38- **Draft saved** to her thread: the bridge letter attached, procurement CC'd, and one line asking to hold May 22.
39- **"${U.company.name} renewal - decision"** on your calendar for May 20, 9:00am, with her and procurement invited.
40
41Nothing has been sent yet. Open the draft to read it before it goes.`}],C)],$="Plan our Q3 outbound to AI-native GTM teams: write the strategy in a doc, build the sequence from it, then find 25 people who match and enroll them.",W=[{prompt:$,blocks:[{kind:"thinking",text:"Three pieces of work, and the order matters: the brief decides the sequence, and the sequence decides who is worth enrolling. So I write the strategy into a doc first, build the sequence from what it says, then run the search its targeting section describes and enroll the matches."},{kind:"blocks",content:[{type:"tool_use",name:L("create_doc"),input:{title:"Q3 outbound: AI-native GTM teams"}},{type:"tool_use",name:L("update_doc"),input:{sections:"ICP, angle, sequence shape, targets"}},{type:"tool_use",name:L("create_sequence"),input:{name:"Q3 · AI-native GTM teams"}},{type:"tool_use",name:L("add_sequence_step"),input:{day:0,channel:"linkedin"}},{type:"tool_use",name:L("add_sequence_step"),input:{day:2,channel:"email"}},{type:"tool_use",name:L("add_sequence_step"),input:{day:5,channel:"linkedin_comment"}},{type:"tool_use",name:L("add_sequence_step"),input:{day:9,channel:"email"}},{type:"tool_use",name:L("search_linkedin_people"),input:{titles:"Head of GTM, VP Revenue, founding AE",size:"20-200"}},{type:"tool_use",name:L("bulk_update_records"),input:{action:"add",count:25}},{type:"tool_use",name:L("enroll_people_in_sequence"),input:{sequence:"Q3 · AI-native GTM teams",count:25}}]},{kind:"blocks",content:[{type:"text",text:`All three are done and open in the workspace.
42
43- **Brief:** *Q3 outbound: AI-native GTM teams* in Docs. Seed to Series B, 20-200 people, GTM leads and founding AEs, US and UK. Angle: open with something true about their account, ask one small question, no category pitch.
44- **Sequence:** *Q3 \xb7 AI-native GTM teams*, four steps straight from the brief - LinkedIn connect on day 0, email on day 2, a comment on day 5, a Loom on day 9. A reply at any step pauses the rest, so nobody gets day 9 after saying yes.
45- **People:** 25 found on LinkedIn, enriched on the way in (verified work email, current title, company linked as its own account) and enrolled. 4 were already in the workspace, so they were merged rather than duplicated.
46
47Nothing has gone out yet. Edit the brief and I will rebuild the sequence off whatever it says.`}]}]}];function B(e){let t=e.trim();return W.find(e=>e.prompt===t)?.blocks??null}let Z=[];function H(e,t,a){let n=Z.find(t=>t.runId===e);if(n){n.prompt=a,n.at=Date.now();return}Z.push({runId:e,chatId:t,prompt:a,at:Date.now()}),Z.length>40&&Z.splice(0,Z.length-40)}function G(e){let t=e.toLowerCase();return/draft|write|reply|email|follow.?up|message/.test(t)?`Drafted it against what's actually on the record - her last LinkedIn reply, the open renewal, and the security review that's still blocking it. It's saved to the thread, not sent, so you can read it first.
48
49*This is a demo, so nothing left the page. In your own workspace this turn would run on your machine, under your Claude subscription, with your records in front of it.*`:/who|find|search|list|show|which/.test(t)?`Searched your records and pulled the matches with their open deals and last touch, so the list is ordered by who's actually moving rather than alphabetically.
50
51*This is a demo, so it answered from the seeded workspace you're looking at. Connected to your own data, the same question reads your real records, inbox and calendar.*`:`Here's the short version, built from the record, the conversation history across every channel, and what's open on the deal.
52
53*This is a demo, so the answer is scripted. In your workspace the turn runs on your own computer under your Claude subscription - the server never spends AI money, and your records never leave it.*`}function z(){let e;return[...(e=Date.now(),Z.map(t=>{let a,n,i=e-t.at,o=i>=1e4,s=!o&&i>=2500,r=function(e){let t=B(e);if(t)for(let e=t.length-1;e>=0;e-=1){let a=t[e];if("blocks"===a.kind){let e=a.content.find(e=>"text"===e.type);if(e?.text)return e.text}}return G(e)}(t.prompt),l=Math.min(1,(i-2500)/6e3);return{...R(t.runId,t.prompt,new Date(t.at).toISOString(),new Date(t.at+1e4).toISOString()),chat_id:t.chatId,status:o?"succeeded":"running",partial_text:s?r.slice(0,Math.round(r.length*l)):null,partial_thinking:o||s?null:(a=B(t.prompt),(n=a?.find(e=>"thinking"===e.kind))&&"thinking"===n.kind?n.text:null),finished_at:o?new Date(t.at+1e4).toISOString():null,duration_ms:o?1e4:null,event_count:+!!o}})),...q]}function Y(){let e=new Set(Z.map(e=>e.runId));return[...function(){let e=Date.now(),t=[];for(let a of Z){if(e-a.at<1e4)continue;let n=new Date(a.at+1e4).toISOString(),i=B(a.prompt);if(i){i.forEach((e,i)=>{t.push({run_id:a.runId,chat_id:a.chatId,user_id:O,seq:900+i,type:"thinking"===e.kind?"thinking_text":"assistant",payload:"thinking"===e.kind?{text:e.text}:{message:{content:e.content}},created_at:n})});continue}t.push({run_id:a.runId,chat_id:a.chatId,user_id:O,seq:900,type:"assistant",payload:{message:{content:[{type:"text",text:G(a.prompt)}]}},created_at:n})}return t}(),...F.filter(t=>!e.has(t.run_id))]}function K(){return[{id:"demo-device",workspace_id:D,user_id:O,platform:"macos",last_seen_at:new Date().toISOString(),claude_cli_status:"ok",codex_cli_status:"ok",cursor_cli_status:"ok",cursor_catalog:{commands:[],skills:[],models:[{value:"auto",label:"Auto",description:null,resolvedModel:null,efforts:[]},{value:"composer-2.5",label:"Composer 2.5",description:null,resolvedModel:null,efforts:[]}]},codex_catalog:{commands:[{name:"brief",description:"Everything worth knowing before a call",source:null}],skills:[]},claude_catalog:{commands:[{name:"brief",description:"Everything worth knowing before a call",source:null},{name:"follow-up",description:"Draft the next touch on a thread",source:null}],skills:[{name:"pipeline-review",description:"Walk the open deals and flag what slipped",source:null}],models:[{value:"default",label:"Default (recommended)",description:"Opus 5 with 1M context · Best for everyday, complex tasks",resolvedModel:"claude-opus-5[1m]",efforts:["low","medium","high","xhigh","max"]},{value:"claude-fable-5-1[1m]",label:"Fable",description:"Fable 5.1 · Most capable for your hardest and longest-running tasks",resolvedModel:"
53claude-fable-5-1",efforts:["low","medium","high","xhigh","max"]},{value:"sonnet",label:"Sonnet",description:"Sonnet 5 · Efficient for routine tasks",resolvedModel:"claude-sonnet-5",efforts:["low","medium","high","xhigh","max"]},{value:"haiku",label:"Haiku",description:"Haiku 4.5 · Fastest for quick answers",resolvedModel:"claude-haiku-4-5-20251001",efforts:[]}]},revoked_at:null}]}function V(e,t,a){let n=`<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="${e}"/><stop offset="1" stop-color="${t}"/></linearGradient></defs><rect width="300" height="300" fill="url(#g)"/><text x="150" y="150" font-family="Georgia,serif" font-size="120" fill="rgba(255,255,255,0.82)" text-anchor="middle" dominant-baseline="central">${a}</text></svg>`;return`data:image/svg+xml;utf8,${encodeURIComponent(n)}`}e.s(["CAMPAIGN_PROMPT",0,$,"DEMO_CLAUDE_CAMPAIGN_CHAT_ID",0,T,"DEMO_CLAUDE_CHATS",0,j,"DEMO_CLAUDE_CHAT_ID",0,M,"demoClaudeDeviceRows",0,K,"demoClaudeEvents",0,Y,"demoClaudeRuns",0,z,"recordDemoRun",0,H],900160);let X={id:"demo-track-1",uri:"spotify:track:demo1",name:"Weightless",artists:"Marconi Union",album:"Ambient Transmissions",artwork:V("#3b6ea5","#7fb3d5","&#9835;"),durationMs:488e3,url:null},J=null,Q={connected:!0,configured:!0,displayName:"Jordan Ellis",email:"[email protected]",avatarUrl:null,product:"premium",canControl:!0,connectedAt:"2026-01-14T10:00:00.000Z"},ee={devices:[{id:"demo-device",name:"Jordan's MacBook Pro",type:"Computer",isActive:!0,volumePercent:62},{id:"demo-phone",name:"iPhone",type:"Smartphone",isActive:!1,volumePercent:100},{id:"demo-speaker",name:"Office HomePod",type:"Speaker",isActive:!1,volumePercent:40}]},et=(e,t,a,n,i)=>({id:e,uri:`spotify:${n}:${e}`,name:t,subtitle:a,image:i,kind:n,playsAsContext:"track"!==n}),ea={recent:[et("demo-pl-1","Deep Focus","Playlist · 148 tracks","playlist",V("#2f5d50","#6fae95","&#9834;")),et("demo-al-1","Ambient Transmissions","Marconi Union","album",V("#3b6ea5","#7fb3d5","&#9835;"))],playlists:[et("demo-pl-1","Deep Focus","Playlist · 148 tracks","playlist",V("#2f5d50","#6fae95","&#9834;")),et("demo-pl-2","Morning Pipeline","Playlist · 62 tracks","playlist",V("#8a5a2b","#d3a06a","&#9836;"))],albums:[et("demo-al-1","Ambient Transmissions","Marconi Union","album",V("#3b6ea5","#7fb3d5","&#9835;")),et("demo-al-2","Long Division","Nils Frahm","album",V("#4a4a6a","#9a9ac0","&#9838;"))],artists:[et("demo-ar-1","Marconi Union","Artist","artist",V("#3b6ea5","#7fb3d5","&#9833;")),et("demo-ar-2","Nils Frahm","Artist","artist",V("#4a4a6a","#9a9ac0","&#9833;"))]};var en=e.i(607709),ei=e.i(839114);function eo(e,t,a){let n=Math.round((e-t)*100)/100;return{charge_id:`ch_demo_${Math.round(100*e)}`,source:"charge",gross:e,fee:t,net:n,variance:Math.round((a-e)*100)/100}}function es(e,t){return{charge_id:`in_demo_${Math.round(100*e)}`,source:"invoice",gross:e,fee:null,net:e,variance:Math.round((t-e)*100)/100}}let er=[{id:"inc_2025_11",number:"1042",type:320,clientId:"gi_stripe",clientName:o.DEMO_COMPANY_NAME.co_stark,date:"2025-11-18",amount:8400,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(8400,251.6,8400)},{id:"inc_2025_12",number:"1057",type:320,clientId:"gi_linear",clientName:o.DEMO_COMPANY_NAME.co_globex,date:"2025-12-09",amount:3600,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(3600,108.3,3600)},{id:"inc_2026_01_a",number:"1071",type:320,clientId:"gi_notion",clientName:o.DEMO_COMPANY_NAME.co_wayne,date:"2026-01-14",amount:12e3,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:4,hidden:!1,stripe:es(12e3,12e3)},{id:"inc_2026_01_b",number:"1078",type:330,clientId:"gi_figma",clientName:o.DEMO_COMPANY_NAME.co_hooli,date:"2026-01-27",amount:1450,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:1,hidden:!1,stripe:null},{id:"inc_2026_02_a",number:"1090",type:320,clientId:"gi_vercel",clientName:o.DEMO_COMPANY_NAME.co_initech,date:"2026-02-10",amount:5200,currency:"EUR",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(5200,161.2,5200)},{id:"inc_2026_02_b",number:"1096",type:320,clientId:"gi_anthropic",clientName:o.DEMO_COMPANY_NAME.co_acme,date:"2026-02-23",amount:24e3,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:4,hidden:!1,stripe:es(24e3,24e3)},{id:"inc_2026_03_a",number:"1108",type:320,clientId:"gi_loom",clientName:o.DEMO_COMPANY_NAME.co_north,date:"2026-03-05",amount:6800,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(6800,203.6,6800)},{id:"inc_2026_03_b",number:"1115",type:305,clientId:"gi_figma",clientName:o.DEMO_COMPANY_NAME.co_hooli,date:"2026-03-19",amount:4200,currency:"USD",status:0,cancelled:!1,paid:!1,paymentType:null,hidden:!1,stripe:null},{id:"inc_2026_04_a",number:"1124",type:320,clientId:"gi_stripe",clientName:o.DEMO_COMPANY_NAME.co_stark,date:"2026-04-02",amount:9600,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(9590,287.7,9600)},{id:"inc_2026_04_b",number:"1131",type:320,clientId:"gi_linear",clientName:o.DEMO_COMPANY_NAME.co_globex,date:"2026-04-21",amount:4100,currency:"EUR",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(4100,127.1,4100)},{id:"inc_2026_05_a",number:"1140",type:320,clientId:"gi_notion",clientName:o.DEMO_COMPANY_NAME.co_wayne,date:"2026-05-06",amount:15e3,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:4,hidden:!1,stripe:es(15e3,15e3)},{id:"inc_2026_05_b",number:"1146",type:305,clientId:"gi_anthropic",clientName:o.DEMO_COMPANY_NAME.co_acme,date:"2026-05-20",amount:31e3,currency:"USD",status:0,cancelled:!1,paid:!1,paymentType:null,hidden:!1,stripe:null},{id:"inc_2026_06_a",number:"1153",type:320,clientId:"gi_loom",clientName:o.DEMO_COMPANY_NAME.co_north,date:"2026-06-04",amount:7250,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:3,hidden:!1,stripe:eo(7250,216.75,7250)},{id:"inc_2026_06_b",number:"1158",type:400,clientId:"gi_stripe",clientName:o.DEMO_COMPANY_NAME.co_stark,date:"2026-06-11",amount:1200,currency:"USD",status:1,cancelled:!1,paid:!0,paymentType:null,hidden:!1,stripe:null},{id:"inc_2026_06_c",number:"1161",type:320,clientId:"gi_vercel",clientName:o.DEMO_COMPANY_NAME.co_initech,date:"2026-06-18",amount:5400,currency:"USD",status:2,cancelled:!0,paid:!1,paymentType:null,hidden:!1,stripe:null}];var el=e.i(951737);function ed(e,t){let a=new Date(Date.now()-864e5*e);return a.setHours(t,12,0,0),a.toISOString()}
53let ec=[0,0,3,8,12,0,0,15,22,18,9,0,0,24,31,27,19,11,0,0,26,33,29,21,14,0,0,30,36,28];function eu(e,t){return e.map((a,n)=>{var i;return{day:(i=e.length-1-n,new Date(Date.now()-864e5*i).toISOString().slice(0,10)),events:a,people:t(a)}})}let em=eu(ec,e=>+(e>0)),ep=em.reduce((e,t)=>e+t.events,0),eh={matched:!0,matchedEmails:[S.DEMO_PROFILE_PERSON.email],summary:{windowDays:30,events:ep,activeDays:em.filter(e=>e.events>0).length,people:1,firstSeenAt:ed(71,10),lastSeenAt:ed(0,9)},days:em,topEvents:[{event:"$pageview",count:188},{event:"sequence_enrolled",count:61},{event:"email_sent",count:54},{event:"report_opened",count:23},{event:"deal_stage_changed",count:17}],recent:[{event:"report_opened",at:ed(0,9),path:"/reports",email:S.DEMO_PROFILE_PERSON.email},{event:"sequence_enrolled",at:ed(0,8),path:"/sequences",email:S.DEMO_PROFILE_PERSON.email},{event:"email_sent",at:ed(1,16),path:"/inbox",email:S.DEMO_PROFILE_PERSON.email},{event:"deal_stage_changed",at:ed(1,11),path:"/deals",email:S.DEMO_PROFILE_PERSON.email},{event:"$pageview",at:ed(2,14),path:"/people",email:S.DEMO_PROFILE_PERSON.email}]},e_=S.DEMO_PROFILE_PERSON.email.split("@")[1]??"example.com",eg=eu(ec.map(e=>Math.round(4.6*e)),e=>0===e?0:Math.min(9,2+Math.round(e/30))),ef=eg.reduce((e,t)=>e+t.events,0),ey={matched:!0,domains:[e_],matchedBy:"both",groups:[{key:e_,name:S.DEMO_PROFILE_COMPANY.name,properties:{plan:"Team",seats:9,mrr:1620}}],summary:{windowDays:30,events:ef,activeDays:eg.filter(e=>e.events>0).length,people:9,firstSeenAt:ed(84,10),lastSeenAt:ed(0,9)},days:eg,topEvents:[{event:"$pageview",count:861},{event:"email_sent",count:302},{event:"sequence_enrolled",count:197},{event:"report_opened",count:88},{event:"deal_stage_changed",count:64}],members:[{email:S.DEMO_PROFILE_PERSON.email,name:S.DEMO_PROFILE_PERSON.name,events:ep,lastSeenAt:ed(0,9)},{email:`ravi@${e_}`,name:"Ravi Iyer",events:402,lastSeenAt:ed(0,8)},{email:`mira@${e_}`,name:"Mira Chen",events:318,lastSeenAt:ed(1,17)},{email:`tom@${e_}`,name:"Tom Alvarez",events:141,lastSeenAt:ed(3,15)},{email:`ops@${e_}`,name:null,events:37,lastSeenAt:ed(6,11)}]},ev={connected:!0,host:"https://us.posthog.com",projectId:"48211",emails:[S.DEMO_PROFILE_PERSON.email],usage:eh},eb={connected:!0,host:"https://us.posthog.com",projectId:"48211",groupTypeName:"company",usage:ey},ew={headline:"Two deals moved and one went quiet. Stripe is waiting on the security pack, and the Linear demo is at eleven.",push:[{id:"push-0",title:"Send Stripe the security pack before the 11 AM demo",body:"Lana asked for it on Tuesday and again in the thread this morning. The pack is done; it has not gone out. Their procurement call is Thursday.",evidence:[{channel:"email",label:"Lana Carter",when:"8:41 AM"},{channel:"calendar",label:"Demo · Linear",when:"11:00 AM"}],refs:{},prompt:"Draft a short reply to Lana Carter at Stripe attaching the security pack, and confirm Thursday.",state:"open"}],todos:[{id:"todo-0",title:"Reply to Ravi about the SLA redlines",body:"Most of his edits are in the SLA section. Two of them are fine; one needs legal.",evidence:[{channel:"email",label:"Ravi Iyer",when:"Yesterday"}],refs:{},state:"open"},{id:"todo-1",title:"Confirm the Loom kickoff agenda",body:"Jordan sent three topics. Nobody has said which one goes first.",evidence:[{channel:"slack",label:"#loom-kickoff",when:"Mon"}],refs:{},state:"open"},{id:"todo-2",title:"Chase Perplexity on the pilot pricing",body:"Silent for 11 days after a warm call. A one-line nudge is enough.",evidence:[{channel:"linkedin",label:"Daniel Okafor",when:"11 days"}],refs:{},state:"open"},{id:"todo-3",title:"Book the Anthropic security review follow-up",body:"They offered two slots next week. Pick one before they fill.",evidence:[{channel:"calendar",label:"Anthropic security review",when:"4:30 PM"}],refs:{},state:"done"}],actions:[{id:"action-0",kind:"deal_stage",label:"Move Stripe expansion to Procurement",reason:"Lana confirmed the buying committee is in and procurement starts Thursday.",args:{},targetLabel:"Stripe expansion",state:"pending"},{id:"action-1",kind:"task_create",label:"Create a follow-up task for Perplexity",reason:"No touch in 11 days on a deal that was warm.",args:{},targetLabel:"Perplexity pilot",state:"pending"}
53],moving:[{id:"moving-0",title:"Stripe expansion is heading into procurement",body:"Security review answered, redlines mostly accepted, CFO looped in yesterday.",facing:"external",evidence:[{channel:"email",label:"Lana Carter",when:"Yesterday"}],refs:{}},{id:"moving-1",title:"Linear is deciding this week",body:"Pat asked for the enterprise pricing and a reference. The demo today is the reference.",facing:"external",evidence:[{channel:"whatsapp",label:"Pat Singh",when:"Tue"}],refs:{}},{id:"moving-2",title:"The onboarding doc is nearly done",body:"Marisol rewrote the first two sections and asked for a read.",facing:"internal",evidence:[{channel:"slack",label:"Marisol Pérez",when:"Mon"}],refs:{}}],waiting:[{id:"waiting-0",who:"Lana Carter",ask:"the security pack",channel:"email",when:"2 days",refs:{}},{id:"waiting-1",who:"Ravi Iyer",ask:"a reply on the SLA redlines",channel:"email",when:"1 day",refs:{}},{id:"waiting-2",who:"Pat Singh",ask:"enterprise pricing",channel:"whatsapp",when:"2 days",refs:{}}],week:["14 emails sent, 9 replies, 3 meetings booked.","Two deals moved stage: Stripe to Negotiation, Loom to Proposal.","One new person from the extension: Daniel Okafor at Perplexity.","Anthropic security questionnaire answered on Monday."],meetingNotes:[],sources:["email","slack","whatsapp","linkedin","calendar","records"]},ek={members:o.DEMO_WORKSPACE_MEMBERS.map(e=>({user_id:e.userId,profile:{id:e.userId,full_name:e.fullName,email:e.email??null,avatar_url:e.avatarUrl??null}}))},ex={connected:!0,team_name:"everything"},eE={channels:[{id:"C01",name:"sales",type:"channel",isPrivate:!1},{id:"C02",name:"support",type:"channel",isPrivate:!1},{id:"C03",name:"leads",type:"channel",isPrivate:!0}]},eS={preferences:[],accounts:{email:[{id:"gmail_1",label:o.DEMO_USER.email,detail:"Gmail"}],linkedin:[{id:"li_1",label:o.DEMO_USER.full_name,detail:"LinkedIn"}],whatsapp:[{id:"wa_1",label:"+1 415 555 0142",detail:"WhatsApp"}],slack:[{id:"sl_1",label:"everything",detail:"Slack"}]}},eM=(e,t,a)=>({type:e,domain:t,verified:a,sslReady:a,status:a?"active":t?"pending":"none",cnameTarget:"link.thetool.company",dnsRecords:t?[{record:"CNAME",name:t,type:"CNAME",value:"link.thetool.company",status:a?"verified":"pending"}]:null}),eD={universal:eM("universal","go.northwind.com",!0),video:eM("video",null,!1),signing:eM("signing","sign.northwind.com",!0),tracking:eM("tracking",null,!1),forms:eM("forms",null,!1),booking:eM("booking","book.northwind.com",!1),docs:eM("docs",null,!1),canManage:!0,cnameTarget:"link.thetool.company",mode:"separate"},eO={settings:{embed_key:"wc_demo_8f2a91",is_enabled:!0,slack_connection_id:"slack_1",slack_channel_id:"C02",slack_channel_name:"support",brand_name:"Northwind",brand_color:"#2F5D50",brand_color_dark:null,welcome_message:"Hi. Ask us anything, a person answers within the hour.",ask_email_after_messages:2,position_anchor:"bottom-right",position_offset:20,bubble_icon:"chat",bubble_shape:"circle",bubble_custom_icon_url:null,assignment_mode:"round_robin",default_responder_user_id:o.DEMO_USER.id,round_robin_user_ids:o.DEMO_WORKSPACE_MEMBERS.slice(0,3).map(e=>e.userId),working_hours:[1,2,3,4,5].map(e=>({day:e,start:"09:00",end:"18:00"})),working_hours_timezone:"America/New_York",outside_hours_message:"We are out for the day. Leave an email and we reply first thing."}},eP={autoEnrichPhone:!0,numberScope:"mobile",rules:[{id:"r1",kind:"job_title_contains",values:["VP","Head of","Director"],enabled:!0},{id:"r2",kind:"has_open_task",values:["call"],enabled:!0},{id:"r3",kind:"in_active_sequence",enabled:!0},{id:"r4",kind:"is_target_account",enabled:!1}]},eN={settings:{embed_key:"wt_demo_51c0de",is_enabled:!0,allowed_origins:["https://northwind.com","https://app.northwind.com"]}},eI={capture_enabled:!0,notify_email:!0,notify_email_to:["[email protected]"],notify_slack:!0,notify_slack_channel_id:"C03"},eC={categories:[{id:"tc1",name:"Billing",color:"yellow",sla_hours:8,sort_order:0},{id:"tc2",name:"Bug",color:"red",sla_hours:4,sort_order:1},{id:"tc3",name:"How do I",color:"blue",sla_hours:24,sort_order:2},{id:"tc4",name:"Feature request",color:"violet",sla_hours:null,
53sort_order:3}]},eT={settings:{auto_create_from_chat:!0,auto_create_from_email:!0,stale_alert_slack_channel_id:"C02",stale_alert_email:null,default_category_id:"tc3",default_assignee_user_id:o.DEMO_USER.id,support_email_provider:"gmail",support_email_account_id:"gmail_support"},connectedMailboxes:[{provider:"gmail",id:"gmail_support",email:"[email protected]"},{provider:"gmail",id:"gmail_1",email:o.DEMO_USER.email}]};var ej=e.i(117315);let eR={};for(let e of o.DEMO_CONTACTS){let t=(e.email??"").toLowerCase();if(!t)continue;let a=t.split("@")[1]??"",n=o.DEMO_COMPANIES.find(e=>e.domain===a)??null;eR[t]={id:e.id,name:e.name??"",image_url:e.image_url??null,company_id:n?.id??null,company_name:n?.name??null,company_logo_url:n?.logo_url??null,company_domain:n?.domain??null}}function eA(e,t=200){return new Response(JSON.stringify(e),{status:t,headers:{"content-type":"application/json"}})}async function eL(e){if("string"!=typeof e?.body)return{};try{let t=JSON.parse(e.body);return t&&"object"==typeof t?t:{}}catch{return{}}}function eU(){return eA([])}let eq=new Date("2026-05-08T12:00:00Z"),eF={this_week:7,last_week:7,this_month:31,last_month:31,this_quarter:90,last_quarter:90,this_year:365},e$=(e,t,a,n,i,s)=>({id:e,conversation_id:t,slack_message_ts:`${new Date(s).getTime()/1e3}`,slack_thread_ts:null,content:a,is_outbound:n,sender_name:n?o.DEMO_USER.full_name:i,sender_slack_id:n?"U0SELF":`U0${e}`,sender_avatar_url:null,sent_by_user_id:n?o.DEMO_USER.id:null,media_type:null,media_url:null,media_filename:null,media_source_url:null,reactions:[],reply_to:null,is_edited:!1,is_deleted:!1,sent_at:s,created_at:s}),eW=1,eB={slack_ravi:[e$("sl1","slack_ravi","Legal came back on the SLA section - only the credits table is still open.",!1,"Ravi Iyer","2026-05-04T21:40:00Z"),e$("sl2","slack_ravi","That one I can move on. Sending a revised table this afternoon.",!0,"Ravi Iyer","2026-05-04T21:52:00Z"),e$("sl3","slack_ravi","Procurement signed off - ball is in legal's court.",!1,"Ravi Iyer","2026-05-04T22:12:00Z")],slack_lana:[e$("sl4","slack_lana","Are you in the rollout channel yet? Easier to keep everything in one place.",!1,"Lana Carter","2026-05-04T15:12:00Z"),e$("sl5","
53slack_lana","Not yet - add me and I will pick up the thread from there.",!0,"Lana Carter","2026-05-04T15:24:00Z"),e$("sl6","slack_lana","Will add you to the #stripe-rollout channel - heads-up there's a lot of pings.",!1,"Lana Carter","2026-05-04T15:30:00Z")]},eZ=[{test:e=>"/api/deal-stages"===e,handle:()=>eA(o.DEMO_DEAL_STAGES)},{test:e=>"/api/record-statuses"===e,handle:()=>eA(ei.DEFAULT_RECORD_STATUSES.map(e=>({...e,id:`default-${e.value}`})))},{test:e=>"/api/custom-fields"===e,handle:eU},{test:e=>"/api/custom-fields/values"===e,handle:eU},{test:e=>/^\/api\/(contact|company|deal)-sources$/.test(e),handle:eU},{test:e=>"/api/departments"===e,handle:eU},{test:e=>"/api/personas"===e,handle:eU},{test:e=>"/api/skill-categories"===e,handle:eU},{test:e=>"/api/status-colors"===e,handle:eU},{test:e=>"/api/teams"===e,handle:()=>eA(o.DEMO_TEAMS)},{test:e=>"/api/workspace/members"===e,handle:()=>eA({members:o.DEMO_WORKSPACE_MEMBERS.map(e=>({user_id:e.userId,profile:{id:e.userId,full_name:e.fullName,email:e.email,avatar_url:e.avatarUrl}}))})},{test:e=>"/api/workspace/current"===e,handle:()=>eA({workspace_id:o.DEMO_USER.workspace_id,user_id:o.DEMO_USER.id})},{test:e=>"/api/auth/user"===e,handle:()=>eA({user:{id:o.DEMO_USER.id,email:o.DEMO_USER.email}})},{test:e=>"/api/goals/metrics"===e,handle:()=>eA(o.DEMO_METRICS)},{test:e=>"/api/goals/attainment"===e,handle:()=>eA(o.DEMO_ATTAINMENTS)},{test:e=>"/api/goals/leaderboard"===e,handle:eU},{test:e=>e.startsWith("/api/goals/"),handle:()=>eA({ok:!0})},{test:e=>"/api/inbox/feed"===e,handle:()=>eA({conversations:o.DEMO_INBOX_FEED,total:o.DEMO_INBOX_FEED.length})},{test:e=>"/api/inbox/entity-conversations"===e,handle:e=>eA((0,S.demoEntityConversations)({contactId:e.searchParams.get("contact_id")}))},{test:e=>"/api/inbox/people"===e,handle:eU},{test:e=>"/api/inbox/companies"===e,handle:eU},{test:e=>"/api/inbox/unread-count"===e,handle:()=>eA({count:2})},{test:e=>"/api/tasks"===e,handle:()=>eA(o.DEMO_TASKS)},{test:e=>e.startsWith("/api/tasks/"),handle:()=>eA({ok:!0})},{test:e=>"/api/twilio/call/history"===e,handle:()=>eA(o.DEMO_CALL_LOGS)},{test:e=>"/api/twilio/numbers"===e,handle:()=>eA(o.DEMO_TWILIO_NUMBERS)},{test:e=>"/api/twilio/token"===e,handle:()=>eA({error:"demo"},401)},{test:e=>"/api/dial-list"===e,handle:()=>eA({contact_ids:[],task_ids:[],company_ids:[]})},{test:e=>"/api/people/full-data"===e,handle:()=>eA({contacts:o.DEMO_PEOPLE_CONTACTS,companies:o.DEMO_COMPANIES_RICH,contactDocuments:{},contactExperiences:{},contactEmails:{},contactLinkedInConnected:[],contactLinkedInConversationStarted:[]})},{test:e=>"/api/companies/resolve-logos"===e,handle:()=>eA({companies:{}})},{test:e=>"/api/companies/full-data"===e,handle:()=>{let e={};for(let t of o.DEMO_COMPANIES_RICH)e[t.id]=o.DEMO_PEOPLE_CONTACTS.filter(e=>e.company_id===t.id).map(e=>({id:e.id,name:e.name??"",imageUrl:e.image_url??null}));return eA({companies:o.DEMO_COMPANIES_RICH,companyDocuments:{},companyContacts:e,workspaceMembers:o.DEMO_WORKSPACE_MEMBERS.map(e=>({id:e.userId,fullName:e.fullName,email:e.email,avatarUrl:e.avatarUrl})),contactOptions:o.DEMO_PEOPLE_CONTACTS.map(e=>({id:e.id,name:e.name??"",imageUrl:e.image_url??null}))})}},{test:e=>"/api/calendar/events"===e,handle:()=>eA(o.DEMO_CALENDAR_EVENTS.map(e=>({id:e.id,summary:e.summary,start:e.allDay?{date:e.start.slice(0,10)}:{dateTime:e.start},end:e.allDay?{date:e.end.slice(0,10)}:{dateTime:e.end},attendees:e.attendees,hangoutLink:e.hangoutLink??null,location:e.location??null,status:"confirmed"})))},{test:e=>"/api/calendar/attendees-records"===e,handle:async(e,t)=>{let a=[];try{a=((t?.body?JSON.parse(t.body):{}).emails??[]).map(e=>(e??"").toLowerCase())}catch{}let n={};for(let e of a)n[e]=eR[e]??null;return eA({attendees:n})}},{test:e=>e.startsWith("/api/sidebar/"),handle:eU},{test:e=>"/api/reports/overview"===e,handle:()=>eA({funnel:{contacts_reached:412,replied:88,opened:268,clicked:64,meetings_booked:31,deals_created:14,deals_won:4,connections_accepted:96},action:{total_sent:412,total_opened:268,total_clicked:64,total_replied:88},kpis:{revenue_closed:142e3,revenue_arr:486e3,revenue_mrr:40500,win_rate:28},channel_attribution:{email_replies:56,linkedin_replies:32,whatsapp_replies:8,sms_replies:4,total_replies:100},replies_segmented:{cold:61,existing:39,total:100,by_channel:{email:{total:56,cold:34,existing:22},linkedin:{total:32,cold:21,existing:11},whatsapp:{total:8,cold:4,existing:4},sms:{total:4,cold:2,existing:2}}},excluded:{replies:6,sent:18}})},{test:e=>"/api/reports/outreach"===e,handle:()=>eA({period_days:30,daily:Array.from({length:30},(e,t)=>({day:new Date(Date.now()-(29-t)*864e5).toISOString().slice(0,10),sent:8+Math.floor(12*Math.random()),opened:4+Math.floor(8*Math.random()),replied:Math.floor(4*Math.random())})),totals:{sent:412,opened:268,replied:88}})},{test:e=>"/api/reports/calls"===e,handle:e=>eA(function(e){let t=eF[e]??31,a=eq.getTime()-864e5*t,n=a-864e5*t,i=o.DEMO_CALL_LOGS.filter(e=>{let t;return(t=new Date(e.created_at).getTime())>=a&&t<=eq.getTime()}),s=o.DEMO_CALL_LOGS.filter(e=>{let t;return(t=new Date(e.created_at).getTime())>=n&&t<a});function r(e){let t={},a={},n={},i=new Set,o=new Set;for(let s of e){let e=s.disposition||"unknown";t[e]=(t[e]||0)+1,i.add(s.contact_id),o.add(s.company_id),(a[e]||=new Set).add(s.contact_id),(n[e]||=new Set).add(s.company_id)}let s=t.connected||0,r=t.meeting_booked||0,l=(t.voicemail||0)+(t.left_voicemail||0),d=t.no_answer||0,c=(e,t)=>e[t]?.size??0;return{total:e.length,connected:s,meetings:r,voicemail:l,noAnswer:d,uniquePeople:i.size,uniqueCompanies:o.size,contactsByDisp:{connected:c(a,"connected"),meeting_booked:c(a,"meeting_booked"),voicemail:c(a,"voicemail")+c(a,"left_voicemail"),no_answer:c(a,"n
53o_answer")},companiesByDisp:{connected:c(n,"connected"),meeting_booked:c(n,"meeting_booked"),voicemail:c(n,"voicemail")+c(n,"left_voicemail"),no_answer:c(n,"no_answer")}}}let l=r(i),d=r(s),c=new Map;for(let e=0;e<t;e++){let a=new Date(eq.getTime()-(t-1-e)*864e5).toISOString().slice(0,10);c.set(a,{total:0,connected:0,meetings:0,voicemail:0,no_answer:0})}for(let e of i){let t=e.created_at.slice(0,10),a=c.get(t);a&&(a.total++,"connected"===e.disposition&&a.connected++,"meeting_booked"===e.disposition&&a.meetings++,("voicemail"===e.disposition||"left_voicemail"===e.disposition)&&a.voicemail++,"no_answer"===e.disposition&&a.no_answer++)}let u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=Array.from(c.entries()).map(([e,t])=>{let a=new Date(e);return{date:e,label:`${u[a.getUTCMonth()]} ${a.getUTCDate()}`,total:t.total,connected:t.connected,meetings:t.meetings,voicemail:t.voicemail,no_answer:t.no_answer,connect_rate:t.total>0?Math.round(t.connected/t.total*100):0,meeting_rate:t.total>0?Math.round(t.meetings/t.total*100):0}}),p=(e,t)=>t>0?Math.round(e/t*100):0,h=i.map(e=>({id:e.id,created_at:e.created_at,disposition:e.disposition,duration_seconds:e.duration_seconds,direction:e.direction,to_number:e.to_number,contact_id:e.contact_id,contact_name:e.contact.name,contact_image_url:e.contact.image_url,contact_job_title:e.contact.job_title,company_id:e.company_id,company_name:e.company.name,company_logo_url:e.company.logo_url,company_domain:e.company.domain})),_=new Map;for(let e of i){let t=_.get(e.contact_id),a=e.disposition;t?(t.total++,"connected"===a&&t.connected++,("voicemail"===a||"left_voicemail"===a)&&t.voicemail++,"no_answer"===a&&t.no_answer++,"meeting_booked"===a&&t.meetings++):_.set(e.contact_id,{contact_id:e.contact_id,contact_name:e.contact.name,contact_image_url:e.contact.image_url,company_name:e.company.name,company_logo_url:e.company.logo_url,company_domain:e.company.domain,total:1,connected:+("connected"===a),voicemail:+("voicemail"===a||"left_voicemail"===a),no_answer:+("no_answer"===a),meetings:+("meeting_booked"===a),last_disposition:a,last_call_at:e.created_at})}let g=Array.from(_.values()).sort((e,t)=>new Date(t.last_call_at).getTime()-new Date(e.last_call_at).getTime()),f=new Map;for(let e of i){let t=f.get(e.company_id),a=e.disposition;t?(t.total++,"connected"===a&&t.connected++,("voicemail"===a||"left_voicemail"===a)&&t.voicemail++,"no_answer"===a&&t.no_answer++,"meeting_booked"===a&&t.meetings++,t._peopleSet.add(e.contact_id)):f.set(e.company_id,{company_id:e.company_id,company_name:e.company.name,company_logo_url:e.company.logo_url,company_domain:e.company.domain,total:1,connected:+("connected"===a),voicemail:+("voicemail"===a||"left_voicemail"===a),no_answer:+("no_answer"===a),meetings:+("meeting_booked"===a),unique_people:1,last_call_at:e.created_at,_peopleSet:new Set([e.contact_id])})}return{period:e,rows:{dials:h,people:g,companies:Array.from(f.values()).map(e=>({...e,unique_people:e._peopleSet.size,_peopleSet:void 0})).sort((e,t)=>new Date(t.last_call_at).getTime()-new Date(e.last_call_at).getTime())},dials:{total:l.total,connected:l.connected,meetings:l.meetings,voicemail:l.voicemail,no_answer:l.noAnswer,connect_rate:p(l.connected,l.total),meeting_rate:p(l.meetings,l.total)},people:{total:l.uniquePeople,connected:l.contactsByDisp.connected,meetings:l.contactsByDisp.meeting_booked,voicemail:l.contactsByDisp.voicemail,no_answer:l.contactsByDisp.no_answer,conversion_rate:0,conversions:0},companies:{total:l.uniqueCompanies,connected:l.companiesByDisp.connected,meetings:l.companiesByDisp.meeting_booked,voicemail:l.companiesByDisp.voicemail,no_answer:l.companiesByDisp.no_answer,conversion_rate:0,conversions:0},prev_dials:{total:d.total,connected:d.connected,meetings:d.meetings,voicemail:d.voicemail,no_answer:d.noAnswer},prev_people:{total:d.uniquePeople,connected:d.contactsByDisp.connected,meetings:d.contactsByDisp.meeting_booked,voicemail:d.contactsByDisp.voicemail,no_answer:d.contactsByDisp.no_answer},prev_companies:{total:d.uniqueCompanies,connected:d.companiesByDisp.connected,meetings:d.companiesByDisp.meeting_booked,voicemail:d.companiesByDisp.voicemail,no_answer:d.companiesByDisp.no_answer},daily:m}}(e.searchParams.get("period")??"this_month"))},{test:e=>"/api/reports/pipeline"===e,handle:()=>eA({stages:o.DEMO_DEAL_STAGES.map(e=>({stage:e.value,label:e.label,count:3+Math.floor(4*Math.random()),amount:8e4+Math.floor(2e5*Math.random())})),totals:{count:17,amount:612e3}})},{test:e=>"/api/reports/revenue"===e,handle:()=>eA({monthly:Array.from({length:6},(e,t)=>({month:new Date(Date.now()-(5-t)*2592e6).toISOString().slice(0,7),revenue:8e4+Math.floor(8e4*Math.random()),new_revenue:2e4+Math.floor(3e4*Math.random())})),totals:{revenue:612e3,new_revenue:142e3}})},{test:e=>"/api/reports/catalog"===e,handle:()=>eA({metrics:[{key:"replies",label:"Replies",description:"Inbound replies to outbound touches.",unit:"count",category:"Outreach",direction:"higher_is_better",supports_filters:!0,supports_source:"contact"},{key:"meetings_booked",label:"Meetings booked",description:"Meetings booked from outreach.",unit:"count",category:"Outreach",direction:"higher_is_better",supports_filters:!0,supports_source:"contact"},{key:"revenue_closed",label:"Revenue closed",description:"Won deal value in the peri
53od.",unit:"currency",category:"Revenue",direction:"higher_is_better",supports_filters:!0,supports_source:"deal"},{key:"win_rate",label:"Win rate",description:"Won deals over closed deals.",unit:"percent",category:"Revenue",direction:"higher_is_better",supports_filters:!0,supports_source:"deal"},{key:"calls_connected",label:"Calls connected",description:"Calls that reached a human.",unit:"count",category:"Calls",direction:"higher_is_better",supports_filters:!0,supports_source:"contact"}],viz:[{value:"number",label:"Number"},{value:"line",label:"Line"},{value:"bar",label:"Bar"},{value:"table",label:"Table"}],breakdowns:[{value:"none",label:"No breakdown"},{value:"owner",label:"Owner"},{value:"channel",label:"Channel"},{value:"stage",label:"Stage"}],ranges:[{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"},{value:"90d",label:"Last 90 days"},{value:"qtd",label:"Quarter to date"}],buckets:["day","week","month"],members:o.DEMO_WORKSPACE_MEMBERS.map(e=>({id:e.userId,name:e.fullName,avatar_url:e.avatarUrl})),teams:o.DEMO_TEAMS.map(e=>({id:e.id,name:e.name})),tags:[{id:"tag_outbound",name:"Outbound"},{id:"tag_expansion",name:"Expansion"}],sequences:[{id:"seq_campaign",name:"Q3 · AI-native GTM teams"},{id:"seq_1",name:"Cold outreach - Founder mode"}],deal_sources:[{value:"inbound",label:"Inbound"},{value:"outbound",label:"Outbound"}],contact_sources:[{value:"referral",label:"Referral"},{value:"event",label:"Event"}],current_user_id:o.DEMO_USER.id})},{test:e=>e.startsWith("/api/reports/"),handle:()=>eA({})},{test:e=>"/api/sales-playbook"===e,handle:()=>eA({id:"demo-playbook",title:"Sales Playbook",icp:"",sections:[],updated_at:"2026-05-05T12:00:00Z"})},{test:e=>/^\/api\/gmail\/threads\/[^/]+$/.test(e)&&!e.endsWith("/bulk"),handle:e=>{let t=function(e){let t,a,n,i,s=k[e]??function(e){let t=o.DEMO_INBOX_FEED.find(t=>t.conversation_ref===e);if(!t)return null;let a=t.company_domain||"example.com",n=(t.contact_name||"there").split(" ")[0].toLowerCase();return{subject:t.snippet?.slice(0,60)||"Conversation",contactId:t.contact_id||"",companyId:t.company_id||"",lastMessageAt:t.last_message_at||new Date(0).toISOString(),messages:[{from:{name:t.contact_name||"Unknown",email:`${n}@${a}`},body:t.snippet||""}]}}(e);return s?{thread:(a=(t=s.messages)[t.length-1].from,{id:e,gmail_account_id:f,thread_id:e,subject:s.subject,snippet:t[t.length-1].body.slice(0,120).replace(/\n/g," "),last_message_at:s.lastMessageAt,last_message_from_name:a.name,last_message_from_email:a.email,message_count:t.length,is_read:!0,is_starred:!1,label_ids:["INBOX"],participants:E(s),contact_id:s.contactId,company_id:s.companyId,status_id:null,is_internal:!1,created_at:s.lastMessageAt,updated_at:s.lastMessageAt}),messages:(n=new Date(s.lastMessageAt).getTime(),i=s.messages.length,s.messages.map((t,a)=>{let o=new Date(n-(i-1-a)*252e4).toISOString();return{id:`${e}_m${a+1}`,gmail_account_id:f,thread_id:e,message_id:`${e}_m${a+1}`,from_email:t.from.email,from_name:t.from.name,to_emails:t.isSent?E(s).filter(e=>e.email!==y.email):[y],cc_emails:[],bcc_emails:[],subject:s.subject,body_text:t.body,body_html:t.body.split("\n\n").map(e=>`<p>${e.replace(/\n/g,"<br/>")}</p>`).join(""),snippet:t.body.slice(0,120).replace(/\n/g," "),label_ids:t.isSent?["SENT"]:["INBOX"],is_sent:!!t.isSent,has_attachments:!1,attachments_meta:[],internal_date:o,created_at:o}})),drafts:[],participantImages:s.contactId&&x[s.contactId]?{[s.messages.find(e=>!e.isSent)?.from.email??""]:x[s.contactId]}:{},accountEmail:o.DEMO_USER.email}:null}(decodeURIComponent(new URL(e,"http://x").pathname.split("/").pop()||""));return t?eA(t):eA({error:"Not found"},404)}},{test:e=>e.startsWith("/api/gmail/threads"),handle:()=>eA({threads:o.DEMO_HOME_EMAILS,hasMore:!1,thread_count:o.DEMO_HOME_EMAILS.length})},{test:e=>"/api/gmail/shortcuts"===e,handle:eU},{test:e=>"/api/ticket-stages"===e,handle:(e,t)=>"GET"===(t?.method??"GET").toUpperCase()?eA({stages:r}):eA({ok:!0})},{test:e=>"/api/ticket-categories"===e,handle:(e,t)=>"GET"===(t?.method??"GET").toUpperCase()?eA({categories:l}):eA({ok:!0})},{test:e=>"/api/tickets"===e,handle:(e,t)=>
53"GET"===(t?.method??"GET").toUpperCase()?eA({tickets:u,total:u.length}):eA({ok:!0})},{test:e=>"/api/social/feed"===e,handle:()=>eA(g)},{test:e=>"/api/social/posts"===e,handle:async(e,t)=>{if(t?.method==="PATCH"||t?.method==="DELETE")return eA({ok:!0});let a=await eL(t),n="string"==typeof a.platform?a.platform:"linkedin",i=new Date().toISOString();return eA({post:{id:`sp_demo_${n}_${eW++}`,content:"string"==typeof a.content?a.content:"",status:"string"==typeof a.status?a.status:"draft",scheduled_at:"string"==typeof a.scheduled_at?a.scheduled_at:null,published_at:null,platform:n,linkedin_post_urn:null,linkedin_post_url:null,x_post_id:null,x_post_url:null,reddit_subreddit:"string"==typeof a.reddit_subreddit?a.reddit_subreddit:null,reddit_title:"string"==typeof a.reddit_title?a.reddit_title:null,reddit_post_id:null,reddit_post_url:null,metrics:{},metrics_synced_at:null,mentions:null,source:"manual",idea_topic:null,idea_hook:null,user_id:o.DEMO_USER.id,created_at:i,updated_at:i,author:{id:o.DEMO_USER.id,full_name:o.DEMO_USER.full_name,avatar_url:o.DEMO_USER.avatar_url,email:o.DEMO_USER.email}}})}},{test:e=>"/api/social/insights"===e,handle:()=>eA({stats:{total_posts:18,total_engagement:4312,avg_engagement:240,current_streak_weeks:6},members:o.DEMO_WORKSPACE_MEMBERS.slice(0,4).map((e,t)=>{let a=[7,5,4,2][t]??2,n=[1860,1240,780,432][t]??300;return{user_id:e.userId,name:e.fullName,avatar_url:e.avatarUrl,posts:a,reactions:Math.round(.62*n),comments:Math.round(.21*n),reposts:Math.round(.08*n),impressions:24*n,engagement:n,prev_engagement:Math.round(n*[.78,1.12,.91,.64][t]),engagement_per_post:Math.round(n/a)}}),top_posts:g.posts.slice(0,5)})},{test:e=>"/api/social/profile-feed"===e,handle:e=>{if("x"===(e.searchParams.get("platform")??"all")){let t=e.searchParams.get("xKind")??"posts";return eA({posts:"replies"===t?S.DEMO_PROFILE_X_REPLIES:"media"===t?[]:S.DEMO_PROFILE_X_POSTS})}return eA({posts:[...S.DEMO_PROFILE_FEED,...S.DEMO_PROFILE_X_POSTS].sort((e,t)=>new Date(t.posted_at??0).getTime()-new Date(e.posted_at??0).getTime())})}},{test:e=>"/api/green-invoice/status"===e,handle:()=>eA({connected:!0})},{test:e=>"/api/finance/income"===e,handle:()=>eA({documents:er,displayCurrency:"USD"})},{test:e=>"/api/finance/vendors"===e,handle:()=>eA({vendors:el.DEMO_FINANCE_VENDORS})},{test:e=>"/api/finance/expenses"===e,handle:()=>eA({expenses:el.DEMO_FINANCE_EXPENSES})},{test:e=>"/api/sidebar/recent"===e,handle:()=>eA({})},{test:e=>"/api/sidebar/entity-previews"===e,handle:()=>eA({})},{test:e=>"/api/spotify/player"===e,handle:(e,t)=>{let a,n;return t?.method&&"GET"!==t.method?eA({ok:!0}):eA((a=Date.now(),null===J&&(J=a),n=(134e3+(a-J))%X.durationMs,{connected:!0,canControl:!0,state:{isPlaying:!0,track:X,progressMs:n,device:{id:"demo-device",name:"Jordan's MacBook Pro",type:"Computer",volumePercent:62},shuffle:!1,repeat:"off",contextUri:"spotify:playlist:demo-focus"}}))}},{test:e=>"/api/spotify/status"===e,handle:()=>eA(Q)},{test:e=>"/api/spotify/devices"===e,handle:()=>eA(ee)},{test:e=>"/api/spotify/library"===e,handle:()=>eA(ea)},{test:e=>"/api/spotify/search"===e,handle:()=>eA({top:null,tracks:[],albums:[],artists:[],playlists:[],more:{}})},{test:e=>"/api/spotify/token"===e,handle:()=>eA({error:"demo"},409)},{test:e=>"/api/claude/chats/send"===e,handle:async(e,t)=>{let a=await eL(t),n="string"==typeof a.runId?a.runId:`demo-${Date.now()}`,i="string"==typeof a.chatId&&a.chatId?a.chatId:M;return H(n,i,"string"==typeof a.message?a.message:""),eA({chatId:i,runId:n})}},{test:e=>/^\/api\/claude\/chats\/runs\/[^/]+$/.test(e),handle:async(e,t)=>{if(t?.method==="PATCH"){let a=await eL(t);H(e.pathname.split("/").pop()??"",M,"string"==typeof a.message?a.message:"")}return eA({ok:!0})}},{test:e=>"/api/imessage/messages"===e,handle:e=>{let t=e.searchParams.get("conversationId")??"",a=(e,t,a,n)=>({id:e,content:t,is_outbound:a,sender_handle:a?null:"+14155550123",sender_user_id:null,service:"iMessage",has_attachments:!1,sent_at:n,created_at:n,message_guid:`guid-${e}`,reactions:[]});return eA({messages:{im_jordan:[a("imj1","Heads up - might be a few minutes late to the security call.",!1,"2026-05-05T06:38:00Z"),a("imj2","No stress, we will hold the intros for you.",!0,"2026-05-05T06:41:00Z"),a("imj3","Running 5 late - start without me, joining shortly.",!1,"2026-05-05T06:45:00Z")],im_pat:[a("imp1","Does Tuesday afternoon still work for the walkthrough?",!0,"2026-05-04T19:55:00Z"),a("imp2","Confirmed for Tuesday at 2pm PT - sending a calendar invite now.",!1,"2026-05-04T20:11:00Z")]}[t]??[],hasMore:!1})}},{test:e=>"/api/gmail/statuses"===e,handle:(e,t)=>
53t?.method&&"GET"!==t.method?eA({ok:!0}):eA({statuses:eG})},{test:e=>"/api/sequences"===e,handle:()=>eA([{...s.CAMPAIGN_SEQUENCE_ROW,step_count:4,enrolled_count:0,active_count:0},...o.DEMO_SEQUENCES.filter(e=>"active"===e.status)])},{test:e=>/^\/api\/sequences\/[^/]+\/enroll$/.test(e),handle:async(e,t)=>{let a=await eL(t),n=Array.isArray(a.contact_ids)?a.contact_ids:[],i=Math.min(n.length,25);return eA({enrolled:i,skipped:Math.max(0,n.length-i)})}},{test:e=>"/api/whatsapp/messages"===e,handle:async(e,t)=>{let a=await eL(t),n="string"==typeof a.conversationId?o.DEMO_WHATSAPP_THREADS[a.conversationId]:void 0,i="string"==typeof a.contactId?o.DEMO_WHATSAPP_THREADS_BY_CONTACT[a.contactId]:void 0;return eA({messages:n??i??[],hasMore:!1})}},{test:e=>"/api/whatsapp/status"===e,handle:()=>eA({status:"connected",connected:!0})},{test:e=>"/api/slack/status"===e,handle:()=>eA({connected:!0,team:{id:"T0DEMO",name:"Stark Industries"}})},{test:e=>"/api/slack/messages"===e,handle:async(e,t)=>{let a=await eL(t);return eA({messages:eB["string"==typeof a.conversationId?a.conversationId:""]??[],hasMore:!1})}},{test:e=>"/api/slack/sync"===e,handle:()=>eA({messagesImported:0})},{test:e=>"/api/whatsapp/conversation"===e,handle:async(e,t)=>{let a=await eL(t);return eA({conversation:{id:"string"==typeof a.conversationId?a.conversationId:"wa_marisol",is_group:!1,group_name:null}})}},{test:e=>e.startsWith("/api/tags"),handle:()=>eA({})},{test:e=>"/api/contacts/quick-add-linkedin"===e,handle:()=>eA({contactId:S.DEMO_PROFILE_PERSON.id,isNew:!1})},{test:e=>"/api/reddit/subreddits"===e,handle:()=>eA({subreddits:[{id:"sub_sales",name:"sales",display_name:"r/sales",title:"Sales",description:null,subscribers:412e3,icon_url:null,over_18:!1,created_at:"2026-04-01T12:00:00Z"},{id:"sub_startups",name:"startups",display_name:"r/startups",title:"Startups",description:null,subscribers:165e4,icon_url:null,over_18:!1,created_at:"2026-04-01T12:00:00Z"}]})},{test:e=>e.startsWith("/api/comments"),handle:eU},{test:e=>e.startsWith("/api/linkedin/"),handle:()=>eA({ok:!0})},{test:e=>e.startsWith("/api/media/"),handle:()=>eA({url:null})},{test:e=>"/api/workspace/members"===e,handle:()=>eA(ek)},{test:e=>"/api/slack/status"===e,handle:()=>eA(ex)},{test:e=>"/api/slack/channels"===e,handle:()=>eA(eE)},{test:e=>"/api/notifications/preferences"===e,handle:()=>eA(eS)},{test:e=>"/api/custom-domain"===e,handle:()=>eA(eD)},{test:e=>"/api/website-chat/settings"===e,handle:()=>eA(eO)},{test:e=>"/api/enrichment/settings"===e,handle:()=>eA(eP)},{test:e=>"/api/website-tracking/settings"===e,handle:()=>eA(eN)},{test:e=>"/api/forms/defaults"===e,handle:()=>eA(eI)},{test:e=>"/api/ticket-categories"===e,handle:()=>eA(eC)},{test:e=>"/api/support/settings"===e,handle:()=>eA(eT)},{test:e=>"/api/calling/dispositions"===e,handle:()=>eA(ej.DEMO_CALL_DISPOSITIONS)},{test:e=>"/api/calling/purposes"===e,handle:()=>eA(ej.DEMO_CALL_PURPOSES)},{test:e=>"/api/calling/outcome-map"===e,handle:()=>eA(ej.DEMO_CALL_OUTCOME_MAP)},{test:e=>"/api/partners"===e,handle:()=>eA(ej.DEMO_PARTNERS)},{test:e=>"/api/workspace/member-activity"===e,handle:()=>eA({members:ej.DEMO_MEMBER_SUMMARIES,isAdmin:!0})},{test:e=>e.startsWith("/api/workspace/member-activity/"),handle:e=>eA((0,ej.demoMemberActivity)(e.pathname.split("/").pop()??""))},{test:e=>"/api/home/brief/versions"===e,handle:eU},{test:e=>"/api/home/brief"===e,handle:()=>eA({brief:{id:"demo-brief",brief_date:new Date().toISOString().slice(0,10),timezone:"UTC",status:"ready",run_id:null,error_code:null,payload:ew}})},{test:e=>e.startsWith("/api/posthog/person/"),handle:()=>eA(ev)},{test:e=>e.startsWith("/api/posthog/company/"),handle:()=>eA(eb)},{test:e=>e.startsWith("/api/"),handle:()=>eA({ok:!0})}],eH=!1,eG=[{id:"st_respond",name:"To respond",color:"amber",sort_order:0},{id:"st_waiting",name:"Waiting on them",color:"blue",sort_order:1},{id:"st_done",name:"Done",color:"green",sort_order:2}],ez=null,eY=0,eK=Symbol.for("everything.demoFetch");function eV(){if(eY+=1,(0,en.setDemoMode)(!0),window.fetch[eK])return;ez=window.fetch.bind(window);let e=async function(e,t){let a="string"==typeof e?e:e instanceof URL?e.toString():e.url,n=null;try{n=new URL(a,window.location.origin)}catch{return ez(e,t)}let s=n.origin===window.location.origin,r=void 0!==i.default&&1?new URL("https://rotavfygaurxurrqxygr.supabase.co").host:null,l=!!r&&n.host===r;if(!s&&!l)return ez(e,t);let d=function(e){for(let{test:t,handle:a}of eZ)if(t(e.pathname))return a;
53if(e.pathname.startsWith("/rest/v1/")){let t=e.pathname.replace("/rest/v1/","").split("?")[0];return(a,n)=>{let i=function(e,t){let a=e;for(let[e,n]of t.entries())if("select"!==e&&"limit"!==e&&"offset"!==e&&"apikey"!==e){if("order"===e){for(let[e,t]of n.split(",").map(e=>e.split(".")).reverse())e&&(a=[...a].sort((a,n)=>{let i=a?.[e],o=n?.[e];if(i===o)return 0;if(null==i)return 1;if(null==o)return -1;let s=i<o?-1:1;return"desc"===t?-s:s}));continue}if(n.startsWith("eq.")){let t=n.slice(3);a=a.filter(a=>String(a?.[e])===t)}else if(n.startsWith("in.(")&&n.endsWith(")")){let t=new Set(n.slice(4,-1).split(",").map(e=>e.replace(/^"|"$/g,"")));a=a.filter(a=>t.has(String(a?.[e])))}}return a}(function(e){switch(e){case"companies":return o.DEMO_COMPANIES_RICH.map(e=>({id:e.id,name:e.name,domain:e.domain,logo_url:e.logo_url}));case"contacts":return o.DEMO_PEOPLE_CONTACTS.map(e=>e.id===S.DEMO_PROFILE_PERSON.id?{...e,name:S.DEMO_PROFILE_PERSON.name,first_name:S.DEMO_PROFILE_PERSON.first_name,email:S.DEMO_PROFILE_PERSON.email,image_url:S.DEMO_PROFILE_PERSON.image_url,job_title:S.DEMO_PROFILE_PERSON.job_title,headline:S.DEMO_PROFILE_PERSON.headline,status:S.DEMO_PROFILE_PERSON.status,location:S.DEMO_PROFILE_PERSON.location,persona:S.DEMO_PROFILE_PERSON.persona,company_id:S.DEMO_PROFILE_PERSON.company.id,c
53ompany_name:S.DEMO_PROFILE_PERSON.company.name,company_domain:S.DEMO_PROFILE_PERSON.company.domain,company_logo_url:S.DEMO_PROFILE_PERSON.company.logo_url,linkedin_url:S.DEMO_PROFILE_PERSON.linkedin_url,linkedin_urn:S.DEMO_PROFILE_PERSON.linkedin_urn}:e);case"twilio_phone_numbers":return o.DEMO_TWILIO_NUMBERS;case"linkedin_conversations":return S.DEMO_LINKEDIN_CONVERSATION_ROWS;case"linkedin_messages":return S.DEMO_LINKEDIN_MESSAGE_ROWS;case"imessage_devices":return K();case"claude_chats":return j;case"claude_runs":return z();case"claude_run_events":return Y();case"linkedin_connection_requests":return[{id:"licr_demo_lana",status:"connected",connected_at:"2026-03-12T10:00:00Z"}];default:return[]}}(t),e.searchParams);return(new Headers(n?.headers).get("Accept")??"").includes("vnd.pgrst.object+json")?eA(i[0]??null):eA(i)}}return e.pathname.startsWith("/auth/v1/")?eH?null:()=>eA({user:null,session:null}):null}(n);if(!d)return ez(e,t);try{return await d(n,t)}catch(e){return console.warn("[demo-fetch-mock] handler failed",n.pathname,e),eA({ok:!0})}};e[eK]=!0,window.fetch=e}function eX(){!((eY=Math.max(0,eY-1))>0)&&((0,en.setDemoMode)(!1),ez&&window.fetch[eK]&&(window.fetch=ez,ez=null))}e.s(["installDemoFetch",0,eV,"setDemoAuthPassthrough",0,function(e){eH=e},"uninstallDemoFetch",0,eX],934462);var eJ=e.i(309204),eQ=e.i(155684);let e0=S.DEMO_PROFILE_PERSON,e1=[{name:e0.name,headline:e0.headline,company:e0.company.name,company_domain:e0.company.domain,location:e0.location,linkedin_url:e0.linkedin_url,profile_urn:e0.linkedin_urn,image_url:e0.image_url},{name:"Lana Carter",headline:"Product Marketing Lead at HubSpot",company:"HubSpot",company_domain:"hubspot.com",location:"Austin, TX",linkedin_url:"https://linkedin.com/in/lana-carter-atx",profile_urn:"urn:li:fsd_profile:demo-lana-atx",image_url:"https://i.pravatar.cc/128?img=44"},{name:"Lana Carter",headline:"Founder, Carter Design Co",company:"Carter Design Co",location:"London",linkedin_url:"https://linkedin.com/in/lanacarterdesign",profile_urn:"urn:li:fsd_profile:demo-lana-ldn",image_url:"https://i.pravatar.cc/128?img=45"},{name:"Lana Carter-Reyes",headline:"Data Analyst at Motorola Solutions",company:"Motorola Solutions",company_domain:"motorolasolutions.com",location:"Chicago, IL",linkedin_url:"https://linkedin.com/in/lcarterreyes",profile_urn:"urn:li:fsd_profile:demo-lana-chi",image_url:null}],e2=[{name:"Priya Raman",headline:"Head of GTM at Cadence AI · building the first sales motion",company:"Cadence AI",location:"San Francisco, CA",linkedin_url:"https://linkedin.com/in/priya-raman-gtm",profile_urn:"urn:li:fsd_profile:demo-priya",image_url:"https://i.pravatar.cc/128?img=5"},{name:"Marcus Webb",headline:"VP Revenue at Lumen Labs · hiring our second AE",company:"Lumen Labs",location:"New York, NY",linkedin_url:"https://linkedin.com/in/marcuswebb",profile_urn:"urn:li:fsd_profile:demo-marcus",image_url:"https://i.pravatar.cc/128?img=13"},{name:"Aisha Bello",headline:"Founding AE at Ridgeline · ex-Ramp",company:"Ridgeline",location:"London, UK",linkedin_url:"https://linkedin.com/in/aishabello",profile_urn:"urn:li:fsd_profile:demo-aisha",image_url:"https://i.pravatar.cc/128?img=20"},{name:"Ted Kovacs",headline:"RevOps lead at Northwind · consolidating our stack",company:"Northwind",location:"Austin, TX",linkedin_url:"https://linkedin.com/in/tedkovacs",profile_urn:"urn:li:fsd_profile:demo-ted",image_url:"https://i.pravatar.cc/128?img=52"}],e5=/gtm|revenue|founding ae|head of|revops|vp /i;function e4(){let e=Math.floor(Date.now()/1e3),t=(t,a,n,i,o,s,r,l)=>({data:{id:t,subreddit:a,author:n,title:i,selftext:o,permalink:`/r/${a}/comments/${t}/`,is_self:!0,score:r,num_comments:l,created_utc:e-3600*s,over_18:!1,stickied:!1}});return{data:{after:null,children:[t("dm1a2b","sales","quota_crusher_9","Comment-first outreach is quietly beating cold DMs for us","We moved half the team to engaging on prospects’ posts before any DM. Reply rates roughly doubled in six weeks. Anyone else structuring their week around the feed instead of the dialer?",4,148,37),t("dm3c4d","startups","foundermode_ok","How are you all tracking buying signals without five tools?","Between LinkedIn posts, subreddit threads, and X replies I have signal spread across three feeds. Curious what people consolidated on.",9,86,22)]}}}let e3=0,e6=null,e8=null,e9=null;function e7(e){if("linkedin_people_search"!==e.action)return null;let t="string"==typeof e.keywords?e.keywords:"",a=e5.test(t)?e2:e1,n=e.looseKeywords?260:750;return new Promise(e=>{setTimeout(()=>e({results:a,total:a.length,source:"graphql"}),n)})}
53let te="boring:onboarding:showcase-pending",tt="boring:onboarding:enrich-done",ta="boring:onboarding:enrich-spot",tn="boring:onboarding:revealed",ti=[te,tt,ta,tn];function to(){window.dispatchEvent(new Event("storage"))}function ts(e){try{if(sessionStorage.getItem(te)!==e)return;for(let e of ti)sessionStorage.removeItem(e)}catch{}}e.s(["armDemoShowcase",0,function(e){let t={};try{for(let e of ti){let a=sessionStorage.getItem(e);null!==a&&(t[e]=a)}sessionStorage.setItem(te,e),sessionStorage.removeItem(tt),sessionStorage.removeItem(ta),sessionStorage.removeItem(tn)}catch{}return to(),t},"clearDemoShowcase",0,function(e){try{for(let t of ti){let a=e?.[t];void 0!==a?sessionStorage.setItem(t,a):sessionStorage.removeItem(t)}}catch{}to()},"clearStaleDemoShowcase",0,ts,"markDemoShowcaseEnriched",0,function(e){try{sessionStorage.setItem(tt,e)}catch{}to()},"revealDemoShowcase",0,function(e){try{sessionStorage.setItem(tn,e.join(","))}catch{}to()},"setDemoShowcaseSpot",0,function(e){try{e?sessionStorage.setItem(ta,e):sessionStorage.removeItem(ta)}catch{}to()}],570354);let tr=a.useLayoutEffect,tl="claude-assistant-chat-id",td="col-order:people",tc="col-visible:people",tu=["name","company","title","status","email","persona","department","tags","source","previous","documents","phone","headline","location","linkedin","twitter","website","notes","created","updated"],tm=["tags","source","previous","documents","phone","headline","location","linkedin","twitter","website","notes","created","updated"];e.s(["DemoProvider",0,function({children:e,workspaceId:i=o.DEMO_USER.workspace_id,claudeChatId:s=M,fallback:r=null}){let[l,d]=(0,a.useState)(!1),c=(0,a.useRef)(null),u=(0,a.useRef)(null);return(tr(()=>{eV(),(e3+=1)>1||((0,eJ.setDemoExtensionResponder)(e7),(0,eQ.setDemoRedditResponder)(e=>/\/r\/.+\.json/.test(e)?new Promise(e=>setTimeout(()=>e(e4()),600)):null),e6=e=>{let t=e.detail;if(!t?._responseEvent||"linkedin_people_search"!==t.action)return;let a=t._responseEvent,n="string"==typeof t.keywords?t.keywords??"":"",i=e5.test(n)?e2:e1;setTimeout(()=>{window.dispatchEvent(new CustomEvent(a,{detail:{results:i,total:i.length,source:"graphql"}}))},t.looseKeywords?260:750)},e8=e=>{let t=e.detail;if(!t?.id||"string"!=typeof t.url||!/\/r\/.+\.json/.test(t.url))return;let a=t.id;setTimeout(()=>{window.dispatchEvent(new CustomEvent("boring-reddit-response",{detail:{id:a,ok:!0,status:200,body:e4()}}))},600)},window.addEventListener("everything-extension-request",e6),window.addEventListener("boring-reddit-fetch",e8),e9=setInterval(()=>{window.dispatchEvent(new CustomEvent("boring-linkedin-extension-ready"))},400)),ts(S.DEMO_PROFILE_PERSON.id);try{localStorage.getItem("home-inbox-view")||localStorage.setItem("home-inbox-view","all"),localStorage.setItem("detail-tab:contact","posts"),c.current=localStorage.getItem(tl),localStorage.setItem(tl,s),u.current={order:localStorage.getItem(td),visible:localStorage.getItem(tc)},localStorage.setItem(td,JSON.stringify(tu)),localStorage.setItem(tc,JSON.stringify(tm))}catch{}return d(!0),()=>{eX(),(e3-=1)>0||((0,eJ.setDemoExtensionResponder)(null),(0,eQ.setDemoRedditResponder)(null),e6&&window.removeEventListener("everything-extension-request",e6),e8&&window.removeEventListener("boring-reddit-fetch",e8),e9&&clearInterval(e9),e6=null,e8=null,e9=null);
53try{let e=c.current;localStorage.getItem(tl)===s&&(e?localStorage.setItem(tl,e):localStorage.removeItem(tl));let t=u.current;t&&(t.order?localStorage.setItem(td,t.order):localStorage.removeItem(td),t.visible?localStorage.setItem(tc,t.visible):localStorage.removeItem(tc))}catch{}}},[s]),l)?(0,t.jsx)(n.TaskExecutionProvider,{workspaceId:i,children:e}):(0,t.jsx)(t.Fragment,{children:r})}],889407)}]);

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.