{"version":3,"file":"TableofContent.BWWeAWMA.mjs","names":["Divider","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useState","_Fragment","children"],"sources":["https:/framerusercontent.com/modules/qCFj22xw9vSR6agFUE4V/EoozDxAOGR0IU0GIJlJy/cE9XUA5bg.js","https:/framerusercontent.com/modules/eKREl681dRXJ2ubaTT5I/2Jiy3rqbfx9kk3bxJEDe/TableofContent.js"],"sourcesContent":["// Generated by Framer (6bbae76)\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 Divider from\"https://framerusercontent.com/modules/OM27WOv367SbUZ68E3kx/CXWtctHxq45QWJMcg5JG/Hl_0fPdml.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/zSxZSVoHISnNZJX373P7/yETZQbWGpbNNMBq9RXKq/SC87df8Oe.js\";const DividerFonts=getFonts(Divider);const enabledGestures={c9y6M5yig:{hover:true},ELBc43mIg:{hover:true},S9ifulKxq:{hover:true}};const cycleOrder=[\"ELBc43mIg\",\"c9y6M5yig\",\"SP7vVQ3eQ\",\"eSg3kkBFG\",\"S9ifulKxq\",\"qi5nk8p8h\"];const serializationHash=\"framer-PLuSY\";const variantClassNames={c9y6M5yig:\"framer-v-cmwdt4\",ELBc43mIg:\"framer-v-1261h0q\",eSg3kkBFG:\"framer-v-goedp8\",qi5nk8p8h:\"framer-v-siabn8\",S9ifulKxq:\"framer-v-1s2la6p\",SP7vVQ3eQ:\"framer-v-8lcg3u\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const TH5RA_D7E=undefined;const transition1={duration:0,type:\"tween\"};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\":\"SP7vVQ3eQ\",\"h3-active\":\"eSg3kkBFG\",\"h4-active\":\"qi5nk8p8h\",h2:\"ELBc43mIg\",h3:\"c9y6M5yig\",h4:\"S9ifulKxq\"};const getProps=({height,id,title,width,...props})=>{return{...props,TH5RA_D7E:title??props.TH5RA_D7E??\"Title\",variant:humanReadableVariantMap[props.variant]??props.variant??\"ELBc43mIg\"};};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:\"ELBc43mIg\",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-1261h0q\",className,classNames),\"data-border\":true,\"data-framer-name\":\"h2\",layoutDependency:layoutDependency,layoutId:\"ELBc43mIg\",ref:refBinding,style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"rgb(233, 234, 235)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0px\",...style},variants:{\"S9ifulKxq-hover\":{\"--border-color\":\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},eSg3kkBFG:{\"--border-color\":\"var(--token-d0797ccd-0230-49ca-808a-fddb74c13713, rgb(31, 126, 173))\"},qi5nk8p8h:{\"--border-color\":\"var(--token-d0797ccd-0230-49ca-808a-fddb74c13713, rgb(31, 126, 173))\"}},...addPropertyOverrides({\"c9y6M5yig-hover\":{\"data-framer-name\":undefined},\"ELBc43mIg-hover\":{\"data-framer-name\":undefined},\"S9ifulKxq-hover\":{\"data-framer-name\":undefined},c9y6M5yig:{\"data-framer-name\":\"h3\"},eSg3kkBFG:{\"data-framer-name\":\"h3-active\"},qi5nk8p8h:{\"data-framer-name\":\"h4-active\"},S9ifulKxq:{\"data-framer-name\":\"h4\"},SP7vVQ3eQ:{\"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({eSg3kkBFG:{width:undefined},qi5nk8p8h:{width:undefined},SP7vVQ3eQ:{width:undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1rierhx-container\",isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"ul7SNan1q-container\",nodeId:\"ul7SNan1q\",rendersWithMotion:true,scopeId:\"cE9XUA5bg\",children:/*#__PURE__*/_jsx(Divider,{height:\"100%\",id:\"ul7SNan1q\",layoutId:\"ul7SNan1q\",qHp8RuJFN:\"var(--token-a70a0d11-3e46-4185-af7a-f4ccb0462d3f, rgb(251, 211, 169))\",style:{height:\"100%\",width:\"100%\"},variant:\"hZfzfTElZ\",width:\"100%\",...addPropertyOverrides({\"c9y6M5yig-hover\":{qHp8RuJFN:\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},\"ELBc43mIg-hover\":{qHp8RuJFN:\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},\"S9ifulKxq-hover\":{qHp8RuJFN:\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},eSg3kkBFG:{qHp8RuJFN:\"var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47))\",style:{height:\"100%\"}},qi5nk8p8h:{qHp8RuJFN:\"var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47))\",style:{height:\"100%\"}},SP7vVQ3eQ:{qHp8RuJFN:\"var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47))\",style:{height:\"100%\"}}},baseVariant,gestureVariant)})})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1oxbbxb\",layoutDependency:layoutDependency,layoutId:\"kljOpAJTl\",children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",children:\"Title\"})}),className:\"framer-it0yt9\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"ISfvV_Py_\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:TH5RA_D7E,variants:{\"c9y6M5yig-hover\":{\"--extracted-r6o4lv\":\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},\"ELBc43mIg-hover\":{\"--extracted-r6o4lv\":\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},\"S9ifulKxq-hover\":{\"--extracted-r6o4lv\":\"var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7))\"},eSg3kkBFG:{\"--extracted-r6o4lv\":\"var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47))\"},qi5nk8p8h:{\"--extracted-r6o4lv\":\"var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47))\"},SP7vVQ3eQ:{\"--extracted-r6o4lv\":\"var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({\"c9y6M5yig-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7)))\"},children:\"Title\"})})},\"ELBc43mIg-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7)))\"},children:\"Title\"})})},\"S9ifulKxq-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-09b020e9-e03b-4860-ab30-72923e382fe2, rgb(92, 44, 7)))\"},children:\"Title\"})})},eSg3kkBFG:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47)))\"},children:\"Title\"})})},qi5nk8p8h:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47)))\"},children:\"Title\"})})},SP7vVQ3eQ:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-y6icmv\",\"data-styles-preset\":\"SC87df8Oe\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-79301434-ca9a-4548-b5f5-8bbf0b9ee451, rgb(219, 127, 47)))\"},children:\"Title\"})})}},baseVariant,gestureVariant)})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-PLuSY.framer-hi2ov7, .framer-PLuSY .framer-hi2ov7 { display: block; }\",\".framer-PLuSY.framer-1261h0q { 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-PLuSY .framer-1rierhx-container { align-self: stretch; flex: none; height: auto; position: relative; width: 1px; z-index: 1; }\",\".framer-PLuSY .framer-1oxbbxb { 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-PLuSY .framer-it0yt9 { -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-PLuSY.framer-v-cmwdt4.framer-1261h0q { gap: 28px; width: 65px; }\",\".framer-PLuSY.framer-v-8lcg3u.framer-1261h0q { cursor: unset; }\",\".framer-PLuSY.framer-v-8lcg3u .framer-1rierhx-container, .framer-PLuSY.framer-v-goedp8 .framer-1rierhx-container, .framer-PLuSY.framer-v-siabn8 .framer-1rierhx-container { width: auto; }\",\".framer-PLuSY.framer-v-goedp8.framer-1261h0q { cursor: unset; gap: 28px; width: 65px; }\",\".framer-PLuSY.framer-v-1s2la6p.framer-1261h0q { gap: 44px; width: 82px; }\",\".framer-PLuSY.framer-v-siabn8.framer-1261h0q { cursor: unset; gap: 44px; width: 82px; }\",...sharedStyle.css,'.framer-PLuSY[data-border=\"true\"]::after, .framer-PLuSY [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; corner-shape: 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\"]},\"c9y6M5yig\":{\"layout\":[\"fixed\",\"auto\"]},\"SP7vVQ3eQ\":{\"layout\":[\"fixed\",\"auto\"]},\"eSg3kkBFG\":{\"layout\":[\"fixed\",\"auto\"]},\"S9ifulKxq\":{\"layout\":[\"fixed\",\"auto\"]},\"qi5nk8p8h\":{\"layout\":[\"fixed\",\"auto\"]},\"ZfANuzzxM\":{\"layout\":[\"fixed\",\"auto\"]},\"hVrBIZEcw\":{\"layout\":[\"fixed\",\"auto\"]},\"V0xAOnwc2\":{\"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 FramercE9XUA5bg=withCSS(Component,css,\"framer-PLuSY\");export default FramercE9XUA5bg;FramercE9XUA5bg.displayName=\"TableOfContent Item\";FramercE9XUA5bg.defaultProps={height:24,width:43};addPropertyControls(FramercE9XUA5bg,{variant:{options:[\"ELBc43mIg\",\"c9y6M5yig\",\"SP7vVQ3eQ\",\"eSg3kkBFG\",\"S9ifulKxq\",\"qi5nk8p8h\"],optionTitles:[\"h2\",\"h3\",\"h2-active\",\"h3-active\",\"h4\",\"h4-active\"],title:\"Variant\",type:ControlType.Enum},TH5RA_D7E:{defaultValue:\"Title\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FramercE9XUA5bg,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\":\"FramercE9XUA5bg\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"TH5RA_D7E\\\":\\\"title\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"c9y6M5yig\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"SP7vVQ3eQ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"eSg3kkBFG\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"S9ifulKxq\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"qi5nk8p8h\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"ZfANuzzxM\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"hVrBIZEcw\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"V0xAOnwc2\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"43\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"24\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./cE9XUA5bg.map","/**\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\":{\"withTableOfContent\":{\"type\":\"reactHoc\",\"name\":\"withTableOfContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withContent\":{\"type\":\"reactHoc\",\"name\":\"withContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableofContent.map"],"mappings":"snBACikC,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,gDAAhrC,KAA6N,IAAkE,IAA4B,KAA4I,IAAyH,CAAM,EAAa,EAASA,EAAQ,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,CAAwN,EAAY,CAAC,SAAS,EAAE,KAAK,QAAQ,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS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