1import{o as c,j as t}from"./vendor-react.BsJ9eaQA.js";import{l as u,s as d}from"./index.B_dQ8nW1.js";import{F as x}from"./FacilityPageLayout.BUrO_vau.js";import{F as f}from"./FacilityPageSeo.uVc1XVvR.js";import{u as y}from"./useFacilityPageContent.D3R2pHCi.js";import{S as s}from"./skeleton.p8iPKyR0.js";import"./vendor-supabase.rDbyZezT.js";import"./vendor-ui.BMOhr5L7.js";import"./FacilityNavbar.CQlqnOcI.js";import"./avatar-menu.V8eumD9O.js";import"./avatar.Cuu9EkKG.js";import"./dropdown-menu.eVZBZ5NT.js";import"./chevron-right.C7hG-Qsm.js";import"./check.BuxoXE3q.js";import"./circle.DzNGuoPf.js";import"./flag.CI3ashsS.js";import"./user-plus.BlYARK9H.js";import"./users.BRv1QrID.js";import"./car.COnuEjVj.js";import"./settings.DAmJ3cj7.js";import"./file-text.Cez4E4bv.js";import"./theme-toggle.CHBN20zq.js";import"./sun.DHOMFVke.js";import"./moon.CEEtVhNf.js";import"./building-2.3etmwd6P.js";import"./layout-dashboard.BAM553ne.js";import"./instagram.CCKidHQI.js";import"./facebook.D6D-DCWH.js";import"./circle-user.CSZ-Z27d.js";import"./log-in.BkE0hKPq.js";import"./FacilityFooter.Dpbbc5nd.js";import"./useFacilityFooterSettings.BnGOZ_1e.js";import"./useMutation.D7pCHyR6.js";import"./footerLinks.DDUD3pYz.js";import"./external-link.BMMNQG6m.js";import"./message-circle.DwNBzTI1.js";import"./SeasonalBanner.Cb5m2hnv.js";import"./usePageViewTracking.COxOR_Z4.js";import"./v4.CmTdKEVZ.js";import"./Helmet.DTMqVcw7.js";import"./index.CDAv8Jag.js";const h={about:"About Us",rates:"Rates","driving-range":"Driving Range",explore:"Explore the Course",scorecard:"Score Card",contact:"Contact Us","privacy-policy":"Privacy Policy",terms:"Terms of Service"},st=({pageKey:i,defaultTitle:p})=>{const{facilitySlug:e}=c(),{data:r}=u({queryKey:["facility-by-slug",e],queryFn:async()=>{if(!e)return null;const{data:l,error:m}=await d.from("facilities").select("id, name").eq("slug",e).maybeSingle();if(m)throw m;return l},enabled:!!e}),{data:o,isLoading:n}=y(r==null?void 0:r.id,i),a=(o==null?void 0:o.title)||p||h[i]||i;return t.jsxs(x,{title:a,children:[t.jsx(f,{pageKey:i,defaultTitle:a,facilityId:r==null?void 0:r.id,facilityName:r==null?void 0:r.name}),n?t.jsxs("div",{className:"space-y-4",children:[t.jsx(s,{className:"h-8 w-1/3"}),t.jsx(s,{className:"h-4 w-full"}),t.jsx(s,{className:"h-4 w-full"}),t.jsx(s,{className:"h-4 w-2/3"})]}):o!=null&&o.content?t.jsx("article",{className:"prose prose-lg max-w-none dark:prose-invert",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:o.content}})}):t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-muted-foreground",children:"Content for this page has not been configured yet."})})]})};export{st 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.