{"version":3,"file":"TagScroll.RpdfdXaR.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/NVQyCqVTptp0P1kQGVVv/S7TZOa0Lppa1ahim6iId/TagScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function ScrollToActive(){useEffect(()=>{const active=document.querySelector('[data-framer-name=\"Active\"]');if(active){// Only scroll if it's NOT already in view\nconst rect=active.getBoundingClientRect();const container=active.parentElement?.parentElement// adjust if needed\n;if(container){const containerRect=container.getBoundingClientRect();const isVisible=rect.left>=containerRect.left&&rect.right<=containerRect.right;if(!isVisible){active.scrollIntoView({behavior:\"auto\",inline:\"center\",block:\"nearest\"});}}}},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withScrollToActive(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ScrollToActive(props)});};}withScrollToActive.displayName=\"ScrollToActive\";\nexport const __FramerMetadata__ = {\"exports\":{\"ScrollToActive\":{\"type\":\"override\",\"name\":\"ScrollToActive\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollToActive\":{\"type\":\"reactHoc\",\"name\":\"withScrollToActive\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TagScroll.map"],"mappings":"2KAAwE,SAAgB,GAAgB,CAE6I,OAF5I,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,8BAA8B,CAAC,GAAG,EAAO,CACrM,IAAM,EAAK,EAAO,uBAAuB,CAAO,EAAU,EAAO,eAAe,cAC/E,GAAG,EAAU,CAAC,IAAM,EAAc,EAAU,uBAAuB,CAAiB,EAAK,MAAM,EAAc,MAAM,EAAK,OAAO,EAAc,OAAqB,EAAO,eAAe,CAAC,SAAS,OAAO,OAAO,SAAS,MAAM,UAAU,CAAC,IAAM,EAAE,CAAC,CAAO,EAAE,CAAqJ,SAAgB,EAAmB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAe,EAAM,CAAC,CAAC,mBAFthB,IAA6B,IAE0U,CAAmL,EAAmB,YAAY"}