import{c as e,n as t,r as n,t as r}from"./Seo-DIwHowcX.js";import{B as i,c as a,j as o,k as s,q as c}from"./index-BXpSodsH.js";import{t as l}from"./PageHero-DT6BvojU.js";import u from"./NotFound-C2tZWxO6.js";var d=e(n(),1),f=t();function p(){let{slug:e=``}=c(),t=i(o),[n,p]=(0,d.useState)(null);return(0,d.useEffect)(()=>{let t=!0;return p(null),s(e).then(e=>{t&&p(e??`missing`)}),()=>{t=!1}},[e]),n===null?(0,f.jsx)(`div`,{className:`min-h-screen`}):n===`missing`?(0,f.jsx)(u,{}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r,{title:`${n.title} — ${t?.company_name??`Touch Therapies Antigua`}`,description:n.subtitle||void 0,image:n.image||void 0}),(0,f.jsx)(l,{kicker:`Touch Therapies`,title:n.title,lead:n.subtitle||void 0,image:n.image||void 0}),(0,f.jsx)(`section`,{className:`py-20 lg:py-24`,children:(0,f.jsx)(`div`,{className:`wrap max-w-3xl`,children:(0,f.jsx)(a,{children:(0,f.jsx)(`div`,{className:`[&_h2]:sec-title [&_h2]:!text-[1.4rem] [&_h2]:mt-10 [&_h2]:mb-4 [&_p]:mb-4 [&_p]:text-muted [&_ul]:my-6 [&_ul]:grid [&_ul]:gap-3 [&_li]:font-medium [&_a]:text-palm-600 [&_a]:underline [&_img]:my-8 [&_img]:w-full [&_img]:rounded-3xl [&_img]:object-cover [&_img]:shadow-soft`,dangerouslySetInnerHTML:{__html:n.body}})})})})]})}export{p as default};