1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CGKNpi9E.js","assets/animation-CddyXVCz.js","assets/react-vendor-CbN3pvl2.js","assets/supabase-iKSPld20.js","assets/docgen-Bp8WKBAE.js","assets/query-DPqpbKNH.js","assets/index-D2PKCkk9.css"])))=>i.map(i=>d[i]); 2import{_ as h}from"./index-CGKNpi9E.js";import"./animation-CddyXVCz.js";import"./react-vendor-CbN3pvl2.js";import"./supabase-iKSPld20.js";import"./docgen-Bp8WKBAE.js";import"./query-DPqpbKNH.js";const g=async(c,s,o)=>{var i;const{supabase:e}=await h(async()=>{const{supabase:w}=await import("./index-CGKNpi9E.js").then(u=>u.cw);return{supabase:w}},__vite__mapDeps([0,1,2,3,4,5,6])),a=await(e==null?void 0:e.auth.getSession()),r=(i=a==null?void 0:a.data.session)==null?void 0:i.access_token;if(!r)throw new Error("Authentication required. Please sign in to upload files.");const t=new FormData;t.append("file",c),t.append("userId",s),t.append("fileName",o);const n=await fetch("/api/storage/upload",{method:"POST",headers:{Authorization:`Bearer ${r}`},body:t});if(!n.ok){const w=await n.json().catch(()=>({error:"Unknown error"}));throw new Error(w.error||`Upload failed: ${n.status}`)}return(await n.json()).path},k=async(c,s=3600)=>{var d;const{supabase:o}=await h(async()=>{const{supabase:i}=await import("./index-CGKNpi9E.js").then(w=>
2w.cw);return{supabase:i}},__vite__mapDeps([0,1,2,3,4,5,6])),e=await(o==null?void 0:o.auth.getSession()),a=(d=e==null?void 0:e.data.session)==null?void 0:d.access_token;if(!a)throw new Error("Authentication required. Please sign in to preview files.");const r=encodeURIComponent(c),t=await fetch(`/api/storage/signed-url?path=${r}&expiresIn=${s}`,{method:"GET",headers:{Authorization:`Bearer ${a}`}});if(!t.ok){const i=await t.json().catch(()=>({error:"Unknown error"}));throw new Error(i.error||`Failed to get signed URL: ${t.status}`)}return(await t.json()).url},P=async c=>{var t;const{supabase:s}=await h(async()=>{const{supabase:n}=await import("./index-CGKNpi9E.js").then(d=>d.cw);return{supabase:n}},__vite__mapDeps([0,1,2,3,4,5,6])),o=await(s==null?void 0:s.auth.getSession()),e=(t=o==null?void 0:o.data.session)==null?void 0:t.access_token;if(!e)throw new Error("Authentication required. Please sign in to delete files.");const a=encodeURIComponent(c),r=await fetch(`/api/storage/delete?path=${a}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}});if(!r.ok&&r.status!==204){const n=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(n.error||`Delete failed: ${r.status}`)}};export{P as deleteFromGCS,k as getSignedUrl,g as uploadToGCS};
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.