PageSourceSearch

https://myechoboard.com/assets/SharedSpace-DIzWrdnY.js

js myechoboard.com collected 2026-10-02 00:19:33 UTC 1,699 bytes, 1 lines download raw bytes

1import{r as e,j as s}from"./vendor-react-BfgFmtGS.js";import{a as r}from"./vendor-query-XXY4vl9u.js";import{supabase as t}from"./supabase-client-2CObC91N.js";import{n,b as a,d as o}from"./canvasBoard-CDQWyJk0.js";import{B as i}from"./BoardViewer-JfbevPES.js";import{c}from"./vendor-router-QOYqHwMx.js";import{L as d}from"./loader-circle-fXsKc0TP.js";function m(){const{token:m}=c(),[l,u]=e.useState(!1),{data:f,isLoading:p}=r({queryKey:["shared-space",m],enabled:Boolean(m),staleTime:6e4,queryFn:async()=>{const{data:e,error:s}=await t.rpc("get_shared_space",{p_token:m});if(s)throw s;return(null==e?void 0:e[0])??null}}),x=e.useMemo(()=>{if(!f)return null;const e=n(f.elements);return{cards:e,connectors:o(f.elements,new Set(e.map(e=>e.id))),settings:a(f.settings)}},[f]);if(p)return s.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-background",children:s.jsx(d,{className:"h-6 w-6 animate-spin text-muted-foreground"})});if(!f||!x)return s.jsxs("div",{className:"fixed inset-0 flex flex-col items-center justify-center gap-2 bg-background p-6 text-center",children:[s.jsx("p",{className:"board-serif text-xl font-bold",children:"This Space isn't shared"}),s.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:"The link may have been turned off by its owner."}),s.jsx("a",{href:"/",className:"mt-3 text-sm text-primary underline",children:"Go to Echo"})]});const j=f.owner_display_name||(f.owner_username?`@${f.owner_username}`:null);return s.jsx(i,{name:f.name,subtitle:j?`A Space by ${j}`:void 0,cards:x.cards,connectors:x.connectors,settings:x.settings,present:l,onPresent:()=>u(!0),onExit:l?()=>u(!1):void 0},l?"present":"view")}export{m as default};

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.