import{t as e}from"./jsx-runtime-DG_AJzB_.js";import{t}from"./compiler-runtime-DCc3R3Xn.js";import{a as n}from"./api-base-url-DIb6qukm.js";import{t as r}from"./useSuspenseQuery-CoSA2jMV.js";import{g as i}from"./index-BQ5WpFpw.js";import{a,n as o,o as s,r as c,t as l}from"./card-CZCl7QNy.js";var u=t(),d=e(),f=n(`/_authenticated/$org_slug/home`);function p(){let e=(0,u.c)(9),{organizationId:t}=f.useRouteContext(),n;e[0]===t?n=e[1]:(n=i(t),e[0]=t,e[1]=n);let{data:p}=r(n),m;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,d.jsxs)(`div`,{className:`mb-8`,children:[(0,d.jsx)(`h1`,{className:`text-3xl font-bold`,children:`Welcome to OneQuery`}),(0,d.jsx)(`p`,{className:`text-muted-foreground mt-2`,children:`Your workspace is ready to connect data sources and explore usage.`})]}),e[2]=m):m=e[2];let h;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Data Sources`}),(0,d.jsx)(c,{children:`Manage the systems OneQuery can query on your behalf`})]}),e[3]=h):h=e[3];let g;e[4]===p.dataSourcesCount?g=e[5]:(g=(0,d.jsx)(`p`,{className:`text-2xl font-bold`,children:p.dataSourcesCount}),e[4]=p.dataSourcesCount,e[5]=g);let _;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Active data sources`}),e[6]=_):_=e[6];let v;return e[7]===g?v=e[8]:(v=(0,d.jsxs)(`div`,{className:`p-8`,children:[m,(0,d.jsx)(`div`,{className:`grid gap-4 md:grid-cols-1`,children:(0,d.jsxs)(l,{children:[h,(0,d.jsxs)(o,{children:[g,_]})]})})]}),e[7]=g,e[8]=v),v}var m=p;export{m as component};