PageSourceSearch

https://foamglow.com/assets/useEvents-5wo2YZNM.js

js foamglow.com collected 2026-09-30 13:42:29 UTC 835 bytes, 1 lines download raw bytes

1import{u as a}from"./useQuery-D7Z-4oYh.js";import{s as r}from"./client-Bw6Mo37w.js";function c(e){return a({queryKey:["events",e],queryFn:async()=>{let n=r.from("events").select("*").order("date",{ascending:!0});e!=null&&e.brand&&(n=n.eq("brand",e.brand)),e!=null&&e.status&&(n=n.eq("status",e.status));const{data:t,error:u}=await n;if(u)throw u;return t}})}function y(e){return a({queryKey:["event",e],queryFn:async()=>{const{data:n,error:t}=await r.from("events").select("*").eq("id",e).single();if(t)throw t;return n},enabled:!!e})}function d(e){return a({queryKey:["event-content",e],queryFn:async()=>{const{data:n,error:t}=await r.from("event_content").select("id, event_id, hero_image_url, sections, gallery_images, last_scraped").eq("event_id",e).maybeSingle();if(t)throw t;return n},enabled:!!e})}export{y as a,d as b,c 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.