PageSourceSearch

https://granitecity.io/assets/usePublicMeetingRooms-KLFqzgsO.js

js granitecity.io collected 2026-10-05 08:30:03 UTC 1,427 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-BbU1qFW-.js","assets/index-DJNj82Yw.js"])))=>i.map(i=>d[i]);
2import{G as c,d as u,_ as g,I as _}from"./index-BkCXaXKa.js";const l=["public-meeting-rooms"];function r(o,n){const i=o/100;return`$${Number.isInteger(i)?String(i):i.toFixed(2)}/${n}`}function d(o){return Array.isArray(o)?o.filter(n=>typeof n=="string").join(", "):typeof o=="string"?o:""}async function y(){const{supabase:o}=await g(async()=>{const{supabase:e}=await import("./client-BbU1qFW-.js");return{supabase:e}},__vite__mapDeps([0,1])),{data:n,error:i}=await o.from("rooms").select("slug,name,seats,hourly_cents,day_cents,amenities,sort_order,min_booking_minutes,short_description,booking_mode").eq("active",!0).in("slug",_).order("sort_order",{ascending:!0});if(i)throw i;const s=n??[],a=new Map(s.filter(e=>e.slug).map(e=>[e.slug,e]));return u.map(e=>{const t=a.get(e.slug);if(!t)return e;const m=t.booking_mode!=="day_block"&&t.booking_mode!=="quote"&&t.hourly_cents>0;return{slug:e.slug,name:t.name,seats:t.seats,hourly:m?r(t.hourly_cents,"hr"):"",daily:t.day_cents>0?r(t.day_cents,"day"):"",amenities:d(t.amenities)||e.amenities,min_booking_minutes:t.min_booking_minutes??e.min_booking_minutes,image:e.image,short_description:t.short_description??e.short_description}})}function f(){return c({queryKey:l,queryFn:y,initialData:u,staleTime:5*60*1e3,gcTime:30*60*1e3})}export{f 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.