{"version":3,"file":"AcademyArticleContents.B6hSWMhN.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","sharedStyle.css","sharedStyle.fonts","useRef","useState","useMemo","useCallback","c","startTransition","useLayoutEffect","useEffect","__esmMin","le","ie","pe","init_ssg_sandbox_shims","te","ne","init_npm_react_18_3_1","oe","x","de","window","init_jsx_runtime","K","J","c","p","ce","_e","motion","MotionConfigContext","LayoutGroup","init_framer_motion_DhsWWWsN","withOptimizedAppearEffect","RichText","addPropertyControls","useComponentViewport","addFonts","cx","useLocaleInfo","ControlType","withCSS","useVariantState","RenderTarget","getFontsFromSharedStyle","init_framer_BEr93sCn","withFX","fonts","className","init_vvG68NbwN","css$1","MotionDivWithFX","MotionDivWithFXWithOptimizedAppearEffect","serializationHash","variantClassNames","transition1","animation","animation1","Transition","Variants","getProps","createLayoutDependency","Component","css","Framerd3NMrd1cl","init_d3NMrd1cl","config","transition","value","contextValue","props","label","variants","fallbackRef","refBinding","ref","defaultLayoutId","className$1","restProps","layoutDependency","scopingClassNames","layoutId","gestureHandlers","classNames","style","Rl19KBIPl","makeSlug","s","textOf","node","headingsFromContent","items","idCounts","visit","limit","type","tag","includeH3","title","base","count","content","ArticleNavWithH2","renderTarget","allowDomRead","wrapRef","hoverHeadingId","setHoverHeadingId","activeHeadingId","setActiveHeadingId","headingLimit","maxHeadings","contentHeadings","showHeadings","headings","setHeadings","extractHeadings","scope","source","parent","articleSelector","containerSelector","found","el","selector","headingSelector","nodes","seenIds","seenEls","level","id","useIsomorphicLayoutEffect","raf1","raf2","apply","next","prev","i","h","run","onResize","observer","records","record","followScroll","els","headerOffset","scrollOffset","raf","alive","computeActive","targetLine","lastPassedId","firstUpcomingId","bestUpcomingTop","rect","chosenId","schedule","onScroll","scrollToHeading","heading","y","openHeadingLink","event","hash","target","frame","top","groupedHeadings","hasH2","outerStyle","innerStyle","listStyle","rowGap","titleColor","titleGap","titleFont","headingGap","active","h2","hover","c$1","headingActiveColor","headingHoverColor","headingColor","itemTransition","headingIndent","subheadingIndent","headingFont","subheadingFont","init_AcademyArticleContents"],"sources":["https:/framerusercontent.com/modules/9kCrN2wah6zdcy2X3mUZ/Qi240o90Vj4pgiHdCKe6/d3NMrd1cl.js","https:/framerusercontent.com/modules/GQD9UBh7zfnItYQvMqGe/waQBFclawCcoFxuB4L6J/AcademyArticleContents.js"],"sourcesContent":["// Generated by Framer (61c2942)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX,withOptimizedAppearEffect}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/3sjTyJh8WUlu2mZjQ0fW/ju6zutbthrI4rr86Alv5/vvG68NbwN.js\";const MotionDivWithFX=withFX(motion.div);const MotionDivWithFXWithOptimizedAppearEffect=withOptimizedAppearEffect(MotionDivWithFX);const serializationHash=\"framer-DxIru\";const variantClassNames={yr5HwJThu:\"framer-v-1c9wtgm\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const Rl19KBIPl=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const animation={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition1,x:0,y:0};const animation1={opacity:.001,rotate:0,rotateX:0,rotateY:0,scale:.98,skewX:0,skewY:0,x:0,y:0};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,label,width,...props})=>{return{...props,Rl19KBIPl:label??props.Rl19KBIPl??\"Tells Google to show you more from Framer in AI, Search, and Discover.\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,contentLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,Rl19KBIPl,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"yr5HwJThu\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(MotionDivWithFXWithOptimizedAppearEffect,{...restProps,...gestureHandlers,__framer__presenceAnimate:animation,__framer__presenceInitial:animation1,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:cx(scopingClassNames,\"framer-1c9wtgm\",className,classNames),\"data-border\":true,\"data-framer-appear-id\":\"1c9wtgm\",\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"yr5HwJThu\",optimized:true,ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgba(255, 255, 255, 0.1)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backdropFilter:\"blur(5px)\",backgroundColor:\"rgb(23, 23, 23)\",borderBottomLeftRadius:10,borderBottomRightRadius:10,borderTopLeftRadius:10,borderTopRightRadius:10,WebkitBackdropFilter:\"blur(5px)\",...style},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-rhbxb3\",\"data-styles-preset\":\"vvG68NbwN\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Tells Google to show you more from Framer in AI, Search, and Discover.\"})}),className:\"framer-1azkqs4\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"myr2cHUoU\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:Rl19KBIPl,verticalAlignment:\"top\",withExternalLayout:true})})})})});});const css=[\".framer-DxIru.framer-507mdm, .framer-DxIru .framer-507mdm { display: block; }\",\".framer-DxIru.framer-1c9wtgm { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 15px; position: relative; width: 280px; }\",\".framer-DxIru .framer-1azkqs4 { --framer-text-wrap-override: none; flex: 1 0 0px; height: auto; position: relative; width: 1px; }\",...sharedStyle.css,'.framer-DxIru[data-border=\"true\"]::after, .framer-DxIru [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 69\n * @framerIntrinsicWidth 280\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"Rl19KBIPl\":\"label\"}\n * @framerImmutableVariables true\n * @framerResolvesOwnDefaults true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerd3NMrd1cl=withCSS(Component,css,\"framer-DxIru\");export default Framerd3NMrd1cl;Framerd3NMrd1cl.displayName=\"Tooltip 2\";Framerd3NMrd1cl.defaultProps={height:69,width:280};addPropertyControls(Framerd3NMrd1cl,{Rl19KBIPl:{defaultValue:\"Tells Google to show you more from Framer in AI, Search, and Discover.\",displayTextArea:false,title:\"Label\",type:ControlType.String},onRl19KBIPlChange:{changes:\"Rl19KBIPl\",type:ControlType.ChangeHandler}});addFonts(Framerd3NMrd1cl,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerd3NMrd1cl\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"Rl19KBIPl\\\":\\\"label\\\"}\",\"framerColorSyntax\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"280\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"69\",\"framerResolvesOwnDefaults\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./d3NMrd1cl.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";import{isValidElement,useCallback,useEffect,useLayoutEffect,useMemo,useRef,useState,startTransition}from\"react\";const useIsomorphicLayoutEffect=typeof window!==\"undefined\"?useLayoutEffect:useEffect;function makeSlug(s){const base=(s||\"\").toLowerCase().trim().replace(/['\"]/g,\"\").replace(/[^a-z0-9]+/g,\"-\").replace(/^-+|-+$/g,\"\");return base||\"section\";}function textOf(node){if(node==null||typeof node===\"boolean\")return\"\";if(typeof node===\"string\"||typeof node===\"number\")return String(node);if(Array.isArray(node))return node.map(textOf).join(\"\");if(/*#__PURE__*/isValidElement(node))return textOf(node.props?.children);return\"\";}// Reads H2/H3 headings straight from a Rich Text prop (works during server rendering)\nfunction headingsFromContent(content,includeH3,limit){const items=[];const idCounts={};const visit=node=>{if(items.length>=limit)return;if(node==null||typeof node===\"boolean\"||typeof node===\"string\"||typeof node===\"number\")return;if(Array.isArray(node)){node.forEach(visit);return;}if(!/*#__PURE__*/isValidElement(node))return;const props=node.props||{};const type=node.type;const tag=typeof type===\"string\"?type.toLowerCase():typeof props.as===\"string\"?props.as.toLowerCase():\"\";if(tag===\"h2\"||includeH3&&tag===\"h3\"){const title=textOf(props.children).trim();if(title){const base=makeSlug(title);const count=idCounts[base]=(idCounts[base]||0)+1;items.push({id:count>1?base+\"-\"+count:base,title,el:null,level:tag===\"h3\"?3:2});}return;}visit(props.children);};visit(content);return items;}/**\n * @framerIntrinsicWidth 260\n * @framerIntrinsicHeight 420\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ArticleNavWithH2(props){const{content,title=\"\",titleFont,titleColor=\"#FFFFFF\",titleGap=16,source=\"page\",containerSelector=\"main\",headingSelector=\"h2\",showHeadings=true,maxHeadings=24,followScroll=true,scrollOffset=80,background=\"#FFFFFF\",headingColor=\"#000000\",headingActiveColor=\"#000000\",headingHoverColor=\"#000000\",headingFont,itemTransition={duration:.2,ease:\"easeInOut\"},padding=\"16px\",rowGap=12,headingIndent=10,headingGap=8,includeH3=false,subheadingIndent=16,subheadingFont,style}=props;const renderTarget=RenderTarget.current();const allowDomRead=typeof window!==\"undefined\"&&renderTarget!==RenderTarget.thumbnail;const wrapRef=useRef(null);const[hoverHeadingId,setHoverHeadingId]=useState(null);const[activeHeadingId,setActiveHeadingId]=useState(null);const headingLimit=Math.max(1,Math.floor(maxHeadings||1));const contentHeadings=useMemo(()=>showHeadings?headingsFromContent(content,includeH3,headingLimit):[],[content,includeH3,headingLimit,showHeadings]);const[headings,setHeadings]=useState(contentHeadings);const extractHeadings=useCallback(()=>{if(typeof window===\"undefined\")return[];if(!showHeadings)return[];const limit=Math.max(1,Math.floor(maxHeadings||1));let scope=document.body;if(source===\"container\"){scope=null;let parent=wrapRef.current?.parentElement;while(parent){const articleSelector=renderTarget===RenderTarget.canvas?'article, [data-framer-name=\"Article Content\"]':containerSelector;const matches=Array.from(parent.querySelectorAll(articleSelector));const found=matches.find(el=>el.getClientRects().length>0);if(found){scope=found;break;}parent=parent.parentElement;}}if(!scope)return[];const selector=includeH3?\"h2, h3\":headingSelector||\"h2\";const nodes=Array.from(scope.querySelectorAll(selector));const items=[];const idCounts={};const seenIds=new Set;const seenEls=new Set;for(const el of nodes){// Avoid picking up headings from inside this nav (or any duplicated/hidden clones)\nif(wrapRef.current&&wrapRef.current.contains(el))continue;if(seenEls.has(el))continue;seenEls.add(el);const tag=(el.tagName||\"\").toUpperCase();if(tag!==\"H2\"&&!(includeH3&&tag===\"H3\"))continue;const level=tag===\"H3\"?3:2;// Only accept actual headings that have readable text\nconst title=(el.textContent||\"\").trim();if(!title)continue;let id=(el.getAttribute(\"id\")||\"\").trim();if(!id){const base=makeSlug(title);const count=idCounts[base]=(idCounts[base]||0)+1;id=count>1?`${base}-${count}`:base;el.setAttribute(\"id\",id);}if(seenIds.has(id))continue;seenIds.add(id);el.setAttribute(\"data-academy-heading-anchor\",\"true\");el.setAttribute(\"title\",\"Link to this section\");items.push({id,title,el,level});if(items.length>=limit)break;}return items;},[showHeadings,source,containerSelector,headingSelector,maxHeadings,renderTarget,includeH3]);// Initial + reactive extraction (handles CMS hydration / route changes)\nuseIsomorphicLayoutEffect(()=>{if(!allowDomRead)return;let raf1=0;let raf2=0;const apply=found=>{// Keep the server-rendered list if the DOM read comes back empty\nconst next=found.length===0&&contentHeadings.length>0?contentHeadings:found;setHeadings(prev=>{if(prev.length===next.length&&prev.every((p,i)=>p.id===next[i].id&&p.title===next[i].title&&p.el===next[i].el))return prev;return next;});if(next.length){setActiveHeadingId(prev=>prev&&next.some(h=>h.id===prev)?prev:next[0].id);}};const run=()=>{window.cancelAnimationFrame(raf1);raf1=window.requestAnimationFrame(()=>{const next=extractHeadings();startTransition(()=>apply(next));});};// Read synchronously before first paint so the list is there immediately,\n// then re-check shortly after for late-rendered content\napply(extractHeadings());raf2=window.setTimeout(run,300);// Also refresh on resize (reflow / responsive)\nconst onResize=()=>run();window.addEventListener(\"resize\",onResize);const observer=new MutationObserver(records=>{if(records.some(record=>!wrapRef.current?.contains(record.target)))run();});observer.observe(document.body,{childList:true,subtree:true,characterData:true});return()=>{observer.disconnect();if(typeof window!==\"undefined\"){window.cancelAnimationFrame(raf1);window.clearTimeout(raf2);window.removeEventListener(\"resize\",onResize);}};},[extractHeadings,allowDomRead,contentHeadings]);// Scroll spy (active heading)\nuseEffect(()=>{if(!allowDomRead)return;if(!followScroll)return;if(renderTarget!==RenderTarget.preview&&renderTarget!==RenderTarget.export)return;const els=headings.map(h=>h.el||document.getElementById(h.id)).filter(Boolean);if(!els.length)return;const headerOffset=Math.max(0,scrollOffset||0);let raf=0;let alive=true;const computeActive=()=>{if(!alive)return;// Highlight the most recently passed H2 based on a target line in the top third of the viewport.\n// This also guarantees we always keep something highlighted (never blank between sections).\nconst targetLine=headerOffset+Math.floor((window.innerHeight||0)*.33);let lastPassedId=null;let firstUpcomingId=null;let bestUpcomingTop=Infinity;for(const el of els){const id=(el.getAttribute(\"id\")||\"\").trim();if(!id)continue;const rect=el.getBoundingClientRect();if(rect.top<=targetLine){lastPassedId=id;}else if(rect.top<bestUpcomingTop){bestUpcomingTop=rect.top;firstUpcomingId=id;}}const chosenId=lastPassedId||firstUpcomingId;if(!chosenId)return;startTransition(()=>{setActiveHeadingId(prev=>prev===chosenId?prev:chosenId);});};const schedule=()=>{if(!alive)return;if(raf)return;raf=window.requestAnimationFrame(()=>{raf=0;computeActive();});};const onScroll=()=>schedule();const onResize=()=>schedule();// Initial compute + listeners\nschedule();window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onResize);return()=>{alive=false;window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onResize);if(raf)window.cancelAnimationFrame(raf);};},[headings,followScroll,allowDomRead,renderTarget,scrollOffset]);const scrollToHeading=useCallback(id=>{if(typeof window===\"undefined\")return;if(!id)return;const el=headings.find(heading=>heading.id===id)?.el||document.getElementById(id);if(!el)return;try{if(renderTarget===RenderTarget.preview||renderTarget===RenderTarget.export){window.history.pushState(null,\"\",`#${encodeURIComponent(id)}`);}const rect=el.getBoundingClientRect();const y=rect.top+(window.pageYOffset||0)-Math.max(0,scrollOffset||0);window.scrollTo({top:Math.max(0,y),behavior:\"smooth\"});startTransition(()=>setActiveHeadingId(id));}catch{// no-op\n}},[scrollOffset,headings,renderTarget]);useEffect(()=>{if(!allowDomRead)return;if(renderTarget!==RenderTarget.preview&&renderTarget!==RenderTarget.export)return;const openHeadingLink=event=>{const heading=event.currentTarget;const id=heading.id;if(id)scrollToHeading(id);};for(const heading of headings){heading.el?.addEventListener(\"click\",openHeadingLink);}const hash=decodeURIComponent(window.location.hash.slice(1));const target=headings.find(heading=>heading.id===hash)?.el||(hash?document.getElementById(hash):null);let frame=0;if(target){frame=window.requestAnimationFrame(()=>{const top=target.getBoundingClientRect().top+window.pageYOffset-Math.max(0,scrollOffset||0);window.scrollTo({top:Math.max(0,top),behavior:\"auto\"});});}return()=>{for(const heading of headings)heading.el?.removeEventListener(\"click\",openHeadingLink);if(frame)window.cancelAnimationFrame(frame);};},[headings,allowDomRead,renderTarget,scrollOffset,scrollToHeading]);const groupedHeadings=useMemo(()=>{return{h2s:headings};},[headings]);// Only indent H3s when the article actually has H2s to nest under\nconst hasH2=useMemo(()=>headings.some(h=>h.level===2),[headings]);const isEmpty=!showHeadings||headings.length===0;if(isEmpty&&renderTarget!==RenderTarget.canvas)return null;const outerStyle={position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background,...style};const innerStyle={position:\"relative\",width:\"100%\",height:\"100%\",overflowY:\"auto\",overflowX:\"hidden\",padding,boxSizing:\"border-box\",WebkitOverflowScrolling:\"touch\"};const listStyle={position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:rowGap};return /*#__PURE__*/_jsxs(\"nav\",{ref:wrapRef,\"aria-label\":\"Article navigation\",\"data-academy-article-nav\":\"true\",\"data-heading-count\":allowDomRead?headings.length:-1,style:outerStyle,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                [data-academy-heading-anchor=\"true\"] {\n                    position: relative;\n                    cursor: pointer;\n                    text-decoration-line: none;\n                    text-decoration-thickness: 1px;\n                    text-underline-offset: 0.2em;\n                }\n                [data-academy-heading-anchor=\"true\"]:hover,\n                [data-academy-heading-anchor=\"true\"]:focus-visible {\n                    text-decoration-line: underline;\n                    text-decoration-color: currentColor;\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:innerStyle,children:[title?/*#__PURE__*/_jsx(\"div\",{style:{color:titleColor,marginBottom:titleGap,...titleFont},children:title}):null,/*#__PURE__*/_jsx(\"div\",{style:listStyle,children:showHeadings&&groupedHeadings.h2s.length>0?/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:headingGap},children:groupedHeadings.h2s.map(h2=>{const active=h2.id===activeHeadingId;const hover=hoverHeadingId===h2.id;const c=active?headingActiveColor:hover?headingHoverColor:headingColor;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\"},children:/*#__PURE__*/_jsx(motion.button,{type:\"button\",onClick:()=>scrollToHeading(h2.id),onMouseEnter:()=>startTransition(()=>setHoverHeadingId(h2.id)),onMouseLeave:()=>startTransition(()=>setHoverHeadingId(null)),initial:false,animate:{color:c},transition:itemTransition,style:{position:\"relative\",width:\"100%\",textAlign:\"left\",background:\"transparent\",border:\"none\",padding:0,margin:0,cursor:\"pointer\",outline:\"none\",paddingLeft:h2.level===3&&hasH2?headingIndent+subheadingIndent:headingIndent,...h2.level===3?{...headingFont,...subheadingFont||{}}:headingFont},children:h2.title})},h2.id);})}):renderTarget===RenderTarget.canvas?/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",color:headingColor,...headingFont},children:\"Article headings appear in Preview.\"}):null})]})]});}addPropertyControls(ArticleNavWithH2,{content:{type:\"richtext\",title:\"Article Body\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({title})=>!title},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#FFFFFF\",hidden:({title})=>!title},titleGap:{type:ControlType.Number,title:\"Title Gap\",defaultValue:16,min:0,max:64,step:1,unit:\"px\",hidden:({title})=>!title},source:{type:ControlType.Enum,title:\"Scope\",options:[\"page\",\"container\"],optionTitles:[\"Page\",\"Container\"],defaultValue:\"page\",displaySegmentedControl:true},containerSelector:{type:ControlType.String,title:\"Container CSS\",defaultValue:\"main\",hidden:({source})=>source!==\"container\"},headingSelector:{type:ControlType.String,title:\"Headings CSS\",defaultValue:\"h2\"},showHeadings:{type:ControlType.Boolean,title:\"Show H2\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},maxHeadings:{type:ControlType.Number,title:\"Max H2\",defaultValue:24,min:1,max:200,step:1},followScroll:{type:ControlType.Boolean,title:\"Scroll Spy\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},scrollOffset:{type:ControlType.Number,title:\"Scroll Offset\",defaultValue:80,min:0,max:400,step:1,unit:\"px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},headingColor:{type:ControlType.Color,title:\"H2\",defaultValue:\"#FFFFFF\"},headingActiveColor:{type:ControlType.Color,title:\"H2 Active\",defaultValue:\"#FFFFFF\"},headingHoverColor:{type:ControlType.Color,title:\"H2 Hover\",defaultValue:\"#FFFFFF\"},headingFont:{type:ControlType.Font,title:\"H2 Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},itemTransition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{duration:.2,ease:\"easeInOut\"}},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"16px\"},rowGap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:12,min:0,max:40,step:1},headingGap:{type:ControlType.Number,title:\"Heading Gap\",defaultValue:8,min:0,max:32,step:1},includeH3:{type:ControlType.Boolean,title:\"Include H3\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},subheadingIndent:{type:ControlType.Number,title:\"H3 Indent\",defaultValue:16,min:0,max:80,step:1,unit:\"px\",hidden:({includeH3})=>!includeH3},subheadingFont:{type:ControlType.Font,title:\"H3 Font\",controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({includeH3})=>!includeH3},headingIndent:{type:ControlType.Number,title:\"H2 Indent\",defaultValue:10,min:0,max:48,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleNavWithH2\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"420\",\"framerIntrinsicWidth\":\"260\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetad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