PageSourceSearch

https://cssstudio.ai/assets/use-team-q6rcJU7N.js

js cssstudio.ai collected 2026-10-04 21:08:00 UTC 799 bytes, 1 lines download raw bytes

1import{a as o}from"./chunk-6CSD65Y2-B9EdUb7a.js";import{supabase as l}from"./supabase-y7-6yKvl.js";const m=typeof window<"u"&&window.location.hostname==="localhost"?"http://localhost:8787":"https://api.motion.dev";function r(){const[i,a]=o.useState({loading:!0,isTeamAdmin:!1,team:null,seats:[]});async function e(){try{const{data:{session:s}}=await l.auth.getSession();if(!s){a({loading:!1,isTeamAdmin:!1,team:null,seats:[]});return}const n=await fetch(`${m}/cssstudio/team`,{headers:{Authorization:`Bearer ${s.access_token}`}});if(!n.ok){a({loading:!1,isTeamAdmin:!1,team:null,seats:[]});return}const t=await n.json();a({loading:!1,isTeamAdmin:!!t.team,team:t.team,seats:t.seats??[]})}catch{a({loading:!1,isTeamAdmin:!1,team:null,seats:[]})}}return o.useEffect(()=>{e()},[]),[i,e]}export{r as u};

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.