1import{k as c,r as i,j as e,L as m}from"./react-vendor-DlfacoUt.js";import{l as x,i as u}from"./views-CpdrNrKE.js";import f from"./HomeFeed-BNe-HWYQ.js";import{B as d}from"./index-B7ErYi-u.js";import{L as h,Y as j,aF as g}from"./icons-vendor-iDMXddrC.js";import"./publicUrl-2g-y0Hbp.js";import"./useFollowingFeed-BTLHh53B.js";import"./FeedPostCard-D5H-WVM9.js";import"./useBookmarks-BpZaMk8u.js";import"./bookmarkResearch-BZeNzdaZ.js";import"./avatar-Bl3shE1c.js";import"./radix-vendor-Bnc9sXGn.js";import"./supabase-vendor-BFpL0hm0.js";import"./badge-Bfx1cijQ.js";import"./query-vendor-BRUoyimQ.js";import"./dialog-D3QU6WBB.js";import"./IntroRequestForm-CzlcBtl4.js";import"./textarea-Dni_-p1y.js";import"./formatDistanceToNow-kv3x8eHy.js";import"./en-US-C5vD-bVu.js";import"./endOfMonth-B_ILu3ZT.js";import"./useLikeStatuses-C_m8HVs0.js";import"./FeedRaiseCard-DJICV3rD.js";import"./SourceCountBadge-CrCdYTIM.js";import"./formatMoney-B83mWdob.js";import"./AddToPipelineDialog-XopumkQM.js";import"./input-D46aJJ9k.js";import"./label-aBq373ll.js";import"./select-Dwg7O8SN.js";import"./SignUpPromptDialog-DqD4J54D.js";import"./CompanyLogo-BUKTjfRA.js";import"./getCompanyLogoUrl-DaGxGj66.js";import"./useWatch-DssCDY7X.js";import"./useWatchlist-uUyh5qib.js";import"./tabs-Bc40huyk.js";import"./uploadMedia-DAFZ_Ps8.js";import"./switch-DdFmRadd.js";import"./gate-B3VJKsZy.js";import"./dropdown-menu-Bsjfhlv7.js";import"./SavedViewChip-DqrgTvVd.js";import"./scroll-area-BOI3aX3g.js";import"./checkbox-Dn4U3HF9.js";import"./EditViewDialog-BJdbWYdx.js";import"./useSavedViews-Dc5GuGbX.js";import"./sheet-0USaZev0.js";import"./useExpeditionContext-T0G94kD5.js";import"./expeditionContext-C3DbC4Pw.js";import"./useExpeditionFiles-Ckh9ooOT.js";import"./artifactLibrary-C_PHGzAk.js";import"./useScreenReport-Y-8lvNTI.js";import"./screenReport-JV_wZSWZ.js";import"./useNetworkMembers-DTqq4hT9.js";function ge(){const{id:o}=c(),[t,l]=i.useState(null),[p,a]=i.useState(!0),[n,s]=i.useState(null);return i.useEffect(()=>{(async()=>{if(!o){s("No view ID provided"),a(!1);return}try{const r=await x(o);if(!u(r.scope)){s("not_found");return}l(r)}catch(r){console.error("Error loading shared view:",r),s("not_found")}finally{a(!1)}})()},[o]),p?e.jsx("div",{className:"flex items-center justify-center min-h-screen bg-muted",children:e.jsx(h,{className:"h-8 w-8 animate-spin text-muted-foreground/70"})}):n||!t?e.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-muted p-8",children:e.jsxs("div",{className:"text-center max-w-md",children:[e.jsx("div",{className:"mx-auto h-16 w-16 text-muted-foreground/50 mb-6 flex items-center justify-center",children:n==="not_found"?e.jsx(j,{className:"h-12 w-12"}):e.jsx(g,{className:"h-12 w-12"})}),e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-2",children:"View Not Available"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"This view is either private or doesn't exist. The owner may have disabled sharing."}),e.jsx(m,{to:"/",children:e.jsx(d,{children:"Go to SummitPoint"})})]})}):e.jsxs("div",{className:"min-h-screen bg-card",children:[e.jsx("div",{className:"border-b border-border bg-card/80 backdrop-blur-sm sticky top-0 z-30",children:e.jsxs("div",{className:"max-w-[1600px] mx-auto px-6 py-4 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{to:"/",className:"text-sm font-semibold text-foreground hover:text-primary transition-colors",children:"SummitPoint"}),e.jsx("span",{className:"text-muted-foreground/50",children:"|"}),e.jsx("h1",{className:"text-sm font-medium text-muted-foreground",children:t.name})]}),e.jsx(m,{to:"/swag",children:e.jsx(d,{size:"sm",variant:"outline",children:"Sign up"})})]})}),e.jsx("div",{className:"max-w-[1600px] mx-auto px-6 py-6",children:e.jsx(f,{initialFilters:t.query||{rounds:[],sectors:[],stages:[],geographies:[],dealSizeMin:null,dealSizeMax:null},readOnly:!0,scope:t.scope})})]})}export{ge 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.