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-BaX9Wv38.js";import{t as l}from"./PageHero-CnGw8JDN.js";import u from"./NotFound-6N-uh1cW.js";var d=e(n(),1),f=t(),p={"left-small":`lg:grid-cols-[2fr_3fr]`,"left-medium":`lg:grid-cols-2`,"left-large":`lg:grid-cols-[3fr_2fr]`,"right-small":`lg:grid-cols-[3fr_2fr]`,"right-medium":`lg:grid-cols-2`,"right-large":`lg:grid-cols-[2fr_3fr]`},m={small:`h-56 lg:h-64`,medium:`h-72 lg:h-96`,large:`h-96 lg:h-[32rem]`};function h(){let{slug:e=``}=c(),t=i(o),[n,h]=(0,d.useState)(null);if((0,d.useEffect)(()=>{let t=!0;return h(null),s(e).then(e=>{t&&h(e??`missing`)}),()=>{t=!1}},[e]),n===null)return(0,f.jsx)(`div`,{className:`min-h-screen`});if(n===`missing`)return(0,f.jsx)(u,{});let g=n.image_layout||`left`,_=n.image_size||`medium`,v=n.image&&g!==`banner`?n.image:``,y=v&&(g===`left`||g===`right`),b=p[`${g}-${_}`]??p[`left-medium`];return(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.jsxs)(`div`,{className:y?`wrap grid items-center gap-14 ${b}`:`wrap max-w-3xl`,children:[y&&(0,f.jsx)(a,{className:g===`right`?`lg:order-last`:void 0,children:(0,f.jsx)(`img`,{src:v,alt:n.title,className:`aspect-[4/4.2] w-full rounded-3xl object-cover shadow-soft`})}),v&&g===`top`&&(0,f.jsx)(a,{children:(0,f.jsx)(`img`,{src:v,alt:n.title,className:`mb-10 w-full rounded-3xl object-cover shadow-soft ${m[_]??m.medium}`})}),(0,f.jsx)(a,{delay:v?.12:0,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{h as default};