{"version":3,"file":"StudioFromURL.CjTJZeDP.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","init_jsx_runtime","c","init_npm_react_18_3_1","ce","wantsCastor","remembered","STORAGE_KEY","query","hash","findVisibleChip","chips","CHIP_NAME","chip","rect","press","el","base","withStudioFromURL","lastPress","tries","timer","attempt","Component","props","withRememberCastor","remember","event","withAnchorScroll","onClick","href","target","top","withScrollToStoredTarget","TARGET_KEY","timers","names","find","byId","name","matches","go","delay","t","rememberTarget","withFixedTarget","withTeamCastor","withTeamMarleigh","withTeamEddington","withTeamAll","findVisibleByName","tabsTop","TAB_SECTION_ID","padTop","scrollPageTo","delta","steps","step","i","start","scrollToTabs","selectTab","tab","tabName","studio","lastTabPress","scroll","requestedStudio","TAB_KEY","value","STUDIOS","withTimetableTabs","onEvent","TAB_EVENT","tabsBooted","init_StudioFromURL"],"sources":["https:/framerusercontent.com/modules/zxxqKUSwLoEzknrZl3OC/z08pKHBAideXs4wmosA6/StudioFromURL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * Pre-selects Castor on the pricing page from the URL.\n * Apply to the \"Segment Castor\" toggle chip. Visiting\n * /pricing-9x9#castor (or ?studio=castor) presses that chip once\n * after the page has hydrated, so Castor prices show first and the\n * toggle shows Castor as active. Anything else keeps the default\n * Cambridge view.\n */const CHIP_NAME=\"Segment Castor\";const STORAGE_KEY=\"r3form-studio\";function wantsCastor(){let remembered=\"\";try{remembered=window.sessionStorage.getItem(STORAGE_KEY)||\"\";window.sessionStorage.removeItem(STORAGE_KEY);}catch(error){// Storage can be blocked; fall back to the URL only\n}if(remembered===\"castor\")return true;const query=new URLSearchParams(window.location.search).get(\"studio\")||\"\";const hash=window.location.hash.replace(\"#\",\"\");return query.toLowerCase()===\"castor\"||hash.toLowerCase()===\"castor\";}function findVisibleChip(){const chips=document.querySelectorAll(`[data-framer-name=\"${CHIP_NAME}\"]`);for(const chip of Array.from(chips)){const rect=chip.getBoundingClientRect();if(rect.width>0&&rect.height>0)return chip;}return null;}function press(el){const rect=el.getBoundingClientRect();const base={bubbles:true,cancelable:true,composed:true,clientX:rect.left+rect.width/2,clientY:rect.top+rect.height/2,button:0,buttons:1,isPrimary:true,pointerId:1,pointerType:\"mouse\"};el.dispatchEvent(new PointerEvent(\"pointerdown\",base));el.dispatchEvent(new PointerEvent(\"pointerup\",{...base,buttons:0}));el.dispatchEvent(new MouseEvent(\"click\",{...base,buttons:0}));}// Time of the last simulated press; guards against double presses when\n// several breakpoint copies of the chip mount at once\nlet lastPress=0;export function withStudioFromURL(Component){return props=>{useEffect(()=>{if(typeof window===\"undefined\"||Date.now()-lastPress<3e3||!wantsCastor())return;let tries=0;let timer=0;const attempt=()=>{const chip=findVisibleChip();if(chip){if(Date.now()-lastPress<3e3)return;lastPress=Date.now();press(chip);return;}if(++tries<40)timer=window.setTimeout(attempt,150);};// Give the page time to hydrate so the chip's tap handler is attached\ntimer=window.setTimeout(attempt,600);return()=>window.clearTimeout(timer);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}/**\n * Apply to the \"View Castor prices\" link on the Castor page. Remembers\n * Castor for the next page so the pricing toggle opens on Castor even\n * where the URL hash is not kept (for example Framer preview).\n */export function withRememberCastor(Component){return props=>{const remember=()=>{try{window.sessionStorage.setItem(STORAGE_KEY,\"castor\");}catch(error){// Ignore blocked storage; the #castor link still works live\n}};return /*#__PURE__*/_jsx(Component,{...props,onPointerDown:event=>{remember();props.onPointerDown?.(event);},onKeyDown:event=>{if(event.key===\"Enter\")remember();props.onKeyDown?.(event);}});};}/**\n * Apply to a link whose target is a section on the same page\n * (for example \"#timetable\"). Scrolls to that section directly, which\n * works in Framer preview and on the live site alike. Links to other\n * pages are left to Framer as normal.\n */export function withAnchorScroll(Component){return props=>{const onClick=event=>{const anchor=event.currentTarget?.closest?.(\"a\");const href=anchor?.getAttribute(\"href\")||\"\";const hash=href.includes(\"#\")?href.slice(href.indexOf(\"#\")+1):\"\";const target=hash?document.getElementById(decodeURIComponent(hash)):null;if(target){event.preventDefault();event.stopPropagation();const top=target.getBoundingClientRect().top+window.scrollY-72;window.scrollTo({top,behavior:\"smooth\"});return;}props.onClick?.(event);};return /*#__PURE__*/_jsx(Component,{...props,onClick:onClick});};}const TARGET_KEY=\"r3form-scroll-target\";/**\n * Apply to a link that points at a section on another page\n * (for example \"/about-9x9#castor-team\"). Remembers the section so the\n * destination page can scroll to it once its content has loaded.\n */export function withRememberTarget(Component){return props=>{const remember=event=>{const anchor=event.currentTarget?.closest?.(\"a\");const href=anchor?.getAttribute(\"href\")||\"\";const hash=href.includes(\"#\")?href.slice(href.indexOf(\"#\")+1):\"\";try{if(hash)window.sessionStorage.setItem(TARGET_KEY,decodeURIComponent(hash));}catch(error){// Ignore blocked storage\n}};return /*#__PURE__*/_jsx(Component,{...props,onPointerDown:event=>{remember(event);props.onPointerDown?.(event);}});};}/**\n * Apply to any layer on a page with deep sections (for example the About\n * page team section). On load it scrolls to the section remembered by\n * withRememberTarget, or named in the URL hash, retrying while images\n * and cards finish loading.\n */export function withScrollToStoredTarget(Component){return props=>{useEffect(()=>{if(typeof window===\"undefined\")return;let target=\"\";try{target=window.sessionStorage.getItem(TARGET_KEY)||\"\";window.sessionStorage.removeItem(TARGET_KEY);}catch(error){// Ignore blocked storage\n}if(!target){const hash=decodeURIComponent(window.location.hash.replace(\"#\",\"\"));if(/^[a-z0-9-]+$/i.test(hash))target=hash;}if(!target)return;const timers=[];const names={\"castor-team\":\"Castor Team\",\"marleigh-team\":\"Marleigh Team\",\"eddington-team\":\"Eddington Team\",team:\"Features 12\"};const find=()=>{const byId=document.getElementById(target);if(byId&&byId.getBoundingClientRect().height>0)return byId;const name=names[target];if(!name)return byId;const matches=document.querySelectorAll(`[data-framer-name=\"${name}\"]`);for(const el of Array.from(matches)){if(el.getBoundingClientRect().height>0)return el;}return byId;};const go=()=>{const el=find();if(!el)return;const top=el.getBoundingClientRect().top+window.scrollY-88;window.scrollTo({top,behavior:\"auto\"});};for(const delay of[300,900,1600,2600])timers.push(window.setTimeout(go,delay));return()=>timers.forEach(t=>window.clearTimeout(t));},[]);return /*#__PURE__*/_jsx(Component,{...props});};}function rememberTarget(target){try{window.sessionStorage.setItem(TARGET_KEY,target);}catch(error){// Ignore blocked storage\n}}function withFixedTarget(Component,target){return props=>/*#__PURE__*/_jsx(Component,{...props,onPointerDown:event=>{rememberTarget(target);props.onPointerDown?.(event);},onKeyDown:event=>{if(event.key===\"Enter\")rememberTarget(target);props.onKeyDown?.(event);}});}/** \"Meet the team\" links: Framer drops the #hash from the rendered href, so each studio names its target here. */export function withTeamCastor(Component){return withFixedTarget(Component,\"castor-team\");}export function withTeamMarleigh(Component){return withFixedTarget(Component,\"marleigh-team\");}export function withTeamEddington(Component){return withFixedTarget(Component,\"eddington-team\");}export function withTeamAll(Component){return withFixedTarget(Component,\"team\");}const STUDIOS=[\"castor\",\"marleigh\",\"eddington\"];const TAB_KEY=\"r3form-timetable-tab\";const TAB_EVENT=\"r3form-timetable-tab\";const TAB_SECTION_ID=\"timetable-tabs\";const tabName=studio=>\"Tab \"+studio.charAt(0).toUpperCase()+studio.slice(1);let lastTabPress=0;function findVisibleByName(name){const matches=document.querySelectorAll(`[data-framer-name=\"${name}\"]`);for(const el of Array.from(matches)){const rect=el.getBoundingClientRect();if(rect.width>0&&rect.height>0)return el;}return null;}function tabsTop(){const el=findVisibleByName(\"Sec Timetable Tabs\")||document.getElementById(TAB_SECTION_ID);if(!el)return null;const padTop=parseFloat(getComputedStyle(el).paddingTop)||0;// Land with the \"Choose your studio\" label a comfortable gap below the fixed nav\nreturn el.getBoundingClientRect().top+window.scrollY+padTop-120;}/**\n * The desktop page runs Lenis smooth scrolling (html.lenis), which pulls plain scrollTo\n * calls back to where it thinks the page is. There, hand Lenis the distance as a wheel delta.\n */function scrollPageTo(top){const delta=top-window.scrollY;if(Math.abs(delta)<4)return;if(document.documentElement.classList.contains(\"lenis\")){// Feed Lenis the distance as a short burst of wheel steps, like a real mouse wheel\nconst steps=Math.max(1,Math.ceil(Math.abs(delta)/100));const step=delta/steps;for(let i=0;i<steps;i++){window.setTimeout(()=>{document.documentElement.dispatchEvent(new WheelEvent(\"wheel\",{deltaY:step,deltaMode:0,bubbles:true,cancelable:true,composed:true}));},i*16);}// If nothing picked the wheel steps up (smooth scroll not running here), scroll natively\nconst start=window.scrollY;window.setTimeout(()=>{if(Math.abs(window.scrollY-start)<4)window.scrollTo({top,behavior:\"smooth\"});},steps*16+250);return;}window.scrollTo({top,behavior:\"smooth\"});}/** Scrolls so the studio tabs sit just under the nav. The tabs are above the timetables, so swapping studios does not move them. */function scrollToTabs(){window.__r3formTabScrollAt=Date.now();const top=tabsTop();if(top!==null)scrollPageTo(top);}/** Presses the visible tab for a studio (retrying while the page hydrates), then scrolls to the tabs. */function selectTab(studio,scroll){let tries=0;const attempt=()=>{const tab=findVisibleByName(tabName(studio));if(tab){if(Date.now()-lastTabPress>300){lastTabPress=Date.now();press(tab);}if(scroll)scrollToTabs();return;}if(++tries<40)window.setTimeout(attempt,150);};attempt();}function requestedStudio(){let remembered=\"\";try{remembered=window.sessionStorage.getItem(TAB_KEY)||\"\";window.sessionStorage.removeItem(TAB_KEY);}catch(error){// Storage can be blocked; fall back to the URL only\n}const hash=window.location.hash.replace(\"#\",\"\").toLowerCase();const query=(new URLSearchParams(window.location.search).get(\"studio\")||\"\").toLowerCase();for(const value of[remembered,hash,query]){if(STUDIOS.includes(value))return value;}return null;}let tabsBooted=false;/**\n * Apply to the \"Sec Timetable Tabs\" section. On load it opens the tab named in\n * /timetable#marleigh (or ?studio=marleigh, or remembered by withTabLink) and\n * listens for the hero studio buttons.\n */export function withTimetableTabs(Component){return props=>{useEffect(()=>{if(typeof window===\"undefined\")return;const onEvent=event=>{const studio=event.detail;if(STUDIOS.includes(studio))selectTab(studio,true);};window.addEventListener(TAB_EVENT,onEvent);let timer=0;if(!tabsBooted){tabsBooted=true;const studio=requestedStudio();// Give the page time to hydrate so the tab's tap handler is attached\nif(studio)timer=window.setTimeout(()=>selectTab(studio,true),600);}return()=>{window.removeEventListener(TAB_EVENT,onEvent);window.clearTimeout(timer);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}function withTabJump(Component,studio){return props=>{const go=event=>{event.preventDefault?.();event.stopPropagation?.();window.dispatchEvent(new CustomEvent(TAB_EVENT,{detail:studio}));};return /*#__PURE__*/_jsx(Component,{...props,onClick:go});};}/** Hero studio buttons on the timetable page: switch the tab and scroll to it. */export function withTabJumpCastor(Component){return withTabJump(Component,\"castor\");}export function withTabJumpMarleigh(Component){return withTabJump(Component,\"marleigh\");}export function withTabJumpEddington(Component){return withTabJump(Component,\"eddington\");}function withTabLink(Component,studio){return props=>/*#__PURE__*/_jsx(Component,{...props,onPointerDown:event=>{try{window.sessionStorage.setItem(TAB_KEY,studio);}catch(error){// Ignore blocked storage; the #hash still works live\n    }props.onPointerDown?.(event);}});}/** Links on other pages that open the timetable on a given studio's tab. */export function withTabLinkCastor(Component){return withTabLink(Component,\"castor\");}export function withTabLinkMarleigh(Component){return withTabLink(Component,\"marleigh\");}export function withTabLinkEddington(Component){return withTabLink(Component,\"eddington\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withStudioFromURL\":{\"type\":\"reactHoc\",\"name\":\"withStudioFromURL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTabLinkMarleigh\":{\"type\":\"reactHoc\",\"name\":\"withTabLinkMarleigh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTabJumpMarleigh\":{\"type\":\"reactHoc\",\"name\":\"withTabJumpMarleigh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTeamMarleigh\":{\"type\":\"reactHoc\",\"name\":\"withTeamMarleigh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTeamEddington\":{\"type\":\"reactHoc\",\"name\":\"withTeamEddington\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTabJumpEddington\":{\"type\":\"reactHoc\",\"name\":\"withTabJumpEddington\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTeamAll\":{\"type\":\"reactHoc\",\"name\":\"withTeamAll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRememberTarget\":{\"type\":\"reactHoc\",\"name\":\"withRememberTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTabLinkCastor\":{\"type\":\"reactHoc\",\"name\":\"withTabLinkCastor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTabJumpCastor\":{\"type\":\"reactHoc\",\"name\":\"withTabJumpCastor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTeamCastor\":{\"type\":\"reactHoc\",\"name\":\"withTeamCastor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollToStoredTarget\":{\"type\":\"reactHoc\",\"name\":\"withScrollToStoredTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAnchorScroll\":{\"type\":\"reactHoc\",\"name\":\"withAnchorScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTimetableTabs\":{\"type\":\"reactHoc\",\"name\":\"withTimetableTabs\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTabLinkEddington\":{\"type\":\"reactHoc\",\"name\":\"withTabLinkEddington\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRememberCastor\":{\"type\":\"reactHoc\",\"name\":\"withRememberCastor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StudioFromURL.map"],"mappings":"A,gIAOsE,SAASO,GAAa,CAAC,IAAIC,EAAW,GAAG,GAAG,CAAC,EAAWN,EAAO,eAAe,QAAQO,CAAW,GAAG,GAAGP,EAAO,eAAe,WAAWO,CAAW,CAAE,MAAa,CACxO,CAAC,GAAGD,IAAa,SAAS,MAAO,GAAK,IAAME,EAAM,IAAI,gBAAgBR,EAAO,SAAS,MAAM,CAAC,CAAC,IAAI,QAAQ,GAAG,GAASS,EAAKT,EAA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