{"version":3,"file":"TableofContents.D4eYkKth.mjs","names":["useSyncExternalStore","useState","useMemo","useRef","_Fragment","__esmMin","me","init_npm_react_18_3_1","pe","window","init_ssg_sandbox_shims","ce","init_jsx_runtime","c","_e","de","init_framer_DKgW_P28","RenderTarget","HEADINGS","formatHeading","formatTableOfContent","formatHeadings","init_Utils","formattedHeading","formattedId","children","item","index","result","type","newChildren","props","newItem","createStore","state","initial","listeners","subscribe","listener","getState","setState","next","update","storeHeadings","path","setStore","prev","useClearOnUnmount","useStore","findParentId","idx","ordered","i","useMounted","mounted","setMounted","useOrderedHeadings","store","a","b","HEADING_TO_DISPLAY","useScrollSpy","positionsRef","rAfId","recalcPositions","el","id","updateActive","viewportH","maxScroll","remaining","t","line","SCROLL_MARGIN_TOP","y","activeIdx","pos","active","parentId","onScroll","onResize","onUserIntent","onKeyDown","event","useHashActivation","didInitRef","hash","TocItem","ref","anchor","isCurrent","onClick","Component","heading","withTableOfContent","l","variant","withContent","newProps","setNewProps","withStaticContent","onCanvas","root","headings","withTocRail","show","init_TableofContents"],"sources":["https:/framerusercontent.com/modules/1XxWQwY0hfK0NPkccp4R/KJkJpnADqLZBYSaIILnx/Utils.js","https:/framerusercontent.com/modules/fMyKbKu4FakjKCZA1DiE/9cYXtexxu142xsT8Rwlp/TableofContents.js"],"sourcesContent":["export const HEADINGS=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"];const formatHeading=(children,index)=>{let formattedHeading=\"\";let formattedId=\"\";if(typeof children===\"string\"){formattedHeading=children;}else if(Array.isArray(children)){formattedHeading=children.map(item=>{var _item_props;if(typeof item===\"string\")return item.trim();if(typeof((_item_props=item.props)===null||_item_props===void 0?void 0:_item_props.children)===\"string\")return item.props.children.trim();}).join(\" \");}else if(typeof children===\"object\"){if(typeof children.props.children===\"string\"){formattedHeading=children.props.children;}else{formattedHeading=children.type;}}else{formattedHeading=index.toString();}formattedId=formattedHeading.toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-+|-+$/g,\"\").trim();return{formattedId,formattedHeading};};export const formatTableOfContent=children=>{const result=[];children.length>0&&children.filter(({type})=>HEADINGS.includes(type)).map((item,index)=>{const children=item.props.children;const{formattedId,formattedHeading}=formatHeading(children,index);result.push({id:formattedId,heading:formattedHeading,type:item.type,originalIndex:index});});return result;};export const formatHeadings=props=>{const newChildren=[];props.children.props.children.forEach((item,index)=>{const children=item.props.children;if(HEADINGS.includes(item.type)){const{formattedId}=formatHeading(children,index);// Create a new object for the modified item\nconst newItem={...item,props:{...item.props,id:formattedId}};newChildren.push(newItem);}else{newChildren.push(item);}});// Return a new props object with the modified children\nreturn{...props,children:{...props.children,props:{...props.children.props,children:newChildren}}};};\nexport const __FramerMetadata__ = {\"exports\":{\"formatTableOfContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HEADINGS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatHeadings\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utils.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useMemo,useRef,useState,useSyncExternalStore}from\"react\";import{RenderTarget}from\"framer\";import{formatHeadings,formatTableOfContent}from\"https://framer.com/m/Utils-WIyM.js\";const HEADING_TO_DISPLAY=[\"h2\",\"h3\",\"h4\"];const SCROLL_MARGIN_TOP=160;// Local store built on useSyncExternalStore. The framer store.js module's\n// hook snapshots state in useState and only subscribes in an effect, so a\n// write that lands between a consumer's first render and its subscription\n// (e.g. the content column populating headings before the rail's effects\n// run — effects fire in tree order) is silently missed and the consumer\n// stays stale forever. useSyncExternalStore re-checks the snapshot at\n// subscription time, closing that gap.\nfunction createStore(initial){let state=initial;const listeners=new Set;const subscribe=listener=>{listeners.add(listener);return()=>listeners.delete(listener);};const getState=()=>state;const setState=update=>{const next=typeof update===\"function\"?update(state):update;state={...state,...next};listeners.forEach(listener=>listener());};return function useStoreHook(){const snapshot=useSyncExternalStore(subscribe,getState,getState);return[snapshot,setState];};}const useStore=createStore({headings:[],// Pathname the headings belong to. Framer keeps the template's React\n// tree alive across client-side navigation, so the store outlives the\n// page — stale headings are detected by comparing this to the current\n// pathname and treated as \"no headings\".\npath:null,activeId:null,activeParentId:null,// Set when a TOC link was clicked (or a #hash was loaded): the chosen\n// heading stays highlighted while the smooth scroll settles, instead of\n// letting the scroll spy fight over it mid-flight.\nlockedId:null});// Merge freshly-scanned headings for the current page into the store. When\n// the page (pathname) changed, all per-page state is reset with it.\nfunction storeHeadings(setStore,headings){const path=window.location.pathname;setStore(prev=>({...prev,headings,path,...prev.path!==path?{activeId:null,activeParentId:null,lockedId:null}:{}}));}// On unmount (template switch), drop this page's headings so the next page\n// never shows them. Guarded by path so an already-mounted next page's data\n// is not wiped by an out-of-order unmount.\nfunction useClearOnUnmount(){const[,setStore]=useStore();useEffect(()=>{if(typeof window===\"undefined\")return;const path=window.location.pathname;return()=>{setStore(prev=>{return prev.path===path?{...prev,headings:[],path:null,activeId:null,activeParentId:null,lockedId:null}:prev;});};},[setStore]);}// Nearest h2 at or above the heading at `idx` — h2s parent themselves as null.\nfunction findParentId(ordered,idx){if(idx<0||!ordered[idx]||ordered[idx].type===\"h2\")return null;for(let i=idx;i>=0;i--){if(ordered[i].type===\"h2\")return ordered[i].id;}return null;}// Two-pass rendering: the server (and the very first client render) must\n// produce identical output, or React throws hydration mismatches (#418) and\n// client-re-renders the whole Suspense boundary — which detaches the scroll\n// spy. Only after mount may store-driven content diverge from the SSR HTML.\nfunction useMounted(){const[mounted,setMounted]=useState(false);useEffect(()=>{setMounted(true);},[]);return mounted;}function useOrderedHeadings(){const[store]=useStore();return useMemo(()=>{// Headings from a different page are stale — pretend there are none.\nif(typeof window!==\"undefined\"&&store.path!==null&&store.path!==window.location.pathname){return[];}return store.headings.slice().sort((a,b)=>a.originalIndex-b.originalIndex).filter(({type})=>HEADING_TO_DISPLAY.includes(type));},[store.headings,store.path]);}function useScrollSpy(ordered){const[store,setStore]=useStore();const positionsRef=useRef([]);useEffect(()=>{if(typeof window===\"undefined\")return;let rAfId=0;const recalcPositions=()=>{positionsRef.current=ordered.map(({id})=>{const el=document.getElementById(id);if(!el)return Number.POSITIVE_INFINITY;const rect=el.getBoundingClientRect();return rect.top+window.scrollY;});};const updateActive=()=>{// The reading line normally sits SCROLL_MARGIN_TOP below the\n// viewport top, but headings in the last screenful of content\n// can never cross it — the page stops scrolling first. When less\n// than one viewport of scroll remains, slide the line down\n// towards the viewport bottom so trailing headings still\n// activate one by one, ending with the last heading active at\n// the very bottom.\nconst viewportH=window.innerHeight;const maxScroll=document.documentElement.scrollHeight-viewportH;const remaining=Math.max(0,maxScroll-window.scrollY);const t=maxScroll>0&&remaining<viewportH?1-remaining/viewportH:0;const line=SCROLL_MARGIN_TOP+t*(viewportH-SCROLL_MARGIN_TOP);const y=window.scrollY+line+1;// No heading is active until the reading line has actually\n// crossed one — at the top of the page nothing is highlighted.\nlet activeIdx=-1;const pos=positionsRef.current;for(let i=0;i<pos.length;i++){if(pos[i]<=y)activeIdx=i;else break;}const active=activeIdx>=0?ordered[activeIdx]:null;if(active){const parentId=findParentId(ordered,activeIdx);if(active.id!==store.activeId||parentId!==store.activeParentId){setStore({activeId:active.id,activeParentId:parentId});}}else if(store.activeId!==null||store.activeParentId!==null){setStore({activeId:null,activeParentId:null});}};// While a click/hash lock is held, the chosen heading stays\n// highlighted no matter what the page does — scroll events from the\n// smooth-scroll animation are ignored entirely. Only unambiguous\n// USER intent (wheel, touch, scroll keys) releases the lock; there\n// are no timers, so the animation can never race the release. On\n// release the spy immediately follows the reading position again.\nconst onScroll=()=>{if(store.lockedId)return;if(rAfId)return;rAfId=window.requestAnimationFrame(()=>{rAfId=0;updateActive();});};const onResize=()=>{recalcPositions();if(!store.lockedId)updateActive();};const onUserIntent=()=>{if(store.lockedId)setStore({lockedId:null});};const onKeyDown=event=>{const keys=[\"ArrowDown\",\"ArrowUp\",\"PageDown\",\"PageUp\",\"Home\",\"End\",\" \"];if(keys.includes(event.key))onUserIntent();};recalcPositions();if(!store.lockedId)updateActive();window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onResize);window.addEventListener(\"wheel\",onUserIntent,{passive:true});window.addEventListener(\"touchmove\",onUserIntent,{passive:true});window.addEventListener(\"keydown\",onKeyDown);return()=>{window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onResize);window.removeEventListener(\"wheel\",onUserIntent);window.removeEventListener(\"touchmove\",onUserIntent);window.removeEventListener(\"keydown\",onKeyDown);if(rAfId)cancelAnimationFrame(rAfId);};},[ordered,setStore,store.activeId,store.activeParentId,store.lockedId]);}// On first load with a #hash pointing at a heading, highlight it and hold\n// the lock through the browser's initial anchor scroll.\nfunction useHashActivation(ordered){const[,setStore]=useStore();const didInitRef=useRef(false);useEffect(()=>{if(typeof window===\"undefined\")return;if(didInitRef.current||ordered.length===0)return;didInitRef.current=true;const hash=decodeURIComponent(window.location.hash.slice(1));if(!hash)return;const idx=ordered.findIndex(({id})=>id===hash);if(idx<0)return;setStore({activeId:hash,activeParentId:findParentId(ordered,idx),lockedId:hash});},[ordered,setStore]);}function TocItem({Component,props,variant,heading,id,isCurrent,onClick}){const ref=useRef(null);// aria-current on the rendered anchor so assistive tech announces the\n// active item — the canvas component itself can't express this.\nuseEffect(()=>{const anchor=ref.current?.querySelector(\"a\");if(!anchor)return;if(isCurrent)anchor.setAttribute(\"aria-current\",\"location\");else anchor.removeAttribute(\"aria-current\");},[isCurrent]);return /*#__PURE__*/_jsx(\"span\",{ref:ref,style:{display:\"contents\"},onClickCapture:onClick,children:/*#__PURE__*/_jsx(Component,{...props,variant:variant,title:heading,link:`${window.location.pathname}#${id}`})});}export function withTableOfContent(Component){return props=>{const[store,setStore]=useStore();const ordered=useOrderedHeadings();const mounted=useMounted();if(!(mounted&&ordered.length>0)){// Hidden, not visible: the canvas component's placeholder text\n// (\"Title\") must never show on pages without headings. Kept in\n// the tree (rather than null) so SSR and the first client\n// render stay identical.\nreturn /*#__PURE__*/_jsx(\"span\",{style:{display:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(Component,{...props})});}return /*#__PURE__*/_jsx(_Fragment,{children:ordered.map(({id,heading,type},idx)=>{const isActive=store.activeId===id||store.activeParentId===id;const variant=isActive?`${type}-active`:type;return /*#__PURE__*/_jsx(TocItem,{Component:Component,props:props,variant:variant,heading:heading,id:id,isCurrent:store.activeId===id,onClick:()=>{// Clicked item wins and stays highlighted\n// until the user scrolls (see useScrollSpy).\n// Deferred so the re-render can't interrupt\n// the click event mid-dispatch — Framer's\n// Link handler must run against the anchor\n// that was actually clicked.\nconst parentId=findParentId(ordered,idx);window.setTimeout(()=>{setStore({activeId:id,activeParentId:parentId,lockedId:id});},0);}},id);})});};}export function withContent(Component){return props=>{const[,setStore]=useStore();const[newProps,setNewProps]=useState(props);const ordered=useOrderedHeadings();useEffect(()=>{storeHeadings(setStore,formatTableOfContent(newProps.children?.props?.children));},[newProps,setStore]);useEffect(()=>{setNewProps(formatHeadings(props));},[props]);useScrollSpy(ordered);useHashActivation(ordered);useClearOnUnmount();// Framer renders rich text images at half their pixel width (it\n// assumes 2x assets), so 1x screenshots end up tiny. Fill the\n// content column instead; max-width/height:auto come from Framer.\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.framer-text {\n                    scroll-margin-top: ${SCROLL_MARGIN_TOP}px;\n                }\n                img.framer-text.framer-image {\n                    width: 100%;\n                }`}),/*#__PURE__*/_jsx(Component,{...newProps})]});};}// For pages whose content is regular canvas layers instead of a single\n// CMS-bound rich text (e.g. /docs/overview). Apply to the frame wrapping\n// the page content: h2/h3/h4 elements rendered inside it get anchor ids\n// and feed the same store that withTableOfContent reads.\nexport function withStaticContent(Component){return props=>{const ref=useRef(null);const[,setStore]=useStore();const ordered=useOrderedHeadings();const onCanvas=RenderTarget.current()===RenderTarget.canvas;// Re-scan when Framer client-side-navigates to another page that\n// reuses this template instance — the effect below must re-run.\nconst path=typeof window!==\"undefined\"?window.location.pathname:null;useEffect(()=>{if(onCanvas)return;const root=ref.current;if(!root)return;const headings=Array.from(root.querySelectorAll(\"h2, h3, h4\")).map((el,index)=>{const heading=(el.textContent??\"\").trim();const id=heading.toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-+|-+$/g,\"\");el.id=id;el.style.scrollMarginTop=`${SCROLL_MARGIN_TOP}px`;return{id,heading,type:el.tagName.toLowerCase(),originalIndex:index};});storeHeadings(setStore,headings);},[onCanvas,setStore,path]);useScrollSpy(ordered);useHashActivation(ordered);useClearOnUnmount();return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}// Apply to the whole \"On this page\" rail frame. Hides the rail (header\n// included) on pages without headings. Uses visibility rather than\n// display so the three-column layout never shifts, and a display:contents\n// wrapper so the sticky rail frame keeps its own box.\nexport function withTocRail(Component){return props=>{const ordered=useOrderedHeadings();const mounted=useMounted();const show=mounted&&ordered.length>0;return /*#__PURE__*/_jsx(\"div\",{style:{display:\"contents\",visibility:show?\"visible\":\"hidden\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTocRail\":{\"type\":\"reactHoc\",\"name\":\"withTocRail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withContent\":{\"type\":\"reactHoc\",\"name\":\"withContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStaticContent\":{\"type\":\"reactHoc\",\"name\":\"withStaticContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTableOfContent\":{\"type\":\"reactHoc\",\"name\":\"withTableOfContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableofContents.map"],"mapp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