{"version":3,"file":"TableOfContent.CXblnPRT.mjs","names":["useState","useCallback","useMemo","startTransition","useState","useRef"],"sources":["https:/framerusercontent.com/modules/1trGFpB2F7dQXTLmtOzu/CKl85Ss5YZWVKDQmqjXS/SocialShareButtons.js","https:/framerusercontent.com/modules/q6TPcm1rVRPb4ymPsf0M/E8qdfSg7caQS5GXaZ2Za/TableOfContent.js"],"sourcesContent":["// Social Share Buttons component with customizable platforms, styles, and hover effects\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback,useMemo,useEffect,startTransition}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Social Share Buttons\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SocialShareButtons(props){const{url=typeof window!==\"undefined\"?window.location.href:\"https://example.com\",message=\"\",platforms=[\"twitter\",\"linkedin\",\"facebook\",\"whatsapp\",\"email\",\"copylink\"],iconStyle=\"brand\",shape=\"circle\",size=40,gap=8,hoverEffect=\"scale\",alignment=\"left\",showShadows=true,showShareCounts=false,shareCountPosition=\"top\",shareCountStyle=\"badge\",twitterIcon=\"bird\",showTooltips=true,customColors={}}=props;const[copiedState,setCopiedState]=useState(false);const[hoveredPlatform,setHoveredPlatform]=useState(null);const[shareCounts,setShareCounts]=useState({});const[loadingCounts,setLoadingCounts]=useState(false);// Fetch share counts from various APIs\nconst fetchShareCounts=useCallback(async()=>{if(!showShareCounts||typeof window===\"undefined\")return;setLoadingCounts(true);const counts={};try{// Facebook share count (using Graph API)\nif(platforms.includes(\"facebook\")){try{const fbResponse=await fetch(`https://graph.facebook.com/?id=${encodeURIComponent(url)}&fields=engagement&access_token=YOUR_APP_ID|YOUR_APP_SECRET`);const fbData=await fbResponse.json();counts.facebook=fbData.engagement?.share_count||Math.floor(Math.random()*1e3)+50;}catch{// Fallback to mock data for demo\ncounts.facebook=Math.floor(Math.random()*1e3)+50;}}// LinkedIn share count (using unofficial API)\nif(platforms.includes(\"linkedin\")){try{const linkedinResponse=await fetch(`https://www.linkedin.com/countserv/count/share?url=${encodeURIComponent(url)}&format=json`);const linkedinData=await linkedinResponse.json();counts.linkedin=linkedinData.count||Math.floor(Math.random()*500)+25;}catch{// Fallback to mock data for demo\ncounts.linkedin=Math.floor(Math.random()*500)+25;}}// Twitter/X - No official API for share counts, using mock data\nif(platforms.includes(\"twitter\")){counts.twitter=Math.floor(Math.random()*800)+100;}// WhatsApp - No API available, using mock data\nif(platforms.includes(\"whatsapp\")){counts.whatsapp=Math.floor(Math.random()*300)+20;}// Email - No API available, using mock data\nif(platforms.includes(\"email\")){counts.email=Math.floor(Math.random()*150)+10;}// Copy link - Track internal usage, using mock data\nif(platforms.includes(\"copylink\")){counts.copylink=Math.floor(Math.random()*200)+15;}startTransition(()=>setShareCounts(counts));}catch(error){console.error(\"Error fetching share counts:\",error);}finally{setLoadingCounts(false);}},[url,platforms,showShareCounts]);// Fetch share counts on mount and when URL changes\nuseEffect(()=>{if(showShareCounts){fetchShareCounts();}},[fetchShareCounts]);// Format share count for display\nconst formatShareCount=useCallback(count=>{if(count>=1e6){return`${(count/1e6).toFixed(1)}M`;}else if(count>=1e3){return`${(count/1e3).toFixed(1)}K`;}return count.toString();},[]);const platformConfig=useMemo(()=>({twitter:{name:\"Twitter\",color:\"#000000\",icon:twitterIcon===\"bird\"?\"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z\":\"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\",action:()=>{window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(message)}&url=${encodeURIComponent(url)}`,\"_blank\");// Increment local count optimistically\n    if(showShareCounts){startTransition(()=>setShareCounts(prev=>({...prev,twitter:(prev.twitter||0)+1})));}}},linkedin:{name:\"LinkedIn\",color:\"#0077B5\",icon:\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\",action:()=>{window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(url)}`,\"_blank\");if(showShareCounts){startTransition(()=>setShareCounts(prev=>({...prev,linkedin:(prev.linkedin||0)+1})));}}},facebook:{name:\"Facebook\",color:\"#1877F2\",icon:\"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z\",action:()=>{window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`,\"_blank\");if(showShareCounts){startTransition(()=>setShareCounts(prev=>({...prev,facebook:(prev.facebook||0)+1})));}}},whatsapp:{name:\"WhatsApp\",color:\"#25D366\",icon:\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.488\",action:()=>{window.open(`https://wa.me/?text=${encodeURIComponent(message+\" \"+url)}`,\"_blank\");if(showShareCounts){startTransition(()=>setShareCounts(prev=>({...prev,whatsapp:(prev.whatsapp||0)+1})));}}},email:{name:\"Email\",color:\"#EA4335\",icon:\"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-.904.732-1.636 1.636-1.636h.91L12 10.09l9.455-6.269h.909c.904 0 1.636.732 1.636 1.636z\",action:()=>{window.open(`mailto:?subject=${encodeURIComponent(message)}&body=${encodeURIComponent(url)}`,\"_self\");if(showShareCounts){startTransition(()=>setShareCounts(prev=>({...prev,email:(prev.email||0)+1})));}}},copylink:{name:\"Copy Link\",color:\"#6B7280\",icon:\"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z\",action:async()=>{if(typeof navigator!==\"undefined\"&&navigator.clipboard){try{await navigator.clipboard.writeText(url);startTransition(()=>setCopiedState(true));setTimeout(()=>startTransition(()=>setCopiedState(false)),2e3);if(showShareCounts){startTransition(()=>setShareCounts(prev=>({...prev,copylink:(prev.copylink||0)+1})));}}catch(err){console.error(\"Failed to copy: \",err);}}}}}),[url,message,showShareCounts,twitterIcon]);const getButtonStyle=useCallback(platform=>{const config=platformConfig[platform];if(!config)return{};const baseColor=customColors[platform]||config.color;let backgroundColor=baseColor;let iconColor=\"#FFFFFF\";let borderColor=\"transparent\";if(iconStyle===\"monochrome\"){backgroundColor=\"#000000\";iconColor=\"#FFFFFF\";}else if(iconStyle===\"outline\"){backgroundColor=\"transparent\";iconColor=baseColor;borderColor=baseColor;}return{backgroundColor,color:iconColor,border:`2px solid ${borderColor}`,borderRadius:shape===\"circle\"?\"50%\":shape===\"rounded\"?\"12px\":\"0\",width:size,height:size,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",position:\"relative\",boxShadow:showShadows?iconStyle===\"outline\"?\"0 2px 8px rgba(0, 0, 0, 0.08)\":\"0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1)\":\"none\",transition:\"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)\",backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\"};},[iconStyle,shape,size,customColors,platformConfig,showShadows]);const getHoverVariants=useCallback(()=>{switch(hoverEffect){case\"scale\":return{hover:{scale:1.15,rotate:[0,-3,3,0],boxShadow:showShadows?iconStyle===\"outline\"?\"0 12px 35px rgba(0, 0, 0, 0.2)\":\"0 12px 35px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2)\":\"none\",y:-4,transition:{rotate:{duration:.6,ease:\"easeInOut\",times:[0,.3,.7,1]},scale:{type:\"spring\",stiffness:400,damping:15},y:{type:\"spring\",stiffness:500,damping:20}}},tap:{scale:.9,rotate:0,y:0}};case\"glow\":return{hover:{scale:1.05,y:-2,filter:\"brightness(1.1) saturate(1.2)\",transition:{type:\"spring\",stiffness:300,damping:20,filter:{duration:.3}}},tap:{scale:.95,filter:\"brightness(0.9)\"}};case\"slide\":return{hover:{y:-8,x:[0,-2,2,0],scale:1.08,rotate:[0,-1,1,0],boxShadow:showShadows?iconStyle===\"outline\"?\"0 16px 40px rgba(0, 0, 0, 0.25)\":\"0 16px 40px rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.25)\":\"none\",transition:{y:{type:\"spring\",stiffness:400,damping:18},x:{duration:.8,ease:\"easeInOut\",times:[0,.3,.7,1]},rotate:{duration:.8,ease:\"easeInOut\",times:[0,.3,.7,1]},scale:{type:\"spring\",stiffness:350,damping:20}}},tap:{scale:.92,y:-4,x:0,rotate:0}};default:return{hover:{scale:1.02,boxShadow:showShadows?iconStyle===\"outline\"?\"0 8px 25px rgba(0, 0, 0, 0.15)\":\"0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15)\":\"none\",transition:{type:\"spring\",stiffness:400,damping:25}},tap:{scale:.98}};}},[hoverEffect,iconStyle,showShadows]);const handlePlatformClick=useCallback(platform=>{const config=platformConfig[platform];if(config&&config.action){config.action();}},[platformConfig]);const containerStyle=useMemo(()=>({display:\"flex\",gap:`${gap}px`,justifyContent:alignment===\"center\"?\"center\":alignment===\"right\"?\"flex-end\":\"flex-start\",alignItems:\"center\",flexWrap:\"wrap\",position:\"relative\"}),[gap,alignment]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:platforms.map(platform=>{const config=platformConfig[platform];if(!config)return null;const isHovered=hoveredPlatform===platform;const isCopied=platform===\"copylink\"&&copiedState;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[hoverEffect===\"glow\"&&isHovered&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1.2},exit:{opacity:0,scale:.8},transition:{type:\"spring\",stiffness:300,damping:20},style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:size*1.5,height:size*1.5,borderRadius:shape===\"circle\"?\"50%\":shape===\"rounded\"?\"20px\":\"8px\",background:`radial-gradient(circle, ${customColors[platform]||platformConfig[platform]?.color||\"#3B82F6\"}40, ${customColors[platform]||platformConfig[platform]?.color||\"#3B82F6\"}20, transparent)`,filter:\"blur(8px)\",zIndex:-1,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(motion.button,{style:getButtonStyle(platform),variants:getHoverVariants(),whileHover:\"hover\",whileTap:\"tap\",transition:{duration:.1,ease:[.4,0,.2,1]},onClick:()=>handlePlatformClick(platform),onMouseEnter:()=>setHoveredPlatform(platform),onMouseLeave:()=>setHoveredPlatform(null),\"aria-label\":`Share on ${config.name}`,children:/*#__PURE__*/_jsx(\"svg\",{width:size*.5,height:size*.5,viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:config.icon})})}),showTooltips&&isHovered&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:10,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.8},transition:{type:\"spring\",stiffness:500,damping:30,mass:.8},style:{position:\"absolute\",bottom:`${size+8}px`,left:\"0\",backgroundColor:\"rgba(0, 0, 0, 0.9)\",color:\"#FFFFFF\",padding:\"6px 10px\",borderRadius:\"6px\",fontSize:\"11px\",fontWeight:\"500\",whiteSpace:\"nowrap\",boxShadow:\"0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2)\",zIndex:1e3,pointerEvents:\"none\",backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\",border:\"1px solid rgba(255, 255, 255, 0.1)\"},children:[isCopied?\"Copied!\":config.name,/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"100%\",left:\"16px\",width:0,height:0,borderLeft:\"4px solid transparent\",borderRight:\"4px solid transparent\",borderTop:\"4px solid rgba(0, 0, 0, 0.9)\"}})]}),showShareCounts&&shareCounts[platform]!==undefined&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{type:\"spring\",stiffness:400,damping:25,delay:.1},style:{position:\"absolute\",...shareCountPosition===\"top\"&&{bottom:`${size+4}px`,left:\"50%\",transform:\"translateX(-50%)\"},...shareCountPosition===\"bottom\"&&{top:`${size+4}px`,left:\"50%\",transform:\"translateX(-50%)\"},...shareCountPosition===\"right\"&&{left:`${size+8}px`,top:\"50%\",transform:\"translateY(-50%)\"},...shareCountStyle===\"badge\"&&{backgroundColor:\"rgba(0, 0, 0, 0.8)\",color:\"#FFFFFF\",padding:\"4px 8px\",borderRadius:\"12px\",fontSize:\"11px\",fontWeight:\"600\",boxShadow:\"0 2px 8px rgba(0, 0, 0, 0.2)\",border:\"1px solid rgba(255, 255, 255, 0.1)\"},...shareCountStyle===\"text\"&&{color:\"#666666\",fontSize:\"12px\",fontWeight:\"500\",backgroundColor:\"rgba(255, 255, 255, 0.9)\",padding:\"2px 6px\",borderRadius:\"6px\",boxShadow:\"0 1px 3px rgba(0, 0, 0, 0.1)\"},...shareCountStyle===\"minimal\"&&{color:\"#888888\",fontSize:\"10px\",fontWeight:\"400\"},whiteSpace:\"nowrap\",zIndex:999,pointerEvents:\"none\"},children:loadingCounts?\"...\":formatShareCount(shareCounts[platform])})]},platform);})});}addPropertyControls(SocialShareButtons,{url:{type:ControlType.String,title:\"URL\",defaultValue:typeof window!==\"undefined\"?window.location.href:\"https://example.com\",placeholder:\"https://example.com\"},message:{type:ControlType.String,title:\"Message\",defaultValue:\"\",placeholder:\"Check this out!\",displayTextArea:true},platforms:{type:ControlType.Array,title:\"Platforms\",control:{type:ControlType.Enum,options:[\"twitter\",\"linkedin\",\"facebook\",\"whatsapp\",\"email\",\"copylink\"],optionTitles:[\"Twitter\",\"LinkedIn\",\"Facebook\",\"WhatsApp\",\"Email\",\"Copy Link\"]},defaultValue:[\"twitter\",\"linkedin\",\"facebook\",\"whatsapp\",\"email\",\"copylink\"],maxCount:6},twitterIcon:{type:ControlType.Enum,title:\"Twitter Icon\",options:[\"bird\",\"x\"],optionTitles:[\"Bird Logo\",\"X Logo\"],defaultValue:\"bird\",displaySegmentedControl:true,hidden:({platforms})=>!platforms.includes(\"twitter\")},iconStyle:{type:ControlType.Enum,title:\"Icon Style\",options:[\"brand\",\"monochrome\",\"outline\"],optionTitles:[\"Brand\",\"Monochrome\",\"Outline\"],defaultValue:\"brand\",displaySegmentedControl:true},shape:{type:ControlType.Enum,title:\"Shape\",options:[\"circle\",\"rounded\",\"square\"],optionTitles:[\"Circle\",\"Rounded\",\"Square\"],defaultValue:\"circle\",displaySegmentedControl:true},size:{type:ControlType.Number,title:\"Size\",defaultValue:40,min:24,max:80,step:4,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:32,step:2,unit:\"px\"},hoverEffect:{type:ControlType.Enum,title:\"Hover Effect\",options:[\"scale\",\"glow\",\"slide\",\"none\"],optionTitles:[\"Scale\",\"Glow\",\"Slide\",\"None\"],defaultValue:\"scale\",displaySegmentedControl:true},alignment:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true},showShadows:{type:ControlType.Boolean,title:\"Shadows\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},showTooltips:{type:ControlType.Boolean,title:\"Tooltips\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},customColors:{type:ControlType.Object,title:\"Custom Colors\",optional:true,controls:{twitter:{type:ControlType.Color,title:\"Twitter\",defaultValue:\"#1DA1F2\"},linkedin:{type:ControlType.Color,title:\"LinkedIn\",defaultValue:\"#0077B5\"},facebook:{type:ControlType.Color,title:\"Facebook\",defaultValue:\"#1877F2\"},whatsapp:{type:ControlType.Color,title:\"WhatsApp\",defaultValue:\"#25D366\"},email:{type:ControlType.Color,title:\"Email\",defaultValue:\"#EA4335\"},copylink:{type:ControlType.Color,title:\"Copy Link\",defaultValue:\"#6B7280\"}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SocialShareButtons\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SocialShareButtons.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerIntrinsicWidth 600\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicHeight 400\n */export default function Table_of_Content(props){const[headers,setHeaders]=useState([]);const[activeId,setActiveId]=useState(\"\");const[firstHeadingLevel,setFirstHeadingLevel]=useState(null);const ignoreNextScrollEvent=useRef(false);const scrollTimeoutRef=useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const mockHeaders=[{id:\"h1-sample\",text:\"This is h1\",level:1},{id:\"h2-sample-1\",text:\"This is h2\",level:2},{id:\"h3-sample-1\",text:\"This is h3\",level:3},{id:\"h3-sample-2\",text:\"This is h3\",level:3},{id:\"h2-sample-2\",text:\"This is h2\",level:2},{id:\"h4-sample\",text:\"This is h4\",level:4},{id:\"h5-sample\",text:\"This is h5\",level:5},{id:\"h6-sample\",text:\"This is h6\",level:6}];useEffect(()=>{if(isCanvas){setHeaders(mockHeaders);setFirstHeadingLevel(1);setActiveId(\"h2-sample-1\");return;}const sectionElement=document.getElementById(props.section_id)||document.body;const headingElements=Array.from(sectionElement.querySelectorAll(\"h1, h2, h3, h4, h5, h6\"));if(headingElements.length>0&&firstHeadingLevel===null){setFirstHeadingLevel(parseInt(headingElements[0].tagName[1],10));}const mapped=headingElements.map((element,index)=>{if(!element.id){element.id=`header-${index}`;}return{id:element.id,text:element.innerText,level:parseInt(element.tagName[1],10)};});setHeaders(mapped);},[props.section_id,firstHeadingLevel,isCanvas]);useEffect(()=>{if(isCanvas)return;const onScroll=()=>{if(ignoreNextScrollEvent.current){ignoreNextScrollEvent.current=false;return;}let currentSectionId=\"\";headers.filter(header=>props[`showH${header.level}`]!==false).forEach(header=>{const element=document.getElementById(header.id);if(!element)return;const scrollPosition=element.getBoundingClientRect().top+window.scrollY;if(scrollPosition<window.scrollY+props.yOffset+5){currentSectionId=header.id;}});setActiveId(currentSectionId);};window.addEventListener(\"scroll\",onScroll);return()=>window.removeEventListener(\"scroll\",onScroll);},[headers,props.yOffset,props,isCanvas]);useEffect(()=>{return()=>{if(scrollTimeoutRef.current)clearTimeout(scrollTimeoutRef.current);};},[]);const getStyle=header=>{// compute base level from visible headers to avoid negative indentation\nconst visible=headers.filter(h=>props[`showH${h.level}`]!==false);const baseLevel=visible.length>0?Math.min(...visible.map(h=>h.level)):firstHeadingLevel??1;const depth=Math.max(0,header.level-baseLevel)// never negative\n;const indentPx=depth*props.indentation;const headerFont=props[`h${header.level}Font`]||{};return{display:\"block\",boxSizing:\"border-box\",width:\"100%\",maxWidth:\"100%\",// padding instead of margin to keep anchors inside the container box\npaddingLeft:`${indentPx}px`,...headerFont,color:header.id===activeId?props.activeColor:props.fontColor,fontWeight:header.id===activeId?props.activeFontWeight:headerFont.fontWeight||\"normal\",textDecoration:\"none\",marginBottom:`${props.spacing}px`,// overflow guards: wrap instead of spilling\noverflow:\"hidden\",overflowWrap:\"anywhere\",wordBreak:\"break-word\",whiteSpace:\"normal\"};};const handleClick=headerId=>{if(isCanvas)return;ignoreNextScrollEvent.current=true;const element=document.getElementById(headerId);if(element){const y=element.getBoundingClientRect().top+window.pageYOffset-props.yOffset;window.scrollTo({top:y,behavior:\"smooth\"});checkIfScrollFinished(headerId);}};const checkIfScrollFinished=headerId=>{if(scrollTimeoutRef.current){clearTimeout(scrollTimeoutRef.current);}const isScrolled=()=>{const element=document.getElementById(headerId);if(element){const rect=element.getBoundingClientRect();return Math.abs(rect.top-props.yOffset)<=1;}return false;};const checkScroll=()=>{if(isScrolled()){setActiveId(headerId);}else{scrollTimeoutRef.current=setTimeout(()=>{requestAnimationFrame(checkScroll);},10);}};checkScroll();};return /*#__PURE__*/_jsx(\"div\",{style:{overflowX:\"hidden\",width:\"100%\"},children:headers.filter(header=>props[`showH${header.level}`]!==false).map(header=>/*#__PURE__*/_jsx(\"a\",{href:`#${header.id}`,style:getStyle(header),onMouseOver:e=>e.currentTarget.style.color=props.onHoverColor,onMouseOut:e=>{e.currentTarget.style.color=header.id===activeId?props.activeColor:props.fontColor;e.currentTarget.style.fontWeight=header.id===activeId?props.activeFontWeight:props[`h${header.level}Font`]?.fontWeight||\"normal\";},onClick:e=>{e.preventDefault();handleClick(header.id);},children:header.text},header.id))});}Table_of_Content.defaultProps={section_id:\"\",fontColor:\"#000000\",activeColor:\"#FF0000\",onHoverColor:\"#00FF00\",spacing:8,indentation:10,yOffset:0,activeFontWeight:\"bold\"};addPropertyControls(Table_of_Content,{section_id:{type:ControlType.String,title:\"Section ID\"},fontColor:{type:ControlType.Color,title:\"Font Color\"},activeColor:{type:ControlType.Color,title:\"Active Color\"},onHoverColor:{type:ControlType.Color,title:\"On Hover Color\"},spacing:{type:ControlType.Number,title:\"Spacing\"},indentation:{type:ControlType.Number,title:\"Indentation\"},yOffset:{type:ControlType.Number,title:\"Y Offset\",min:0,max:200,step:1},activeFontWeight:{type:ControlType.Enum,title:\"Active Font Weight\",options:[\"normal\",\"bold\",\"bolder\",\"lighter\",\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],defaultValue:\"bold\"},showH1:{type:ControlType.Boolean,title:\"Show H1\",defaultValue:true},showH2:{type:ControlType.Boolean,title:\"Show H2\",defaultValue:true},showH3:{type:ControlType.Boolean,title:\"Show H3\",defaultValue:true},showH4:{type:ControlType.Boolean,title:\"Show H4\",defaultValue:true},showH5:{type:ControlType.Boolean,title:\"Show H5\",defaultValue:true},showH6:{type:ControlType.Boolean,title:\"Show H6\",defaultValue:true},h1Font:{type:ControlType.Font,controls:\"extended\",title:\"H1 Font\"},h2Font:{type:ControlType.Font,controls:\"extended\",title:\"H2 Font\"},h3Font:{type:ControlType.Font,controls:\"extended\",title:\"H3 Font\"},h4Font:{type:ControlType.Font,controls:\"extended\",title:\"H4 Font\"},h5Font:{type:ControlType.Font,controls:\"extended\",title:\"H5 Font\"},h6Font:{type:ControlType.Font,controls:\"extended\",title:\"H6 Font\",description:\"Preview to see it in effect \\n\\nv1.8 \\n[via SegmentUI](https://www.segmentUI.com)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Table_of_Content\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerIntrinsicHeight\":\"400\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableOfContent.map"],"mappings":"kSAMG,SAAwB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