{"version":3,"file":"ScrollHighlight.Pgou4eFD.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/lh4IyFf2KxY7QCX0hyqN/lck4vJ3BmuBJe5mR9SuU/ScrollHighlight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function animatedHighlightYellow(Component){return props=>{const ref=useRef(null);useEffect(()=>{const observer=new MutationObserver(()=>{if(!ref.current)return;const elements=ref.current.querySelectorAll('[style*=\"--framer-text-decoration: underline\"]');if(!elements.length)return;elements.forEach(el=>{el.style.removeProperty(\"--framer-text-decoration\");el.style.backgroundColor=\"#ffe2a9\";});observer.disconnect()// stop observing once done\n;});if(ref.current){observer.observe(ref.current,{childList:true,subtree:true});}return()=>{observer.disconnect();};},[props]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"animatedHighlightYellow\":{\"type\":\"reactHoc\",\"name\":\"animatedHighlightYellow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollHighlight.map"],"mappings":"yHAA+E,SAAgB,EAAwB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CACxC,OADyC,MAAc,CAAC,IAAM,EAAS,IAAI,qBAAqB,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAS,EAAI,QAAQ,iBAAiB,iDAAiD,CAAK,EAAS,SAAc,EAAS,QAAQ,GAAI,CAAC,EAAG,MAAM,eAAe,2BAA2B,CAAC,EAAG,MAAM,gBAAgB,WAAY,CAAC,EAAS,YAAY,GAClf,CAA8E,OAA1E,EAAI,SAAS,EAAS,QAAQ,EAAI,QAAQ,CAAC,UAAU,GAAK,QAAQ,GAAK,CAAC,KAAY,CAAC,EAAS,YAAY,GAAK,CAAC,EAAM,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,mBAD9K,IAAoC"}