{"version":3,"file":"HeaderSidebarPaddingSync.CY5M4o2J.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ndYbZgaxbqFWVsBQWyXG/kZ0AX7HJYk4dzAgbbytf/HeaderSidebarPaddingSync.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function withHeaderHeightTracker(Component){return props=>{const wrapperRef=useRef(null);useEffect(()=>{const wrapper=wrapperRef.current;if(!wrapper)return;const el=wrapper.firstElementChild;if(!el)return;const updateHeight=()=>{document.documentElement.style.setProperty(\"--header-height\",`${el.getBoundingClientRect().height}px`);};updateHeight();const observer=new ResizeObserver(updateHeight);observer.observe(el);return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:wrapperRef,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}export function withHeaderOffset(Component){return props=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"sticky\",top:\"var(--header-height, 104px)\",height:\"calc(100vh - var(--header-height, 104px))\",boxSizing:\"border-box\",overflowY:\"visible\"},children:/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,width:\"100%\"}})});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHeaderHeightTracker\":{\"type\":\"reactHoc\",\"name\":\"withHeaderHeightTracker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeaderOffset\":{\"type\":\"reactHoc\",\"name\":\"withHeaderOffset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeaderSidebarPaddingSync.map"],"mappings":"yHAA+E,SAAgB,EAAwB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAWA,EAAO,IAAI,EAAiX,OAA/W,MAAc,CAAC,IAAM,EAAQ,EAAW,QAAQ,GAAG,CAAC,EAAQ,OAAO,IAAM,EAAG,EAAQ,kBAAkB,GAAG,CAAC,EAAG,OAAO,IAAM,MAAiB,CAAC,SAAS,gBAAgB,MAAM,YAAY,kBAAkB,GAAG,EAAG,sBAAsB,CAAC,CAAC,OAAO,GAAG,CAAE,EAAE,EAAa,EAAE,IAAM,EAAS,IAAI,eAAe,CAAY,EAAuB,OAArB,EAAS,QAAQ,CAAE,MAAY,EAAS,WAAW,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAW,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,SAAS,IAAI,8BAA8B,OAAO,4CAA4C,UAAU,aAAa,UAAU,SAAS,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,iBAAx7B,IAAoC"}