{"version":3,"file":"TableOfContent.Clt2PcbE.mjs","names":["css","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","sharedStyle.css","sharedStyle.fonts","children","Component","_Fragment","useState"],"sources":["https:/framerusercontent.com/modules/aOWzwzMzBIssezDD8uY5/mCCLe5GlAniIeL8b8OjT/f_0pfywoI.js","https:/framerusercontent.com/modules/tGfgzc80KKPB0pB4yzFN/oywkNZktkcq8k8tY2Wsw/Ze7yu0Unh.js","https:/framer.com/m/Utils-WIyM.js","https:/framerusercontent.com/modules/qVnULOF1GqpWx0zUBV10/klFWXwiAYxUAuwp0n3AR/TableOfContent.js"],"sourcesContent":["// Generated by Framer (8ebf084)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-j8RMN .framer-styles-preset-38yfyg:not(.rich-text-wrapper), .framer-j8RMN .framer-styles-preset-38yfyg.rich-text-wrapper a { --framer-link-current-text-color: var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, #ffb600); --framer-link-current-text-decoration: none; --framer-link-hover-text-color: var(--token-a65a8c6f-782a-4c75-a043-8ec8888e8ce8, #6a6a6a); --framer-link-hover-text-decoration: none; --framer-link-text-color: var(--token-aa81234f-9e14-4966-9c50-284ed3584daf, #2f2f2f); --framer-link-text-decoration: none; }\"];export const className=\"framer-j8RMN\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (349ae9e)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,Link,RichText,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/aOWzwzMzBIssezDD8uY5/mCCLe5GlAniIeL8b8OjT/f_0pfywoI.js\";const enabledGestures={EgT_va_Ii:{hover:true}};const cycleOrder=[\"EgT_va_Ii\",\"zu13Ji9QQ\",\"zUpxj3Fpt\",\"hpdb74_1Q\",\"PFbh0GRT_\",\"JqVnxu99u\"];const serializationHash=\"framer-s15ro\";const variantClassNames={EgT_va_Ii:\"framer-v-1mbqxvm\",hpdb74_1Q:\"framer-v-1h61in3\",JqVnxu99u:\"framer-v-uvgav\",PFbh0GRT_:\"framer-v-1bcy49i\",zu13Ji9QQ:\"framer-v-1xbz7ki\",zUpxj3Fpt:\"framer-v-1s29qx5\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,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\":\"zu13Ji9QQ\",\"h3-active\":\"hpdb74_1Q\",\"h4-active\":\"JqVnxu99u\",h2:\"EgT_va_Ii\",h3:\"zUpxj3Fpt\",h4:\"PFbh0GRT_\"};const getProps=({height,id,link,title,width,...props})=>{return{...props,Lh1a_0hdC:link??props.Lh1a_0hdC,PTfddk0LO:title??props.PTfddk0LO??\"Title\",variant:humanReadableVariantMap[props.variant]??props.variant??\"EgT_va_Ii\"};};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,PTfddk0LO,Lh1a_0hdC,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"EgT_va_Ii\",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__*/_jsx(motion.aside,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1mbqxvm\",className,classNames),\"data-framer-name\":\"h2\",layoutDependency:layoutDependency,layoutId:\"EgT_va_Ii\",ref:refBinding,style:{backgroundColor:\"rgba(0, 0, 0, 0)\",...style},variants:{\"EgT_va_Ii-hover\":{backgroundColor:\"rgba(255, 255, 255, 0.3)\"},hpdb74_1Q:{backgroundColor:\"rgba(0, 0, 0, 0)\"},JqVnxu99u:{backgroundColor:\"rgba(0, 0, 0, 0)\"},PFbh0GRT_:{backgroundColor:\"rgba(0, 0, 0, 0)\"},zu13Ji9QQ:{backgroundColor:\"rgba(255, 255, 255, 0.6)\"},zUpxj3Fpt:{backgroundColor:\"rgba(0, 0, 0, 0)\"}},...addPropertyOverrides({\"EgT_va_Ii-hover\":{\"data-framer-name\":undefined},hpdb74_1Q:{\"data-framer-name\":\"h3-active\"},JqVnxu99u:{\"data-framer-name\":\"h4-active\"},PFbh0GRT_:{\"data-framer-name\":\"h4\"},zu13Ji9QQ:{\"data-framer-name\":\"h2-active\"},zUpxj3Fpt:{\"data-framer-name\":\"h3\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7U291cmNlIFNhbnMgMy01MDA=\",\"--framer-font-family\":'\"Source Sans 3\", \"Source Sans 3 Placeholder\", sans-serif',\"--framer-font-weight\":\"500\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-aa81234f-9e14-4966-9c50-284ed3584daf, rgb(47, 47, 47)))\"},children:/*#__PURE__*/_jsx(Link,{href:Lh1a_0hdC,motionChild:true,nodeId:\"zvw7avRg0\",openInNewTab:false,relValues:[],scopeId:\"Ze7yu0Unh\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-38yfyg\",\"data-styles-preset\":\"f_0pfywoI\",children:\"Title\"})})})}),className:\"framer-uzb3yr\",fonts:[\"GF;Source Sans 3-500\"],layoutDependency:layoutDependency,layoutId:\"zvw7avRg0\",style:{\"--extracted-r6o4lv\":\"var(--token-aa81234f-9e14-4966-9c50-284ed3584daf, rgb(47, 47, 47))\"},text:PTfddk0LO,variants:{hpdb74_1Q:{\"--extracted-r6o4lv\":\"var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, rgb(255, 182, 0))\"},JqVnxu99u:{\"--extracted-r6o4lv\":\"var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, rgb(255, 182, 0))\"},PFbh0GRT_:{\"--extracted-r6o4lv\":\"var(--token-a65a8c6f-782a-4c75-a043-8ec8888e8ce8, rgb(106, 106, 106))\"},zu13Ji9QQ:{\"--extracted-r6o4lv\":\"var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, rgb(255, 182, 0))\"},zUpxj3Fpt:{\"--extracted-r6o4lv\":\"var(--token-a65a8c6f-782a-4c75-a043-8ec8888e8ce8, rgb(106, 106, 106))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({hpdb74_1Q:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7U291cmNlIFNhbnMgMy01MDA=\",\"--framer-font-family\":'\"Source Sans 3\", \"Source Sans 3 Placeholder\", sans-serif',\"--framer-font-weight\":\"500\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, rgb(255, 182, 0)))\"},children:/*#__PURE__*/_jsx(Link,{href:Lh1a_0hdC,motionChild:true,nodeId:\"zvw7avRg0\",openInNewTab:false,relValues:[],scopeId:\"Ze7yu0Unh\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-38yfyg\",\"data-styles-preset\":\"f_0pfywoI\",children:\"Title\"})})})})},JqVnxu99u:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7U291cmNlIFNhbnMgMy01MDA=\",\"--framer-font-family\":'\"Source Sans 3\", \"Source Sans 3 Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"500\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, rgb(255, 182, 0)))\"},children:/*#__PURE__*/_jsx(Link,{href:Lh1a_0hdC,motionChild:true,nodeId:\"zvw7avRg0\",openInNewTab:false,relValues:[],scopeId:\"Ze7yu0Unh\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-38yfyg\",\"data-styles-preset\":\"f_0pfywoI\",children:\"Title\"})})})})},PFbh0GRT_:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7U291cmNlIFNhbnMgMy1yZWd1bGFy\",\"--framer-font-family\":'\"Source Sans 3\", \"Source Sans 3 Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-a65a8c6f-782a-4c75-a043-8ec8888e8ce8, rgb(106, 106, 106)))\"},children:/*#__PURE__*/_jsx(Link,{href:Lh1a_0hdC,motionChild:true,nodeId:\"zvw7avRg0\",openInNewTab:false,relValues:[],scopeId:\"Ze7yu0Unh\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-38yfyg\",\"data-styles-preset\":\"f_0pfywoI\",children:\"Title\"})})})}),fonts:[\"GF;Source Sans 3-regular\"]},zu13Ji9QQ:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7U291cmNlIFNhbnMgMy01MDA=\",\"--framer-font-family\":'\"Source Sans 3\", \"Source Sans 3 Placeholder\", sans-serif',\"--framer-font-weight\":\"500\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-2a8677cb-d6da-4960-bfb6-a90246c599c4, rgb(255, 182, 0)))\"},children:/*#__PURE__*/_jsx(Link,{href:Lh1a_0hdC,motionChild:true,nodeId:\"zvw7avRg0\",openInNewTab:false,relValues:[],scopeId:\"Ze7yu0Unh\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-38yfyg\",\"data-styles-preset\":\"f_0pfywoI\",children:\"Title\"})})})})},zUpxj3Fpt:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7U291cmNlIFNhbnMgMy1yZWd1bGFy\",\"--framer-font-family\":'\"Source Sans 3\", \"Source Sans 3 Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-a65a8c6f-782a-4c75-a043-8ec8888e8ce8, rgb(106, 106, 106)))\"},children:/*#__PURE__*/_jsx(Link,{href:Lh1a_0hdC,motionChild:true,nodeId:\"zvw7avRg0\",openInNewTab:false,relValues:[],scopeId:\"Ze7yu0Unh\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-38yfyg\",\"data-styles-preset\":\"f_0pfywoI\",children:\"Title\"})})})}),fonts:[\"GF;Source Sans 3-regular\"]}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-s15ro.framer-c2p0sr, .framer-s15ro .framer-c2p0sr { display: block; }\",\".framer-s15ro.framer-1mbqxvm { align-content: flex-start; align-items: flex-start; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 46px; height: min-content; justify-content: flex-start; overflow: hidden; padding: 5px 0px 5px 10px; position: relative; width: 240px; }\",\".framer-s15ro .framer-uzb3yr { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\",\".framer-s15ro.framer-v-1xbz7ki.framer-1mbqxvm { cursor: unset; }\",\".framer-s15ro.framer-v-1s29qx5.framer-1mbqxvm, .framer-s15ro.framer-v-1h61in3.framer-1mbqxvm { cursor: unset; padding: 5px 0px 5px 30px; }\",\".framer-s15ro.framer-v-1bcy49i.framer-1mbqxvm, .framer-s15ro.framer-v-uvgav.framer-1mbqxvm { cursor: unset; padding: 5px 0px 5px 40px; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 29\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"zu13Ji9QQ\":{\"layout\":[\"fixed\",\"auto\"]},\"zUpxj3Fpt\":{\"layout\":[\"fixed\",\"auto\"]},\"hpdb74_1Q\":{\"layout\":[\"fixed\",\"auto\"]},\"PFbh0GRT_\":{\"layout\":[\"fixed\",\"auto\"]},\"JqVnxu99u\":{\"layout\":[\"fixed\",\"auto\"]},\"cRbuBOBxx\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"PTfddk0LO\":\"title\",\"Lh1a_0hdC\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerZe7yu0Unh=withCSS(Component,css,\"framer-s15ro\");export default FramerZe7yu0Unh;FramerZe7yu0Unh.displayName=\"Table of content\";FramerZe7yu0Unh.defaultProps={height:29,width:240};addPropertyControls(FramerZe7yu0Unh,{variant:{options:[\"EgT_va_Ii\",\"zu13Ji9QQ\",\"zUpxj3Fpt\",\"hpdb74_1Q\",\"PFbh0GRT_\",\"JqVnxu99u\"],optionTitles:[\"h2\",\"h2-active\",\"h3\",\"h3-active\",\"h4\",\"h4-active\"],title:\"Variant\",type:ControlType.Enum},PTfddk0LO:{defaultValue:\"Title\",displayTextArea:false,title:\"Title\",type:ControlType.String},Lh1a_0hdC:{title:\"Link\",type:ControlType.Link}});addFonts(FramerZe7yu0Unh,[{explicitInter:true,fonts:[{family:\"Source Sans 3\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/sourcesans3/v18/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8KyK61EI_io6npfB.woff2\",weight:\"500\"},{family:\"Source Sans 3\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/sourcesans3/v18/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Ky461EI_io6npfB.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerZe7yu0Unh\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"PTfddk0LO\\\":\\\"title\\\",\\\"Lh1a_0hdC\\\":\\\"link\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"240\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"zu13Ji9QQ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"zUpxj3Fpt\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"hpdb74_1Q\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"PFbh0GRT_\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"JqVnxu99u\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"cRbuBOBxx\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"29\",\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ze7yu0Unh.map","export const HEADINGS=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"];const formatHeading=(children,index)=>{let formattedHeading=\"\";let formattedId=\"\";if(typeof children===\"string\"){formattedHeading=children;}else if(Array.isArray(children)){formattedHeading=children.map(item=>{var _item_props;if(typeof item===\"string\")return item.trim();if(typeof((_item_props=item.props)===null||_item_props===void 0?void 0:_item_props.children)===\"string\")return item.props.children.trim();}).join(\" \");}else if(typeof children===\"object\"){if(typeof children.props.children===\"string\"){formattedHeading=children.props.children;}else{formattedHeading=children.type;}}else{formattedHeading=index.toString();}formattedId=formattedHeading.toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-+|-+$/g,\"\").trim();return{formattedId,formattedHeading};};export const formatTableOfContent=children=>{const result=[];children.length>0&&children.filter(({type})=>HEADINGS.includes(type)).map((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;};export const formatHeadings=props=>{const newChildren=[];props.children.props.children.forEach((item,index)=>{const children=item.props.children;if(HEADINGS.includes(item.type)){const{formattedId}=formatHeading(children,index);// Create a new object for the modified item\nconst newItem={...item,props:{...item.props,id:formattedId}};newChildren.push(newItem);}else{newChildren.push(item);}});// Return a new props object with the modified children\nreturn{...props,children:{...props.children,props:{...props.children.props,children:newChildren}}};};\nexport const __FramerMetadata__ = {\"exports\":{\"formatTableOfContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HEADINGS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatHeadings\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utils.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useEffect,useState}from\"react\";import{formatHeadings,formatTableOfContent}from\"https://framer.com/m/Utils-WIyM.js\";// Full tutorial: https://framermart.com/tutorial/how-to-create-table-of-contents-cms-collections-framer\nconst HEADING_TO_DISPLAY=[\"h2\",\"h3\",\"h4\"];const SCROLL_MARGIN_TOP=62;const useStore=createStore({headings:[]});function scrollToId(id){const element=document.getElementById(id);if(element){const yOffset=-SCROLL_MARGIN_TOP;const y=element.getBoundingClientRect().top+window.pageYOffset+yOffset;window.scrollTo({top:y,behavior:\"smooth\"});}}export function withTableOfContent(Component){return props=>{const[store]=useStore();const headingsToDisplay=store.headings.sort((a,b)=>a.originalIndex-b.originalIndex).filter(({type})=>HEADING_TO_DISPLAY.includes(type));if(headingsToDisplay.length===0){return /*#__PURE__*/_jsx(Component,{...props});}return /*#__PURE__*/_jsx(_Fragment,{children:headingsToDisplay.map(({id,heading,type},index)=>/*#__PURE__*/_jsx(Component,{...props,variant:type,title:heading,onClick:e=>{e.preventDefault();scrollToId(id);}},id))});};}export function withContent(Component){return props=>{const[store,setStore]=useStore();const[newProps,setNewProps]=useState(props);useEffect(()=>{setStore({headings:formatTableOfContent(newProps.children?.props?.children)});},[newProps]);useEffect(()=>{setNewProps(formatHeadings(props));},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.framer-text {\n                    scroll-margin-top: ${SCROLL_MARGIN_TOP}px;\n                }`}),/*#__PURE__*/_jsx(Component,{...newProps})]});};}\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":"6wBAC8B,GAAU,UAAU,EAAE,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,CAAcA,EAAI,CAAC,shBAAshB,CAAc,EAAU,iECA2I,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,kDAAj7B,IAAiK,IAAkE,IAA4B,IAAmJ,CAAM,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,iBAAiB,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,m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