{"version":3,"file":"DynamicTOC.CDVRcbLl.mjs","names":["useRef","useState","useCallback","useMemo","_Fragment"],"sources":["https:/framerusercontent.com/modules/XUksJRPXkbr4hVRfjw7e/vk3oJ42rSI47fB1A5rFZ/DynamicTOC.js"],"sourcesContent":["/**\n * DynamicTOC - Framer Code Component\n *\n * A fully functional Dynamic Table of Contents with:\n * - Collapsed notch column (fixed, vertically centered on right side)\n * - Expandable popover with heading list\n * - Auto-detection of headings in parent scrollable container\n * - Active heading tracking with IntersectionObserver\n * - Smooth scrolling with offset correction\n * - Full keyboard accessibility\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState,useCallback,useMemo}from\"react\";import{motion,AnimatePresence,addPropertyControls,ControlType}from\"framer\";/* -------------------- Helpers -------------------- */const isBrowser=typeof window!==\"undefined\"&&typeof document!==\"undefined\";function slugify(text=\"\",idx=0){return`${String(text).toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/(^-|-$)/g,\"\")}-${idx}-${Math.random().toString(36).slice(2,7)}`;}function findNearestScrollableAncestor(el){if(!isBrowser)return document.body;if(!el)return document.scrollingElement||document.documentElement;let node=el.parentElement;while(node&&node!==document.body){const style=window.getComputedStyle(node);const overflowY=style.getPropertyValue(\"overflow-y\");if(overflowY===\"auto\"||overflowY===\"scroll\"||node.scrollHeight>node.clientHeight)return node;node=node.parentElement;}return document.scrollingElement||document.documentElement||document.body;}function debounce(fn,wait=150){let t;return(...args)=>{if(t)window.clearTimeout(t);t=window.setTimeout(()=>fn(...args),wait);};}function truncateText(text,limit){if(typeof limit===\"number\"&&limit>0){return text.length>limit?text.slice(0,limit)+\"…\":text;}return text;}/* -------------------- Component -------------------- */export default function DynamicTOC(props){const{// Heading detection\nheadingLevel=\"H2\",parentSelector=\"\",hideIfEmpty=true,// Notches (collapsed column)\nnotchDefaultColor=\"#9AA0A6\",notchActiveColor=\"#2B6DF6\",notchHeight=10,notchWidth=10,notchRadius=999,// Popover container\npopoverBg=\"#FFFFFF\",popoverShadow=\"0 8px 24px rgba(16,24,40,0.12)\",popoverRadius=12,popoverBorderColor=\"rgba(0,0,0,0.06)\",popoverBorderSize=1,popoverPadding=12,gapFromNotches=12,popoverWidth=320,popoverHeightMode=\"fit\",popoverMaxHeight=500,popoverCustomHeight=360,// Animation\nanimationDuration=.35,animationEasing=\"easeInOut\",// List item visuals - Default state\nitemDefaultTextColor=\"#1F2937\",itemDefaultBg=\"transparent\",itemDefaultBorderColor=\"transparent\",itemDefaultBorderSize=0,itemDefaultRadius=6,itemDefaultPadding=10,// List item visuals - Hover state\nitemHoverTextColor=\"#111827\",itemHoverBg=\"#F3F4F6\",itemHoverBorderColor=\"transparent\",itemHoverBorderSize=0,itemHoverRadius=6,itemHoverPadding=10,// List item visuals - Active state\nitemActiveTextColor=\"#2B6DF6\",itemActiveBg=\"#EFF6FF\",itemActiveBorderColor=\"#2B6DF6\",itemActiveBorderSize=1,itemActiveRadius=6,itemActivePadding=10,// Text styling\nitemFontFamily=\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\",itemFontSize=14,itemFontWeight=400,itemLineHeight=20,itemTextAlign=\"left\",truncationLimit=25,// Layout & Behavior\nconstrainToParent=true,fixedRightOffset=24,scrollOffsetCorrection=0,enableSmoothScroll=true,debugMode=false}=props;/* refs & state */const rootRef=useRef(null);const popoverRef=useRef(null);const toggleButtonRef=useRef(null);const parentRef=useRef(null);const scrollContainerRef=useRef(null);const intersectionRef=useRef(null);const mutationRef=useRef(null);const[entries,setEntries]=useState([]);const entriesRef=useRef([]);const[activeIndex,setActiveIndex]=useState(0);const[open,setOpen]=useState(false);const[hoveredIndex,setHoveredIndex]=useState(null);const[verticalPosition,setVerticalPosition]=useState({top:\"50%\",transform:\"translateY(-50%)\"});/* Scan headings */const scanHeadings=useCallback(container=>{if(!isBrowser||!container)return;const nodeList=Array.from(container.querySelectorAll(\"h1,h2,h3,h4,h5,h6\"));const filtered=nodeList.filter(n=>n.tagName.toLowerCase()===(headingLevel||\"h2\").toLowerCase());const processed=filtered.map((node,idx)=>{let id=node.id;if(!id){id=slugify(node.textContent||\"heading\",idx);try{node.id=id;}catch{}}return{id,text:node.textContent?.trim()||\"\",element:node,index:idx};});entriesRef.current=processed;setEntries(processed);},[headingLevel]);const debouncedScan=useMemo(()=>debounce(scanHeadings,150),[scanHeadings]);/* Update vertical position based on parent container bounds */const updateVerticalPosition=useCallback(()=>{if(!isBrowser||!constrainToParent||!rootRef.current||!parentRef.current){setVerticalPosition({top:\"50%\",transform:\"translateY(-50%)\"});return;}const parent=parentRef.current;const root=rootRef.current;// Force layout recalculation\nconst parentRect=parent.getBoundingClientRect();const rootRect=root.getBoundingClientRect();const tocHeight=rootRect.height;const parentTop=parentRect.top;const parentBottom=parentRect.bottom;const parentHeight=parentRect.height;// Safety check\nif(tocHeight===0||parentHeight===0){setVerticalPosition({top:\"50%\",transform:\"translateY(-50%)\"});return;}// CRITICAL: If parent has scrolled above viewport, clamp to top\n// If parent bottom is above viewport top, TOC should not be visible\nconst viewportHeight=window.innerHeight;// If parent's bottom is above the top of viewport, hide TOC by moving it way up\nif(parentBottom<0){setVerticalPosition({top:`${parentBottom-tocHeight}px`,transform:\"none\"});return;}// If parent's top is below viewport bottom, hide TOC by keeping it at parent top\nif(parentTop>viewportHeight){setVerticalPosition({top:`${parentTop}px`,transform:\"none\"});return;}// Calculate where TOC would be if centered in VIEWPORT (not parent)\nconst viewportCenter=viewportHeight/2;const idealTop=viewportCenter-tocHeight/2;// Calculate hard boundaries - TOC must stay within parent\n// minTop: TOC top can't go above parent top\nconst minTop=parentTop;// maxTop: TOC bottom can't go below parent bottom\n// This means: top + tocHeight <= parentBottom\n// So: top <= parentBottom - tocHeight\nconst maxTop=parentBottom-tocHeight;// If parent is smaller than TOC, stick to top\nif(maxTop<minTop){setVerticalPosition({top:`${minTop}px`,transform:\"none\"});return;}// Clamp the viewport-centered position to parent boundaries\n// This ensures bottom edge stops as soon as it hits parent bottom\nconst clampedTop=Math.max(minTop,Math.min(maxTop,idealTop));setVerticalPosition({top:`${clampedTop}px`,transform:\"none\"});},[constrainToParent]);const debouncedUpdatePosition=useMemo(()=>debounce(updateVerticalPosition,50),[updateVerticalPosition]);useEffect(()=>{if(!isBrowser)return;// Small delay to ensure DOM is ready\nconst timer=setTimeout(()=>{// resolve parent container - auto-detect the actual parent element\nlet parent=null;// First try manual selector if provided\nif(parentSelector&&parentSelector.trim().length){try{const q=document.querySelector(parentSelector);if(q instanceof HTMLElement)parent=q;}catch{parent=null;}}// Auto-detect: find the parent element of the TOC component itself\nif(!parent&&rootRef.current){// Get the direct parent first\nconst directParent=rootRef.current.parentElement;if(directParent){// Check if parent is scrollable, otherwise find nearest scrollable ancestor\nconst style=window.getComputedStyle(directParent);const overflowY=style.getPropertyValue(\"overflow-y\");if(overflowY===\"auto\"||overflowY===\"scroll\"||directParent.scrollHeight>directParent.clientHeight){parent=directParent;}else{// Find nearest scrollable ancestor from parent\nparent=findNearestScrollableAncestor(directParent);}}}// Fallback to document\nif(!parent){parent=document.scrollingElement||document.documentElement;}parentRef.current=parent;// Find the actual scrollable container\n// This might be different from the parent if parent is just a content wrapper\nlet scrollContainer=parent;if(parent){const style=window.getComputedStyle(parent);const overflowY=style.getPropertyValue(\"overflow-y\");// Check if parent is explicitly set to scroll or auto\n// Don't rely on scrollHeight comparison at mount time as content may not be loaded yet\nif(overflowY===\"auto\"||overflowY===\"scroll\"){// Parent is scrollable\nscrollContainer=parent;}else{// Parent is not scrollable, find the nearest scrollable ancestor\nscrollContainer=findNearestScrollableAncestor(parent);}}scrollContainerRef.current=scrollContainer;console.log(\"[TOC] Parent:\",parent);console.log(\"[TOC] Scroll Container:\",scrollContainer);console.log(\"[TOC] Are they the same?\",parent===scrollContainer);debouncedScan(parentRef.current);// observe for changes\ntry{const mo=new MutationObserver(debounce(()=>scanHeadings(parentRef.current),150));mo.observe(parentRef.current,{childList:true,subtree:true,characterData:true});mutationRef.current=mo;}catch{}},100);return()=>{clearTimeout(timer);try{mutationRef.current?.disconnect();}catch{}};},[parentSelector,debouncedScan,scanHeadings]);/* Initial position setup */useEffect(()=>{if(!isBrowser||!constrainToParent)return;// Initial position after mount\nconst timers=[];timers.push(window.setTimeout(updateVerticalPosition,100));timers.push(window.setTimeout(updateVerticalPosition,300));return()=>timers.forEach(t=>clearTimeout(t));},[constrainToParent,updateVerticalPosition]);/* Update position on scroll and resize */useEffect(()=>{if(!isBrowser||!constrainToParent)return;const handleUpdate=()=>{debouncedUpdatePosition();};// Listen to scroll on both parent and scroll container\nconst parent=parentRef.current;const scrollContainer=scrollContainerRef.current;console.log(\"[TOC] Setting up scroll listeners\");console.log(\"[TOC] parent:\",parent);console.log(\"[TOC] scrollContainer:\",scrollContainer);if(parent){parent.addEventListener(\"scroll\",handleUpdate,{passive:true});}if(scrollContainer&&scrollContainer!==parent){scrollContainer.addEventListener(\"scroll\",handleUpdate,{passive:true});}window.addEventListener(\"scroll\",handleUpdate,{passive:true});window.addEventListener(\"resize\",handleUpdate);// ResizeObserver for parent AND root size changes\nlet resizeObserver=null;try{resizeObserver=new ResizeObserver(handleUpdate);if(parent){resizeObserver.observe(parent);}if(rootRef.current){resizeObserver.observe(rootRef.current);}}catch{}return()=>{if(parent){parent.removeEventListener(\"scroll\",handleUpdate);}if(scrollContainer&&scrollContainer!==parent){scrollContainer.removeEventListener(\"scroll\",handleUpdate);}window.removeEventListener(\"scroll\",handleUpdate);window.removeEventListener(\"resize\",handleUpdate);try{resizeObserver?.disconnect();}catch{}};},[constrainToParent,updateVerticalPosition,debouncedUpdatePosition]);/* Update position when entries change (TOC height may change) */useEffect(()=>{if(constrainToParent&&isBrowser){// Use requestAnimationFrame + timeout for reliable layout update\nconst raf=requestAnimationFrame(()=>{const timer=setTimeout(updateVerticalPosition,50);return()=>clearTimeout(timer);});return()=>cancelAnimationFrame(raf);}},[entries.length,constrainToParent,updateVerticalPosition]);/* Update position when popover opens/closes (changes TOC height) */useEffect(()=>{if(constrainToParent&&isBrowser){// Multiple updates to catch animation states\nconst timers=[];timers.push(window.setTimeout(updateVerticalPosition,0));timers.push(window.setTimeout(updateVerticalPosition,50));timers.push(window.setTimeout(updateVerticalPosition,350));return()=>timers.forEach(t=>clearTimeout(t));}},[open,constrainToParent,updateVerticalPosition]);/* Intersection Observer for active */const computeRoot=useCallback(()=>{if(!isBrowser)return null;const scrollContainer=scrollContainerRef.current||parentRef.current||document.scrollingElement||document.documentElement;return scrollContainer===document.scrollingElement||scrollContainer===document.documentElement?null:scrollContainer;},[]);const computeRootMargin=useCallback(()=>{if(!isBrowser)return\"0px\";return`-${scrollOffsetCorrection}px 0px -50% 0px`;},[scrollOffsetCorrection]);useEffect(()=>{if(!isBrowser||entriesRef.current.length===0){setActiveIndex(0);return;}try{intersectionRef.current?.disconnect();}catch{}const root=computeRoot();const rootMargin=computeRootMargin();const thresholds=[0,.25,.5,.75,1];const io=new IntersectionObserver(entriesList=>{const visible=entriesList.filter(e=>e.isIntersecting);if(visible.length===0){const rects=entriesRef.current.map(h=>({idx:h.index,top:h.element.getBoundingClientRect().top}));if(rects.length){const winner=rects.reduce((a,b)=>Math.abs(a.top)<Math.abs(b.top)?a:b);setActiveIndex(winner.idx);}return;}const winner=visible.reduce((a,b)=>a.intersectionRatio>=b.intersectionRatio?a:b);const id=winner.target.id;const idx=entriesRef.current.findIndex(h=>h.id===id);if(idx!==-1)setActiveIndex(idx);},{root,rootMargin,threshold:thresholds});intersectionRef.current=io;entriesRef.current.forEach(h=>{try{io.observe(h.element);}catch{}});return()=>{try{io.disconnect();}catch{}};},[computeRoot,computeRootMargin,entriesRef.current.length]);/* Click outside to close */useEffect(()=>{if(!isBrowser)return;function onDocClick(e){const target=e.target;if(open){if(popoverRef.current&&popoverRef.current.contains(target))return;if(rootRef.current&&rootRef.current.contains(target))return;setOpen(false);}}document.addEventListener(\"mousedown\",onDocClick);return()=>document.removeEventListener(\"mousedown\",onDocClick);},[open]);/* Scroll to heading */const scrollTo=useCallback(entry=>{if(!isBrowser||!entry||!entry.element){console.log(\"[TOC] scrollTo: Invalid params\");return;}// Use the scroll container (the actual scrollable element)\nconst scrollContainer=scrollContainerRef.current||parentRef.current||document.scrollingElement||document.documentElement;console.log(\"[TOC] scrollTo called for:\",entry.text);console.log(\"[TOC] scrollContainer:\",scrollContainer);console.log(\"[TOC] scrollContainerRef.current:\",scrollContainerRef.current);console.log(\"[TOC] parentRef.current:\",parentRef.current);const isBodyScroll=scrollContainer===document.scrollingElement||scrollContainer===document.documentElement;console.log(\"[TOC] isBodyScroll:\",isBodyScroll);// Get the heading's current position in the viewport\nconst headingRect=entry.element.getBoundingClientRect();// Calculate target scroll position\nlet targetTop;if(isBodyScroll){// For body/document scroll, use window scroll position\nconst currentScroll=window.scrollY||window.pageYOffset||0;targetTop=currentScroll+headingRect.top-scrollOffsetCorrection;console.log(\"[TOC] Body scroll - currentScroll:\",currentScroll,\"headingRect.top:\",headingRect.top,\"targetTop:\",targetTop);}else{// For element scroll, we need to calculate differently\nconst scrollContainerEl=scrollContainer;const currentScroll=scrollContainerEl.scrollTop||0;const containerRect=scrollContainerEl.getBoundingClientRect();// Calculate heading position relative to scroll container\n// headingRect.top is relative to viewport\n// containerRect.top is where container starts in viewport\n// So: headingRect.top - containerRect.top = position within visible area\n// Add currentScroll to get absolute position in scrollable content\ntargetTop=currentScroll+(headingRect.top-containerRect.top)-scrollOffsetCorrection;console.log(\"[TOC] Element scroll:\");console.log(\"  currentScroll:\",currentScroll);console.log(\"  headingRect.top:\",headingRect.top);console.log(\"  containerRect.top:\",containerRect.top);console.log(\"  headingRect.top - containerRect.top:\",headingRect.top-containerRect.top);console.log(\"  targetTop:\",targetTop);}// Perform the scroll\ntry{if(enableSmoothScroll){if(isBodyScroll){console.log(\"[TOC] Scrolling window to:\",targetTop);window.scrollTo({top:targetTop,behavior:\"smooth\"});}else{console.log(\"[TOC] Scrolling element to:\",targetTop);scrollContainer.scrollTo({top:targetTop,behavior:\"smooth\"});}}else{if(isBodyScroll){window.scrollTo(0,targetTop);}else{scrollContainer.scrollTop=targetTop;}}}catch(e){console.error(\"[TOC] Scroll failed:\",e);// Fallback for browsers that don't support smooth scroll\nif(isBodyScroll){window.scrollTo(0,targetTop);}else{scrollContainer.scrollTop=targetTop;}}setActiveIndex(entry.index);setOpen(false);},[scrollOffsetCorrection,enableSmoothScroll]);/* Render helpers */if(hideIfEmpty&&entries.length===0)return null;const getEasing=()=>{switch(animationEasing){case\"easeOut\":return[0,0,.2,1];case\"easeIn\":return[.4,0,1,1];case\"easeInOut\":default:return[.4,0,.2,1];}};const transition={duration:animationDuration,ease:getEasing()};// Popover height and nav scrolling:\n// - Fit mode (default): container grows to fit content up to maxHeight, then nav scrolls\n// - Custom mode: container has fixed height, nav scrolls if content exceeds\nconst popoverContainerStyle=popoverHeightMode===\"fit\"?{// Auto height that fits content, with max limit\nheight:\"auto\",maxHeight:`${popoverMaxHeight}px`}:{// Fixed height\nheight:`${popoverCustomHeight}px`};// Nav element should fill available space and scroll when needed\nconst navStyle={display:\"flex\",flexDirection:\"column\",overflowY:\"auto\",overflowX:\"hidden\",WebkitOverflowScrolling:\"touch\",// In fit mode: grow naturally, in custom mode: fill container\n...popoverHeightMode===\"fit\"?{flex:\"0 1 auto\",maxHeight:`${popoverMaxHeight-popoverPadding*2}px`}:{flex:\"1 1 0\",minHeight:0}};/* JSX */return /*#__PURE__*/_jsxs(_Fragment,{children:[debugMode&&isBrowser&&parentRef.current&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:0,right:0,top:`${parentRef.current.getBoundingClientRect().top}px`,height:`${parentRef.current.getBoundingClientRect().height}px`,border:\"2px dashed red\",pointerEvents:\"none\",zIndex:9997}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:\"10px\",left:\"10px\",background:\"rgba(0,0,0,0.8)\",color:\"white\",padding:\"8px 12px\",borderRadius:\"4px\",fontSize:\"11px\",fontFamily:\"monospace\",zIndex:1e4,pointerEvents:\"none\"},children:[/*#__PURE__*/_jsxs(\"div\",{children:[\"Parent Top:\",\" \",Math.round(parentRef.current.getBoundingClientRect().top),\"px\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Parent Height:\",\" \",Math.round(parentRef.current.getBoundingClientRect().height),\"px\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"TOC Height:\",\" \",rootRef.current?Math.round(rootRef.current.getBoundingClientRect().height):0,\"px\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"TOC Top: \",verticalPosition.top]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Entries: \",entries.length]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Open: \",open?\"Yes\":\"No\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Parent: \",parentRef.current?.tagName||\"none\",\" \",parentRef.current?.id?`#${parentRef.current.id}`:\"\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Scroll Container:\",\" \",scrollContainerRef.current?.tagName||\"none\",\" \",scrollContainerRef.current?.id?`#${scrollContainerRef.current.id}`:\"\"]})]})]}),/*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{position:\"fixed\",right:fixedRightOffset,...verticalPosition,zIndex:9998,display:\"flex\",flexDirection:\"row-reverse\",alignItems:\"flex-start\",gap:gapFromNotches,pointerEvents:\"auto\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8,alignItems:\"center\",justifyContent:\"center\",userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"button\",{ref:toggleButtonRef,role:\"button\",tabIndex:0,\"aria-label\":\"Toggle table of contents\",\"aria-expanded\":open,onClick:()=>setOpen(s=>!s),onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();setOpen(s=>!s);}},style:{width:notchWidth+8,height:notchHeight+8,borderRadius:notchRadius,backgroundColor:notchDefaultColor,border:\"none\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0,transition:\"background-color 0.2s ease\",marginBottom:6},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=notchActiveColor;},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=notchDefaultColor;},children:/*#__PURE__*/_jsxs(\"svg\",{width:notchWidth-2,height:notchHeight-2,viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"2\",y1:\"3\",x2:\"10\",y2:\"3\",stroke:\"white\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"2\",y1:\"6\",x2:\"10\",y2:\"6\",stroke:\"white\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"2\",y1:\"9\",x2:\"10\",y2:\"9\",stroke:\"white\",strokeWidth:\"1.5\",strokeLinecap:\"round\"})]})}),entries.map((e,i)=>{const active=i===activeIndex;return /*#__PURE__*/_jsx(\"div\",{role:\"button\",tabIndex:0,\"aria-label\":`Go to ${e.text}`,\"aria-current\":active?\"true\":undefined,onClick:()=>scrollTo(e),onKeyDown:ev=>{if(ev.key===\"Enter\"||ev.key===\" \"){ev.preventDefault();scrollTo(e);}},title:e.text,style:{height:notchHeight,width:notchWidth,borderRadius:notchRadius,background:active?notchActiveColor:notchDefaultColor,transition:\"background 180ms ease\",cursor:\"pointer\",boxSizing:\"border-box\"}},e.id);})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:open&&/*#__PURE__*/_jsx(motion.div,{ref:popoverRef,initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:transition,role:\"dialog\",\"aria-label\":\"Table of Contents\",style:{width:`${popoverWidth}px`,...popoverContainerStyle,background:popoverBg,boxShadow:popoverShadow,borderRadius:`${popoverRadius}px`,border:`${popoverBorderSize}px solid ${popoverBorderColor}`,padding:`${popoverPadding}px`,display:\"flex\",flexDirection:\"column\",boxSizing:\"border-box\",overflow:\"hidden\",zIndex:9999},children:/*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Table of Contents\",style:navStyle,children:[entries.map((entry,idx)=>{const active=idx===activeIndex;const isHovered=idx===hoveredIndex;const currentState=active?\"active\":isHovered?\"hover\":\"default\";const stateStyles={default:{color:itemDefaultTextColor,background:itemDefaultBg,borderWidth:itemDefaultBorderSize,borderColor:itemDefaultBorderColor,borderRadius:itemDefaultRadius,padding:itemDefaultPadding},hover:{color:itemHoverTextColor,background:itemHoverBg,borderWidth:itemHoverBorderSize,borderColor:itemHoverBorderColor,borderRadius:itemHoverRadius,padding:itemHoverPadding},active:{color:itemActiveTextColor,background:itemActiveBg,borderWidth:itemActiveBorderSize,borderColor:itemActiveBorderColor,borderRadius:itemActiveRadius,padding:itemActivePadding}};const currentStyles=stateStyles[currentState];return /*#__PURE__*/_jsx(\"div\",{role:\"button\",tabIndex:0,\"aria-current\":active?\"true\":undefined,onClick:()=>scrollTo(entry),onKeyDown:ev=>{if(ev.key===\"Enter\"||ev.key===\" \"){ev.preventDefault();scrollTo(entry);}},onMouseEnter:()=>setHoveredIndex(idx),onMouseLeave:()=>setHoveredIndex(null),title:entry.text,style:{color:currentStyles.color,background:currentStyles.background,border:`${currentStyles.borderWidth}px solid ${currentStyles.borderColor}`,borderRadius:currentStyles.borderRadius,padding:currentStyles.padding,marginBottom:4,cursor:\"pointer\",boxSizing:\"border-box\",display:\"flex\",alignItems:\"center\",transition:\"all 0.2s ease\",fontFamily:itemFontFamily,fontSize:itemFontSize,fontWeight:itemFontWeight,lineHeight:`${itemLineHeight}px`,textAlign:itemTextAlign,overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\",flexShrink:0},children:truncateText(entry.text,truncationLimit)},entry.id);}),entries.length===0&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#6B7280\"},children:\"No headings found\"})]})})})]})]});}/* -------------------- Framer Property Controls -------------------- */addPropertyControls(DynamicTOC,{headingLevel:{type:ControlType.Enum,title:\"Heading Level\",options:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\"],defaultValue:\"H2\"},parentSelector:{type:ControlType.String,title:\"Parent Selector\",defaultValue:\"\",placeholder:\"e.g., #main-content\"},hideIfEmpty:{type:ControlType.Boolean,title:\"Hide if Empty\",defaultValue:true},notchDefaultColor:{type:ControlType.Color,title:\"Notch Color\",defaultValue:\"#9AA0A6\"},notchActiveColor:{type:ControlType.Color,title:\"Active Notch\",defaultValue:\"#2B6DF6\"},notchHeight:{type:ControlType.Number,title:\"Notch Height\",unit:\"px\",defaultValue:10},notchWidth:{type:ControlType.Number,title:\"Notch Width\",unit:\"px\",defaultValue:10},notchRadius:{type:ControlType.Number,title:\"Notch Radius\",unit:\"px\",defaultValue:999},popoverBg:{type:ControlType.Color,title:\"Popover BG\",defaultValue:\"#FFFFFF\"},popoverShadow:{type:ControlType.String,title:\"Shadow\",defaultValue:\"0 8px 24px rgba(16,24,40,0.12)\"},popoverRadius:{type:ControlType.Number,title:\"Radius\",unit:\"px\",defaultValue:12},popoverBorderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"rgba(0,0,0,0.06)\"},popoverBorderSize:{type:ControlType.Number,title:\"Border Size\",unit:\"px\",defaultValue:1},popoverPadding:{type:ControlType.Number,title:\"Padding\",unit:\"px\",defaultValue:12},gapFromNotches:{type:ControlType.Number,title:\"Gap from Notches\",unit:\"px\",defaultValue:12},popoverWidth:{type:ControlType.Number,title:\"Popover Width\",unit:\"px\",defaultValue:320},popoverHeightMode:{type:ControlType.Enum,title:\"Height Mode\",options:[\"fit\",\"custom\"],optionTitles:[\"Fit Content\",\"Custom Height\"],defaultValue:\"fit\"},popoverMaxHeight:{type:ControlType.Number,title:\"Max Height\",unit:\"px\",defaultValue:500,hidden:props=>props.popoverHeightMode!==\"fit\"},popoverCustomHeight:{type:ControlType.Number,title:\"Custom Height\",unit:\"px\",defaultValue:360,hidden:props=>props.popoverHeightMode!==\"custom\"},animationDuration:{type:ControlType.Number,title:\"Anim Duration (s)\",defaultValue:.35},animationEasing:{type:ControlType.Enum,title:\"Animation Easing\",options:[\"easeInOut\",\"easeOut\",\"easeIn\"],defaultValue:\"easeInOut\"},itemDefaultTextColor:{type:ControlType.Color,title:\"Item Text\",defaultValue:\"#1F2937\"},itemDefaultBg:{type:ControlType.Color,title:\"Item BG\",defaultValue:\"transparent\"},itemDefaultBorderColor:{type:ControlType.Color,title:\"Item Border\",defaultValue:\"transparent\"},itemDefaultBorderSize:{type:ControlType.Number,title:\"Border Size\",defaultValue:0},itemDefaultRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:6},itemDefaultPadding:{type:ControlType.Number,title:\"Padding\",defaultValue:10},itemHoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#111827\"},itemHoverBg:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#F3F4F6\"},itemHoverBorderColor:{type:ControlType.Color,title:\"Hover Border\",defaultValue:\"transparent\"},itemHoverBorderSize:{type:ControlType.Number,title:\"Hover Border Size\",defaultValue:0},itemHoverRadius:{type:ControlType.Number,title:\"Hover Radius\",defaultValue:6},itemHoverPadding:{type:ControlType.Number,title:\"Hover Padding\",defaultValue:10},itemActiveTextColor:{type:ControlType.Color,title:\"Active Text\",defaultValue:\"#2B6DF6\"},itemActiveBg:{type:ControlType.Color,title:\"Active BG\",defaultValue:\"#EFF6FF\"},itemActiveBorderColor:{type:ControlType.Color,title:\"Active Border\",defaultValue:\"#2B6DF6\"},itemActiveBorderSize:{type:ControlType.Number,title:\"Active Border Size\",defaultValue:1},itemActiveRadius:{type:ControlType.Number,title:\"Active Radius\",defaultValue:6},itemActivePadding:{type:ControlType.Number,title:\"Active Padding\",defaultValue:10},itemFontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\"},itemFontSize:{type:ControlType.Number,title:\"Font Size\",unit:\"px\",defaultValue:14},itemFontWeight:{type:ControlType.Number,title:\"Font Weight\",defaultValue:400},itemLineHeight:{type:ControlType.Number,title:\"Line Height\",unit:\"px\",defaultValue:20},itemTextAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],defaultValue:\"left\"},truncationLimit:{type:ControlType.Number,title:\"Truncation Limit\",description:\"Character limit for heading text\",defaultValue:25,min:10,max:200,step:5},constrainToParent:{type:ControlType.Boolean,title:\"Constrain to Parent\",description:\"Keep TOC within parent container bounds\",defaultValue:true},fixedRightOffset:{type:ControlType.Number,title:\"Right Offset\",unit:\"px\",defaultValue:24},scrollOffsetCorrection:{type:ControlType.Number,title:\"Scroll Offset\",unit:\"px\",defaultValue:0},enableSmoothScroll:{type:ControlType.Boolean,title:\"Smooth Scroll\",defaultValue:true},debugMode:{type:ControlType.Boolean,title:\"Debug Mode\",description:\"Show parent container boundaries\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DynamicTOC\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicTOC.map"],"mappings":"iRAUgW,SAAS,GAAQ,EAAK,GAAG,EAAI,EAAE,CAAC,MAAM,GAAG,OAAO,EAAK,CAAC,aAAa,CAAC,QAAQ,cAAc,IAAI,CAAC,QAAQ,WAAW,GAAG,CAAC,GAAG,EAAI,GAAG,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE,EAAE,GAAI,SAAS,EAA8B,EAAG,CAAC,GAAG,CAAC,EAAU,OAAO,SAAS,KAAK,GAAG,CAAC,EAAG,OAAO,SAAS,kBAAkB,SAAS,gBAAgB,IAAI,EAAK,EAAG,cAAc,KAAM,GAAM,IAAO,SAAS,MAAK,CAA2C,IAAM,E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