{"version":3,"file":"TableOfContent.BN2sAw5P.mjs","names":["Divider","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useStore","useState","useState","_Fragment","children"],"sources":["https:/framerusercontent.com/modules/pvuB6a0NVUjheteO6bQp/Y7xxYW8yeLJ2pvN8FYtL/aZtQkT3JC.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/bAXFms7pXBn2UTvQynB4/FGGjK3K8COG5bFTqGhci/TableOfContent.js"],"sourcesContent":["// Generated by Framer (d19865c)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getFontsFromSharedStyle,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}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/jKn7ILetUEO5UvMbMkWe/CzJaUtXOxSrjYaPrivBZ/mw9RerFv3.js\";import Divider from\"https://framerusercontent.com/modules/E1VPP7cg4IGNcj0Xfyqt/V0p98WMFJuQ5r4TFR7ll/nyeUPYJTK.js\";const DividerFonts=getFonts(Divider);const enabledGestures={iqzkajSjj:{hover:true},TannSjhOi:{hover:true}};const cycleOrder=[\"TannSjhOi\",\"iqzkajSjj\",\"jCsw29XOO\",\"eIb3XfOL8\"];const serializationHash=\"framer-B1nSO\";const variantClassNames={eIb3XfOL8:\"framer-v-q525sl\",iqzkajSjj:\"framer-v-1gg5zzg\",jCsw29XOO:\"framer-v-surmxe\",TannSjhOi:\"framer-v-1wx9efi\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};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 humanReadableVariantMap={\"h2-active\":\"jCsw29XOO\",\"h3-active\":\"eIb3XfOL8\",h2:\"TannSjhOi\",h3:\"iqzkajSjj\"};const getProps=({height,id,title,width,...props})=>{return{...props,TH5RA_D7E:title??props.TH5RA_D7E??\"Title\",variant:humanReadableVariantMap[props.variant]??props.variant??\"TannSjhOi\"};};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,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,TH5RA_D7E,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"TannSjhOi\",enabledGestures,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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1wx9efi\",className,classNames),\"data-border\":true,\"data-framer-name\":\"h2\",layoutDependency:layoutDependency,layoutId:\"TannSjhOi\",ref:refBinding,style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"var(--token-00e08d19-4310-43be-947f-9120cc588e24, rgb(233, 234, 235))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0px\",...style},variants:{eIb3XfOL8:{\"--border-color\":\"var(--token-a9a830b0-f886-4db4-8b4b-55164699d5da, rgb(46, 144, 250))\"},jCsw29XOO:{\"--border-color\":\"var(--token-a9a830b0-f886-4db4-8b4b-55164699d5da, rgb(46, 144, 250))\"}},...addPropertyOverrides({\"iqzkajSjj-hover\":{\"data-framer-name\":undefined},\"TannSjhOi-hover\":{\"data-framer-name\":undefined},eIb3XfOL8:{\"data-framer-name\":\"h3-active\"},iqzkajSjj:{\"data-framer-name\":\"h3\"},jCsw29XOO:{\"data-framer-name\":\"h2-active\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{height:((componentViewport?.height||24)-0)*1,width:\"1px\",y:(componentViewport?.y||0)+(0+((componentViewport?.height||24)-0-((componentViewport?.height||24)-0)*1)/2),...addPropertyOverrides({eIb3XfOL8:{width:undefined},jCsw29XOO:{width:undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-aeuod1-container\",layoutDependency:layoutDependency,layoutId:\"h_q7Neaxb-container\",nodeId:\"h_q7Neaxb\",rendersWithMotion:true,scopeId:\"aZtQkT3JC\",children:/*#__PURE__*/_jsx(Divider,{height:\"100%\",id:\"h_q7Neaxb\",layoutId:\"h_q7Neaxb\",qHp8RuJFN:\"var(--token-d5e38cdd-d55f-4dfe-ad82-d38566e051cd, rgb(233, 234, 235))\",style:{height:\"100%\",width:\"100%\"},variant:\"yQkeNe8Cf\",width:\"100%\",...addPropertyOverrides({eIb3XfOL8:{qHp8RuJFN:\"var(--token-688626e8-9b44-474f-8c38-3d0c49c75ea3, rgb(46, 144, 250))\",style:{height:\"100%\"}},jCsw29XOO:{qHp8RuJFN:\"var(--token-688626e8-9b44-474f-8c38-3d0c49c75ea3, rgb(46, 144, 250))\",style:{height:\"100%\"}}},baseVariant,gestureVariant)})})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-l8clqg\",layoutDependency:layoutDependency,layoutId:\"w0NyuxE0S\",children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-195ajv1\",\"data-styles-preset\":\"mw9RerFv3\",children:\"Title\"})}),className:\"framer-9l9xb7\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"BsIluRLi9\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:TH5RA_D7E,variants:{\"iqzkajSjj-hover\":{\"--extracted-r6o4lv\":\"var(--token-274aecaf-2975-4f61-a6de-9b99352b7c98, rgb(0, 0, 0))\"},\"TannSjhOi-hover\":{\"--extracted-r6o4lv\":\"var(--token-274aecaf-2975-4f61-a6de-9b99352b7c98, rgb(0, 0, 0))\"},eIb3XfOL8:{\"--extracted-r6o4lv\":\"var(--token-049df02d-7a68-4fe3-803b-616cf2c8a1ec, rgb(46, 144, 250))\"},jCsw29XOO:{\"--extracted-r6o4lv\":\"var(--token-049df02d-7a68-4fe3-803b-616cf2c8a1ec, rgb(46, 144, 250))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({\"iqzkajSjj-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-195ajv1\",\"data-styles-preset\":\"mw9RerFv3\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-274aecaf-2975-4f61-a6de-9b99352b7c98, rgb(0, 0, 0)))\"},children:\"Title\"})})},\"TannSjhOi-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-195ajv1\",\"data-styles-preset\":\"mw9RerFv3\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-274aecaf-2975-4f61-a6de-9b99352b7c98, rgb(0, 0, 0)))\"},children:\"Title\"})})},eIb3XfOL8:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-195ajv1\",\"data-styles-preset\":\"mw9RerFv3\",style:{\"--framer-text-alignment\":\"start\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-049df02d-7a68-4fe3-803b-616cf2c8a1ec, rgb(46, 144, 250)))\"},children:\"Title\"})})},jCsw29XOO:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-195ajv1\",\"data-styles-preset\":\"mw9RerFv3\",style:{\"--framer-text-alignment\":\"start\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-049df02d-7a68-4fe3-803b-616cf2c8a1ec, rgb(46, 144, 250)))\"},children:\"Title\"})})}},baseVariant,gestureVariant)})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-B1nSO.framer-1dqzcsp, .framer-B1nSO .framer-1dqzcsp { display: block; }\",\".framer-B1nSO.framer-1wx9efi { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; height: min-content; justify-content: flex-start; overflow: visible; padding: 0px; position: relative; width: 43px; }\",\".framer-B1nSO .framer-aeuod1-container { align-self: stretch; flex: none; height: auto; position: relative; width: 1px; z-index: 1; }\",\".framer-B1nSO .framer-l8clqg { align-content: center; align-items: center; display: flex; flex: 1 0 0px; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 2px 0px 2px 0px; position: relative; width: 1px; }\",\".framer-B1nSO .framer-9l9xb7 { -webkit-user-select: none; flex: 1 0 0px; height: auto; position: relative; user-select: none; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\",\".framer-B1nSO.framer-v-1gg5zzg.framer-1wx9efi { gap: 28px; width: 65px; }\",\".framer-B1nSO.framer-v-surmxe.framer-1wx9efi { cursor: unset; }\",\".framer-B1nSO.framer-v-surmxe .framer-aeuod1-container, .framer-B1nSO.framer-v-q525sl .framer-aeuod1-container { width: auto; }\",\".framer-B1nSO.framer-v-q525sl.framer-1wx9efi { cursor: unset; gap: 28px; width: 65px; }\",...sharedStyle.css,'.framer-B1nSO[data-border=\"true\"]::after, .framer-B1nSO [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; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 24\n * @framerIntrinsicWidth 43\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"iqzkajSjj\":{\"layout\":[\"fixed\",\"auto\"]},\"jCsw29XOO\":{\"layout\":[\"fixed\",\"auto\"]},\"eIb3XfOL8\":{\"layout\":[\"fixed\",\"auto\"]},\"Y0yO9OSCo\":{\"layout\":[\"fixed\",\"auto\"]},\"Dzc_6kQUe\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"TH5RA_D7E\":\"title\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FrameraZtQkT3JC=withCSS(Component,css,\"framer-B1nSO\");export default FrameraZtQkT3JC;FrameraZtQkT3JC.displayName=\"TableOfContent Item\";FrameraZtQkT3JC.defaultProps={height:24,width:43};addPropertyControls(FrameraZtQkT3JC,{variant:{options:[\"TannSjhOi\",\"iqzkajSjj\",\"jCsw29XOO\",\"eIb3XfOL8\"],optionTitles:[\"h2\",\"h3\",\"h2-active\",\"h3-active\"],title:\"Variant\",type:ControlType.Enum},TH5RA_D7E:{defaultValue:\"Title\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FrameraZtQkT3JC,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",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\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",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\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/vQyevYAyHtARFwPqUzQGpnDs.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",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\"}]},...DividerFonts,...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameraZtQkT3JC\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"TH5RA_D7E\\\":\\\"title\\\"}\",\"framerImmutableVariables\":\"true\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"43\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"24\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"iqzkajSjj\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"jCsw29XOO\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"eIb3XfOL8\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"Y0yO9OSCo\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"Dzc_6kQUe\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./aZtQkT3JC.map","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","/**\n * Table of Contents Overrides v1.0.0\n * Made with ❤️ by ekayy.com\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{createElement as _createElement}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useEffect,useState}from\"react\";const HEADING_TO_DISPLAY=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"];const SCROLL_MARGIN_TOP=80;const useStore=createStore({headings:[]});export function withTableOfContent(Component){return props=>{const[store]=useStore();const[activeSection,setActiveSection]=useState(\"\");const scrollToId=id=>{const element=document.getElementById(id);if(element){element.scrollIntoView({behavior:\"smooth\"});}};useEffect(()=>{const handleScroll=()=>{const midpoint=window.innerHeight/2;let matched=false;for(const heading of store.headings){const el=document.getElementById(heading.id);if(!el)continue;const rect=el.getBoundingClientRect();if(rect.top<=midpoint){setActiveSection(heading.id);matched=true;}else{break;}}if(!matched&&store.headings.length>0){setActiveSection(store.headings[0].id);}};handleScroll()// ✅ ensure correct on load\n;window.addEventListener(\"scroll\",handleScroll);window.addEventListener(\"resize\",handleScroll);return()=>{window.removeEventListener(\"scroll\",handleScroll);window.removeEventListener(\"resize\",handleScroll);};},[store.headings]);return /*#__PURE__*/_jsx(_Fragment,{children:store.headings.length>0&&typeof window!==\"undefined\"?store.headings.sort((a,b)=>a.originalIndex-b.originalIndex).filter(({type})=>HEADING_TO_DISPLAY.includes(type)).map(({id,heading,type})=>/*#__PURE__*/_createElement(Component,{...props,variant:activeSection===id?`${type}-active`:type,title:heading,onClick:()=>scrollToId(id),key:id})):/*#__PURE__*/_jsx(Component,{...props})});};}export function withContent(Component){return props=>{const[store,setStore]=useStore();const[newProps,setNewProps]=useState(props);useEffect(()=>{const updatedHeadings=formatTableOfContent(newProps.children.props.children);setStore({headings:updatedHeadings});},[newProps]);useEffect(()=>{const formatHeadings=()=>{const newChildren=[];const children=props.children.props.children;if(!Array.isArray(children))return props;children.forEach((item,index)=>{const childrenContent=item.props.children;if(HEADING_TO_DISPLAY.includes(item.type)){const{formattedId}=formatHeading(childrenContent,index);newChildren.push({...item,props:{...item.props,id:formattedId}});}else{newChildren.push(item);}});return{...props,children:{...props.children,props:{...props.children.props,children:newChildren}}};};setNewProps(formatHeadings());},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.framer-text { scroll-margin-top: ${SCROLL_MARGIN_TOP}px; }`}),/*#__PURE__*/_jsx(Component,{...newProps})]});};}function formatTableOfContent(children){const result=[];if(!Array.isArray(children))return result;children.filter(({type})=>HEADING_TO_DISPLAY.includes(type)).forEach((item,index)=>{const children=item.props.children;const{formattedId,formattedHeading}=formatHeading(children,index);result.push({id:formattedId,heading:formattedHeading,type:item.type,originalIndex:index});});return result;}function formatHeading(children,index){let formattedHeading=\"\";let formattedId=\"\";if(typeof children===\"string\"){formattedHeading=children;}else if(Array.isArray(children)){formattedHeading=children.map(item=>{if(typeof item===\"string\")return item.trim();if(item?.type===\"br\")return\"\";return typeof item?.props?.children===\"string\"?item.props.children.trim():\"\";}).join(\" \");}else if(typeof children===\"object\"){if(typeof children?.props?.children===\"string\"){formattedHeading=children.props.children;}}else{formattedHeading=`heading-${index}`;}formattedId=formattedHeading.trim().toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-+|-+$/g,\"\");return{formattedId,formattedHeading};}\nexport const __FramerMetadata__ = {\"exports\":{\"withContent\":{\"type\":\"reactHoc\",\"name\":\"withContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTableOfContent\":{\"type\":\"reactHoc\",\"name\":\"withTableOfContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableOfContent.map"],"mappings":"4kBAC09B,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,gDAAzkC,IAA6N,IAAkE,IAA4B,IAAmJ,KAAkH,CAAM,EAAa,GAASA,EAAQ,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,UA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