1import{r,j as t,au as d,F as x}from"./react-vendor-BdKcatnj.js";import{s as h}from"./admin-kQh0cl7a.js";import"./editor-B8DkAGbb.js";import"./vendor-DmdaKlET.js";import"./supabase-Dkt0_4vq.js";function j(){const[n,i]=r.useState(""),[o,l]=r.useState("Terms and Conditions"),[c,m]=r.useState(!0);return r.useEffect(()=>{(async()=>{try{const{data:s,error:a}=await h.from("legal_content").select("title, content").eq("content_type","terms_conditions").eq("is_active",!0).maybeSingle();if(a)throw a;s&&(l(s.title),i(s.content))}catch(s){console.error("Error fetching terms and conditions:",s)}finally{m(!1)}})()},[]),c?t.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),t.jsx("p",{className:"mt-4 text-gray-600",children:"Loading..."})]})}):t.jsxs(t.Fragment,{children:[t.jsxs(d,{children:[t.jsx("title",{children:"Terms & Conditions | Holiday Bookie - Booking Terms"}),t.jsx("meta",{name:"description",content:"Holiday Bookie Terms and Conditions. Read our booking terms, cancellation policy, payment terms, and service conditions. Important information for travelers."}),t.jsx("meta",{name:"robots",content:"noindex, follow"}),t.jsx("link",{rel:"canonical",href:"https://holidaybookie.com/terms-conditions"})]}),t.jsxs("div",{className:"min-h-screen bg-gray-50",children:[t.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-blue-800 text-white py-8",children:t.jsxs("div",{className:"container mx-auto px-4 text-center",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[t.jsx(x,{className:"w-8 h-8"}),t.jsx("h1",{className:"text-2xl md:text-3xl font-bold",children:o})]}),t.jsx("p",{className:"text-base text-blue-100",children:"Please read these terms carefully before using our services"})]})}),t.jsx("div",{className:"container mx-auto px-4 py-12",children:t.jsx("div",{className:"max-w-4xl mx-auto bg-white rounded-lg shadow-md p-8",children:t.jsx("div",{className:"prose prose-blue max-w-none",style:{whiteSpace:"pre-wrap",lineHeight:"1.8"},children:n.split(` 2`).map((e,s)=>e.startsWith("# ")?t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mt-8 mb-4",children:e.substring(2)},s):e.startsWith("## ")?t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mt-6 mb-3",children:e.substring(3)},s):e.startsWith("### ")?t.jsx("h3",{className:"text-xl font-semibold text-gray-900 mt-4 mb-2",children:e.substring(4)},s):e.startsWith("- ")?t.jsx("li",{className:"ml-6 text-gray-700",children:e.substring(2)},s):e.startsWith("**")&&e.endsWith("**")?t.jsx("p",{className:"font-bold text-gray-900 mt-3",children:e.substring(2,e.length-2)},s):e.startsWith("*")&&e.endsWith("*")?t.jsx("p",{className:"italic text-gray-600 text-sm mt-4",children:e.substring(1,e.length-1)},s):e.trim()===""?t.jsx("div",{className:"h-2"},s):t.jsx("p",{className:"text-gray-700 mb-2",children:e},s))})})})]})]})}export{j as TermsConditions};
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.