1import{j as e,C as c,q as m,D as l,v as d,r as o,x as p}from"./index-Vi894iiS.js";import{C as u}from"./customer-interviews-panel-Dl2nX1DZ.js";import"./living-workspace-panel-BCQFhrkj.js";import"./accordion-CiqJFdDA.js";import"./BarChart-CbUiU-Gr.js";import"./PieChart-B4dtUjv2.js";function w(){return e.jsx(c,{children:e.jsx(x,{})})}function x(){const i=m(l),n=d({queryKey:["workspace-companies"],queryFn:()=>i()}),a=n.data?.workspaces??[],[s,t]=o.useState("");return o.useEffect(()=>{!s&&a.length>0&&t(a[0].organizationId)},[a,s]),e.jsxs("div",{className:"max-w-5xl space-y-6",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"font-display text-2xl",children:"Customer interviews"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Every customer conversation in one place â the ones from the program and every one since."})]}),e.jsx(p,{companies:a.map(r=>({id:r.organizationId,legal_name:r.name})),value:s,onChange:t})]}),n.isLoading?e.jsx("p",{className:"text-muted-foreground",children:"Loadingâ¦"}):a.length===0?e.jsxs("p",{className:"text-muted-foreground",children:["Your account isn't linked to a company yet. Contact"," ",e.jsx("a",{className:"text-primary underline",href:"mailto:[email protected]",children:"[email protected]"})," ","and we'll connect it."]}):s&&e.jsx(u,{organizationId:s},s)]})}export{w as component};
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.