{"version":3,"file":"Team_2.DXCT0pNU.mjs","names":["useState","useRef","React.useCallback","__esmMin","ne","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","ce","init_jsx_runtime","init_npm_react_dom_18_3_1","c","_e","de","motion","AnimatePresence","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_BkYB2Gqq","ControlType","getImageBackground","image","slugToCampusName","slugExceptions","slug","word","getCampusFromUrl","useCentreProfiles","profiles","setProfiles","state","setState","apiUrl","endpoint","campus","centreOverride","cancelled","controller","url","response","next","data","error","SkeletonCard","cardWidth","radius","ink","TeamCard","profile","hovered","setHovered","FONT","name","honey","role","cream","onOpen","event","BioModal","closeButtonRef","backdropRef","bioScrollRef","renderedProfile","setRenderedProfile","root","previousBodyOverflow","previousRootOverflow","handleKeyDown","onClose","handleWheel","area","delta","touchId","lastY","lastTime","velocity","glideFrame","stopGlide","handleTouchStart","handleTouchMove","touch","elapsed","handleTouchEnd","speed","glide","before","backdrop","activeProfile","centre","bio","TeamPerCentre","props","isLoading","selectedProfile","setSelectedProfile","activePage","setActivePage","pageCount","setPageCount","triggerRef","scrollRef","updatePagination","element","maxScroll","step","gap","nextPageCount","nextActivePage","handleResize","observer","openProfile","trigger","closeProfile","goToPage","pageIndex","dragRef","startDrag","moveDrag","drag","distance","endDrag","index","isActive","init_Team_2"],"sources":["https:/framerusercontent.com/modules/gdlJCZD9EWjzGwaZkWGp/LRR0tAlHX5F7DRtn43nK/Team_2.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{useEffect,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";import{AnimatePresence,motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * TeamPerCentre — Framer code component\n *\n * The team for one centre: director, educational leader, area manager and\n * speech pathologist. The centre is taken from the last segment of the page\n * URL, so a single instance serves every /centres/{slug} page.\n *\n * A horizontally scrolling row of team cards. Selecting anywhere on a card\n * opens a page-level bio modal so longer bios are not constrained by the card\n * or clipped by the carousel.\n */const FONT=\"'Montserrat', sans-serif\";function getImageBackground(image){if(!image)return undefined;return`url(\"${image}\")`;}// Board item names are shorter than the public URL slug for these centres.\nconst slugExceptions={\"edmondson-park-1\":\"Ed Park 1\",\"edmondson-park-2\":\"Ed Park 2\"};function slugToCampusName(slug){if(slugExceptions[slug])return slugExceptions[slug];return slug.split(\"-\").map(word=>word.charAt(0).toUpperCase()+word.slice(1)).join(\" \");}function getCampusFromUrl(){if(typeof window===\"undefined\")return\"\";const path=window.location.pathname.replace(/\\/$/,\"\");const slug=path.split(\"/\").pop()||\"\";return slug?slugToCampusName(slug):\"\";}/**\n * Pulls one centre's team from the WordPress route that fronts the Monday board\n * (tga/v1/tga_get_centre_team). The centre comes from the page URL, so the same\n * instance works on every /centres/{slug} page.\n */function useCentreProfiles(apiUrl,centreOverride){const[profiles,setProfiles]=useState([]);const[state,setState]=useState(apiUrl?\"loading\":\"idle\");useEffect(()=>{const endpoint=(apiUrl||\"\").trim();// The Framer canvas has no centre in its path, so the override is what\n// makes the component previewable while designing.\nconst campus=(centreOverride||\"\").trim()||getCampusFromUrl();if(!endpoint||!campus){setProfiles([]);setState(\"idle\");return;}let cancelled=false;const controller=new AbortController;setState(\"loading\");const url=`${endpoint}?campus=${encodeURIComponent(campus)}`;fetch(url,{signal:controller.signal}).then(response=>{if(!response.ok){throw new Error(`Request failed: ${response.status}`);}return response.json();}).then(data=>{if(cancelled)return;const next=Array.isArray(data?.profiles)?data.profiles:[];setProfiles(next);setState(next.length?\"ready\":\"empty\");}).catch(error=>{if(cancelled||error.name===\"AbortError\")return;setProfiles([]);setState(\"error\");});return()=>{cancelled=true;controller.abort();};},[apiUrl,centreOverride]);return{profiles,state};}function SkeletonCard({cardWidth,radius,ink}){return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",className:\"tga-team-skeleton\",style:{flex:`0 0 ${cardWidth}px`,aspectRatio:\"4 / 5\",borderRadius:radius,background:ink,opacity:.12}});}function TeamCard({profile,cardWidth,radius,honey,ink,cream,onOpen}){const{image,name,role}=profile;const[hovered,setHovered]=useState(false);return /*#__PURE__*/_jsxs(motion.article,{className:\"tga-team-card\",onHoverStart:()=>setHovered(true),onHoverEnd:()=>setHovered(false),style:{position:\"relative\",flex:`0 0 ${cardWidth}px`,aspectRatio:\"4 / 5\",overflow:\"hidden\",borderRadius:radius,// The photo is scaled on hover, and a transformed child gets its\n// own composited layer that WebKit/Blink then fail to clip to a\n// rounded parent - the image spills past the corners and sits\n// outside the gradient. Both of these force the card to clip its\n// own layer, which restores the rounded clip.\nisolation:\"isolate\",WebkitMaskImage:\"-webkit-radial-gradient(white, black)\",maskImage:\"radial-gradient(white, black)\",fontFamily:FONT,scrollSnapAlign:\"start\",background:ink,cursor:\"pointer\",outline:\"none\"},children:[/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,zIndex:0,backgroundImage:getImageBackground(image),backgroundSize:\"cover\",backgroundPosition:\"center\",transformOrigin:\"center center\"},animate:{scale:hovered?1.06:1,filter:hovered?\"brightness(0.82)\":\"brightness(1)\"},transition:{duration:.6,ease:[.22,1,.36,1]}}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,right:0,bottom:0,width:\"100%\",height:\"100%\",zIndex:1,pointerEvents:\"none\",background:`linear-gradient(to top, ${ink} 0%, ${ink} 20%, transparent 80%)`,backgroundRepeat:\"no-repeat\",backgroundPosition:\"left bottom\",backgroundSize:\"100% 100%\",opacity:.86}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",left:0,right:0,bottom:0,zIndex:2,padding:32},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:\"#FFFFFF\",fontFamily:FONT,fontWeight:600,fontSize:20,lineHeight:1.2},children:name}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"4px 0 0\",color:honey,fontFamily:FONT,fontWeight:500,fontSize:14,lineHeight:1.4},children:role}),/*#__PURE__*/_jsxs(\"div\",{className:\"tga-team-read-more\",\"aria-hidden\":\"true\",style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:12,margin:\"20px 0 0\",padding:0,border:0,borderRadius:4,background:\"transparent\",color:cream,pointerEvents:\"none\",fontFamily:FONT,fontWeight:600,fontSize:12,lineHeight:1.4,letterSpacing:\"0.01em\"},children:[\"Read more about me\",/*#__PURE__*/_jsxs(motion.span,{\"aria-hidden\":\"true\",style:{position:\"relative\",display:\"inline-block\",width:42,height:12,flex:\"0 0 42px\"},animate:{x:hovered?3:0},transition:{duration:.2},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:0,right:1,top:\"50%\",height:1.5,borderRadius:999,background:\"currentColor\",transform:\"translateY(-50%)\"}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:\"50%\",right:1,width:7,height:7,borderTop:\"1.5px solid currentColor\",borderRight:\"1.5px solid currentColor\",transform:\"translateY(-50%) rotate(45deg)\",transformOrigin:\"center\"}})]})]})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"tga-team-card-link\",\"aria-label\":`Read more about ${name}, ${role}`,\"aria-haspopup\":\"dialog\",onClick:event=>onOpen(profile,event.currentTarget),style:{position:\"absolute\",inset:0,zIndex:4,width:\"100%\",height:\"100%\",padding:0,border:0,borderRadius:radius,background:\"transparent\",cursor:\"pointer\",appearance:\"none\"}})]});}function BioModal({profile,honey,ink,cream,onClose}){const closeButtonRef=useRef(null);const backdropRef=useRef(null);const bioScrollRef=useRef(null);const[renderedProfile,setRenderedProfile]=useState(profile);useEffect(()=>{if(profile)setRenderedProfile(profile);},[profile]);useEffect(()=>{if(!profile||typeof document===\"undefined\")return;// Framer scrolls the documentElement rather than the body, so locking\n// the body alone leaves the page behind the modal still scrollable.\nconst root=document.documentElement;const previousBodyOverflow=document.body.style.overflow;const previousRootOverflow=root.style.overflow;document.body.style.overflow=\"hidden\";root.style.overflow=\"hidden\";closeButtonRef.current?.focus();const handleKeyDown=event=>{if(event.key===\"Escape\")onClose();};// Send every wheel inside the modal to the bio column. Without this a\n// wheel over the photo or the heading is outside the scrolling element,\n// so it falls through and scrolls the page instead.\nconst handleWheel=event=>{const area=bioScrollRef.current;if(!area)return;let delta=event.deltaY;if(event.deltaMode===1)delta*=16// deltas in lines\n;else if(event.deltaMode===2)delta*=area.clientHeight// pages\n;area.scrollTop+=delta;// Stop the page behind from scrolling as well.\nevent.preventDefault();event.stopPropagation();};// Something on the page cancels every touchmove - the console reports\n// defaultPrevented === true on each one, while touchstart comes through\n// untouched. A cancelled gesture can never pan the bio column, so the\n// scroll has to be driven from the touch instead. It runs for every\n// touch in the modal, not only the ones that start outside the column:\n// leaving those to the browser is what made this work only sometimes,\n// since a drag on the text is exactly the cancelled case.\nlet touchId=null;let lastY=0;let lastTime=0;let velocity=0;let glideFrame=0;const stopGlide=()=>{if(glideFrame)cancelAnimationFrame(glideFrame);glideFrame=0;};const handleTouchStart=event=>{stopGlide();// Leave pinch zoom alone.\nif(event.touches.length!==1){touchId=null;return;}touchId=event.touches[0].identifier;lastY=event.touches[0].clientY;lastTime=event.timeStamp;velocity=0;};const handleTouchMove=event=>{const area=bioScrollRef.current;if(touchId===null||!area||event.touches.length!==1)return;const touch=event.touches[0];if(touch.identifier!==touchId)return;const delta=lastY-touch.clientY;const elapsed=event.timeStamp-lastTime;area.scrollTop+=delta;if(elapsed>0)velocity=delta/elapsed// px per ms\n;lastY=touch.clientY;lastTime=event.timeStamp;// Claim the gesture, so nothing scrolls twice on a page that does\n// not cancel it.\nif(event.cancelable)event.preventDefault();};const handleTouchEnd=()=>{const area=bioScrollRef.current;touchId=null;if(!area||Math.abs(velocity)<.05)return;// A flick should carry the way it does on any native scroller.\nlet speed=velocity*16// px per frame\n;const glide=()=>{speed*=.94;const before=area.scrollTop;area.scrollTop+=speed;// Stop at the ends rather than spinning against the clamp.\nglideFrame=Math.abs(speed)>.4&&area.scrollTop!==before?requestAnimationFrame(glide):0;};glideFrame=requestAnimationFrame(glide);};const backdrop=backdropRef.current;// Must be non-passive, or preventDefault is ignored.\nbackdrop?.addEventListener(\"wheel\",handleWheel,{passive:false});backdrop?.addEventListener(\"touchstart\",handleTouchStart,{passive:true});backdrop?.addEventListener(\"touchmove\",handleTouchMove,{passive:false});backdrop?.addEventListener(\"touchend\",handleTouchEnd,{passive:true});backdrop?.addEventListener(\"touchcancel\",handleTouchEnd,{passive:true});document.addEventListener(\"keydown\",handleKeyDown);return()=>{document.body.style.overflow=previousBodyOverflow;root.style.overflow=previousRootOverflow;stopGlide();backdrop?.removeEventListener(\"wheel\",handleWheel);backdrop?.removeEventListener(\"touchstart\",handleTouchStart);backdrop?.removeEventListener(\"touchmove\",handleTouchMove);backdrop?.removeEventListener(\"touchend\",handleTouchEnd);backdrop?.removeEventListener(\"touchcancel\",handleTouchEnd);document.removeEventListener(\"keydown\",handleKeyDown);};},[profile,onClose]);if(typeof document===\"undefined\")return null;const activeProfile=profile||renderedProfile;if(!activeProfile)return null;const{image,name,role,bio}=activeProfile;const centre=activeProfile.centre||\"The Grove Academy\";return /*#__PURE__*/createPortal(/*#__PURE__*/_jsx(AnimatePresence,{onExitComplete:()=>setRenderedProfile(null),children:profile&&/*#__PURE__*/_jsxs(motion.div,{ref:backdropRef,className:\"tga-team-modal-backdrop\",role:\"presentation\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},onMouseDown:event=>{if(event.target===event.currentTarget)onClose();},style:{position:\"fixed\",inset:0,zIndex:2147483647,display:\"grid\",placeItems:\"center\",minHeight:\"100vh\",padding:48,background:\"rgba(18, 18, 16, 0.68)\",backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",fontFamily:FONT},children:[/*#__PURE__*/_jsxs(motion.div,{className:\"tga-team-modal\",role:\"dialog\",\"aria-modal\":\"true\",\"aria-labelledby\":\"tga-team-modal-name\",\"aria-describedby\":\"tga-team-modal-bio\",initial:{opacity:0,y:24,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:16,scale:.98},transition:{duration:.38,ease:[.22,1,.36,1]},style:{position:\"relative\",display:\"grid\",gridTemplateColumns:\"42.5% 57.5%\",width:\"min(1120px, 100%)\",height:\"min(760px, calc(100vh - 96px))\",minHeight:520,overflow:\"hidden\",borderRadius:30,background:cream,boxShadow:\"0 32px 100px rgba(0, 0, 0, 0.4)\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"tga-team-modal-photo\",style:{position:\"relative\",minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{role:\"img\",\"aria-label\":`Portrait of ${name}`,style:{position:\"absolute\",inset:0,backgroundColor:ink,backgroundImage:getImageBackground(image),backgroundSize:\"cover\",backgroundPosition:\"center\"}}),/*#__PURE__*/_jsxs(\"div\",{className:\"tga-team-photo-label\",style:{position:\"absolute\",left:34,right:34,bottom:34,zIndex:1,padding:\"19px 22px 20px\",borderRadius:18,color:cream,background:\"rgba(15, 17, 14, 0.6)\",backdropFilter:\"blur(15px)\",WebkitBackdropFilter:\"blur(10px)\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:\"0 0 5px\",color:honey,fontSize:12,fontWeight:600,lineHeight:1.2,letterSpacing:\"0.02em\",textTransform:\"uppercase\"},children:\"Meet the team\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:16,lineHeight:1.35},children:centre})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"tga-team-modal-copy\",style:{display:\"flex\",flexDirection:\"column\",minWidth:0,minHeight:0,padding:\"76px 68px 54px\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"tga-team-modal-heading\",style:{flex:\"0 0 auto\"},children:[/*#__PURE__*/_jsx(\"h2\",{id:\"tga-team-modal-name\",style:{margin:0,color:honey,fontFamily:FONT,fontSize:\"clamp(36px, 4vw, 52px)\",fontWeight:600,lineHeight:1.02,letterSpacing:\"-0.045em\"},children:name}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"16px 0 0\",color:\"#6F736E\",fontSize:18,fontWeight:500,lineHeight:1.35},children:role}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{height:1,margin:\"30px 0 0\",background:\"#D7DAD3\"}})]}),/*#__PURE__*/_jsxs(\"div\",{ref:bioScrollRef,className:\"tga-team-bio-scroll\",style:{flex:\"1 1 auto\",minHeight:0,marginTop:32,paddingRight:26,overflowY:\"auto\",overscrollBehavior:\"contain\",WebkitOverflowScrolling:\"touch\",scrollbarColor:`${ink} #E1E4DD`,scrollbarWidth:\"thin\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:\"0 0 22px\",color:honey,fontSize:12,fontWeight:700,lineHeight:1.2,textTransform:\"uppercase\"},children:\"Biography\"}),/*#__PURE__*/_jsx(\"p\",{id:\"tga-team-modal-bio\",style:{margin:0,color:\"#6F736E\",fontFamily:FONT,fontSize:16,fontWeight:400,lineHeight:1.7,whiteSpace:\"pre-line\"},children:bio})]})]}),/*#__PURE__*/_jsx(\"button\",{ref:closeButtonRef,type:\"button\",className:\"tga-team-modal-close\",onClick:onClose,\"aria-label\":`Close ${name}'s bio`,style:{position:\"absolute\",top:30,right:30,zIndex:3,display:\"grid\",placeItems:\"center\",width:50,height:50,padding:0,border:0,borderRadius:\"50%\",color:cream,cursor:\"pointer\",fontFamily:FONT,fontSize:25,fontWeight:400,lineHeight:1,background:\"rgba(15, 17, 14, 0.6)\",backdropFilter:\"blur(15px)\",WebkitBackdropFilter:\"blur(10px)\"},children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{transform:\"translateY(0px)\"},children:\"\\xd7\"})})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                        .tga-team-modal-close:focus-visible {\n                            outline: 3px solid ${honey};\n                            outline-offset: 4px;\n                        }\n\n                        .tga-team-bio-scroll::-webkit-scrollbar {\n                            width: 5px;\n                        }\n\n                        .tga-team-bio-scroll::-webkit-scrollbar-track {\n                            background: #E1E4DD;\n                            border-radius: 999px;\n                        }\n\n                        .tga-team-bio-scroll::-webkit-scrollbar-thumb {\n                            background: ${ink};\n                            border-radius: 999px;\n                        }\n\n                        @media (max-width: 760px) {\n                            .tga-team-modal-backdrop {\n                                padding: 12px !important;\n                            }\n\n                            .tga-team-modal {\n                                grid-template-columns: 1fr !important;\n                                grid-template-rows: minmax(230px, 38%) minmax(0, 62%) !important;\n                                width: min(430px, 100%) !important;\n                                height: calc(100vh - 24px) !important;\n                                min-height: 0 !important;\n                                border-radius: 26px !important;\n                            }\n\n                            .tga-team-photo-label {\n                                left: 18px !important;\n                                right: 18px !important;\n                                bottom: 16px !important;\n                                padding: 14px 17px 15px !important;\n                                border-radius: 16px !important;\n                            }\n\n                            .tga-team-modal-copy {\n                                padding: 26px 26px 28px !important;\n                            }\n\n                            .tga-team-modal-heading h2 {\n                                margin-top: 0 !important;\n                                font-size: 34px !important;\n                            }\n\n                            .tga-team-modal-heading > p {\n                                margin-top: 10px !important;\n                                font-size: 15px !important;\n                            }\n\n                            .tga-team-modal-heading > div:last-child {\n                                margin-top: 20px !important;\n                            }\n\n                            .tga-team-bio-scroll {\n                                margin-top: 22px !important;\n                                padding-right: 16px !important;\n                            }\n\n                            .tga-team-bio-scroll > p:first-child {\n                                margin-bottom: 14px !important;\n                            }\n\n                            .tga-team-bio-scroll > p:last-child {\n                                font-size: 15px !important;\n                                line-height: 1.58 !important;\n                            }\n\n                            .tga-team-modal-close {\n                                top: 16px !important;\n                                right: 16px !important;\n                                width: 46px !important;\n                                height: 46px !important;\n                            }\n                        }\n\n                        @supports (height: 100dvh) {\n                            @media (max-width: 760px) {\n                                .tga-team-modal {\n                                    height: calc(100dvh - 24px) !important;\n                                }\n                            }\n                        }\n\n                        @media (max-height: 620px) and (min-width: 761px) {\n                            .tga-team-modal-backdrop {\n                                padding: 24px !important;\n                            }\n\n                            .tga-team-modal {\n                                height: calc(100vh - 48px) !important;\n                                min-height: 0 !important;\n                            }\n\n                            .tga-team-modal-copy {\n                                padding-top: 48px !important;\n                                padding-bottom: 36px !important;\n                            }\n                        }\n\n                        @media (prefers-reduced-motion: reduce) {\n                            .tga-team-modal,\n                            .tga-team-modal-backdrop {\n                                transition: none !important;\n                            }\n                        }\n                    `})]})}),document.body);}export default function TeamPerCentre(props){const{apiUrl,centre,cardWidth,gap,radius,honey,ink,cream}=props;const{profiles,state}=useCentreProfiles(apiUrl,centre);const isLoading=state===\"loading\";const[selectedProfile,setSelectedProfile]=useState(null);const[activePage,setActivePage]=useState(0);const[pageCount,setPageCount]=useState(1);const triggerRef=useRef(null);const scrollRef=useRef(null);const updatePagination=React.useCallback(element=>{if(!element)return;const maxScroll=Math.max(0,element.scrollWidth-element.clientWidth);const step=Math.max(1,cardWidth+gap);const nextPageCount=maxScroll>2?Math.ceil(maxScroll/step)+1:1;const nextActivePage=maxScroll>0?Math.round(element.scrollLeft/maxScroll*(nextPageCount-1)):0;setPageCount(nextPageCount);setActivePage(nextActivePage);},[cardWidth,gap]);useEffect(()=>{const element=scrollRef.current;if(!element)return;updatePagination(element);if(typeof ResizeObserver===\"undefined\"){const handleResize=()=>updatePagination(element);window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);}const observer=new ResizeObserver(()=>updatePagination(element));observer.observe(element);return()=>observer.disconnect();},[profiles.length,updatePagination]);const openProfile=(profile,trigger)=>{if(typeof document!==\"undefined\"){triggerRef.current=trigger||document.activeElement;}setSelectedProfile(profile);};const closeProfile=()=>{setSelectedProfile(null);window.requestAnimationFrame(()=>triggerRef.current?.focus?.());};const goToPage=pageIndex=>{const element=scrollRef.current;if(!element||pageCount<=1)return;const maxScroll=Math.max(0,element.scrollWidth-element.clientWidth);element.scrollTo({left:maxScroll*pageIndex/(pageCount-1),behavior:\"smooth\"});};// A native overflow container cannot be dragged with a mouse, and the\n// scrollbar is hidden, so without this the only way to reach the offscreen\n// cards on desktop is the pagination dots. Touch and pen already scroll\n// natively and are left alone.\nconst dragRef=useRef({active:false,startX:0,startScroll:0,moved:false});const startDrag=event=>{if(event.pointerType!==\"mouse\"||event.button!==0)return;const element=scrollRef.current;if(!element)return;dragRef.current={active:true,startX:event.clientX,startScroll:element.scrollLeft,moved:false};element.style.cursor=\"grabbing\";};const moveDrag=event=>{const drag=dragRef.current;const element=scrollRef.current;if(!drag.active||!element)return;const distance=event.clientX-drag.startX;// Below the threshold this is still a click on a card, not a drag.\nif(!drag.moved){if(Math.abs(distance)<=4)return;drag.moved=true;// Keep receiving moves if the pointer leaves the carousel.\nelement.setPointerCapture?.(event.pointerId);// Snap fights a live drag; it is restored on release.\nelement.style.scrollSnapType=\"none\";}element.scrollLeft=drag.startScroll-distance;event.preventDefault();};const endDrag=event=>{const drag=dragRef.current;const element=scrollRef.current;if(!drag.active)return;drag.active=false;if(element){element.style.cursor=\"\";element.style.scrollSnapType=\"\";if(event?.pointerId!=null&&element.hasPointerCapture?.(event.pointerId)){element.releasePointerCapture(event.pointerId);}}};// A drag that ends on a card would otherwise open that card's modal.\nconst suppressClickAfterDrag=event=>{if(!dragRef.current.moved)return;event.preventDefault();event.stopPropagation();dragRef.current.moved=false;};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .tga-team-scroll::-webkit-scrollbar { display: none; }\n\n                .tga-team-card-link:focus-visible {\n                    outline: none;\n                    box-shadow: inset 0 0 0 3px ${honey};\n                }\n\n                .tga-team-pagination-dot:focus-visible {\n                    outline: 2px solid ${honey};\n                    outline-offset: 4px;\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{ref:scrollRef,className:\"tga-team-scroll\",onScroll:event=>updatePagination(event.currentTarget),onPointerDown:startDrag,onPointerMove:moveDrag,onPointerUp:endDrag,onPointerCancel:endDrag,onClickCapture:suppressClickAfterDrag,onDragStart:event=>event.preventDefault(),style:{display:\"flex\",flexWrap:\"nowrap\",// Centre a short row, but only once it is known to fit.\n// pageCount === 1 means there is nothing to scroll, and\n// centring an overflowing flex row would put the first\n// cards out of reach past the left edge.\njustifyContent:pageCount>1?\"flex-start\":\"center\",overflowX:\"auto\",overflowY:\"hidden\",gap,scrollSnapType:\"x mandatory\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",WebkitOverflowScrolling:\"touch\",padding:\"4px 4px 8px\",cursor:\"grab\",userSelect:\"none\",WebkitUserSelect:\"none\"},children:isLoading?Array.from({length:5},(_,index)=>/*#__PURE__*/_jsx(SkeletonCard,{cardWidth:cardWidth,radius:radius,ink:ink},`skeleton-${index}`)):profiles.map((profile,index)=>/*#__PURE__*/_jsx(TeamCard,{profile:profile,cardWidth:cardWidth,radius:radius,honey:honey,ink:ink,cream:cream,onOpen:openProfile},profile.id??`${profile.name}-${index}`))}),pageCount>1&&/*#__PURE__*/_jsx(\"div\",{\"aria-label\":\"Team carousel pagination\",style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,minHeight:8,marginTop:12},children:Array.from({length:pageCount},(_,pageIndex)=>{const isActive=pageIndex===activePage;return /*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"tga-team-pagination-dot\",\"aria-label\":`Go to team carousel page ${pageIndex+1}`,\"aria-current\":isActive?\"true\":undefined,onClick:()=>goToPage(pageIndex),style:{width:isActive?26:8,height:8,padding:0,border:0,borderRadius:999,background:honey,opacity:isActive?1:.35,cursor:\"pointer\",transition:\"width 220ms ease, opacity 220ms ease\"}},pageIndex);})}),/*#__PURE__*/_jsx(BioModal,{profile:selectedProfile,honey:honey,ink:ink,cream:cream,onClose:closeProfile})]});}TeamPerCentre.defaultProps={apiUrl:\"https://family.thegroveacademy.com.au/wp-json/tga/v1/tga_get_centre_team\",centre:\"\",cardWidth:320,gap:20,radius:35,honey:\"#FABA55\",ink:\"#211F1D\",cream:\"#F6F2E8\"};addPropertyControls(TeamPerCentre,{apiUrl:{type:ControlType.String,title:\"API URL\",description:\"Full endpoint, e.g. https://your-site/wp-json/tga/v1/tga_get_centre_team\",defaultValue:\"https://family.thegroveacademy.com.au/wp-json/tga/v1/tga_get_centre_team\"},centre:{type:ControlType.String,title:\"Centre\",description:\"Leave empty on the live page — the centre is read from the URL slug. Set it only to preview a centre on the canvas, e.g. Shell Cove.\",placeholder:\"From URL slug\",defaultValue:\"\"},cardWidth:{type:ControlType.Number,title:\"Card width\",defaultValue:320,min:160,max:480,step:10},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:20,min:0,max:64,step:2},radius:{type:ControlType.Number,title:\"Corner radius\",defaultValue:35,min:0,max:48},honey:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#FABA55\"},ink:{type:ControlType.Color,title:\"Dark colour\",defaultValue:\"#211F1D\"},cream:{type:ControlType.Color,title:\"Light colour\",defaultValue:\"#F6F2E8\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TeamPerCentre\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Team_2.map"],"mappings":"A,gRAUyC,SAASoB,EAAmB,EAAM,CAAC,GAAIC,EAAuB,MAAM,QAAQA,EAAM,GAAI,CAC1C,SAASC,EAAiB,EAAK,CAAqD,OAAjDC,EAAeC,GAAaD,EAAeC,GAAaA,EAAK,MAAM,GAAG,CAAC,CAAC,IAAI,GAAMC,EAAK,OAAO,CAAC,CAAC,CAAC,YAAY,EAAEA,EAAK,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAE,CAAC,SAASC,GAAkB,CAAC,GAAUnB,IAAS,OAAY,MAAM,GAAyD,IAAMiB,EAAjDjB,EAAO,SAAS,SAAS,QAAQ,MAAM,EAAkB,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,GAAG,OAAOiB,EAAKF,EAAiBE,CAAI,EAAE,EAAG,CAInc,SAASG,EAAkB,EAAO,EAAe,CAAC,GAAK,CAACC,EAASC,GAAa7B,EA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