1import{i as x,u as m,j as e,S as u,H as h,a6 as l,F as f,a8 as p,ab as g,a0 as j,s as o}from"./index-D6S94l3r.js";const _=x("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);function v(){const{data:s,isLoading:i}=m({queryKey:["team-groups-with-members"],queryFn:async()=>{const{data:a,error:t}=await o.from("team_groups").select("*").eq("is_active",!0).order("display_order");if(t)throw t;const{data:c,error:n}=await o.from("team_members").select("*").eq("is_active",!0).order("display_order");if(n)throw n;return(a||[]).map(r=>({...r,members:(c||[]).filter(d=>d.group_id===r.id)})).filter(r=>r.members.length>0)}});return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(u,{title:"Meet the Team",description:"Meet the trustees, staff and volunteers who bring The Abbey Theatre, Nuneaton to life."}),e.jsx(h,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx("section",{className:"bg-primary/5 py-16 md:py-24",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Meet The Team"}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"The dedicated volunteers who keep The Abbey Theatre running smoothly"})]})}),e.jsx("section",{className:"py-12 md:py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:i?e.jsx("div",{className:"space-y-16",children:[1,2].map(a=>e.jsxs("div",{children:[e.jsx(l,{className:"h-8 w-48 mb-8 mx-auto"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3].map(t=>e.jsxs("div",{className:"text-center",children:[e.jsx(l,{className:"h-32 w-32 rounded-full mx-auto mb-4"}),e.jsx(l,{className:"h-6 w-32 mx-auto mb-2"}),e.jsx(l,{className:"h-4 w-24 mx-auto"})]},t))})]},a))}):!s||s.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-muted-foreground",children:"No team members to display yet."})}):e.jsx("div",{className:"space-y-16",children:s.map(a=>e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground text-center mb-8",children:a.name}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:a.members.map(t=>e.jsx(N,{member:t},t.id))})]},a.id))})})})]}),e.jsx(f,{})]})}function N({member:s}){const i=s.facebook_url||s.linkedin_url||s.custom_link_url;return e.jsxs("div",{className:"text-center group",children:[e.jsx("div",{className:"mb-4 relative inline-block",children:s.photo_url?e.jsx("img",{src:p(s.photo_url),alt:`${s.first_name} ${s.last_name}`,className:"h-32 w-32 md:h-40 md:w-40 rounded-full object-cover mx-auto ring-4 ring-primary/10 group-hover:ring-primary/30 transition-all"}):e.jsx("div",{className:"h-32 w-32 md:h-40 md:w-40 rounded-full bg-muted flex items-center justify-center mx-auto ring-4 ring-primary/10",children:e.jsxs("span",{className:"text-3xl font-semibold text-muted-foreground",children:[s.first_name[0],s.last_name[0]]})})}),e.jsxs("h3",{className:"text-xl font-semibold text-foreground mb-1",children:[s.first_name," ",s.last_name]}),s.role_title&&e.jsx("p",{className:"text-primary font-medium mb-2",children:s.role_title}),s.bio&&e.jsx("p",{className:"text-muted-foreground text-sm mb-4 max-w-xs mx-auto",children:s.bio}),i&&e.jsxs("div",{className:"flex items-center justify-center gap-3",children:[s.facebook_url&&e.jsx("a",{href:s.facebook_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors","aria-label":`${s.first_name}'s Facebook`,children:e.jsx(g,{className:"h-5 w-5"})}),s.linkedin_url&&e.jsx("a",{href:s.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors","aria-label":`${s.first_name}'s LinkedIn`,children:e.jsx(_,{className:"h-5 w-5"})}),s.custom_link_url&&e.jsxs("a",{href:s.custom_link_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-primary transition-colors inline-flex items-center gap-1 text-sm","aria-label":s.custom_link_label||"External link",children:[e.jsx(j,{className:"h-4 w-4"}),s.custom_link_label&&e.jsx("span",{children:s.custom_link_label})]})]})]})}export{v 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.