{"version":3,"file":"CMSTableOfContents.BTGVSTk2.mjs","names":["useState","useRef","useCallback","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","te","ce","init_jsx_runtime","ne","p","_e","de","init_framer_motion_DhsWWWsN","motion","init_framer_Bf4_tcb2","addPropertyControls","ControlType","CMSTableOfContents","showLabel","labelText","labelColor","labelFont","showDivider","dividerColor","dividerThickness","showIndicator","indicatorStyle","overscrollMaxHeight","overscrollFade","overscrollBorderColor","overscrollScrollFollow","props","fadeMask","offset","alpha","headings","setHeadings","activeId","setActiveId","hoveredId","setHoveredId","headingsRef","clickedIdRef","userScrolledRef","containerIdRef","containerId","showH2Ref","showH2","showH3Ref","showH3","showH4Ref","showH4","navId","clampEnabled","listRef","linkRefs","canScrollDown","setCanScrollDown","syncOverscroll","el","observer","list","link","pad","linkTop","linkBottom","viewTop","viewBottom","next","reduceMotion","getTriggerY","getActiveId","items","triggerY","i","bestId","bestDist","top","dist","debounceTimer","scopedObserver","waitObserver","resolveToken","token","resolveIds","s","resolveContainers","ids","collectHeadings","selectors","seen","allElements","containers","container","a","b","id","element","index","level","attachScopedObserver","trySetup","onUserIntent","onScroll","handleClick","idealTop","maxScroll","clampedTop","usesBarBorder","showHeader","overscrollCss","showFade","listStyle","renderIndicator","isActive","activeColor","labelPadding","dividerPadding","font","textColor","heading","isHovered","padding","h4Padding","h3Padding","h2Padding","currentColor","hoverColor","currentOpacity","init_CMSTableOfContents"],"sources":["https:/framerusercontent.com/modules/VRliMXPMj29eQwPPjgya/MI0IBPTbmC6Ioe6k01zt/CMSTableOfContents.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef,startTransition,useCallback}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-auto\n * @framerIntrinsicWidth 260\n * @framerDisableUnlink\n */export default function CMSTableOfContents(props){const{containerId=\"default-content\",transition={duration:.15,ease:\"easeOut\"},label:{show:showLabel=true,text:labelText=\"Contents\",color:labelColor=\"#ffffff\",font:labelFont={},labelPadding=\"0px\"}={},divider:{show:showDivider=false,color:dividerColor=\"#333333\",thickness:dividerThickness=1,dividerPadding=\"8px 0px 8px 0px\"}={},content:{activeColor=\"#ffffff\",textColor=\"#999999\",hoverColor=\"#cccccc\",font={},showH2=true,showH3=true,showH4=false,h2Padding=\"8px 8px 8px 0px\",h3Padding=\"8px 8px 8px 24px\",h4Padding=\"8px 8px 8px 40px\"}={},indicator:{show:showIndicator=true,style:indicatorStyle=\"caret\"}={},overscroll:{maxHeight:overscrollMaxHeight=70,fade:overscrollFade=true,borderColor:overscrollBorderColor=\"#333333\",scrollFollow:overscrollScrollFollow=true}={}}=props;// Hardcoded — not exposed as Framer controls\nconst SCROLL_OFFSET=64;const TRIGGER_POSITION=\"middle\";// The last FADE_RAMP px of the list are erased rather than blurred, so\n// nothing is left smeared against the cut. A single linear stop ramps too\n// evenly to read as a falloff, so the curve is approximated in eight steps\n// that accelerate toward the edge — the same shape the blur ramp had.\nconst FADE_RAMP=120;const FADE_CURVE=[[0,1],[15,.95],[30,.85],[45,.7],[60,.52],[75,.34],[90,.19],[105,.08],[120,0]];const fadeMask=`linear-gradient(to bottom, ${FADE_CURVE.map(([offset,alpha])=>`rgba(0,0,0,${alpha}) calc(100% - ${FADE_RAMP-offset}px)`).join(\", \")})`;const[headings,setHeadings]=useState([]);const[activeId,setActiveId]=useState(\"\");const[hoveredId,setHoveredId]=useState(\"\");const headingsRef=useRef([]);const clickedIdRef=useRef(\"\");const userScrolledRef=useRef(false);const containerIdRef=useRef(containerId);const showH2Ref=useRef(showH2);const showH3Ref=useRef(showH3);const showH4Ref=useRef(showH4);containerIdRef.current=containerId;showH2Ref.current=showH2;showH3Ref.current=showH3;showH4Ref.current=showH4;useEffect(()=>{headingsRef.current=headings;},[headings]);const navId=useRef(`cn-${Math.random().toString(36).slice(2,7)}`).current;// Overscroll — clamping the rail turns the list into its own scroller.\n// Entirely self-contained: it reads and writes the list element's own\n// scrollTop only, and never the page scroll the spy above depends on.\nconst clampEnabled=overscrollMaxHeight>0;const listRef=useRef(null);const linkRefs=useRef({});const[canScrollDown,setCanScrollDown]=useState(false);const syncOverscroll=useCallback(()=>{const el=listRef.current;if(!el)return;setCanScrollDown(el.scrollHeight-el.scrollTop-el.clientHeight>1);},[]);useEffect(()=>{if(!clampEnabled){setCanScrollDown(false);return;}syncOverscroll();const el=listRef.current;if(!el||typeof ResizeObserver===\"undefined\")return;const observer=new ResizeObserver(syncOverscroll);observer.observe(el);return()=>observer.disconnect();},[clampEnabled,headings,syncOverscroll]);// Scroll Follow — keeps the active item inside the clamped list. Moves the\n// list's own scrollTop only; the page scroll and the spy that derives\n// activeId are never touched.\nuseEffect(()=>{if(!clampEnabled||!overscrollScrollFollow||!activeId)return;const list=listRef.current;const link=linkRefs.current[activeId];if(!list||!link)return;if(list.scrollHeight<=list.clientHeight+1)return;// stay clear of the erased strip, or the active item fades as it lands\nconst pad=overscrollFade?FADE_RAMP:16;const linkTop=link.offsetTop;const linkBottom=linkTop+link.offsetHeight;const viewTop=list.scrollTop;const viewBottom=viewTop+list.clientHeight;let next=null;if(linkTop<viewTop){next=linkTop;}else if(linkBottom>viewBottom-pad){next=linkBottom-list.clientHeight+pad;}if(next===null)return;const reduceMotion=typeof window!==\"undefined\"&&window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;list.scrollTo({top:Math.max(0,Math.min(next,list.scrollHeight)),behavior:reduceMotion?\"auto\":\"smooth\"});},[activeId,clampEnabled,overscrollScrollFollow,overscrollFade,headings]);const getTriggerY=useCallback(()=>{if(TRIGGER_POSITION===\"middle\")return window.innerHeight/2;if(TRIGGER_POSITION===\"bottom\")return window.innerHeight-SCROLL_OFFSET;return SCROLL_OFFSET;},[]);const getActiveId=useCallback(()=>{const items=headingsRef.current;if(items.length===0)return\"\";const triggerY=getTriggerY();const atBottom=window.scrollY+window.innerHeight>=document.body.scrollHeight-4;// At bottom of page: activate last heading visible in viewport\nif(atBottom){for(let i=items.length-1;i>=0;i--){const el=document.getElementById(items[i].id);if(el&&el.getBoundingClientRect().top<window.innerHeight){return items[i].id;}}}// Find heading that has passed trigger and is closest to it\nlet bestId=\"\";let bestDist=Infinity;for(let i=0;i<items.length;i++){const el=document.getElementById(items[i].id);if(!el)continue;const top=el.getBoundingClientRect().top;if(top<=triggerY){const dist=triggerY-top;if(dist<bestDist){bestDist=dist;bestId=items[i].id;}}}return bestId;},[getTriggerY]);useEffect(()=>{if(typeof window===\"undefined\")return;let debounceTimer=null;let scopedObserver=null;let waitObserver=null;const resolveToken=token=>{const byId=document.getElementById(token);if(byId)return byId;const bySuffix=document.querySelector(`[id$=\"-${token}\"], [id=\"${token}\"]`);if(bySuffix)return bySuffix;const byName=document.querySelector(`[data-framer-name=\"${token}\"]`);if(byName)return byName;return null;};const resolveIds=()=>containerIdRef.current.split(\",\").map(s=>s.trim().replace(/^#/,\"\")).filter(Boolean);const resolveContainers=ids=>ids.map(token=>resolveToken(token)).filter(el=>el!==null);const collectHeadings=containers=>{const selectors=[];if(showH2Ref.current)selectors.push(\"h2\");if(showH3Ref.current)selectors.push(\"h3\");if(showH4Ref.current)selectors.push(\"h4\");if(selectors.length===0){startTransition(()=>setHeadings([]));return;}const seen=new Set;const allElements=[];containers.forEach(container=>{container.querySelectorAll(selectors.join(\", \")).forEach(el=>{if(!seen.has(el)){seen.add(el);allElements.push(el);}});});allElements.sort((a,b)=>a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);const items=[];allElements.forEach((element,index)=>{let id=element.id;if(!id){id=`heading-${index}`;element.id=id;}const level=parseInt(element.tagName.substring(1));items.push({id,text:element.textContent||\"\",level});});startTransition(()=>setHeadings(items));};const attachScopedObserver=containers=>{if(scopedObserver){scopedObserver.disconnect();scopedObserver=null;}scopedObserver=new MutationObserver(()=>{if(debounceTimer)clearTimeout(debounceTimer);debounceTimer=setTimeout(()=>collectHeadings(containers),100);});containers.forEach(container=>{scopedObserver.observe(container,{childList:true,subtree:true});});};const trySetup=()=>{const ids=resolveIds();if(ids.length===0){startTransition(()=>setHeadings([]));return;}const containers=resolveContainers(ids);if(containers.length>0){if(waitObserver){waitObserver.disconnect();waitObserver=null;}collectHeadings(containers);attachScopedObserver(containers);}else{if(!waitObserver){waitObserver=new MutationObserver(()=>{const found=resolveContainers(resolveIds());if(found.length>0)trySetup();});waitObserver.observe(document.body,{childList:true,subtree:true});}startTransition(()=>setHeadings([]));}};trySetup();return()=>{if(debounceTimer)clearTimeout(debounceTimer);if(scopedObserver)scopedObserver.disconnect();if(waitObserver)waitObserver.disconnect();};},[showH2,showH3,showH4,containerId]);useEffect(()=>{if(typeof window===\"undefined\")return;const onUserIntent=()=>{userScrolledRef.current=true;};window.addEventListener(\"wheel\",onUserIntent,{passive:true});window.addEventListener(\"touchmove\",onUserIntent,{passive:true});return()=>{window.removeEventListener(\"wheel\",onUserIntent);window.removeEventListener(\"touchmove\",onUserIntent);};},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const onScroll=()=>{if(clickedIdRef.current&&!userScrolledRef.current)return;clickedIdRef.current=\"\";setActiveId(getActiveId());};onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[headings,getActiveId]);const handleClick=id=>{if(typeof window===\"undefined\")return;const element=document.getElementById(id);if(element){userScrolledRef.current=false;clickedIdRef.current=id;setActiveId(id);const triggerY=getTriggerY();const elementTop=element.getBoundingClientRect().top+window.pageYOffset;const idealTop=elementTop-triggerY+1;const maxScroll=document.body.scrollHeight-window.innerHeight;const clampedTop=Math.max(0,Math.min(idealTop,maxScroll));window.scrollTo({top:clampedTop,behavior:\"smooth\"});}};const usesBarBorder=showIndicator&&indicatorStyle===\"bar\";const showHeader=showLabel||showDivider;// Scrollbars are hidden outright. Everything else is inline so the clamp is\n// already correct on the first paint; only the WebKit pseudo-element needs\n// a real rule, and a stylesheet cannot reach it any other way.\nconst overscrollCss=clampEnabled?`#${navId}::-webkit-scrollbar{width:0;height:0;display:none}`:\"\";// The mask is lifted once the list bottoms out, so the last item is not\n// left permanently half-erased.\nconst showFade=clampEnabled&&overscrollFade&&canScrollDown;const listStyle=clampEnabled?{flex:\"1 1 auto\",// without this the flex child refuses to shrink and never scrolls\nminHeight:0,alignSelf:\"stretch\",// offsetTop in Scroll Follow is measured against this box\nposition:\"relative\",overflowY:\"auto\",overflowX:\"hidden\",overscrollBehavior:\"contain\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",borderTop:`1px solid ${overscrollBorderColor}`,maskImage:showFade?fadeMask:undefined,WebkitMaskImage:showFade?fadeMask:undefined}:{};const renderIndicator=isActive=>{if(!showIndicator||!isActive)return null;if(indicatorStyle===\"dot\"){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",marginRight:8,flexShrink:0},children:/*#__PURE__*/_jsx(\"span\",{style:{width:5,height:5,borderRadius:\"50%\",backgroundColor:activeColor,display:\"block\"}})});}if(indicatorStyle===\"caret\"){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",marginRight:6,flexShrink:0},children:/*#__PURE__*/_jsx(\"svg\",{width:\"5\",height:\"8\",viewBox:\"0 0 5 8\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1 1L4 4L1 7\",stroke:activeColor,strokeWidth:\"1.25\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})});}return null;};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"sticky\",top:SCROLL_OFFSET,overflow:clampEnabled?\"visible\":\"auto\",maxHeight:clampEnabled?`${overscrollMaxHeight}vh`:undefined,display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\"},children:[overscrollCss&&/*#__PURE__*/_jsx(\"style\",{children:overscrollCss}),showHeader&&/*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:0,flexShrink:0},children:[showLabel&&/*#__PURE__*/_jsx(\"div\",{style:{...labelFont,color:labelColor,padding:labelPadding},children:labelText}),showDivider&&/*#__PURE__*/_jsx(\"div\",{style:{padding:dividerPadding},children:/*#__PURE__*/_jsx(\"div\",{style:{height:dividerThickness,backgroundColor:dividerColor}})})]}),headings.length===0?/*#__PURE__*/_jsx(\"div\",{style:{padding:\"12px 16px\",borderRadius:8,...font,color:textColor,opacity:.4},children:\"No headings found\"}):/*#__PURE__*/_jsx(\"nav\",{id:navId,ref:listRef,onScroll:clampEnabled?syncOverscroll:undefined,style:listStyle,children:headings.map(heading=>{const isActive=heading.id===activeId;const isHovered=heading.id===hoveredId&&!isActive;const padding=heading.level===4?h4Padding:heading.level===3?h3Padding:h2Padding;const currentColor=isActive?activeColor:isHovered?hoverColor:textColor;const currentOpacity=isActive?1:isHovered?1:.7;return /*#__PURE__*/_jsxs(motion.a,{ref:el=>{linkRefs.current[heading.id]=el;},onClick:()=>handleClick(heading.id),onMouseEnter:()=>setHoveredId(heading.id),onMouseLeave:()=>setHoveredId(\"\"),initial:false,animate:{color:currentColor,opacity:currentOpacity,borderLeftColor:usesBarBorder?isActive?activeColor:\"rgba(0,0,0,0)\":\"rgba(0,0,0,0)\"},transition:transition,style:{display:\"flex\",alignItems:\"center\",padding,...font,textDecoration:\"none\",cursor:\"pointer\",borderLeft:usesBarBorder?\"3px solid\":\"none\"},children:[renderIndicator(isActive),heading.text]},heading.id);})})]});}addPropertyControls(CMSTableOfContents,{containerId:{type:ControlType.String,title:\"Container ID\",defaultValue:\"default-content\",placeholder:\"section-1, #section-2\",description:\"Target your content with Scroll Section IDs. You can use multiple if you separate them by commas (visible in Live Preview)\"},label:{type:ControlType.Object,title:\"Label\",controls:{show:{type:ControlType.Boolean,title:\"Visibility\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Contents\",hidden:props=>!props.show},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\",hidden:props=>!props.show},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultFontType:\"sans-serif\",defaultValue:{// @ts-ignore\nfontFamily:\"Inter\",fontSize:16,fontWeight:600,lineHeight:\"1.4\",letterSpacing:\"normal\"},hidden:props=>!props.show},labelPadding:{// @ts-ignore\ntype:ControlType.Padding,title:\"Padding\",defaultValue:\"0px 8px 8px 0px\",hidden:props=>!props.show}}},divider:{type:ControlType.Object,title:\"Divider\",controls:{show:{type:ControlType.Boolean,title:\"Visibility\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#333333\",hidden:props=>!props.show},thickness:{type:ControlType.Number,title:\"Thickness\",defaultValue:1,min:1,max:8,step:1,unit:\"px\",hidden:props=>!props.show},dividerPadding:{// @ts-ignore\ntype:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 0px 8px 0px\",hidden:props=>!props.show}}},content:{type:ControlType.Object,title:\"Content\",controls:{textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#999999\"},activeColor:{type:ControlType.Color,title:\"Active\",defaultValue:\"#FFFFFF\"},hoverColor:{type:ControlType.Color,title:\"Hover\",defaultValue:\"#CCCCCC\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:true,defaultFontType:\"sans-serif\",defaultValue:{// @ts-ignore\nfontFamily:\"Inter\",fontSize:14,fontWeight:400,lineHeight:\"1.4\",letterSpacing:\"normal\"}},showH2:{type:ControlType.Boolean,title:\"H2\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},h2Padding:{// @ts-ignore\ntype:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 8px 8px 0px\",hidden:props=>!props.showH2},showH3:{type:ControlType.Boolean,title:\"H3\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},h3Padding:{// @ts-ignore\ntype:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 8px 8px 24px\",hidden:props=>!props.showH3},showH4:{type:ControlType.Boolean,title:\"H4\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},h4Padding:{// @ts-ignore\ntype:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 8px 8px 40px\",hidden:props=>!props.showH4}}},indicator:{type:ControlType.Object,title:\"Indicator\",controls:{show:{type:ControlType.Boolean,title:\"Visibility\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},style:{type:ControlType.Enum,title:\"Style\",defaultValue:\"caret\",options:[\"bar\",\"dot\",\"caret\"],optionTitles:[\"|\",\"•\",\"›\"],hidden:props=>!props.show}}},overscroll:{type:ControlType.Object,title:\"Overscroll\",controls:{maxHeight:{type:ControlType.Number,title:\"Max Height\",defaultValue:70,min:0,max:100,step:1,unit:\"vh\",displayStepper:false,description:\"Caps the list so long pages scroll inside it instead of running off the screen. Set to 0 to turn it off\"},fade:{type:ControlType.Boolean,title:\"Fade\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",hidden:props=>!props.maxHeight},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#333333\",hidden:props=>!props.maxHeight},scrollFollow:{type:ControlType.Boolean,title:\"Scroll Follow\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:props=>!props.maxHeight}}},// @ts-ignore\ntransition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{duration:.15,ease:\"easeOut\"},description:\"Discover more Framer resources at [Pixco](https://pixcodrops.com/resources)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSTableOfContents\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"260\",\"framerSupportedLayoutWidth\":\"any-pref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