1import{u}from"./vault-mock-data-DjKpwLrX.js";import{r as c}from"./jsx-runtime-Dt5Dsy05.js";import{h as i}from"./network-DalQI-IC-DuOjDb_-.js";import{u as d}from"./workspace-route-context-B_p6O-6w.js";import{u as f,N as l}from"./useUser-DOVB-59u.js";import{a as p}from"./useManifoldWeb3Connection-CORwltPe.js";function A(t){const{data:r}=f();return c.useMemo(()=>r?r.id.toString()===t.ownerId.toString():!1,[r,t.ownerId])}function h(t){const r=p();return!t||!t.walletAddress?!1:t.walletAddress?.toLowerCase()===r?.toLowerCase()}function m(t=!0){const{workspaceData:r}=d();return u({queryKey:["workspace-contracts",r.id,t],queryFn:()=>{if(!r||!r.contracts||!r.contracts.length)return[];const e=r.contracts;return t?e.filter(s=>s?.contractInfo?.[0]?.networkId?i.includes(s.contractInfo[0].networkId):!1):e},enabled:!!r,...l})}function x(t,r=!0){const{data:e=[],isLoading:s,error:n}=m(r),a=Array.isArray(t)?t:[];return{contracts:e.filter(o=>o&&o.id&&a.includes(o.id.toString())),isLoading:s,error:n}}export{h as a,m as b,x as c,A 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.